From a4567b665c8a121b2c5ddf11f97ce57b0002e8ec Mon Sep 17 00:00:00 2001 From: dnaumov Date: Tue, 10 Mar 2020 16:58:07 -0400 Subject: [PATCH] simplify endpoint model mappings --- Acumatica REST API Client.sln | 14 +- ...EST API Example Console Application.csproj | 8 +- Acumatica.Default_17.200.001/Model/Account.cs | 433 +---- .../Model/AccountByPeriodInquiry.cs | 212 +-- .../Model/AccountByPeriodRow.cs | 331 +--- .../Model/AccountBySubaccountInquiry.cs | 212 +-- .../Model/AccountBySubaccountRow.cs | 331 +--- .../Model/AccountDetailsInquiry.cs | 399 +---- .../Model/AccountDetailsRow.cs | 518 +----- .../Model/AccountLocation.cs | 853 ++------- .../Model/AccountLocationContact.cs | 297 +--- .../Model/AccountSummaryInquiry.cs | 212 +-- .../Model/AccountSummaryRow.cs | 450 +---- .../Model/Actions/AcceptInvitationEvent.cs | 141 +- .../Model/Actions/ArchiveEmail.cs | 14 + .../Model/Actions/AssignCase.cs | 141 +- .../Model/Actions/CancelActivityEvent.cs | 141 +- .../Model/Actions/CancelActivityTask.cs | 141 +- .../Model/Actions/CancelPhysicalInventory.cs | 141 +- .../Model/Actions/CancelSalesOrder.cs | 141 +- .../Model/Actions/CancelSendingEmail.cs | 141 +- .../Model/Actions/CaptureCreditCardPayment.cs | 141 +- .../CheckForBusinessAccountDuplicates.cs | 14 + .../Actions/CheckForContactDuplicates.cs | 14 + .../Model/Actions/CheckLeadForDuplicates.cs | 14 + .../Model/Actions/CloseContactAsDuplicate.cs | 14 + .../Model/Actions/CloseLeadAsDuplicate.cs | 14 + .../Model/Actions/CompleteAndFollowUpEvent.cs | 14 + .../Model/Actions/CompleteAndFollowUpTask.cs | 14 + .../Model/Actions/CompleteEvent.cs | 14 + .../Actions/CompletePhysicalInventory.cs | 14 + .../Model/Actions/CompleteTask.cs | 14 + .../Model/Actions/ConfirmShipment.cs | 14 + .../ConvertBusinessAccountToCustomer.cs | 14 + .../Actions/ConvertBusinessAccountToVendor.cs | 14 + .../Model/Actions/ConvertLeadToContact.cs | 14 + .../Model/Actions/ConvertLeadToOpportunity.cs | 14 + .../Model/Actions/CopyFromCompany.cs | 14 + .../Model/Actions/CorrectShipment.cs | 14 + .../Model/Actions/CreateCaseEmail.cs | 14 + .../Model/Actions/CreateContactEmail.cs | 14 + .../Actions/CreateContactFromOpportunity.cs | 14 + .../Model/Actions/CreateEventEmail.cs | 14 + .../Actions/CreateExpenseReceiptEmail.cs | 14 + .../Model/Actions/CreateLeadEmail.cs | 14 + .../Model/Actions/CreateOpportunityEmail.cs | 14 + .../Model/Actions/CreateOpportunityInvoice.cs | 14 + .../Model/Actions/CreateTaskEmail.cs | 14 + .../Model/Actions/DownloadEmlFileEmail.cs | 14 + .../Model/Actions/ExportCardEvent.cs | 14 + .../FinishCountingPhysicalInventory.cs | 14 + .../Model/Actions/GeneratePeriods.cs | 14 + .../Model/Actions/InviteAllEvent.cs | 14 + .../Model/Actions/InviteEvent.cs | 14 + .../Actions/MarkBusinessAccountAsValidated.cs | 14 + .../Model/Actions/MarkContactAsValidated.cs | 14 + .../Model/Actions/MarkLeadAsValidated.cs | 14 + .../Model/Actions/PrepareSalesInvoice.cs | 14 + .../Actions/ProcessAllEmailProcessing.cs | 14 + .../Model/Actions/ProcessEmail.cs | 14 + .../Model/Actions/ProcessEmailProcessing.cs | 14 + .../Model/Actions/RejectInvitationEvent.cs | 14 + .../Model/Actions/ReleaseAdjustment.cs | 14 + .../Model/Actions/ReleaseBill.cs | 14 + .../Model/Actions/ReleaseCase.cs | 14 + .../Model/Actions/ReleaseCashSale.cs | 14 + .../Model/Actions/ReleaseCheck.cs | 14 + .../Model/Actions/ReleaseInventoryReceipt.cs | 14 + .../Model/Actions/ReleaseInvoice.cs | 14 + .../Actions/ReleaseJournalTransaction.cs | 14 + .../Model/Actions/ReleaseJournalVoucher.cs | 14 + .../Model/Actions/ReleaseKitAssembly.cs | 14 + .../Model/Actions/ReleasePayment.cs | 14 + .../Model/Actions/ReleasePurchaseReceipt.cs | 14 + .../Model/Actions/ReleaseSalesInvoice.cs | 14 + .../Actions/ReleaseSalesPriceWorksheet.cs | 14 + .../Model/Actions/ReleaseTransferOrder.cs | 14 + .../Model/Actions/ReleaseTrialBalance.cs | 14 + .../Actions/ReleaseVendorPriceWorksheet.cs | 14 + .../Model/Actions/ReopenSalesOrder.cs | 14 + .../Model/Actions/RestoreArchivedEmail.cs | 14 + .../Model/Actions/RestoreDeletedEmail.cs | 14 + .../Model/Actions/ReverseBill.cs | 14 + .../Model/Actions/ReverseInvoice.cs | 14 + .../Model/Actions/SelectSourceEmail.cs | 14 + .../Model/Actions/SendEmail.cs | 14 + .../Model/Actions/TakeCase.cs | 14 + .../Model/Actions/TrialBalanceProcess.cs | 14 + .../Model/Actions/TrialBalanceProcessAll.cs | 14 + .../Model/Actions/UpdateIN.cs | 14 + .../Actions/UpdateStandardCostNonStockItem.cs | 14 + .../Actions/UpdateStandardCostStockItem.cs | 14 + .../ValidateBusinessAccountAddresses.cs | 14 + .../Model/Actions/ValidateContactAddress.cs | 14 + .../Model/Actions/ValidateLeadAddress.cs | 14 + .../Model/Actions/VoidPayment.cs | 14 + .../Model/ActivityDetail.cs | 416 +---- Acumatica.Default_17.200.001/Model/Address.cs | 212 +-- .../Model/Adjustment.cs | 263 +-- .../Model/AdjustmentDetail.cs | 331 +--- .../Model/AttributeDefinition.cs | 263 +-- .../Model/AttributeDefinitionValue.cs | 178 +- .../Model/AttributeDetail.cs | 178 +- .../Model/AttributeValue.cs | 161 +- Acumatica.Default_17.200.001/Model/Bill.cs | 484 +---- .../Model/BillApplicationDetail.cs | 195 +-- .../Model/BillDetail.cs | 382 +--- .../Model/BillTaxDetail.cs | 178 +- .../Model/BillToSettings.cs | 178 +- .../Model/BoxStockItem.cs | 229 +-- .../Model/BusinessAccount.cs | 777 ++------ .../Model/BusinessAccountActivityDetail.cs | 433 +---- .../Model/BusinessAccountCaseDetail.cs | 331 +--- .../BusinessAccountClassAttributeDetail.cs | 212 +-- .../Model/BusinessAccountContact.cs | 280 +-- .../Model/BusinessAccountContract.cs | 229 +-- .../BusinessAccountDefaultLocationSetting.cs | 382 +--- .../Model/BusinessAccountLocation.cs | 297 +--- .../Model/BusinessAccountMainContact.cs | 263 +-- .../BusinessAccountMarketingListDetail.cs | 263 +-- .../Model/BusinessAccountOpportunityDetail.cs | 314 +--- .../Model/BusinessAccountOrder.cs | 348 +--- ...BusinessAccountPaymentInstructionDetail.cs | 195 +-- .../Model/BusinessAccountShippingContact.cs | 229 +-- .../Model/CampaignDetail.cs | 178 +- Acumatica.Default_17.200.001/Model/Carrier.cs | 263 +-- .../Model/CarrierCustomerAccount.cs | 229 +-- .../Model/CarrierPluginParameter.cs | 161 +- Acumatica.Default_17.200.001/Model/Case.cs | 796 ++------- .../Model/CaseActivityDetail.cs | 484 +---- .../Model/CaseDetail.cs | 314 +--- .../Model/CaseRelatedCase.cs | 229 +-- .../Model/CashSale.cs | 382 +--- .../Model/CashSaleDetail.cs | 280 +-- .../Model/CategoryStockItem.cs | 127 +- Acumatica.Default_17.200.001/Model/Check.cs | 365 +--- .../Model/CheckDetail.cs | 195 +-- .../Model/CheckHistoryDetail.cs | 229 +-- .../Model/Commissions.cs | 144 +- Acumatica.Default_17.200.001/Model/Contact.cs | 1347 +++----------- .../Model/ContactDuplicateDetail.cs | 246 +-- .../Model/ContactNotification.cs | 280 +-- .../Model/ContactRoles.cs | 178 +- .../Model/ContactUserInfo.cs | 212 +-- .../Model/ContractUsage.cs | 178 +- .../Model/ContractUsageTransactionDetail.cs | 331 +--- .../Model/CreditCardProcessingDetail.cs | 144 +- .../Model/CreditVerificationRules.cs | 229 +-- .../Model/Currency.cs | 246 +-- .../Model/Customer.cs | 1119 ++---------- .../Model/CustomerClass.cs | 1147 ++---------- .../Model/CustomerContact.cs | 144 +- .../Model/CustomerLocation.cs | 603 +------ .../Model/CustomerPaymentMethod.cs | 297 +--- .../Model/CustomerPaymentMethodDetail.cs | 144 +- .../Model/CustomerPriceClass.cs | 178 +- .../Model/CustomerSalesPerson.cs | 212 +-- .../Model/Discount.cs | 433 +---- .../Model/DiscountBreakpointDetail.cs | 416 +---- .../Model/DiscountCode.cs | 212 +-- .../Model/DiscountCustomerDetail.cs | 144 +- .../DiscountCustomerPriceClassesDetail.cs | 127 +- .../Model/DiscountItemDetail.cs | 144 +- .../Model/DiscountItemPriceClassesDetail.cs | 127 +- .../Model/DiscountWarehouseDetail.cs | 127 +- .../Model/DocContact.cs | 178 +- .../Model/DuplicateDetail.cs | 297 +--- Acumatica.Default_17.200.001/Model/Email.cs | 450 +---- .../Model/EmailProcessing.cs | 229 +-- .../Model/EmailProcessingRow.cs | 246 +-- .../Model/EmailTimeActivity.cs | 314 +--- .../Model/Employee.cs | 331 +--- .../Model/EmployeeCostRecord.cs | 195 +-- .../Model/EmploymentHistoryRecord.cs | 263 +-- Acumatica.Default_17.200.001/Model/Event.cs | 433 +---- .../Model/EventAttendee.cs | 246 +-- .../Model/EventRelatedActivity.cs | 263 +-- .../Model/EventTimeActivity.cs | 178 +- .../Model/FOBPoint.cs | 144 +- .../Model/FinancialPeriod.cs | 229 +-- .../Model/FinancialPeriodDetail.cs | 365 +--- .../Model/FinancialSettings.cs | 348 +--- .../Model/FinancialYear.cs | 382 +--- .../Model/FinancialYearPeriodDetail.cs | 178 +- .../Model/InterBranchAccountMapping.cs | 178 +- ...ingTransactionInDestinationBranchDetail.cs | 229 +-- ...tMappingTransactionInSourceBranchDetail.cs | 229 +-- .../Model/InventoryAllocationInquiry.cs | 682 +------- .../Model/InventoryAllocationRow.cs | 246 +-- .../Model/InventoryItemCrossReference.cs | 195 +-- .../Model/InventoryItemUOMConversion.cs | 178 +- .../Model/InventoryReceipt.cs | 314 +--- .../Model/InventoryReceiptDetail.cs | 331 +--- .../Model/InventoryReceiptDetailAllocation.cs | 246 +-- .../Model/InventorySummaryInquiry.cs | 212 +-- .../Model/InventorySummaryRow.cs | 314 +--- Acumatica.Default_17.200.001/Model/Invoice.cs | 535 +----- .../Model/InvoiceApplicationsCreditMemo.cs | 263 +-- .../Model/InvoiceApplicationsDefault.cs | 229 +-- .../Model/InvoiceDetail.cs | 365 +--- .../Model/InvoiceTaxDetail.cs | 178 +- .../Model/ItemClass.cs | 382 +--- .../Model/ItemClassAtrribute.cs | 161 +- .../Model/ItemPriceClassesDetails.cs | 127 +- .../Model/ItemSalesCategory.cs | 212 +-- .../Model/ItemSalesCategoryMember.cs | 178 +- .../Model/ItemWarehouse.cs | 569 +----- .../Model/ItemsDetails.cs | 144 +- .../Model/JournalTransaction.cs | 331 +--- .../Model/JournalTransactionDetail.cs | 365 +--- .../Model/JournalVoucher.cs | 467 +---- .../Model/JournalVoucherDetail.cs | 815 ++------- .../JournalVoucherDetailAPDocumentToApply.cs | 195 +-- .../JournalVoucherDetailARDocumentToApply.cs | 212 +-- .../Model/JournalVoucherGLTransaction.cs | 314 +--- .../Model/KitAssembly.cs | 416 +---- .../Model/KitAssemblyAllocation.cs | 246 +-- .../Model/KitAssemblyNonStockComponent.cs | 229 +-- .../Model/KitAssemblyStockComponent.cs | 280 +-- .../KitAssemblyStockComponentAllocation.cs | 297 +--- .../Model/KitNonStockComponent.cs | 212 +-- .../Model/KitSpecification.cs | 229 +-- .../Model/KitStockComponent.cs | 229 +-- Acumatica.Default_17.200.001/Model/Lead.cs | 1005 ++--------- .../Model/LotSerialClass.cs | 229 +-- .../Model/LotSerialClassSegment.cs | 161 +- .../Model/MarketingListDetail.cs | 212 +-- .../Model/NonStockItem.cs | 910 ++-------- .../Model/NonStockItemAttribute.cs | 161 +- .../Model/NonStockItemSalesCategory.cs | 127 +- .../Model/NonStockItemVendorDetail.cs | 144 +- .../Model/Opportunity.cs | 872 ++------- .../Model/OpportunityContact.cs | 382 +--- .../Model/OpportunityDetail.cs | 280 +-- .../Model/OpportunityDiscount.cs | 314 +--- .../Model/OpportunityProduct.cs | 416 +---- .../Model/OpportunityTaxDetail.cs | 280 +-- Acumatica.Default_17.200.001/Model/Payment.cs | 416 +---- .../Model/PaymentApplicationHistoryDetail.cs | 518 +----- .../Model/PaymentDetail.cs | 229 +-- .../Model/PaymentMethod.cs | 314 +--- .../PaymentMethodAllowedCashAccountDetail.cs | 348 +--- .../PaymentMethodProcessingCenterDetail.cs | 178 +- .../Model/PaymentOrderDetail.cs | 161 +- .../Model/Payments.cs | 331 +--- .../Model/PhysicalInventoryCount.cs | 212 +-- .../Model/PhysicalInventoryCountDetail.cs | 263 +-- .../Model/PhysicalInventoryReview.cs | 280 +-- .../Model/PhysicalInventoryReviewDetail.cs | 365 +--- .../Model/ProjectTransaction.cs | 314 +--- .../Model/ProjectTransactionDetail.cs | 701 ++------ .../Model/PurchaseOrder.cs | 416 +---- .../Model/PurchaseOrderDetail.cs | 682 +------- .../Model/PurchaseReceipt.cs | 365 +--- .../Model/PurchaseReceiptDetail.cs | 552 +----- .../Model/PurchaseReceiptDetailAllocation.cs | 212 +-- .../Model/PurchaseSettings.cs | 161 +- .../Model/RelationDetail.cs | 314 +--- .../Model/ReminderDetail.cs | 161 +- .../Model/ReplenishmentParameterStockItem.cs | 382 +--- .../Model/ReportingGroup.cs | 161 +- .../Model/ReportingSettings.cs | 144 +- .../Model/SalesInvoice.cs | 348 +--- .../Model/SalesInvoiceDetail.cs | 297 +--- .../Model/SalesInvoiceFreightDetail.cs | 280 +-- .../Model/SalesOrder.cs | 1195 ++----------- .../Model/SalesOrderDetail.cs | 929 ++-------- .../Model/SalesOrderDetailAllocation.cs | 416 +---- .../Model/SalesOrderShipment.cs | 297 +--- .../Model/SalesOrdersDiscountDetails.cs | 297 +--- .../Model/SalesPersonDetail.cs | 178 +- .../Model/SalesPriceDetail.cs | 365 +--- .../Model/SalesPriceWorksheet.cs | 280 +-- .../Model/SalesPricesInquiry.cs | 297 +--- .../Model/SalesPricesWorksheetDetail.cs | 314 +--- .../Model/Salesperson.cs | 229 +-- .../Model/ShipToSettings.cs | 195 +-- Acumatica.Default_17.200.001/Model/ShipVia.cs | 314 +--- .../Model/ShipViaFreightRate.cs | 195 +-- .../Model/Shipment.cs | 929 ++-------- .../Model/ShipmentDetail.cs | 433 +---- .../Model/ShipmentDetailAllocation.cs | 280 +-- .../Model/ShipmentOrderDetail.cs | 297 +--- .../Model/ShipmentPackage.cs | 297 +--- .../Model/ShippingBox.cs | 314 +--- .../Model/ShippingInstructions.cs | 263 +-- .../Model/ShippingSettings.cs | 399 +---- .../Model/ShippingTerm.cs | 161 +- .../Model/ShippingTermDetail.cs | 212 +-- .../Model/ShippingZones.cs | 144 +- .../Model/ShopForRates.cs | 161 +- .../Model/StatementCycle.cs | 433 +---- .../Model/StockItem.cs | 1556 +++-------------- .../Model/StockItemVendorDetail.cs | 433 +---- .../Model/StockItemWarehouseDetail.cs | 501 +----- .../Model/SubItemStockItem.cs | 178 +- .../Model/Subaccount.cs | 195 +-- Acumatica.Default_17.200.001/Model/Task.cs | 450 +---- .../Model/TaskRelatedActivity.cs | 416 +---- .../Model/TaskRelatedTask.cs | 212 +-- .../Model/TaskTimeActivity.cs | 212 +-- Acumatica.Default_17.200.001/Model/Tax.cs | 535 +----- .../Model/TaxCategory.cs | 229 +-- .../Model/TaxCategoryTaxDetail.cs | 212 +-- .../Model/TaxDetail.cs | 331 +--- .../Model/TaxScheduleDetail.cs | 246 +-- Acumatica.Default_17.200.001/Model/TaxZone.cs | 195 +-- .../Model/TaxZoneApplicableTaxDetail.cs | 127 +- .../Model/TaxZoneDetail.cs | 178 +- Acumatica.Default_17.200.001/Model/Totals.cs | 365 +--- .../Model/TransferOrder.cs | 314 +--- .../Model/TransferOrderDetail.cs | 314 +--- .../Model/TransferOrderDetailAllocation.cs | 195 +-- .../Model/TrialBalance.cs | 365 +--- .../Model/TrialBalanceDetail.cs | 314 +--- .../Model/UnitsOfMeasure.cs | 212 +-- Acumatica.Default_17.200.001/Model/Vendor.cs | 1119 ++---------- .../Model/VendorClass.cs | 195 +-- .../Model/VendorPriceDetail.cs | 348 +--- .../Model/VendorPriceWorksheet.cs | 297 +--- .../Model/VendorPriceWorksheetDetail.cs | 297 +--- .../Model/VendorPricesInquiry.cs | 212 +-- .../Model/VoucherEntryCode.cs | 195 +-- .../Model/Warehouse.cs | 720 ++------ .../Model/WarehouseLocation.cs | 246 +-- .../Acumatica.Default_18.200.001.csproj | 1284 +++++++------- .../Api/AccountApi.cs | 0 .../Api/AccountByPeriodInquiryApi.cs | 0 .../Api/AccountBySubaccountInquiryApi.cs | 0 .../Api/AccountDetailsInquiryApi.cs | 0 .../Api/AccountGroupApi.cs | 0 .../Api/AccountLocationApi.cs | 0 .../Api/AccountSummaryInquiryApi.cs | 0 .../Api/ActivityApi.cs | 0 .../Api/AdjustmentApi.cs | 0 .../Api/AllocationRuleApi.cs | 0 .../Api/AttributeDefinitionApi.cs | 0 .../Api/BillApi.cs | 0 .../Api/BusinessAccountApi.cs | 0 .../Api/CarrierApi.cs | 0 .../Api/CaseApi.cs | 0 .../Api/CashSaleApi.cs | 0 .../Api/ChangeOrderApi.cs | 2 +- .../Api/ChangeOrderClassApi.cs | 0 .../Api/CheckApi.cs | 0 .../Api/CommonTaskApi.cs | 0 .../Api/CompanyFinancialPeriodApi.cs | 0 .../Api/ContactApi.cs | 0 .../Api/ContractUsageApi.cs | 0 .../Api/CostCodeApi.cs | 0 .../Api/CurrencyApi.cs | 0 .../Api/CustomerApi.cs | 0 .../Api/CustomerClassApi.cs | 0 .../Api/CustomerLocationApi.cs | 0 .../Api/CustomerPaymentMethodApi.cs | 0 .../Api/CustomerPriceClassApi.cs | 0 .../Api/DiscountApi.cs | 0 .../Api/DiscountCodeApi.cs | 0 .../Api/EmailApi.cs | 0 .../Api/EmailProcessingApi.cs | 0 .../Api/EmployeeApi.cs | 0 .../Api/EventApi.cs | 4 +- .../Api/ExpenseClaimApi.cs | 4 +- .../Api/ExpenseReceiptApi.cs | 4 +- .../Api/ExternalCommitmentApi.cs | 0 .../Api/FOBPointApi.cs | 0 .../Api/FinancialPeriodApi.cs | 0 .../Api/FinancialYearApi.cs | 0 .../Api/InterBranchAccountMappingApi.cs | 0 .../Api/InventoryAllocationInquiryApi.cs | 0 .../Api/InventoryReceiptApi.cs | 0 .../Api/InventorySummaryInquiryApi.cs | 0 .../Api/InvoiceApi.cs | 0 .../Api/ItemClassApi.cs | 0 .../Api/ItemSalesCategoryApi.cs | 0 .../Api/ItemWarehouseApi.cs | 0 .../Api/JournalTransactionApi.cs | 0 .../Api/JournalVoucherApi.cs | 0 .../Api/KitAssemblyApi.cs | 0 .../Api/KitSpecificationApi.cs | 0 .../Api/LaborCostRateApi.cs | 0 .../Api/LeadApi.cs | 0 .../Api/LotSerialClassApi.cs | 0 .../Api/ManageFinancialPeriodsApi.cs | 0 .../Api/NonStockItemApi.cs | 0 .../Api/OpportunityApi.cs | 0 .../Api/PaymentApi.cs | 0 .../Api/PaymentMethodApi.cs | 0 .../Api/PhysicalInventoryCountApi.cs | 0 .../Api/PhysicalInventoryReviewApi.cs | 0 .../Api/ProFormaInvoiceApi.cs | 4 +- .../Api/ProjectApi.cs | 0 .../Api/ProjectBillingApi.cs | 0 .../Api/ProjectBillingRulesApi.cs | 0 .../Api/ProjectBudgetApi.cs | 0 .../Api/ProjectTaskApi.cs | 0 .../Api/ProjectTemplateApi.cs | 0 .../Api/ProjectTemplateTaskApi.cs | 0 .../Api/ProjectTransactionApi.cs | 0 .../Api/PurchaseOrderApi.cs | 0 .../Api/PurchaseReceiptApi.cs | 0 .../Api/ReportingSettingsApi.cs | 0 .../Api/SalesInvoiceApi.cs | 0 .../Api/SalesOrderApi.cs | 4 +- .../Api/SalesPriceWorksheetApi.cs | 0 .../Api/SalesPricesInquiryApi.cs | 0 .../Api/SalespersonApi.cs | 0 .../Api/ShipViaApi.cs | 0 .../Api/ShipmentApi.cs | 50 +- .../Api/ShippingBoxApi.cs | 0 .../Api/ShippingTermApi.cs | 0 .../Api/ShippingZonesApi.cs | 0 .../Api/StatementCycleApi.cs | 0 .../Api/StockItemApi.cs | 0 .../Api/SubaccountApi.cs | 0 .../Api/TaskApi.cs | 4 +- .../Api/TaxApi.cs | 0 .../Api/TaxCategoryApi.cs | 4 +- .../Api/TaxZoneApi.cs | 4 +- .../Api/TimeEntryApi.cs | 4 +- .../Api/TransferOrderApi.cs | 4 +- .../Api/TrialBalanceApi.cs | 4 +- .../Api/UnionLocalApi.cs | 4 +- .../Api/UnitsOfMeasureApi.cs | 4 +- .../Api/VendorApi.cs | 4 +- .../Api/VendorClassApi.cs | 4 +- .../Api/VendorPriceWorksheetApi.cs | 4 +- .../Api/VendorPricesInquiryApi.cs | 4 +- .../Api/VoucherEntryCodeApi.cs | 4 +- .../Api/WarehouseApi.cs | 4 +- .../Api/WorkClassCompensationCodeApi.cs | 4 +- .../EndpointHelper.cs | 36 +- Acumatica.Default_18.200.001/Model/Account.cs | 69 + .../Model/AccountByPeriodInquiry.cs | 30 + .../Model/AccountByPeriodRow.cs | 51 + .../Model/AccountBySubaccountInquiry.cs | 30 + .../Model/AccountBySubaccountRow.cs | 51 + .../Model/AccountDetailsInquiry.cs | 63 + .../Model/AccountDetailsRow.cs | 84 + .../Model/AccountGroup.cs | 36 + .../Model/AccountLocation.cs | 129 ++ .../Model/AccountLocationContact.cs | 45 + .../Model/AccountSummaryInquiry.cs | 30 + .../Model/AccountSummaryRow.cs | 72 + .../ChangeBusinessAccountIDParameters.cs | 0 .../ChangeCostCodeIDParameters.cs | 0 .../ChangeEmployeeIDParameters.cs | 0 .../ChangeProjectIDParameters.cs | 0 ...nvertContactToBusinessAccountParameters.cs | 0 .../CreateOpportunitySalesOrderParameters.cs | 0 .../LinkEntityToEmailParameters.cs | 0 .../PaymentLoadDocumentsParameters.cs | 0 .../PaymentLoadOrdersParameters.cs | 0 .../SalesOrderAddInvoiceParameters.cs | 0 .../SalesOrderAddStockItemParameters.cs | 0 .../SalesOrderCreateShipmentParameters.cs | 0 .../UpdateDiscountsParameters.cs | 0 .../Model/Actions/AcceptInvitationEvent.cs | 14 + .../ChangeBusinessAccountID.cs | 0 .../ActionsWithParameters/ChangeCostCodeID.cs | 0 .../ActionsWithParameters/ChangeEmployeeID.cs | 0 .../ActionsWithParameters/ChangeProjectID.cs | 0 .../ConvertContactToBusinessAccount.cs | 0 .../ConvertLeadToBAccount.cs | 0 .../CreateAccountFromOpportunity.cs | 0 .../CreateOpportunitySalesOrder.cs | 0 .../LinkEntityToActivity.cs | 0 .../LinkEntityToEmail.cs | 0 .../LinkEntityToEvent.cs | 0 .../ActionsWithParameters/LinkEntityToTask.cs | 0 .../PaymentLoadDocuments.cs | 0 .../PaymentLoadOrders.cs | 0 .../SalesOrderAddInvoice.cs | 0 .../SalesOrderAddStockItem.cs | 0 .../SalesOrderCreateReceipt.cs | 0 .../SalesOrderCreateShipment.cs | 0 .../ActionsWithParameters/UpdateDiscounts.cs | 0 .../Model/Actions/ApproveChangeOrder.cs | 14 + .../Model/Actions/ApproveExpenseClaim.cs | 14 + .../Model/Actions/ApproveExpenseReceipt.cs | 14 + .../Model/Actions/ApproveProFormaInvoice.cs | 14 + .../Model/Actions/ApproveProject.cs | 14 + .../Model/Actions/ArchiveEmail.cs | 14 + .../Model/Actions/AssignCase.cs | 14 + .../Model/Actions/AutoRecalculateDiscounts.cs | 14 + .../Model/Actions/CancelActivityEvent.cs | 14 + .../Model/Actions/CancelActivityTask.cs | 14 + .../Model/Actions/CancelPhysicalInventory.cs | 14 + .../Model/Actions/CancelSalesOrder.cs | 14 + .../Model/Actions/CancelSendingEmail.cs | 14 + .../Model/Actions/CaptureCreditCardPayment.cs | 14 + .../CheckForBusinessAccountDuplicates.cs | 14 + .../Actions/CheckForContactDuplicates.cs | 14 + .../Model/Actions/CheckLeadForDuplicates.cs | 14 + .../Model/Actions/ClaimExpenseReceipt.cs | 14 + .../Model/Actions/CloseContactAsDuplicate.cs | 14 + .../Model/Actions/CloseLeadAsDuplicate.cs | 14 + .../Model/Actions/CompleteActivity.cs | 14 + .../Model/Actions/CompleteAndFollowUpEvent.cs | 14 + .../Model/Actions/CompleteAndFollowUpTask.cs | 14 + .../Model/Actions/CompleteEvent.cs | 14 + .../Actions/CompletePhysicalInventory.cs | 14 + .../Model/Actions/CompleteTask.cs | 14 + .../Model/Actions/CompleteTimeEntry.cs | 14 + .../Model/Actions/ConfirmShipment.cs | 14 + .../ConvertBusinessAccountToCustomer.cs | 14 + .../Actions/ConvertBusinessAccountToVendor.cs | 14 + .../Model/Actions/ConvertLeadToContact.cs | 14 + .../Model/Actions/ConvertLeadToOpportunity.cs | 14 + .../Model/Actions/CopyFromCompany.cs | 14 + .../Model/Actions/CorrectShipment.cs | 14 + .../Model/Actions/CreateAPBill.cs | 14 + .../Model/Actions/CreateCaseFromEmail.cs | 14 + .../Model/Actions/CreateContactFromEmail.cs | 14 + .../Actions/CreateContactFromOpportunity.cs | 14 + .../Model/Actions/CreateEventFromEmail.cs | 14 + .../Actions/CreateExpenseReceiptFromEmail.cs | 14 + .../Model/Actions/CreateLeadFromEmail.cs | 14 + .../Actions/CreateOpportunityFromEmail.cs | 14 + .../Model/Actions/CreateOpportunityInvoice.cs | 14 + .../Model/Actions/CreateTaskFromEmail.cs | 14 + .../Model/Actions/DownloadEmlFileEmail.cs | 14 + .../Model/Actions/EmailChangeOrder.cs | 14 + .../Model/Actions/EmailProFormaInvoice.cs | 14 + .../Model/Actions/EnterAPBill.cs | 14 + .../Model/Actions/EnterPOReceipt.cs | 14 + .../Model/Actions/ExportCardEvent.cs | 14 + .../FinishCountingPhysicalInventory.cs | 14 + .../Model/Actions/GeneratePeriods.cs | 14 + .../Model/Actions/InviteAllEvent.cs | 14 + .../Model/Actions/InviteEvent.cs | 14 + .../Model/Actions/LockProjectBudget.cs | 14 + .../Model/Actions/LockProjectCommitments.cs | 14 + .../Actions/MarkBusinessAccountAsValidated.cs | 14 + .../Model/Actions/MarkContactAsValidated.cs | 14 + .../Model/Actions/MarkLeadAsValidated.cs | 14 + .../Model/Actions/OpenSalesOrder.cs | 14 + .../Model/Actions/OpenTimeEntry.cs | 14 + .../Model/Actions/PrepareInvoice.cs | 14 + .../Model/Actions/PrepareSalesInvoice.cs | 14 + .../Actions/ProcessAllEmailProcessing.cs | 14 + .../ProcessAllManageFinancialPeriods.cs | 14 + .../Model/Actions/ProcessEmail.cs | 14 + .../Model/Actions/ProcessEmailProcessing.cs | 14 + .../Actions/ProcessManageFinancialPeriods.cs | 14 + .../Model/Actions/ProjectBillingProcess.cs | 14 + .../Model/Actions/ProjectBillingProcessAll.cs | 14 + .../Model/Actions/PutOnHoldExpenseClaim.cs | 14 + .../Model/Actions/PutOnHoldExpenseReceipt.cs | 14 + .../Model/Actions/RejectChangeOrder.cs | 14 + .../Model/Actions/RejectExpenseClaim.cs | 14 + .../Model/Actions/RejectExpenseReceipt.cs | 14 + .../Model/Actions/RejectInvitationEvent.cs | 14 + .../Model/Actions/RejectProFormaInvoice.cs | 14 + .../Model/Actions/RejectProject.cs | 14 + .../Model/Actions/ReleaseAdjustment.cs | 14 + .../Model/Actions/ReleaseBill.cs | 14 + .../Model/Actions/ReleaseCase.cs | 14 + .../Model/Actions/ReleaseCashSale.cs | 14 + .../Model/Actions/ReleaseChangeOrder.cs | 14 + .../Model/Actions/ReleaseCheck.cs | 14 + .../Model/Actions/ReleaseExpenseClaim.cs | 14 + .../ReleaseFromCreditHoldSalesOrder.cs | 14 + .../Model/Actions/ReleaseInventoryReceipt.cs | 14 + .../Model/Actions/ReleaseInvoice.cs | 14 + .../Actions/ReleaseJournalTransaction.cs | 14 + .../Model/Actions/ReleaseJournalVoucher.cs | 14 + .../Model/Actions/ReleaseKitAssembly.cs | 14 + .../Model/Actions/ReleasePayment.cs | 14 + .../Model/Actions/ReleaseProFormaInvoice.cs | 14 + .../Model/Actions/ReleasePurchaseReceipt.cs | 14 + .../Model/Actions/ReleaseSalesInvoice.cs | 14 + .../Actions/ReleaseSalesPriceWorksheet.cs | 14 + .../Model/Actions/ReleaseTransactions.cs | 14 + .../Model/Actions/ReleaseTransferOrder.cs | 14 + .../Model/Actions/ReleaseTrialBalance.cs | 14 + .../Actions/ReleaseVendorPriceWorksheet.cs | 14 + .../Model/Actions/ReopenSalesOrder.cs | 14 + .../Model/Actions/RestoreArchivedEmail.cs | 14 + .../Model/Actions/RestoreDeletedEmail.cs | 14 + .../Model/Actions/ReverseBill.cs | 14 + .../Model/Actions/ReverseChangeOrder.cs | 14 + .../Model/Actions/ReverseInvoice.cs | 14 + .../Model/Actions/RunProjectAllocation.cs | 14 + .../Model/Actions/RunProjectBilling.cs | 14 + .../Model/Actions/SalesInvoiceAddOrder.cs | 14 + .../Model/Actions/SalesInvoiceAutoApply.cs | 14 + .../Actions/SalesOrderCreatePurchaseOrder.cs | 14 + .../Model/Actions/SendEmail.cs | 14 + .../Model/Actions/SubmitExpenseClaim.cs | 14 + .../Model/Actions/SubmitExpenseReceipt.cs | 14 + .../Model/Actions/TakeCase.cs | 14 + .../Model/Actions/TrialBalanceProcess.cs | 14 + .../Model/Actions/TrialBalanceProcessAll.cs | 14 + .../Model/Actions/UnlockProjectBudget.cs | 14 + .../Model/Actions/UnlockProjectCommitments.cs | 14 + .../Model/Actions/UpdateIN.cs | 14 + .../Actions/UpdateStandardCostNonStockItem.cs | 14 + .../Actions/UpdateStandardCostStockItem.cs | 14 + .../ValidateBusinessAccountAddresses.cs | 14 + .../Model/Actions/ValidateContactAddress.cs | 14 + .../Model/Actions/ValidateLeadAddress.cs | 14 + .../Model/Actions/ValidateProjectBalance.cs | 14 + .../Model/Actions/VoidPayment.cs | 14 + .../Model/Activity.cs | 48 + .../Model/ActivityDetail.cs | 69 + Acumatica.Default_18.200.001/Model/Address.cs | 33 + .../Model/Adjustment.cs | 39 + .../Model/AdjustmentDetail.cs | 51 + .../Model/AllocationRule.cs | 18 + .../Model/Approval.cs | 33 + .../Model/AttributeDefinition.cs | 39 + .../Model/AttributeDefinitionValue.cs | 24 + .../Model/AttributeDetail.cs | 24 + .../Model/AttributeValue.cs | 21 + Acumatica.Default_18.200.001/Model/Bill.cs | 81 + .../Model/BillApplicationDetail.cs | 27 + .../Model/BillDetail.cs | 78 + .../Model/BillTaxDetail.cs | 24 + .../Model/BillToSettings.cs | 27 + .../Model/BoxStockItem.cs | 33 + .../Model/BusinessAccount.cs | 120 ++ .../Model/BusinessAccountActivityDetail.cs | 72 + .../Model/BusinessAccountCaseDetail.cs | 51 + .../BusinessAccountClassAttributeDetail.cs | 30 + .../Model/BusinessAccountContact.cs | 42 + .../Model/BusinessAccountContract.cs | 33 + .../BusinessAccountDefaultLocationSetting.cs | 60 + .../Model/BusinessAccountLocation.cs | 45 + .../Model/BusinessAccountMainContact.cs | 39 + .../BusinessAccountMarketingListDetail.cs | 39 + .../Model/BusinessAccountOpportunityDetail.cs | 48 + .../Model/BusinessAccountOrder.cs | 54 + ...BusinessAccountPaymentInstructionDetail.cs | 27 + .../Model/BusinessAccountShippingContact.cs | 33 + .../Model/CampaignDetail.cs | 24 + Acumatica.Default_18.200.001/Model/Carrier.cs | 39 + .../Model/CarrierCustomerAccount.cs | 33 + .../Model/CarrierPluginParameter.cs | 21 + Acumatica.Default_18.200.001/Model/Case.cs | 120 ++ .../Model/CaseActivityDetail.cs | 84 + .../Model/CaseDetail.cs | 48 + .../Model/CaseRelatedCase.cs | 33 + .../Model/CashSale.cs | 63 + .../Model/CashSaleDetail.cs | 48 + .../Model/CategoryStockItem.cs | 15 + .../Model/ChangeOrder.cs | 90 + .../Model/ChangeOrderClass.cs | 36 + .../Model/ChangeOrderCommitment.cs | 81 + .../Model/ChangeOrderCostBudget.cs | 102 ++ .../Model/ChangeOrderRevenueBudget.cs | 75 + Acumatica.Default_18.200.001/Model/Check.cs | 57 + .../Model/CheckDetail.cs | 27 + .../Model/CheckHistoryDetail.cs | 33 + .../Model/Commissions.cs | 18 + .../Model/CommonTask.cs | 36 + .../Model/CompanyFinancialPeriod.cs | 27 + Acumatica.Default_18.200.001/Model/Contact.cs | 210 +++ .../Model/ContactDuplicateDetail.cs | 36 + .../Model/ContactNotification.cs | 42 + .../Model/ContactRoles.cs | 24 + .../Model/ContactUserInfo.cs | 30 + .../Model/ContractUsage.cs | 24 + .../Model/ContractUsageTransactionDetail.cs | 51 + .../Model/CostCode.cs | 21 + .../Model/CreditCardProcessingDetail.cs | 18 + .../Model/CreditVerificationRules.cs | 33 + .../Model/Currency.cs | 36 + .../Model/Customer.cs | 171 ++ .../Model/CustomerClass.cs | 195 +++ .../Model/CustomerContact.cs | 18 + .../Model/CustomerLocation.cs | 99 ++ .../Model/CustomerPaymentMethod.cs | 45 + .../Model/CustomerPaymentMethodDetail.cs | 18 + .../Model/CustomerPriceClass.cs | 24 + .../Model/CustomerSalesPerson.cs | 30 + .../Model/DefaultTaskForGLAccount.cs | 18 + .../Model/Discount.cs | 69 + .../Model/DiscountBreakpointDetail.cs | 66 + .../Model/DiscountCode.cs | 30 + .../Model/DiscountCustomerDetail.cs | 18 + .../DiscountCustomerPriceClassesDetail.cs | 15 + .../Model/DiscountItemDetail.cs | 18 + .../Model/DiscountItemPriceClassesDetail.cs | 15 + .../Model/DiscountWarehouseDetail.cs | 15 + .../Model/DocContact.cs | 24 + .../Model/DuplicateDetail.cs | 45 + Acumatica.Default_18.200.001/Model/Email.cs | 72 + .../Model/EmailProcessing.cs | 33 + .../Model/EmailProcessingRow.cs | 36 + .../Model/Employee.cs | 42 + .../Model/EmployeeDelegate.cs | 18 + .../Model/EmployeeFinancialSettings.cs | 51 + .../Model/EmployeeSettings.cs | 60 + .../Model/EmploymentHistoryRecord.cs | 39 + Acumatica.Default_18.200.001/Model/Event.cs | 69 + .../Model/EventAttendee.cs | 36 + .../Model/EventRelatedActivity.cs | 39 + .../Model/EventTimeActivity.cs | 24 + .../Model/ExpenseClaim.cs | 78 + .../Model/ExpenseClaimAPDocument.cs | 27 + .../Model/ExpenseClaimDetails.cs | 105 ++ .../Model/ExpenseClaimFinancialDetail.cs | 24 + .../Model/ExpenseClaimTaxDetail.cs | 45 + .../Model/ExpenseReceipt.cs | 45 + .../Model/ExpenseReceiptDetails.cs | 90 + .../Model/ExpenseReceiptTaxDetails.cs | 45 + .../Model/ExternalCommitment.cs | 75 + .../Model/FOBPoint.cs | 18 + .../Model/FinancialPeriod.cs | 33 + .../Model/FinancialPeriodDetail.cs | 51 + .../Model/FinancialSettings.cs | 54 + .../Model/FinancialYear.cs | 60 + .../Model/FinancialYearPeriodDetail.cs | 24 + .../Model/InterBranchAccountMapping.cs | 24 + ...ingTransactionInDestinationBranchDetail.cs | 33 + ...tMappingTransactionInSourceBranchDetail.cs | 33 + .../Model/InventoryAllocationInquiry.cs | 102 ++ .../Model/InventoryAllocationRow.cs | 36 + .../Model/InventoryItemCrossReference.cs | 27 + .../Model/InventoryItemUOMConversion.cs | 24 + .../Model/InventoryReceipt.cs | 48 + .../Model/InventoryReceiptDetail.cs | 60 + .../Model/InventoryReceiptDetailAllocation.cs | 36 + .../Model/InventorySummaryInquiry.cs | 30 + .../Model/InventorySummaryRow.cs | 48 + Acumatica.Default_18.200.001/Model/Invoice.cs | 90 + .../Model/InvoiceApplicationsCreditMemo.cs | 39 + .../Model/InvoiceApplicationsDefault.cs | 33 + .../Model/InvoiceDetail.cs | 63 + .../Model/InvoiceDiscountDetail.cs | 54 + .../Model/InvoiceTaxDetail.cs | 24 + .../Model/ItemClass.cs | 60 + .../Model/ItemClassAtrribute.cs | 21 + .../Model/ItemPriceClassesDetails.cs | 15 + .../Model/ItemSalesCategory.cs | 30 + .../Model/ItemSalesCategoryMember.cs | 24 + .../Model/ItemWarehouse.cs | 93 + .../Model/ItemsDetails.cs | 18 + .../Model/JournalTransaction.cs | 51 + .../Model/JournalTransactionDetail.cs | 66 + .../Model/JournalVoucher.cs | 75 + .../Model/JournalVoucherDetail.cs | 123 ++ .../JournalVoucherDetailAPDocumentToApply.cs | 27 + .../JournalVoucherDetailARDocumentToApply.cs | 30 + .../Model/JournalVoucherGLTransaction.cs | 48 + .../Model/KitAssembly.cs | 66 + .../Model/KitAssemblyAllocation.cs | 36 + .../Model/KitAssemblyNonStockComponent.cs | 33 + .../Model/KitAssemblyStockComponent.cs | 42 + .../KitAssemblyStockComponentAllocation.cs | 45 + .../Model/KitNonStockComponent.cs | 30 + .../Model/KitSpecification.cs | 33 + .../Model/KitStockComponent.cs | 33 + .../Model/LaborCostRate.cs | 60 + Acumatica.Default_18.200.001/Model/Lead.cs | 153 ++ .../Model/LotSerialClass.cs | 33 + .../Model/LotSerialClassSegment.cs | 21 + .../Model/ManageFinancialPeriods.cs | 30 + .../Model/ManageFinancialPeriodsDetail.cs | 39 + .../Model/MarkLeadAsValidated.cs | 0 .../Model/MarketingListDetail.cs | 30 + .../Model/NonStockItem.cs | 138 ++ .../Model/NonStockItemAttribute.cs | 21 + .../Model/NonStockItemSalesCategory.cs | 15 + .../Model/NonStockItemVendorDetail.cs | 18 + .../Model/Opportunity.cs | 132 ++ .../Model/OpportunityContact.cs | 60 + .../Model/OpportunityDetail.cs | 42 + .../Model/OpportunityDiscount.cs | 48 + .../Model/OpportunityProduct.cs | 66 + .../Model/OpportunityTaxDetail.cs | 42 + Acumatica.Default_18.200.001/Model/Payment.cs | 66 + .../Model/PaymentApplicationHistoryDetail.cs | 84 + .../Model/PaymentDetail.cs | 33 + .../Model/PaymentMethod.cs | 48 + .../PaymentMethodAllowedCashAccountDetail.cs | 54 + .../PaymentMethodProcessingCenterDetail.cs | 24 + .../Model/PaymentOrderDetail.cs | 21 + .../Model/Payments.cs | 51 + .../Model/PhysicalInventoryCount.cs | 30 + .../Model/PhysicalInventoryCountDetail.cs | 39 + .../Model/PhysicalInventoryReview.cs | 45 + .../Model/PhysicalInventoryReviewDetail.cs | 57 + .../Model/ProFormaFinancialDetails.cs | 36 + .../Model/ProFormaInvoice.cs | 87 + .../Model/ProFormaTaxDetail.cs | 30 + .../Model/ProgressBilling.cs | 72 + Acumatica.Default_18.200.001/Model/Project.cs | 87 + .../Model/ProjectActivity.cs | 48 + .../Model/ProjectBalance.cs | 54 + .../Model/ProjectBilling.cs | 33 + .../ProjectBillingAndAllocationSettings.cs | 51 + .../Model/ProjectBillingDetails.cs | 36 + .../Model/ProjectBillingRules.cs | 21 + .../Model/ProjectBudget.cs | 147 ++ .../Model/ProjectEmployee.cs | 21 + .../Model/ProjectEquipment.cs | 39 + .../Model/ProjectGLAccount.cs | 27 + .../Model/ProjectProFormaDetails.cs | 72 + .../Model/ProjectProperties.cs | 42 + .../Model/ProjectTask.cs | 54 + ...ProjectTaskBillingAndAllocationSettings.cs | 39 + .../Model/ProjectTaskDefaultValues.cs | 27 + .../Model/ProjectTaskProperties.cs | 33 + .../Model/ProjectTaskToCRMLink.cs | 15 + .../Model/ProjectTemplate.cs | 45 + .../Model/ProjectTemplateTask.cs | 39 + .../Model/ProjectTemplateTaskProperties.cs | 24 + .../Model/ProjectTransaction.cs | 48 + .../Model/ProjectTransactionDetail.cs | 114 ++ .../Model/ProjectUnionLocal.cs | 18 + .../Model/PurchaseOrder.cs | 84 + .../Model/PurchaseOrderDetail.cs | 114 ++ .../Model/PurchaseOrderTaxDetail.cs | 30 + .../Model/PurchaseReceipt.cs | 69 + .../Model/PurchaseReceiptDetail.cs | 96 + .../Model/PurchaseReceiptDetailAllocation.cs | 30 + .../Model/PurchaseSettings.cs | 21 + .../Model/RelationDetail.cs | 48 + .../Model/ReminderDetail.cs | 21 + .../Model/ReplenishmentParameterStockItem.cs | 60 + .../Model/ReportingGroup.cs | 21 + .../Model/ReportingSettings.cs | 18 + .../Model/SalesInvoice.cs | 93 + .../SalesInvoiceApplicationCreditMemo.cs | 45 + .../Model/SalesInvoiceApplicationInvoice.cs | 57 + .../Model/SalesInvoiceCommissions.cs | 21 + .../Model/SalesInvoiceDetail.cs | 102 ++ .../Model/SalesInvoiceDiscountDetails.cs | 57 + .../Model/SalesInvoiceFinancialDetails.cs | 21 + .../Model/SalesInvoiceFreightDetail.cs | 42 + .../Model/SalesInvoiceSalesPersonDetail.cs | 24 + .../Model/SalesInvoiceTaxDetail.cs | 21 + .../Model/SalesInvoiceTotals.cs | 30 + .../Model/SalesOrder.cs | 189 ++ .../Model/SalesOrderDetail.cs | 147 ++ .../Model/SalesOrderDetailAllocation.cs | 66 + .../Model/SalesOrderShipment.cs | 45 + .../Model/SalesOrdersDiscountDetails.cs | 51 + .../Model/SalesPersonDetail.cs | 24 + .../Model/SalesPriceDetail.cs | 57 + .../Model/SalesPriceWorksheet.cs | 42 + .../Model/SalesPricesInquiry.cs | 45 + .../Model/SalesPricesWorksheetDetail.cs | 48 + .../Model/Salesperson.cs | 33 + .../Model/ShipToSettings.cs | 27 + Acumatica.Default_18.200.001/Model/ShipVia.cs | 48 + .../Model/ShipViaFreightRate.cs | 27 + .../Model/Shipment.cs | 141 ++ .../Model/ShipmentDetail.cs | 69 + .../Model/ShipmentDetailAllocation.cs | 42 + .../Model/ShipmentOrderDetail.cs | 45 + .../Model/ShipmentPackage.cs | 45 + .../Model/ShippingBox.cs | 48 + .../Model/ShippingInstructions.cs | 39 + .../Model/ShippingSettings.cs | 63 + .../Model/ShippingTerm.cs | 21 + .../Model/ShippingTermDetail.cs | 30 + .../Model/ShippingZones.cs | 18 + .../Model/ShopForRates.cs | 21 + .../Model/StatementCycle.cs | 69 + .../Model/StockItem.cs | 240 +++ .../Model/StockItemVendorDetail.cs | 69 + .../Model/StockItemWarehouseDetail.cs | 81 + .../Model/SubItemStockItem.cs | 24 + .../Model/Subaccount.cs | 27 + Acumatica.Default_18.200.001/Model/Task.cs | 72 + .../Model/TaskRelatedActivity.cs | 69 + .../Model/TaskRelatedTask.cs | 30 + .../Model/TaskTimeActivity.cs | 33 + Acumatica.Default_18.200.001/Model/Tax.cs | 87 + .../Model/TaxCategory.cs | 33 + .../Model/TaxCategoryTaxDetail.cs | 30 + .../Model/TaxDetail.cs | 51 + .../Model/TaxScheduleDetail.cs | 36 + Acumatica.Default_18.200.001/Model/TaxZone.cs | 27 + .../Model/TaxZoneApplicableTaxDetail.cs | 15 + .../Model/TaxZoneDetail.cs | 24 + .../Model/TimeActivity.cs | 54 + .../Model/TimeAndMaterial.cs | 84 + .../Model/TimeEntry.cs | 81 + Acumatica.Default_18.200.001/Model/Totals.cs | 57 + .../Model/TransferOrder.cs | 48 + .../Model/TransferOrderDetail.cs | 48 + .../Model/TransferOrderDetailAllocation.cs | 27 + .../Model/TrialBalance.cs | 57 + .../Model/TrialBalanceDetail.cs | 48 + .../Model/TrialBalanceProcess.cs | 0 .../Model/TrialBalanceProcessAll.cs | 0 .../Model/UnionLocal.cs | 21 + .../Model/UnitsOfMeasure.cs | 30 + Acumatica.Default_18.200.001/Model/Vendor.cs | 171 ++ .../Model/VendorClass.cs | 27 + .../Model/VendorPriceDetail.cs | 54 + .../Model/VendorPriceWorksheet.cs | 45 + .../Model/VendorPriceWorksheetDetail.cs | 45 + .../Model/VendorPricesInquiry.cs | 30 + .../Model/VisibilitySettings.cs | 42 + .../Model/VoucherEntryCode.cs | 27 + .../Model/Warehouse.cs | 108 ++ .../Model/WarehouseLocation.cs | 36 + .../Model/WorkClassCompensationCode.cs | 27 + .../Properties/AssemblyInfo.cs | 72 +- .../app.config | 20 +- .../packages.config | 10 +- .../Model/Actions/UpdatePrinterList.cs | 23 +- .../Model/PrintJob.cs | 270 +-- .../Model/Printer.cs | 175 +- .../Model/Actions/UpdatePrinterList.cs | 15 +- .../Model/Actions/UpdateScannerList.cs | 15 +- .../Model/PrintJob.cs | 295 +--- .../Model/PrintJobsInquiry.cs | 27 + .../Model/Printer.cs | 194 +- .../Model/ScanJob.cs | 232 +-- .../Model/Scanner.cs | 346 +--- Acumatica.RESTClient/Model/Entity.cs | 118 +- Default.18.200.001/Model/Account.cs | 414 ----- .../Model/AccountByPeriodInquiry.cs | 206 --- .../Model/AccountByPeriodRow.cs | 318 ---- .../Model/AccountBySubaccountInquiry.cs | 206 --- .../Model/AccountBySubaccountRow.cs | 318 ---- .../Model/AccountDetailsInquiry.cs | 382 ---- Default.18.200.001/Model/AccountDetailsRow.cs | 494 ------ Default.18.200.001/Model/AccountGroup.cs | 238 --- Default.18.200.001/Model/AccountLocation.cs | 734 -------- .../Model/AccountLocationContact.cs | 286 --- .../Model/AccountSummaryInquiry.cs | 206 --- Default.18.200.001/Model/AccountSummaryRow.cs | 430 ----- .../Model/Actions/AcceptInvitationEvent.cs | 15 - .../Model/Actions/ApproveChangeOrder.cs | 15 - .../Model/Actions/ApproveExpenseClaim.cs | 15 - .../Model/Actions/ApproveExpenseReceipt.cs | 15 - .../Model/Actions/ApproveProFormaInvoice.cs | 15 - .../Model/Actions/ApproveProject.cs | 15 - .../Model/Actions/ArchiveEmail.cs | 15 - .../Model/Actions/AssignCase.cs | 15 - .../Model/Actions/AutoRecalculateDiscounts.cs | 15 - .../Model/Actions/CancelActivityEvent.cs | 15 - .../Model/Actions/CancelActivityTask.cs | 15 - .../Model/Actions/CancelPhysicalInventory.cs | 15 - .../Model/Actions/CancelSalesOrder.cs | 15 - .../Model/Actions/CancelSendingEmail.cs | 15 - .../Model/Actions/CaptureCreditCardPayment.cs | 15 - .../CheckForBusinessAccountDuplicates.cs | 15 - .../Actions/CheckForContactDuplicates.cs | 15 - .../Model/Actions/CheckLeadForDuplicates.cs | 15 - .../Model/Actions/ClaimExpenseReceipt.cs | 15 - .../Model/Actions/CloseContactAsDuplicate.cs | 15 - .../Model/Actions/CloseLeadAsDuplicate.cs | 15 - .../Model/Actions/CompleteActivity.cs | 15 - .../Model/Actions/CompleteAndFollowUpEvent.cs | 15 - .../Model/Actions/CompleteAndFollowUpTask.cs | 15 - .../Model/Actions/CompleteEvent.cs | 15 - .../Actions/CompletePhysicalInventory.cs | 15 - .../Model/Actions/CompleteTask.cs | 15 - .../Model/Actions/CompleteTimeEntry.cs | 15 - .../Model/Actions/ConfirmShipment.cs | 15 - .../ConvertBusinessAccountToCustomer.cs | 15 - .../Actions/ConvertBusinessAccountToVendor.cs | 15 - .../Model/Actions/ConvertLeadToContact.cs | 15 - .../Model/Actions/ConvertLeadToOpportunity.cs | 15 - .../Model/Actions/CopyFromCompany.cs | 15 - .../Model/Actions/CorrectShipment.cs | 15 - .../Model/Actions/CreateAPBill.cs | 15 - .../Model/Actions/CreateCaseFromEmail.cs | 15 - .../Model/Actions/CreateContactFromEmail.cs | 15 - .../Actions/CreateContactFromOpportunity.cs | 15 - .../Model/Actions/CreateEventFromEmail.cs | 15 - .../Actions/CreateExpenseReceiptFromEmail.cs | 15 - .../Model/Actions/CreateLeadFromEmail.cs | 15 - .../Actions/CreateOpportunityFromEmail.cs | 15 - .../Model/Actions/CreateOpportunityInvoice.cs | 15 - .../Model/Actions/CreateTaskFromEmail.cs | 15 - .../Model/Actions/DownloadEmlFileEmail.cs | 15 - .../Model/Actions/EmailChangeOrder.cs | 15 - .../Model/Actions/EmailProFormaInvoice.cs | 15 - .../Model/Actions/EnterAPBill.cs | 15 - .../Model/Actions/EnterPOReceipt.cs | 15 - .../Model/Actions/ExportCardEvent.cs | 15 - .../FinishCountingPhysicalInventory.cs | 15 - .../Model/Actions/GeneratePeriods.cs | 15 - .../Model/Actions/InviteAllEvent.cs | 15 - .../Model/Actions/InviteEvent.cs | 15 - .../Model/Actions/LockProjectBudget.cs | 15 - .../Model/Actions/LockProjectCommitments.cs | 15 - .../Actions/MarkBusinessAccountAsValidated.cs | 15 - .../Model/Actions/MarkContactAsValidated.cs | 15 - .../Model/Actions/OpenSalesOrder.cs | 15 - .../Model/Actions/OpenTimeEntry.cs | 15 - .../Model/Actions/PrepareInvoice.cs | 15 - .../Model/Actions/PrepareSalesInvoice.cs | 15 - .../Actions/ProcessAllEmailProcessing.cs | 15 - .../ProcessAllManageFinancialPeriods.cs | 15 - .../Model/Actions/ProcessEmail.cs | 15 - .../Model/Actions/ProcessEmailProcessing.cs | 15 - .../Actions/ProcessManageFinancialPeriods.cs | 15 - .../Model/Actions/ProjectBillingProcess.cs | 15 - .../Model/Actions/ProjectBillingProcessAll.cs | 15 - .../Model/Actions/PutOnHoldExpenseClaim.cs | 15 - .../Model/Actions/PutOnHoldExpenseReceipt.cs | 15 - .../Model/Actions/RejectChangeOrder.cs | 15 - .../Model/Actions/RejectExpenseClaim.cs | 15 - .../Model/Actions/RejectExpenseReceipt.cs | 15 - .../Model/Actions/RejectInvitationEvent.cs | 15 - .../Model/Actions/RejectProFormaInvoice.cs | 15 - .../Model/Actions/RejectProject.cs | 15 - .../Model/Actions/ReleaseAdjustment.cs | 15 - .../Model/Actions/ReleaseBill.cs | 15 - .../Model/Actions/ReleaseCase.cs | 15 - .../Model/Actions/ReleaseCashSale.cs | 15 - .../Model/Actions/ReleaseChangeOrder.cs | 15 - .../Model/Actions/ReleaseCheck.cs | 15 - .../Model/Actions/ReleaseExpenseClaim.cs | 15 - .../ReleaseFromCreditHoldSalesOrder.cs | 15 - .../Model/Actions/ReleaseInventoryReceipt.cs | 15 - .../Model/Actions/ReleaseInvoice.cs | 15 - .../Actions/ReleaseJournalTransaction.cs | 15 - .../Model/Actions/ReleaseJournalVoucher.cs | 15 - .../Model/Actions/ReleaseKitAssembly.cs | 15 - .../Model/Actions/ReleasePayment.cs | 15 - .../Model/Actions/ReleaseProFormaInvoice.cs | 15 - .../Model/Actions/ReleasePurchaseReceipt.cs | 15 - .../Model/Actions/ReleaseSalesInvoice.cs | 15 - .../Actions/ReleaseSalesPriceWorksheet.cs | 15 - .../Model/Actions/ReleaseTransactions.cs | 15 - .../Model/Actions/ReleaseTransferOrder.cs | 15 - .../Model/Actions/ReleaseTrialBalance.cs | 15 - .../Actions/ReleaseVendorPriceWorksheet.cs | 15 - .../Model/Actions/ReopenSalesOrder.cs | 15 - .../Model/Actions/RestoreArchivedEmail.cs | 15 - .../Model/Actions/RestoreDeletedEmail.cs | 15 - .../Model/Actions/ReverseBill.cs | 15 - .../Model/Actions/ReverseChangeOrder.cs | 15 - .../Model/Actions/ReverseInvoice.cs | 15 - .../Model/Actions/RunProjectAllocation.cs | 15 - .../Model/Actions/RunProjectBilling.cs | 15 - .../Model/Actions/SalesInvoiceAddOrder.cs | 15 - .../Model/Actions/SalesInvoiceAutoApply.cs | 15 - .../Actions/SalesOrderCreatePurchaseOrder.cs | 15 - Default.18.200.001/Model/Actions/SendEmail.cs | 15 - .../Model/Actions/SubmitExpenseClaim.cs | 15 - .../Model/Actions/SubmitExpenseReceipt.cs | 15 - Default.18.200.001/Model/Actions/TakeCase.cs | 15 - .../Model/Actions/UnlockProjectBudget.cs | 15 - .../Model/Actions/UnlockProjectCommitments.cs | 15 - Default.18.200.001/Model/Actions/UpdateIN.cs | 15 - .../Actions/UpdateStandardCostNonStockItem.cs | 15 - .../Actions/UpdateStandardCostStockItem.cs | 15 - .../ValidateBusinessAccountAddresses.cs | 15 - .../Model/Actions/ValidateContactAddress.cs | 15 - .../Model/Actions/ValidateLeadAddress.cs | 15 - .../Model/Actions/ValidateProjectBalance.cs | 15 - .../Model/Actions/VoidPayment.cs | 15 - Default.18.200.001/Model/Activity.cs | 302 ---- Default.18.200.001/Model/ActivityDetail.cs | 414 ----- Default.18.200.001/Model/Address.cs | 222 --- Default.18.200.001/Model/Adjustment.cs | 254 --- Default.18.200.001/Model/AdjustmentDetail.cs | 318 ---- Default.18.200.001/Model/AllocationRule.cs | 142 -- Default.18.200.001/Model/Approval.cs | 222 --- .../Model/AttributeDefinition.cs | 254 --- .../Model/AttributeDefinitionValue.cs | 174 -- Default.18.200.001/Model/AttributeDetail.cs | 174 -- Default.18.200.001/Model/AttributeValue.cs | 158 -- Default.18.200.001/Model/Bill.cs | 478 ----- .../Model/BillApplicationDetail.cs | 190 -- Default.18.200.001/Model/BillDetail.cs | 462 ----- Default.18.200.001/Model/BillTaxDetail.cs | 174 -- Default.18.200.001/Model/BillToSettings.cs | 190 -- Default.18.200.001/Model/BoxStockItem.cs | 222 --- Default.18.200.001/Model/BusinessAccount.cs | 686 -------- .../Model/BusinessAccountActivityDetail.cs | 430 ----- .../Model/BusinessAccountCaseDetail.cs | 318 ---- .../BusinessAccountClassAttributeDetail.cs | 206 --- .../Model/BusinessAccountContact.cs | 270 --- .../Model/BusinessAccountContract.cs | 222 --- .../BusinessAccountDefaultLocationSetting.cs | 366 ---- .../Model/BusinessAccountLocation.cs | 286 --- .../Model/BusinessAccountMainContact.cs | 254 --- .../BusinessAccountMarketingListDetail.cs | 254 --- .../Model/BusinessAccountOpportunityDetail.cs | 302 ---- .../Model/BusinessAccountOrder.cs | 334 ---- ...BusinessAccountPaymentInstructionDetail.cs | 190 -- .../Model/BusinessAccountShippingContact.cs | 222 --- Default.18.200.001/Model/CampaignDetail.cs | 174 -- Default.18.200.001/Model/Carrier.cs | 254 --- .../Model/CarrierCustomerAccount.cs | 222 --- .../Model/CarrierPluginParameter.cs | 158 -- Default.18.200.001/Model/Case.cs | 686 -------- .../Model/CaseActivityDetail.cs | 494 ------ Default.18.200.001/Model/CaseDetail.cs | 302 ---- Default.18.200.001/Model/CaseRelatedCase.cs | 222 --- Default.18.200.001/Model/CashSale.cs | 382 ---- Default.18.200.001/Model/CashSaleDetail.cs | 302 ---- Default.18.200.001/Model/CategoryStockItem.cs | 126 -- Default.18.200.001/Model/ChangeOrder.cs | 526 ------ Default.18.200.001/Model/ChangeOrderClass.cs | 238 --- .../Model/ChangeOrderCommitment.cs | 478 ----- .../Model/ChangeOrderCostBudget.cs | 590 ------- .../Model/ChangeOrderRevenueBudget.cs | 446 ----- Default.18.200.001/Model/Check.cs | 350 ---- Default.18.200.001/Model/CheckDetail.cs | 190 -- .../Model/CheckHistoryDetail.cs | 222 --- Default.18.200.001/Model/Commissions.cs | 142 -- Default.18.200.001/Model/CommonTask.cs | 238 --- .../Model/CompanyFinancialPeriod.cs | 190 -- Default.18.200.001/Model/Contact.cs | 1166 ------------ .../Model/ContactDuplicateDetail.cs | 238 --- .../Model/ContactNotification.cs | 270 --- Default.18.200.001/Model/ContactRoles.cs | 174 -- Default.18.200.001/Model/ContactUserInfo.cs | 206 --- Default.18.200.001/Model/ContractUsage.cs | 174 -- .../Model/ContractUsageTransactionDetail.cs | 318 ---- Default.18.200.001/Model/CostCode.cs | 158 -- .../Model/CreditCardProcessingDetail.cs | 142 -- .../Model/CreditVerificationRules.cs | 222 --- Default.18.200.001/Model/Currency.cs | 238 --- Default.18.200.001/Model/Customer.cs | 958 ---------- Default.18.200.001/Model/CustomerClass.cs | 1086 ------------ Default.18.200.001/Model/CustomerContact.cs | 142 -- Default.18.200.001/Model/CustomerLocation.cs | 574 ------ .../Model/CustomerPaymentMethod.cs | 286 --- .../Model/CustomerPaymentMethodDetail.cs | 142 -- .../Model/CustomerPriceClass.cs | 174 -- .../Model/CustomerSalesPerson.cs | 206 --- .../Model/DefaultTaskForGLAccount.cs | 142 -- Default.18.200.001/Model/Discount.cs | 414 ----- .../Model/DiscountBreakpointDetail.cs | 398 ----- Default.18.200.001/Model/DiscountCode.cs | 206 --- .../Model/DiscountCustomerDetail.cs | 142 -- .../DiscountCustomerPriceClassesDetail.cs | 126 -- .../Model/DiscountItemDetail.cs | 142 -- .../Model/DiscountItemPriceClassesDetail.cs | 126 -- .../Model/DiscountWarehouseDetail.cs | 126 -- Default.18.200.001/Model/DocContact.cs | 174 -- Default.18.200.001/Model/DuplicateDetail.cs | 286 --- Default.18.200.001/Model/Email.cs | 430 ----- Default.18.200.001/Model/EmailProcessing.cs | 222 --- .../Model/EmailProcessingRow.cs | 238 --- Default.18.200.001/Model/Employee.cs | 270 --- Default.18.200.001/Model/EmployeeDelegate.cs | 142 -- .../Model/EmployeeFinancialSettings.cs | 318 ---- Default.18.200.001/Model/EmployeeSettings.cs | 366 ---- .../Model/EmploymentHistoryRecord.cs | 254 --- Default.18.200.001/Model/Event.cs | 414 ----- Default.18.200.001/Model/EventAttendee.cs | 238 --- .../Model/EventRelatedActivity.cs | 254 --- Default.18.200.001/Model/EventTimeActivity.cs | 174 -- Default.18.200.001/Model/ExpenseClaim.cs | 462 ----- .../Model/ExpenseClaimAPDocument.cs | 190 -- .../Model/ExpenseClaimDetails.cs | 606 ------- .../Model/ExpenseClaimFinancialDetail.cs | 174 -- .../Model/ExpenseClaimTaxDetail.cs | 286 --- Default.18.200.001/Model/ExpenseReceipt.cs | 286 --- .../Model/ExpenseReceiptDetails.cs | 526 ------ .../Model/ExpenseReceiptTaxDetails.cs | 286 --- .../Model/ExternalCommitment.cs | 446 ----- Default.18.200.001/Model/FOBPoint.cs | 142 -- Default.18.200.001/Model/FinancialPeriod.cs | 222 --- .../Model/FinancialPeriodDetail.cs | 318 ---- Default.18.200.001/Model/FinancialSettings.cs | 334 ---- Default.18.200.001/Model/FinancialYear.cs | 366 ---- .../Model/FinancialYearPeriodDetail.cs | 174 -- .../Model/InterBranchAccountMapping.cs | 174 -- ...ingTransactionInDestinationBranchDetail.cs | 222 --- ...tMappingTransactionInSourceBranchDetail.cs | 222 --- .../Model/InventoryAllocationInquiry.cs | 590 ------- .../Model/InventoryAllocationRow.cs | 238 --- .../Model/InventoryItemCrossReference.cs | 190 -- .../Model/InventoryItemUOMConversion.cs | 174 -- Default.18.200.001/Model/InventoryReceipt.cs | 302 ---- .../Model/InventoryReceiptDetail.cs | 366 ---- .../Model/InventoryReceiptDetailAllocation.cs | 238 --- .../Model/InventorySummaryInquiry.cs | 206 --- .../Model/InventorySummaryRow.cs | 302 ---- Default.18.200.001/Model/Invoice.cs | 526 ------ .../Model/InvoiceApplicationsCreditMemo.cs | 254 --- .../Model/InvoiceApplicationsDefault.cs | 222 --- Default.18.200.001/Model/InvoiceDetail.cs | 382 ---- .../Model/InvoiceDiscountDetail.cs | 334 ---- Default.18.200.001/Model/InvoiceTaxDetail.cs | 174 -- Default.18.200.001/Model/ItemClass.cs | 366 ---- .../Model/ItemClassAtrribute.cs | 158 -- .../Model/ItemPriceClassesDetails.cs | 126 -- Default.18.200.001/Model/ItemSalesCategory.cs | 206 --- .../Model/ItemSalesCategoryMember.cs | 174 -- Default.18.200.001/Model/ItemWarehouse.cs | 542 ------ Default.18.200.001/Model/ItemsDetails.cs | 142 -- .../Model/JournalTransaction.cs | 318 ---- .../Model/JournalTransactionDetail.cs | 398 ----- Default.18.200.001/Model/JournalVoucher.cs | 446 ----- .../Model/JournalVoucherDetail.cs | 702 -------- .../JournalVoucherDetailAPDocumentToApply.cs | 190 -- .../JournalVoucherDetailARDocumentToApply.cs | 206 --- .../Model/JournalVoucherGLTransaction.cs | 302 ---- Default.18.200.001/Model/KitAssembly.cs | 398 ----- .../Model/KitAssemblyAllocation.cs | 238 --- .../Model/KitAssemblyNonStockComponent.cs | 222 --- .../Model/KitAssemblyStockComponent.cs | 270 --- .../KitAssemblyStockComponentAllocation.cs | 286 --- .../Model/KitNonStockComponent.cs | 206 --- Default.18.200.001/Model/KitSpecification.cs | 222 --- Default.18.200.001/Model/KitStockComponent.cs | 222 --- Default.18.200.001/Model/LaborCostRate.cs | 366 ---- Default.18.200.001/Model/Lead.cs | 862 --------- Default.18.200.001/Model/LotSerialClass.cs | 222 --- .../Model/LotSerialClassSegment.cs | 158 -- .../Model/ManageFinancialPeriods.cs | 206 --- .../Model/ManageFinancialPeriodsDetail.cs | 254 --- .../Model/MarketingListDetail.cs | 206 --- Default.18.200.001/Model/NonStockItem.cs | 782 --------- .../Model/NonStockItemAttribute.cs | 158 -- .../Model/NonStockItemSalesCategory.cs | 126 -- .../Model/NonStockItemVendorDetail.cs | 142 -- Default.18.200.001/Model/Opportunity.cs | 750 -------- .../Model/OpportunityContact.cs | 366 ---- Default.18.200.001/Model/OpportunityDetail.cs | 270 --- .../Model/OpportunityDiscount.cs | 302 ---- .../Model/OpportunityProduct.cs | 398 ----- .../Model/OpportunityTaxDetail.cs | 270 --- Default.18.200.001/Model/Payment.cs | 398 ----- .../Model/PaymentApplicationHistoryDetail.cs | 494 ------ Default.18.200.001/Model/PaymentDetail.cs | 222 --- Default.18.200.001/Model/PaymentMethod.cs | 302 ---- .../PaymentMethodAllowedCashAccountDetail.cs | 334 ---- .../PaymentMethodProcessingCenterDetail.cs | 174 -- .../Model/PaymentOrderDetail.cs | 158 -- Default.18.200.001/Model/Payments.cs | 318 ---- .../Model/PhysicalInventoryCount.cs | 206 --- .../Model/PhysicalInventoryCountDetail.cs | 254 --- .../Model/PhysicalInventoryReview.cs | 286 --- .../Model/PhysicalInventoryReviewDetail.cs | 350 ---- .../Model/ProFormaFinancialDetails.cs | 238 --- Default.18.200.001/Model/ProFormaInvoice.cs | 510 ------ Default.18.200.001/Model/ProFormaTaxDetail.cs | 206 --- Default.18.200.001/Model/ProgressBilling.cs | 430 ----- Default.18.200.001/Model/Project.cs | 510 ------ Default.18.200.001/Model/ProjectActivity.cs | 302 ---- Default.18.200.001/Model/ProjectBalance.cs | 334 ---- Default.18.200.001/Model/ProjectBilling.cs | 222 --- .../ProjectBillingAndAllocationSettings.cs | 318 ---- .../Model/ProjectBillingDetails.cs | 238 --- .../Model/ProjectBillingRules.cs | 158 -- Default.18.200.001/Model/ProjectBudget.cs | 830 --------- Default.18.200.001/Model/ProjectEmployee.cs | 158 -- Default.18.200.001/Model/ProjectEquipment.cs | 254 --- Default.18.200.001/Model/ProjectGLAccount.cs | 190 -- .../Model/ProjectProFormaDetails.cs | 430 ----- Default.18.200.001/Model/ProjectProperties.cs | 270 --- Default.18.200.001/Model/ProjectTask.cs | 334 ---- ...ProjectTaskBillingAndAllocationSettings.cs | 254 --- .../Model/ProjectTaskDefaultValues.cs | 190 -- .../Model/ProjectTaskProperties.cs | 222 --- .../Model/ProjectTaskToCRMLink.cs | 126 -- Default.18.200.001/Model/ProjectTemplate.cs | 286 --- .../Model/ProjectTemplateTask.cs | 254 --- .../Model/ProjectTemplateTaskProperties.cs | 174 -- .../Model/ProjectTransaction.cs | 302 ---- .../Model/ProjectTransactionDetail.cs | 654 ------- Default.18.200.001/Model/ProjectUnionLocal.cs | 142 -- Default.18.200.001/Model/PurchaseOrder.cs | 494 ------ .../Model/PurchaseOrderDetail.cs | 654 ------- .../Model/PurchaseOrderTaxDetail.cs | 206 --- Default.18.200.001/Model/PurchaseReceipt.cs | 414 ----- .../Model/PurchaseReceiptDetail.cs | 558 ------ .../Model/PurchaseReceiptDetailAllocation.cs | 206 --- Default.18.200.001/Model/PurchaseSettings.cs | 158 -- Default.18.200.001/Model/RelationDetail.cs | 302 ---- Default.18.200.001/Model/ReminderDetail.cs | 158 -- .../Model/ReplenishmentParameterStockItem.cs | 366 ---- Default.18.200.001/Model/ReportingGroup.cs | 158 -- Default.18.200.001/Model/ReportingSettings.cs | 142 -- Default.18.200.001/Model/SalesInvoice.cs | 542 ------ .../SalesInvoiceApplicationCreditMemo.cs | 286 --- .../Model/SalesInvoiceApplicationInvoice.cs | 350 ---- .../Model/SalesInvoiceCommissions.cs | 158 -- .../Model/SalesInvoiceDetail.cs | 590 ------- .../Model/SalesInvoiceDiscountDetails.cs | 350 ---- .../Model/SalesInvoiceFinancialDetails.cs | 158 -- .../Model/SalesInvoiceFreightDetail.cs | 270 --- .../Model/SalesInvoiceSalesPersonDetail.cs | 174 -- .../Model/SalesInvoiceTaxDetail.cs | 158 -- .../Model/SalesInvoiceTotals.cs | 206 --- Default.18.200.001/Model/SalesOrder.cs | 1054 ----------- Default.18.200.001/Model/SalesOrderDetail.cs | 830 --------- .../Model/SalesOrderDetailAllocation.cs | 398 ----- .../Model/SalesOrderShipment.cs | 286 --- .../Model/SalesOrdersDiscountDetails.cs | 318 ---- Default.18.200.001/Model/SalesPersonDetail.cs | 174 -- Default.18.200.001/Model/SalesPriceDetail.cs | 350 ---- .../Model/SalesPriceWorksheet.cs | 270 --- .../Model/SalesPricesInquiry.cs | 286 --- .../Model/SalesPricesWorksheetDetail.cs | 302 ---- Default.18.200.001/Model/Salesperson.cs | 222 --- Default.18.200.001/Model/ShipToSettings.cs | 190 -- Default.18.200.001/Model/ShipVia.cs | 302 ---- .../Model/ShipViaFreightRate.cs | 190 -- Default.18.200.001/Model/Shipment.cs | 798 --------- Default.18.200.001/Model/ShipmentDetail.cs | 414 ----- .../Model/ShipmentDetailAllocation.cs | 270 --- .../Model/ShipmentOrderDetail.cs | 286 --- Default.18.200.001/Model/ShipmentPackage.cs | 286 --- Default.18.200.001/Model/ShippingBox.cs | 302 ---- .../Model/ShippingInstructions.cs | 254 --- Default.18.200.001/Model/ShippingSettings.cs | 382 ---- Default.18.200.001/Model/ShippingTerm.cs | 158 -- .../Model/ShippingTermDetail.cs | 206 --- Default.18.200.001/Model/ShippingZones.cs | 142 -- Default.18.200.001/Model/ShopForRates.cs | 158 -- Default.18.200.001/Model/StatementCycle.cs | 414 ----- Default.18.200.001/Model/StockItem.cs | 1326 -------------- .../Model/StockItemVendorDetail.cs | 414 ----- .../Model/StockItemWarehouseDetail.cs | 478 ----- Default.18.200.001/Model/SubItemStockItem.cs | 174 -- Default.18.200.001/Model/Subaccount.cs | 190 -- Default.18.200.001/Model/Task.cs | 430 ----- .../Model/TaskRelatedActivity.cs | 414 ----- Default.18.200.001/Model/TaskRelatedTask.cs | 206 --- Default.18.200.001/Model/TaskTimeActivity.cs | 222 --- Default.18.200.001/Model/Tax.cs | 510 ------ Default.18.200.001/Model/TaxCategory.cs | 222 --- .../Model/TaxCategoryTaxDetail.cs | 206 --- Default.18.200.001/Model/TaxDetail.cs | 318 ---- Default.18.200.001/Model/TaxScheduleDetail.cs | 238 --- Default.18.200.001/Model/TaxZone.cs | 190 -- .../Model/TaxZoneApplicableTaxDetail.cs | 126 -- Default.18.200.001/Model/TaxZoneDetail.cs | 174 -- Default.18.200.001/Model/TimeActivity.cs | 334 ---- Default.18.200.001/Model/TimeAndMaterial.cs | 494 ------ Default.18.200.001/Model/TimeEntry.cs | 478 ----- Default.18.200.001/Model/Totals.cs | 350 ---- Default.18.200.001/Model/TransferOrder.cs | 302 ---- .../Model/TransferOrderDetail.cs | 302 ---- .../Model/TransferOrderDetailAllocation.cs | 190 -- Default.18.200.001/Model/TrialBalance.cs | 350 ---- .../Model/TrialBalanceDetail.cs | 302 ---- Default.18.200.001/Model/UnionLocal.cs | 158 -- Default.18.200.001/Model/UnitsOfMeasure.cs | 206 --- Default.18.200.001/Model/Vendor.cs | 958 ---------- Default.18.200.001/Model/VendorClass.cs | 190 -- Default.18.200.001/Model/VendorPriceDetail.cs | 334 ---- .../Model/VendorPriceWorksheet.cs | 286 --- .../Model/VendorPriceWorksheetDetail.cs | 286 --- .../Model/VendorPricesInquiry.cs | 206 --- .../Model/VisibilitySettings.cs | 270 --- Default.18.200.001/Model/VoucherEntryCode.cs | 190 -- Default.18.200.001/Model/Warehouse.cs | 622 ------- Default.18.200.001/Model/WarehouseLocation.cs | 238 --- .../Model/WorkClassCompensationCode.cs | 190 -- .../SOAPLikeWrapperForREST.csproj | 8 +- 1351 files changed, 27507 insertions(+), 171724 deletions(-) create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ArchiveEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CheckForContactDuplicates.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CheckLeadForDuplicates.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CloseContactAsDuplicate.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CloseLeadAsDuplicate.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CompleteAndFollowUpEvent.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CompleteAndFollowUpTask.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CompleteEvent.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CompletePhysicalInventory.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CompleteTask.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ConfirmShipment.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ConvertLeadToContact.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ConvertLeadToOpportunity.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CopyFromCompany.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CorrectShipment.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CreateCaseEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CreateContactEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CreateContactFromOpportunity.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CreateEventEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CreateExpenseReceiptEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CreateLeadEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CreateOpportunityEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CreateOpportunityInvoice.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/CreateTaskEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/DownloadEmlFileEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ExportCardEvent.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/FinishCountingPhysicalInventory.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/GeneratePeriods.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/InviteAllEvent.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/InviteEvent.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/MarkContactAsValidated.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/MarkLeadAsValidated.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/PrepareSalesInvoice.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ProcessAllEmailProcessing.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ProcessEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ProcessEmailProcessing.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/RejectInvitationEvent.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseAdjustment.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseBill.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseCase.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseCashSale.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseCheck.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseInventoryReceipt.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseInvoice.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseJournalTransaction.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseJournalVoucher.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseKitAssembly.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleasePayment.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleasePurchaseReceipt.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseSalesInvoice.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseTransferOrder.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseTrialBalance.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReopenSalesOrder.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/RestoreArchivedEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/RestoreDeletedEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReverseBill.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ReverseInvoice.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/SelectSourceEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/SendEmail.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/TakeCase.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/TrialBalanceProcess.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/TrialBalanceProcessAll.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/UpdateIN.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/UpdateStandardCostStockItem.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ValidateContactAddress.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/ValidateLeadAddress.cs create mode 100644 Acumatica.Default_17.200.001/Model/Actions/VoidPayment.cs rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Acumatica.Default_18.200.001.csproj (98%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/AccountApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/AccountByPeriodInquiryApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/AccountBySubaccountInquiryApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/AccountDetailsInquiryApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/AccountGroupApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/AccountLocationApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/AccountSummaryInquiryApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ActivityApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/AdjustmentApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/AllocationRuleApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/AttributeDefinitionApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/BillApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/BusinessAccountApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CarrierApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CaseApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CashSaleApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ChangeOrderApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ChangeOrderClassApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CheckApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CommonTaskApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CompanyFinancialPeriodApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ContactApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ContractUsageApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CostCodeApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CurrencyApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CustomerApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CustomerClassApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CustomerLocationApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CustomerPaymentMethodApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/CustomerPriceClassApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/DiscountApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/DiscountCodeApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/EmailApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/EmailProcessingApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/EmployeeApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/EventApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ExpenseClaimApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ExpenseReceiptApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ExternalCommitmentApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/FOBPointApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/FinancialPeriodApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/FinancialYearApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/InterBranchAccountMappingApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/InventoryAllocationInquiryApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/InventoryReceiptApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/InventorySummaryInquiryApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/InvoiceApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ItemClassApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ItemSalesCategoryApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ItemWarehouseApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/JournalTransactionApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/JournalVoucherApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/KitAssemblyApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/KitSpecificationApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/LaborCostRateApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/LeadApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/LotSerialClassApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ManageFinancialPeriodsApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/NonStockItemApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/OpportunityApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/PaymentApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/PaymentMethodApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/PhysicalInventoryCountApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/PhysicalInventoryReviewApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ProFormaInvoiceApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ProjectApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ProjectBillingApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ProjectBillingRulesApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ProjectBudgetApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ProjectTaskApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ProjectTemplateApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ProjectTemplateTaskApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ProjectTransactionApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/PurchaseOrderApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/PurchaseReceiptApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ReportingSettingsApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/SalesInvoiceApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/SalesOrderApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/SalesPriceWorksheetApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/SalesPricesInquiryApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/SalespersonApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ShipViaApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ShipmentApi.cs (96%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ShippingBoxApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ShippingTermApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/ShippingZonesApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/StatementCycleApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/StockItemApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/SubaccountApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/TaskApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/TaxApi.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/TaxCategoryApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/TaxZoneApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/TimeEntryApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/TransferOrderApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/TrialBalanceApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/UnionLocalApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/UnitsOfMeasureApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/VendorApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/VendorClassApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/VendorPriceWorksheetApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/VendorPricesInquiryApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/VoucherEntryCodeApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/WarehouseApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Api/WorkClassCompensationCodeApi.cs (99%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/EndpointHelper.cs (96%) create mode 100644 Acumatica.Default_18.200.001/Model/Account.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountByPeriodInquiry.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountByPeriodRow.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountBySubaccountInquiry.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountBySubaccountRow.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountDetailsInquiry.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountDetailsRow.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountGroup.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountLocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountLocationContact.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountSummaryInquiry.cs create mode 100644 Acumatica.Default_18.200.001/Model/AccountSummaryRow.cs rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/ChangeBusinessAccountIDParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/ChangeCostCodeIDParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/ChangeEmployeeIDParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/ChangeProjectIDParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/ConvertContactToBusinessAccountParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/CreateOpportunitySalesOrderParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/LinkEntityToEmailParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/PaymentLoadDocumentsParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/PaymentLoadOrdersParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/SalesOrderAddInvoiceParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/SalesOrderAddStockItemParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/SalesOrderCreateShipmentParameters.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/ActionParameters/UpdateDiscountsParameters.cs (100%) create mode 100644 Acumatica.Default_18.200.001/Model/Actions/AcceptInvitationEvent.cs rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/ChangeBusinessAccountID.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/ChangeCostCodeID.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/ChangeEmployeeID.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/ChangeProjectID.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/ConvertContactToBusinessAccount.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/ConvertLeadToBAccount.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/CreateAccountFromOpportunity.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/CreateOpportunitySalesOrder.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/LinkEntityToActivity.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/LinkEntityToEmail.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/LinkEntityToEvent.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/LinkEntityToTask.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/PaymentLoadDocuments.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/PaymentLoadOrders.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/SalesOrderAddInvoice.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/SalesOrderAddStockItem.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/SalesOrderCreateReceipt.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/SalesOrderCreateShipment.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/Actions/ActionsWithParameters/UpdateDiscounts.cs (100%) create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ApproveChangeOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ApproveExpenseClaim.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ApproveExpenseReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ApproveProFormaInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ApproveProject.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ArchiveEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/AssignCase.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/AutoRecalculateDiscounts.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CancelActivityEvent.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CancelActivityTask.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CancelPhysicalInventory.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CancelSalesOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CancelSendingEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CaptureCreditCardPayment.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CheckForContactDuplicates.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CheckLeadForDuplicates.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ClaimExpenseReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CloseContactAsDuplicate.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CloseLeadAsDuplicate.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CompleteActivity.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CompleteAndFollowUpEvent.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CompleteAndFollowUpTask.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CompleteEvent.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CompletePhysicalInventory.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CompleteTask.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CompleteTimeEntry.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ConfirmShipment.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ConvertLeadToContact.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ConvertLeadToOpportunity.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CopyFromCompany.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CorrectShipment.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CreateAPBill.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CreateCaseFromEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CreateContactFromEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CreateContactFromOpportunity.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CreateEventFromEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CreateExpenseReceiptFromEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CreateLeadFromEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CreateOpportunityFromEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CreateOpportunityInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/CreateTaskFromEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/DownloadEmlFileEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/EmailChangeOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/EmailProFormaInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/EnterAPBill.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/EnterPOReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ExportCardEvent.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/FinishCountingPhysicalInventory.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/GeneratePeriods.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/InviteAllEvent.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/InviteEvent.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/LockProjectBudget.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/LockProjectCommitments.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/MarkContactAsValidated.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/MarkLeadAsValidated.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/OpenSalesOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/OpenTimeEntry.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/PrepareInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/PrepareSalesInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ProcessAllEmailProcessing.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ProcessAllManageFinancialPeriods.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ProcessEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ProcessEmailProcessing.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ProcessManageFinancialPeriods.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ProjectBillingProcess.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ProjectBillingProcessAll.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/PutOnHoldExpenseClaim.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/PutOnHoldExpenseReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/RejectChangeOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/RejectExpenseClaim.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/RejectExpenseReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/RejectInvitationEvent.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/RejectProFormaInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/RejectProject.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseAdjustment.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseBill.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseCase.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseCashSale.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseChangeOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseCheck.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseExpenseClaim.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseFromCreditHoldSalesOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseInventoryReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseJournalTransaction.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseJournalVoucher.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseKitAssembly.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleasePayment.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseProFormaInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleasePurchaseReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseSalesInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseTransactions.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseTransferOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseTrialBalance.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReopenSalesOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/RestoreArchivedEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/RestoreDeletedEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReverseBill.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReverseChangeOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ReverseInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/RunProjectAllocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/RunProjectBilling.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/SalesInvoiceAddOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/SalesInvoiceAutoApply.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/SalesOrderCreatePurchaseOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/SendEmail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/SubmitExpenseClaim.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/SubmitExpenseReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/TakeCase.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/TrialBalanceProcess.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/TrialBalanceProcessAll.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/UnlockProjectBudget.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/UnlockProjectCommitments.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/UpdateIN.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/UpdateStandardCostStockItem.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ValidateContactAddress.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ValidateLeadAddress.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/ValidateProjectBalance.cs create mode 100644 Acumatica.Default_18.200.001/Model/Actions/VoidPayment.cs create mode 100644 Acumatica.Default_18.200.001/Model/Activity.cs create mode 100644 Acumatica.Default_18.200.001/Model/ActivityDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Address.cs create mode 100644 Acumatica.Default_18.200.001/Model/Adjustment.cs create mode 100644 Acumatica.Default_18.200.001/Model/AdjustmentDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/AllocationRule.cs create mode 100644 Acumatica.Default_18.200.001/Model/Approval.cs create mode 100644 Acumatica.Default_18.200.001/Model/AttributeDefinition.cs create mode 100644 Acumatica.Default_18.200.001/Model/AttributeDefinitionValue.cs create mode 100644 Acumatica.Default_18.200.001/Model/AttributeDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/AttributeValue.cs create mode 100644 Acumatica.Default_18.200.001/Model/Bill.cs create mode 100644 Acumatica.Default_18.200.001/Model/BillApplicationDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/BillDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/BillTaxDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/BillToSettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/BoxStockItem.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccount.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountActivityDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountCaseDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountClassAttributeDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountContact.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountContract.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountDefaultLocationSetting.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountLocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountMainContact.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountMarketingListDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountOpportunityDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountPaymentInstructionDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/BusinessAccountShippingContact.cs create mode 100644 Acumatica.Default_18.200.001/Model/CampaignDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Carrier.cs create mode 100644 Acumatica.Default_18.200.001/Model/CarrierCustomerAccount.cs create mode 100644 Acumatica.Default_18.200.001/Model/CarrierPluginParameter.cs create mode 100644 Acumatica.Default_18.200.001/Model/Case.cs create mode 100644 Acumatica.Default_18.200.001/Model/CaseActivityDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/CaseDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/CaseRelatedCase.cs create mode 100644 Acumatica.Default_18.200.001/Model/CashSale.cs create mode 100644 Acumatica.Default_18.200.001/Model/CashSaleDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/CategoryStockItem.cs create mode 100644 Acumatica.Default_18.200.001/Model/ChangeOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/ChangeOrderClass.cs create mode 100644 Acumatica.Default_18.200.001/Model/ChangeOrderCommitment.cs create mode 100644 Acumatica.Default_18.200.001/Model/ChangeOrderCostBudget.cs create mode 100644 Acumatica.Default_18.200.001/Model/ChangeOrderRevenueBudget.cs create mode 100644 Acumatica.Default_18.200.001/Model/Check.cs create mode 100644 Acumatica.Default_18.200.001/Model/CheckDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/CheckHistoryDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Commissions.cs create mode 100644 Acumatica.Default_18.200.001/Model/CommonTask.cs create mode 100644 Acumatica.Default_18.200.001/Model/CompanyFinancialPeriod.cs create mode 100644 Acumatica.Default_18.200.001/Model/Contact.cs create mode 100644 Acumatica.Default_18.200.001/Model/ContactDuplicateDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ContactNotification.cs create mode 100644 Acumatica.Default_18.200.001/Model/ContactRoles.cs create mode 100644 Acumatica.Default_18.200.001/Model/ContactUserInfo.cs create mode 100644 Acumatica.Default_18.200.001/Model/ContractUsage.cs create mode 100644 Acumatica.Default_18.200.001/Model/ContractUsageTransactionDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/CostCode.cs create mode 100644 Acumatica.Default_18.200.001/Model/CreditCardProcessingDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/CreditVerificationRules.cs create mode 100644 Acumatica.Default_18.200.001/Model/Currency.cs create mode 100644 Acumatica.Default_18.200.001/Model/Customer.cs create mode 100644 Acumatica.Default_18.200.001/Model/CustomerClass.cs create mode 100644 Acumatica.Default_18.200.001/Model/CustomerContact.cs create mode 100644 Acumatica.Default_18.200.001/Model/CustomerLocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/CustomerPaymentMethod.cs create mode 100644 Acumatica.Default_18.200.001/Model/CustomerPaymentMethodDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/CustomerPriceClass.cs create mode 100644 Acumatica.Default_18.200.001/Model/CustomerSalesPerson.cs create mode 100644 Acumatica.Default_18.200.001/Model/DefaultTaskForGLAccount.cs create mode 100644 Acumatica.Default_18.200.001/Model/Discount.cs create mode 100644 Acumatica.Default_18.200.001/Model/DiscountBreakpointDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/DiscountCode.cs create mode 100644 Acumatica.Default_18.200.001/Model/DiscountCustomerDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/DiscountCustomerPriceClassesDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/DiscountItemDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/DiscountItemPriceClassesDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/DiscountWarehouseDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/DocContact.cs create mode 100644 Acumatica.Default_18.200.001/Model/DuplicateDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Email.cs create mode 100644 Acumatica.Default_18.200.001/Model/EmailProcessing.cs create mode 100644 Acumatica.Default_18.200.001/Model/EmailProcessingRow.cs create mode 100644 Acumatica.Default_18.200.001/Model/Employee.cs create mode 100644 Acumatica.Default_18.200.001/Model/EmployeeDelegate.cs create mode 100644 Acumatica.Default_18.200.001/Model/EmployeeFinancialSettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/EmployeeSettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/EmploymentHistoryRecord.cs create mode 100644 Acumatica.Default_18.200.001/Model/Event.cs create mode 100644 Acumatica.Default_18.200.001/Model/EventAttendee.cs create mode 100644 Acumatica.Default_18.200.001/Model/EventRelatedActivity.cs create mode 100644 Acumatica.Default_18.200.001/Model/EventTimeActivity.cs create mode 100644 Acumatica.Default_18.200.001/Model/ExpenseClaim.cs create mode 100644 Acumatica.Default_18.200.001/Model/ExpenseClaimAPDocument.cs create mode 100644 Acumatica.Default_18.200.001/Model/ExpenseClaimDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/ExpenseClaimFinancialDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ExpenseClaimTaxDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ExpenseReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/ExpenseReceiptDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/ExpenseReceiptTaxDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/ExternalCommitment.cs create mode 100644 Acumatica.Default_18.200.001/Model/FOBPoint.cs create mode 100644 Acumatica.Default_18.200.001/Model/FinancialPeriod.cs create mode 100644 Acumatica.Default_18.200.001/Model/FinancialPeriodDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/FinancialSettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/FinancialYear.cs create mode 100644 Acumatica.Default_18.200.001/Model/FinancialYearPeriodDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/InterBranchAccountMapping.cs create mode 100644 Acumatica.Default_18.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/InventoryAllocationInquiry.cs create mode 100644 Acumatica.Default_18.200.001/Model/InventoryAllocationRow.cs create mode 100644 Acumatica.Default_18.200.001/Model/InventoryItemCrossReference.cs create mode 100644 Acumatica.Default_18.200.001/Model/InventoryItemUOMConversion.cs create mode 100644 Acumatica.Default_18.200.001/Model/InventoryReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/InventoryReceiptDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/InventoryReceiptDetailAllocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/InventorySummaryInquiry.cs create mode 100644 Acumatica.Default_18.200.001/Model/InventorySummaryRow.cs create mode 100644 Acumatica.Default_18.200.001/Model/Invoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/InvoiceApplicationsCreditMemo.cs create mode 100644 Acumatica.Default_18.200.001/Model/InvoiceApplicationsDefault.cs create mode 100644 Acumatica.Default_18.200.001/Model/InvoiceDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/InvoiceDiscountDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/InvoiceTaxDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ItemClass.cs create mode 100644 Acumatica.Default_18.200.001/Model/ItemClassAtrribute.cs create mode 100644 Acumatica.Default_18.200.001/Model/ItemPriceClassesDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/ItemSalesCategory.cs create mode 100644 Acumatica.Default_18.200.001/Model/ItemSalesCategoryMember.cs create mode 100644 Acumatica.Default_18.200.001/Model/ItemWarehouse.cs create mode 100644 Acumatica.Default_18.200.001/Model/ItemsDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/JournalTransaction.cs create mode 100644 Acumatica.Default_18.200.001/Model/JournalTransactionDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/JournalVoucher.cs create mode 100644 Acumatica.Default_18.200.001/Model/JournalVoucherDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs create mode 100644 Acumatica.Default_18.200.001/Model/JournalVoucherDetailARDocumentToApply.cs create mode 100644 Acumatica.Default_18.200.001/Model/JournalVoucherGLTransaction.cs create mode 100644 Acumatica.Default_18.200.001/Model/KitAssembly.cs create mode 100644 Acumatica.Default_18.200.001/Model/KitAssemblyAllocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/KitAssemblyNonStockComponent.cs create mode 100644 Acumatica.Default_18.200.001/Model/KitAssemblyStockComponent.cs create mode 100644 Acumatica.Default_18.200.001/Model/KitAssemblyStockComponentAllocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/KitNonStockComponent.cs create mode 100644 Acumatica.Default_18.200.001/Model/KitSpecification.cs create mode 100644 Acumatica.Default_18.200.001/Model/KitStockComponent.cs create mode 100644 Acumatica.Default_18.200.001/Model/LaborCostRate.cs create mode 100644 Acumatica.Default_18.200.001/Model/Lead.cs create mode 100644 Acumatica.Default_18.200.001/Model/LotSerialClass.cs create mode 100644 Acumatica.Default_18.200.001/Model/LotSerialClassSegment.cs create mode 100644 Acumatica.Default_18.200.001/Model/ManageFinancialPeriods.cs create mode 100644 Acumatica.Default_18.200.001/Model/ManageFinancialPeriodsDetail.cs rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/MarkLeadAsValidated.cs (100%) create mode 100644 Acumatica.Default_18.200.001/Model/MarketingListDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/NonStockItem.cs create mode 100644 Acumatica.Default_18.200.001/Model/NonStockItemAttribute.cs create mode 100644 Acumatica.Default_18.200.001/Model/NonStockItemSalesCategory.cs create mode 100644 Acumatica.Default_18.200.001/Model/NonStockItemVendorDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Opportunity.cs create mode 100644 Acumatica.Default_18.200.001/Model/OpportunityContact.cs create mode 100644 Acumatica.Default_18.200.001/Model/OpportunityDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/OpportunityDiscount.cs create mode 100644 Acumatica.Default_18.200.001/Model/OpportunityProduct.cs create mode 100644 Acumatica.Default_18.200.001/Model/OpportunityTaxDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Payment.cs create mode 100644 Acumatica.Default_18.200.001/Model/PaymentApplicationHistoryDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/PaymentDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/PaymentMethod.cs create mode 100644 Acumatica.Default_18.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/PaymentMethodProcessingCenterDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/PaymentOrderDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Payments.cs create mode 100644 Acumatica.Default_18.200.001/Model/PhysicalInventoryCount.cs create mode 100644 Acumatica.Default_18.200.001/Model/PhysicalInventoryCountDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/PhysicalInventoryReview.cs create mode 100644 Acumatica.Default_18.200.001/Model/PhysicalInventoryReviewDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProFormaFinancialDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProFormaInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProFormaTaxDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProgressBilling.cs create mode 100644 Acumatica.Default_18.200.001/Model/Project.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectActivity.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectBalance.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectBilling.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectBillingAndAllocationSettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectBillingDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectBillingRules.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectBudget.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectEmployee.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectEquipment.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectGLAccount.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectProFormaDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectProperties.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectTask.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectTaskBillingAndAllocationSettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectTaskDefaultValues.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectTaskProperties.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectTaskToCRMLink.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectTemplate.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectTemplateTask.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectTemplateTaskProperties.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectTransaction.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectTransactionDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ProjectUnionLocal.cs create mode 100644 Acumatica.Default_18.200.001/Model/PurchaseOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/PurchaseOrderDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/PurchaseOrderTaxDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/PurchaseReceipt.cs create mode 100644 Acumatica.Default_18.200.001/Model/PurchaseReceiptDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/PurchaseReceiptDetailAllocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/PurchaseSettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/RelationDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ReminderDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ReplenishmentParameterStockItem.cs create mode 100644 Acumatica.Default_18.200.001/Model/ReportingGroup.cs create mode 100644 Acumatica.Default_18.200.001/Model/ReportingSettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoiceApplicationCreditMemo.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoiceApplicationInvoice.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoiceCommissions.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoiceDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoiceDiscountDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoiceFinancialDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoiceFreightDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoiceSalesPersonDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoiceTaxDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesInvoiceTotals.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesOrderDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesOrderDetailAllocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesOrderShipment.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesOrdersDiscountDetails.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesPersonDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesPriceDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesPriceWorksheet.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesPricesInquiry.cs create mode 100644 Acumatica.Default_18.200.001/Model/SalesPricesWorksheetDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/Salesperson.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShipToSettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShipVia.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShipViaFreightRate.cs create mode 100644 Acumatica.Default_18.200.001/Model/Shipment.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShipmentDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShipmentDetailAllocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShipmentOrderDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShipmentPackage.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShippingBox.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShippingInstructions.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShippingSettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShippingTerm.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShippingTermDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShippingZones.cs create mode 100644 Acumatica.Default_18.200.001/Model/ShopForRates.cs create mode 100644 Acumatica.Default_18.200.001/Model/StatementCycle.cs create mode 100644 Acumatica.Default_18.200.001/Model/StockItem.cs create mode 100644 Acumatica.Default_18.200.001/Model/StockItemVendorDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/StockItemWarehouseDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/SubItemStockItem.cs create mode 100644 Acumatica.Default_18.200.001/Model/Subaccount.cs create mode 100644 Acumatica.Default_18.200.001/Model/Task.cs create mode 100644 Acumatica.Default_18.200.001/Model/TaskRelatedActivity.cs create mode 100644 Acumatica.Default_18.200.001/Model/TaskRelatedTask.cs create mode 100644 Acumatica.Default_18.200.001/Model/TaskTimeActivity.cs create mode 100644 Acumatica.Default_18.200.001/Model/Tax.cs create mode 100644 Acumatica.Default_18.200.001/Model/TaxCategory.cs create mode 100644 Acumatica.Default_18.200.001/Model/TaxCategoryTaxDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/TaxDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/TaxScheduleDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/TaxZone.cs create mode 100644 Acumatica.Default_18.200.001/Model/TaxZoneApplicableTaxDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/TaxZoneDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/TimeActivity.cs create mode 100644 Acumatica.Default_18.200.001/Model/TimeAndMaterial.cs create mode 100644 Acumatica.Default_18.200.001/Model/TimeEntry.cs create mode 100644 Acumatica.Default_18.200.001/Model/Totals.cs create mode 100644 Acumatica.Default_18.200.001/Model/TransferOrder.cs create mode 100644 Acumatica.Default_18.200.001/Model/TransferOrderDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/TransferOrderDetailAllocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/TrialBalance.cs create mode 100644 Acumatica.Default_18.200.001/Model/TrialBalanceDetail.cs rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/TrialBalanceProcess.cs (100%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Model/TrialBalanceProcessAll.cs (100%) create mode 100644 Acumatica.Default_18.200.001/Model/UnionLocal.cs create mode 100644 Acumatica.Default_18.200.001/Model/UnitsOfMeasure.cs create mode 100644 Acumatica.Default_18.200.001/Model/Vendor.cs create mode 100644 Acumatica.Default_18.200.001/Model/VendorClass.cs create mode 100644 Acumatica.Default_18.200.001/Model/VendorPriceDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/VendorPriceWorksheet.cs create mode 100644 Acumatica.Default_18.200.001/Model/VendorPriceWorksheetDetail.cs create mode 100644 Acumatica.Default_18.200.001/Model/VendorPricesInquiry.cs create mode 100644 Acumatica.Default_18.200.001/Model/VisibilitySettings.cs create mode 100644 Acumatica.Default_18.200.001/Model/VoucherEntryCode.cs create mode 100644 Acumatica.Default_18.200.001/Model/Warehouse.cs create mode 100644 Acumatica.Default_18.200.001/Model/WarehouseLocation.cs create mode 100644 Acumatica.Default_18.200.001/Model/WorkClassCompensationCode.cs rename {Default.18.200.001 => Acumatica.Default_18.200.001}/Properties/AssemblyInfo.cs (97%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/app.config (97%) rename {Default.18.200.001 => Acumatica.Default_18.200.001}/packages.config (98%) create mode 100644 Acumatica.DeviceHub_19.200.001/Model/PrintJobsInquiry.cs delete mode 100644 Default.18.200.001/Model/Account.cs delete mode 100644 Default.18.200.001/Model/AccountByPeriodInquiry.cs delete mode 100644 Default.18.200.001/Model/AccountByPeriodRow.cs delete mode 100644 Default.18.200.001/Model/AccountBySubaccountInquiry.cs delete mode 100644 Default.18.200.001/Model/AccountBySubaccountRow.cs delete mode 100644 Default.18.200.001/Model/AccountDetailsInquiry.cs delete mode 100644 Default.18.200.001/Model/AccountDetailsRow.cs delete mode 100644 Default.18.200.001/Model/AccountGroup.cs delete mode 100644 Default.18.200.001/Model/AccountLocation.cs delete mode 100644 Default.18.200.001/Model/AccountLocationContact.cs delete mode 100644 Default.18.200.001/Model/AccountSummaryInquiry.cs delete mode 100644 Default.18.200.001/Model/AccountSummaryRow.cs delete mode 100644 Default.18.200.001/Model/Actions/AcceptInvitationEvent.cs delete mode 100644 Default.18.200.001/Model/Actions/ApproveChangeOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/ApproveExpenseClaim.cs delete mode 100644 Default.18.200.001/Model/Actions/ApproveExpenseReceipt.cs delete mode 100644 Default.18.200.001/Model/Actions/ApproveProFormaInvoice.cs delete mode 100644 Default.18.200.001/Model/Actions/ApproveProject.cs delete mode 100644 Default.18.200.001/Model/Actions/ArchiveEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/AssignCase.cs delete mode 100644 Default.18.200.001/Model/Actions/AutoRecalculateDiscounts.cs delete mode 100644 Default.18.200.001/Model/Actions/CancelActivityEvent.cs delete mode 100644 Default.18.200.001/Model/Actions/CancelActivityTask.cs delete mode 100644 Default.18.200.001/Model/Actions/CancelPhysicalInventory.cs delete mode 100644 Default.18.200.001/Model/Actions/CancelSalesOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/CancelSendingEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/CaptureCreditCardPayment.cs delete mode 100644 Default.18.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs delete mode 100644 Default.18.200.001/Model/Actions/CheckForContactDuplicates.cs delete mode 100644 Default.18.200.001/Model/Actions/CheckLeadForDuplicates.cs delete mode 100644 Default.18.200.001/Model/Actions/ClaimExpenseReceipt.cs delete mode 100644 Default.18.200.001/Model/Actions/CloseContactAsDuplicate.cs delete mode 100644 Default.18.200.001/Model/Actions/CloseLeadAsDuplicate.cs delete mode 100644 Default.18.200.001/Model/Actions/CompleteActivity.cs delete mode 100644 Default.18.200.001/Model/Actions/CompleteAndFollowUpEvent.cs delete mode 100644 Default.18.200.001/Model/Actions/CompleteAndFollowUpTask.cs delete mode 100644 Default.18.200.001/Model/Actions/CompleteEvent.cs delete mode 100644 Default.18.200.001/Model/Actions/CompletePhysicalInventory.cs delete mode 100644 Default.18.200.001/Model/Actions/CompleteTask.cs delete mode 100644 Default.18.200.001/Model/Actions/CompleteTimeEntry.cs delete mode 100644 Default.18.200.001/Model/Actions/ConfirmShipment.cs delete mode 100644 Default.18.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs delete mode 100644 Default.18.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs delete mode 100644 Default.18.200.001/Model/Actions/ConvertLeadToContact.cs delete mode 100644 Default.18.200.001/Model/Actions/ConvertLeadToOpportunity.cs delete mode 100644 Default.18.200.001/Model/Actions/CopyFromCompany.cs delete mode 100644 Default.18.200.001/Model/Actions/CorrectShipment.cs delete mode 100644 Default.18.200.001/Model/Actions/CreateAPBill.cs delete mode 100644 Default.18.200.001/Model/Actions/CreateCaseFromEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/CreateContactFromEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/CreateContactFromOpportunity.cs delete mode 100644 Default.18.200.001/Model/Actions/CreateEventFromEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/CreateExpenseReceiptFromEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/CreateLeadFromEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/CreateOpportunityFromEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/CreateOpportunityInvoice.cs delete mode 100644 Default.18.200.001/Model/Actions/CreateTaskFromEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/DownloadEmlFileEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/EmailChangeOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/EmailProFormaInvoice.cs delete mode 100644 Default.18.200.001/Model/Actions/EnterAPBill.cs delete mode 100644 Default.18.200.001/Model/Actions/EnterPOReceipt.cs delete mode 100644 Default.18.200.001/Model/Actions/ExportCardEvent.cs delete mode 100644 Default.18.200.001/Model/Actions/FinishCountingPhysicalInventory.cs delete mode 100644 Default.18.200.001/Model/Actions/GeneratePeriods.cs delete mode 100644 Default.18.200.001/Model/Actions/InviteAllEvent.cs delete mode 100644 Default.18.200.001/Model/Actions/InviteEvent.cs delete mode 100644 Default.18.200.001/Model/Actions/LockProjectBudget.cs delete mode 100644 Default.18.200.001/Model/Actions/LockProjectCommitments.cs delete mode 100644 Default.18.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs delete mode 100644 Default.18.200.001/Model/Actions/MarkContactAsValidated.cs delete mode 100644 Default.18.200.001/Model/Actions/OpenSalesOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/OpenTimeEntry.cs delete mode 100644 Default.18.200.001/Model/Actions/PrepareInvoice.cs delete mode 100644 Default.18.200.001/Model/Actions/PrepareSalesInvoice.cs delete mode 100644 Default.18.200.001/Model/Actions/ProcessAllEmailProcessing.cs delete mode 100644 Default.18.200.001/Model/Actions/ProcessAllManageFinancialPeriods.cs delete mode 100644 Default.18.200.001/Model/Actions/ProcessEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/ProcessEmailProcessing.cs delete mode 100644 Default.18.200.001/Model/Actions/ProcessManageFinancialPeriods.cs delete mode 100644 Default.18.200.001/Model/Actions/ProjectBillingProcess.cs delete mode 100644 Default.18.200.001/Model/Actions/ProjectBillingProcessAll.cs delete mode 100644 Default.18.200.001/Model/Actions/PutOnHoldExpenseClaim.cs delete mode 100644 Default.18.200.001/Model/Actions/PutOnHoldExpenseReceipt.cs delete mode 100644 Default.18.200.001/Model/Actions/RejectChangeOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/RejectExpenseClaim.cs delete mode 100644 Default.18.200.001/Model/Actions/RejectExpenseReceipt.cs delete mode 100644 Default.18.200.001/Model/Actions/RejectInvitationEvent.cs delete mode 100644 Default.18.200.001/Model/Actions/RejectProFormaInvoice.cs delete mode 100644 Default.18.200.001/Model/Actions/RejectProject.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseAdjustment.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseBill.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseCase.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseCashSale.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseChangeOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseCheck.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseExpenseClaim.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseFromCreditHoldSalesOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseInventoryReceipt.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseInvoice.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseJournalTransaction.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseJournalVoucher.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseKitAssembly.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleasePayment.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseProFormaInvoice.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleasePurchaseReceipt.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseSalesInvoice.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseTransactions.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseTransferOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseTrialBalance.cs delete mode 100644 Default.18.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs delete mode 100644 Default.18.200.001/Model/Actions/ReopenSalesOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/RestoreArchivedEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/RestoreDeletedEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/ReverseBill.cs delete mode 100644 Default.18.200.001/Model/Actions/ReverseChangeOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/ReverseInvoice.cs delete mode 100644 Default.18.200.001/Model/Actions/RunProjectAllocation.cs delete mode 100644 Default.18.200.001/Model/Actions/RunProjectBilling.cs delete mode 100644 Default.18.200.001/Model/Actions/SalesInvoiceAddOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/SalesInvoiceAutoApply.cs delete mode 100644 Default.18.200.001/Model/Actions/SalesOrderCreatePurchaseOrder.cs delete mode 100644 Default.18.200.001/Model/Actions/SendEmail.cs delete mode 100644 Default.18.200.001/Model/Actions/SubmitExpenseClaim.cs delete mode 100644 Default.18.200.001/Model/Actions/SubmitExpenseReceipt.cs delete mode 100644 Default.18.200.001/Model/Actions/TakeCase.cs delete mode 100644 Default.18.200.001/Model/Actions/UnlockProjectBudget.cs delete mode 100644 Default.18.200.001/Model/Actions/UnlockProjectCommitments.cs delete mode 100644 Default.18.200.001/Model/Actions/UpdateIN.cs delete mode 100644 Default.18.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs delete mode 100644 Default.18.200.001/Model/Actions/UpdateStandardCostStockItem.cs delete mode 100644 Default.18.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs delete mode 100644 Default.18.200.001/Model/Actions/ValidateContactAddress.cs delete mode 100644 Default.18.200.001/Model/Actions/ValidateLeadAddress.cs delete mode 100644 Default.18.200.001/Model/Actions/ValidateProjectBalance.cs delete mode 100644 Default.18.200.001/Model/Actions/VoidPayment.cs delete mode 100644 Default.18.200.001/Model/Activity.cs delete mode 100644 Default.18.200.001/Model/ActivityDetail.cs delete mode 100644 Default.18.200.001/Model/Address.cs delete mode 100644 Default.18.200.001/Model/Adjustment.cs delete mode 100644 Default.18.200.001/Model/AdjustmentDetail.cs delete mode 100644 Default.18.200.001/Model/AllocationRule.cs delete mode 100644 Default.18.200.001/Model/Approval.cs delete mode 100644 Default.18.200.001/Model/AttributeDefinition.cs delete mode 100644 Default.18.200.001/Model/AttributeDefinitionValue.cs delete mode 100644 Default.18.200.001/Model/AttributeDetail.cs delete mode 100644 Default.18.200.001/Model/AttributeValue.cs delete mode 100644 Default.18.200.001/Model/Bill.cs delete mode 100644 Default.18.200.001/Model/BillApplicationDetail.cs delete mode 100644 Default.18.200.001/Model/BillDetail.cs delete mode 100644 Default.18.200.001/Model/BillTaxDetail.cs delete mode 100644 Default.18.200.001/Model/BillToSettings.cs delete mode 100644 Default.18.200.001/Model/BoxStockItem.cs delete mode 100644 Default.18.200.001/Model/BusinessAccount.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountActivityDetail.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountCaseDetail.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountClassAttributeDetail.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountContact.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountContract.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountDefaultLocationSetting.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountLocation.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountMainContact.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountMarketingListDetail.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountOpportunityDetail.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountOrder.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountPaymentInstructionDetail.cs delete mode 100644 Default.18.200.001/Model/BusinessAccountShippingContact.cs delete mode 100644 Default.18.200.001/Model/CampaignDetail.cs delete mode 100644 Default.18.200.001/Model/Carrier.cs delete mode 100644 Default.18.200.001/Model/CarrierCustomerAccount.cs delete mode 100644 Default.18.200.001/Model/CarrierPluginParameter.cs delete mode 100644 Default.18.200.001/Model/Case.cs delete mode 100644 Default.18.200.001/Model/CaseActivityDetail.cs delete mode 100644 Default.18.200.001/Model/CaseDetail.cs delete mode 100644 Default.18.200.001/Model/CaseRelatedCase.cs delete mode 100644 Default.18.200.001/Model/CashSale.cs delete mode 100644 Default.18.200.001/Model/CashSaleDetail.cs delete mode 100644 Default.18.200.001/Model/CategoryStockItem.cs delete mode 100644 Default.18.200.001/Model/ChangeOrder.cs delete mode 100644 Default.18.200.001/Model/ChangeOrderClass.cs delete mode 100644 Default.18.200.001/Model/ChangeOrderCommitment.cs delete mode 100644 Default.18.200.001/Model/ChangeOrderCostBudget.cs delete mode 100644 Default.18.200.001/Model/ChangeOrderRevenueBudget.cs delete mode 100644 Default.18.200.001/Model/Check.cs delete mode 100644 Default.18.200.001/Model/CheckDetail.cs delete mode 100644 Default.18.200.001/Model/CheckHistoryDetail.cs delete mode 100644 Default.18.200.001/Model/Commissions.cs delete mode 100644 Default.18.200.001/Model/CommonTask.cs delete mode 100644 Default.18.200.001/Model/CompanyFinancialPeriod.cs delete mode 100644 Default.18.200.001/Model/Contact.cs delete mode 100644 Default.18.200.001/Model/ContactDuplicateDetail.cs delete mode 100644 Default.18.200.001/Model/ContactNotification.cs delete mode 100644 Default.18.200.001/Model/ContactRoles.cs delete mode 100644 Default.18.200.001/Model/ContactUserInfo.cs delete mode 100644 Default.18.200.001/Model/ContractUsage.cs delete mode 100644 Default.18.200.001/Model/ContractUsageTransactionDetail.cs delete mode 100644 Default.18.200.001/Model/CostCode.cs delete mode 100644 Default.18.200.001/Model/CreditCardProcessingDetail.cs delete mode 100644 Default.18.200.001/Model/CreditVerificationRules.cs delete mode 100644 Default.18.200.001/Model/Currency.cs delete mode 100644 Default.18.200.001/Model/Customer.cs delete mode 100644 Default.18.200.001/Model/CustomerClass.cs delete mode 100644 Default.18.200.001/Model/CustomerContact.cs delete mode 100644 Default.18.200.001/Model/CustomerLocation.cs delete mode 100644 Default.18.200.001/Model/CustomerPaymentMethod.cs delete mode 100644 Default.18.200.001/Model/CustomerPaymentMethodDetail.cs delete mode 100644 Default.18.200.001/Model/CustomerPriceClass.cs delete mode 100644 Default.18.200.001/Model/CustomerSalesPerson.cs delete mode 100644 Default.18.200.001/Model/DefaultTaskForGLAccount.cs delete mode 100644 Default.18.200.001/Model/Discount.cs delete mode 100644 Default.18.200.001/Model/DiscountBreakpointDetail.cs delete mode 100644 Default.18.200.001/Model/DiscountCode.cs delete mode 100644 Default.18.200.001/Model/DiscountCustomerDetail.cs delete mode 100644 Default.18.200.001/Model/DiscountCustomerPriceClassesDetail.cs delete mode 100644 Default.18.200.001/Model/DiscountItemDetail.cs delete mode 100644 Default.18.200.001/Model/DiscountItemPriceClassesDetail.cs delete mode 100644 Default.18.200.001/Model/DiscountWarehouseDetail.cs delete mode 100644 Default.18.200.001/Model/DocContact.cs delete mode 100644 Default.18.200.001/Model/DuplicateDetail.cs delete mode 100644 Default.18.200.001/Model/Email.cs delete mode 100644 Default.18.200.001/Model/EmailProcessing.cs delete mode 100644 Default.18.200.001/Model/EmailProcessingRow.cs delete mode 100644 Default.18.200.001/Model/Employee.cs delete mode 100644 Default.18.200.001/Model/EmployeeDelegate.cs delete mode 100644 Default.18.200.001/Model/EmployeeFinancialSettings.cs delete mode 100644 Default.18.200.001/Model/EmployeeSettings.cs delete mode 100644 Default.18.200.001/Model/EmploymentHistoryRecord.cs delete mode 100644 Default.18.200.001/Model/Event.cs delete mode 100644 Default.18.200.001/Model/EventAttendee.cs delete mode 100644 Default.18.200.001/Model/EventRelatedActivity.cs delete mode 100644 Default.18.200.001/Model/EventTimeActivity.cs delete mode 100644 Default.18.200.001/Model/ExpenseClaim.cs delete mode 100644 Default.18.200.001/Model/ExpenseClaimAPDocument.cs delete mode 100644 Default.18.200.001/Model/ExpenseClaimDetails.cs delete mode 100644 Default.18.200.001/Model/ExpenseClaimFinancialDetail.cs delete mode 100644 Default.18.200.001/Model/ExpenseClaimTaxDetail.cs delete mode 100644 Default.18.200.001/Model/ExpenseReceipt.cs delete mode 100644 Default.18.200.001/Model/ExpenseReceiptDetails.cs delete mode 100644 Default.18.200.001/Model/ExpenseReceiptTaxDetails.cs delete mode 100644 Default.18.200.001/Model/ExternalCommitment.cs delete mode 100644 Default.18.200.001/Model/FOBPoint.cs delete mode 100644 Default.18.200.001/Model/FinancialPeriod.cs delete mode 100644 Default.18.200.001/Model/FinancialPeriodDetail.cs delete mode 100644 Default.18.200.001/Model/FinancialSettings.cs delete mode 100644 Default.18.200.001/Model/FinancialYear.cs delete mode 100644 Default.18.200.001/Model/FinancialYearPeriodDetail.cs delete mode 100644 Default.18.200.001/Model/InterBranchAccountMapping.cs delete mode 100644 Default.18.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs delete mode 100644 Default.18.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs delete mode 100644 Default.18.200.001/Model/InventoryAllocationInquiry.cs delete mode 100644 Default.18.200.001/Model/InventoryAllocationRow.cs delete mode 100644 Default.18.200.001/Model/InventoryItemCrossReference.cs delete mode 100644 Default.18.200.001/Model/InventoryItemUOMConversion.cs delete mode 100644 Default.18.200.001/Model/InventoryReceipt.cs delete mode 100644 Default.18.200.001/Model/InventoryReceiptDetail.cs delete mode 100644 Default.18.200.001/Model/InventoryReceiptDetailAllocation.cs delete mode 100644 Default.18.200.001/Model/InventorySummaryInquiry.cs delete mode 100644 Default.18.200.001/Model/InventorySummaryRow.cs delete mode 100644 Default.18.200.001/Model/Invoice.cs delete mode 100644 Default.18.200.001/Model/InvoiceApplicationsCreditMemo.cs delete mode 100644 Default.18.200.001/Model/InvoiceApplicationsDefault.cs delete mode 100644 Default.18.200.001/Model/InvoiceDetail.cs delete mode 100644 Default.18.200.001/Model/InvoiceDiscountDetail.cs delete mode 100644 Default.18.200.001/Model/InvoiceTaxDetail.cs delete mode 100644 Default.18.200.001/Model/ItemClass.cs delete mode 100644 Default.18.200.001/Model/ItemClassAtrribute.cs delete mode 100644 Default.18.200.001/Model/ItemPriceClassesDetails.cs delete mode 100644 Default.18.200.001/Model/ItemSalesCategory.cs delete mode 100644 Default.18.200.001/Model/ItemSalesCategoryMember.cs delete mode 100644 Default.18.200.001/Model/ItemWarehouse.cs delete mode 100644 Default.18.200.001/Model/ItemsDetails.cs delete mode 100644 Default.18.200.001/Model/JournalTransaction.cs delete mode 100644 Default.18.200.001/Model/JournalTransactionDetail.cs delete mode 100644 Default.18.200.001/Model/JournalVoucher.cs delete mode 100644 Default.18.200.001/Model/JournalVoucherDetail.cs delete mode 100644 Default.18.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs delete mode 100644 Default.18.200.001/Model/JournalVoucherDetailARDocumentToApply.cs delete mode 100644 Default.18.200.001/Model/JournalVoucherGLTransaction.cs delete mode 100644 Default.18.200.001/Model/KitAssembly.cs delete mode 100644 Default.18.200.001/Model/KitAssemblyAllocation.cs delete mode 100644 Default.18.200.001/Model/KitAssemblyNonStockComponent.cs delete mode 100644 Default.18.200.001/Model/KitAssemblyStockComponent.cs delete mode 100644 Default.18.200.001/Model/KitAssemblyStockComponentAllocation.cs delete mode 100644 Default.18.200.001/Model/KitNonStockComponent.cs delete mode 100644 Default.18.200.001/Model/KitSpecification.cs delete mode 100644 Default.18.200.001/Model/KitStockComponent.cs delete mode 100644 Default.18.200.001/Model/LaborCostRate.cs delete mode 100644 Default.18.200.001/Model/Lead.cs delete mode 100644 Default.18.200.001/Model/LotSerialClass.cs delete mode 100644 Default.18.200.001/Model/LotSerialClassSegment.cs delete mode 100644 Default.18.200.001/Model/ManageFinancialPeriods.cs delete mode 100644 Default.18.200.001/Model/ManageFinancialPeriodsDetail.cs delete mode 100644 Default.18.200.001/Model/MarketingListDetail.cs delete mode 100644 Default.18.200.001/Model/NonStockItem.cs delete mode 100644 Default.18.200.001/Model/NonStockItemAttribute.cs delete mode 100644 Default.18.200.001/Model/NonStockItemSalesCategory.cs delete mode 100644 Default.18.200.001/Model/NonStockItemVendorDetail.cs delete mode 100644 Default.18.200.001/Model/Opportunity.cs delete mode 100644 Default.18.200.001/Model/OpportunityContact.cs delete mode 100644 Default.18.200.001/Model/OpportunityDetail.cs delete mode 100644 Default.18.200.001/Model/OpportunityDiscount.cs delete mode 100644 Default.18.200.001/Model/OpportunityProduct.cs delete mode 100644 Default.18.200.001/Model/OpportunityTaxDetail.cs delete mode 100644 Default.18.200.001/Model/Payment.cs delete mode 100644 Default.18.200.001/Model/PaymentApplicationHistoryDetail.cs delete mode 100644 Default.18.200.001/Model/PaymentDetail.cs delete mode 100644 Default.18.200.001/Model/PaymentMethod.cs delete mode 100644 Default.18.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs delete mode 100644 Default.18.200.001/Model/PaymentMethodProcessingCenterDetail.cs delete mode 100644 Default.18.200.001/Model/PaymentOrderDetail.cs delete mode 100644 Default.18.200.001/Model/Payments.cs delete mode 100644 Default.18.200.001/Model/PhysicalInventoryCount.cs delete mode 100644 Default.18.200.001/Model/PhysicalInventoryCountDetail.cs delete mode 100644 Default.18.200.001/Model/PhysicalInventoryReview.cs delete mode 100644 Default.18.200.001/Model/PhysicalInventoryReviewDetail.cs delete mode 100644 Default.18.200.001/Model/ProFormaFinancialDetails.cs delete mode 100644 Default.18.200.001/Model/ProFormaInvoice.cs delete mode 100644 Default.18.200.001/Model/ProFormaTaxDetail.cs delete mode 100644 Default.18.200.001/Model/ProgressBilling.cs delete mode 100644 Default.18.200.001/Model/Project.cs delete mode 100644 Default.18.200.001/Model/ProjectActivity.cs delete mode 100644 Default.18.200.001/Model/ProjectBalance.cs delete mode 100644 Default.18.200.001/Model/ProjectBilling.cs delete mode 100644 Default.18.200.001/Model/ProjectBillingAndAllocationSettings.cs delete mode 100644 Default.18.200.001/Model/ProjectBillingDetails.cs delete mode 100644 Default.18.200.001/Model/ProjectBillingRules.cs delete mode 100644 Default.18.200.001/Model/ProjectBudget.cs delete mode 100644 Default.18.200.001/Model/ProjectEmployee.cs delete mode 100644 Default.18.200.001/Model/ProjectEquipment.cs delete mode 100644 Default.18.200.001/Model/ProjectGLAccount.cs delete mode 100644 Default.18.200.001/Model/ProjectProFormaDetails.cs delete mode 100644 Default.18.200.001/Model/ProjectProperties.cs delete mode 100644 Default.18.200.001/Model/ProjectTask.cs delete mode 100644 Default.18.200.001/Model/ProjectTaskBillingAndAllocationSettings.cs delete mode 100644 Default.18.200.001/Model/ProjectTaskDefaultValues.cs delete mode 100644 Default.18.200.001/Model/ProjectTaskProperties.cs delete mode 100644 Default.18.200.001/Model/ProjectTaskToCRMLink.cs delete mode 100644 Default.18.200.001/Model/ProjectTemplate.cs delete mode 100644 Default.18.200.001/Model/ProjectTemplateTask.cs delete mode 100644 Default.18.200.001/Model/ProjectTemplateTaskProperties.cs delete mode 100644 Default.18.200.001/Model/ProjectTransaction.cs delete mode 100644 Default.18.200.001/Model/ProjectTransactionDetail.cs delete mode 100644 Default.18.200.001/Model/ProjectUnionLocal.cs delete mode 100644 Default.18.200.001/Model/PurchaseOrder.cs delete mode 100644 Default.18.200.001/Model/PurchaseOrderDetail.cs delete mode 100644 Default.18.200.001/Model/PurchaseOrderTaxDetail.cs delete mode 100644 Default.18.200.001/Model/PurchaseReceipt.cs delete mode 100644 Default.18.200.001/Model/PurchaseReceiptDetail.cs delete mode 100644 Default.18.200.001/Model/PurchaseReceiptDetailAllocation.cs delete mode 100644 Default.18.200.001/Model/PurchaseSettings.cs delete mode 100644 Default.18.200.001/Model/RelationDetail.cs delete mode 100644 Default.18.200.001/Model/ReminderDetail.cs delete mode 100644 Default.18.200.001/Model/ReplenishmentParameterStockItem.cs delete mode 100644 Default.18.200.001/Model/ReportingGroup.cs delete mode 100644 Default.18.200.001/Model/ReportingSettings.cs delete mode 100644 Default.18.200.001/Model/SalesInvoice.cs delete mode 100644 Default.18.200.001/Model/SalesInvoiceApplicationCreditMemo.cs delete mode 100644 Default.18.200.001/Model/SalesInvoiceApplicationInvoice.cs delete mode 100644 Default.18.200.001/Model/SalesInvoiceCommissions.cs delete mode 100644 Default.18.200.001/Model/SalesInvoiceDetail.cs delete mode 100644 Default.18.200.001/Model/SalesInvoiceDiscountDetails.cs delete mode 100644 Default.18.200.001/Model/SalesInvoiceFinancialDetails.cs delete mode 100644 Default.18.200.001/Model/SalesInvoiceFreightDetail.cs delete mode 100644 Default.18.200.001/Model/SalesInvoiceSalesPersonDetail.cs delete mode 100644 Default.18.200.001/Model/SalesInvoiceTaxDetail.cs delete mode 100644 Default.18.200.001/Model/SalesInvoiceTotals.cs delete mode 100644 Default.18.200.001/Model/SalesOrder.cs delete mode 100644 Default.18.200.001/Model/SalesOrderDetail.cs delete mode 100644 Default.18.200.001/Model/SalesOrderDetailAllocation.cs delete mode 100644 Default.18.200.001/Model/SalesOrderShipment.cs delete mode 100644 Default.18.200.001/Model/SalesOrdersDiscountDetails.cs delete mode 100644 Default.18.200.001/Model/SalesPersonDetail.cs delete mode 100644 Default.18.200.001/Model/SalesPriceDetail.cs delete mode 100644 Default.18.200.001/Model/SalesPriceWorksheet.cs delete mode 100644 Default.18.200.001/Model/SalesPricesInquiry.cs delete mode 100644 Default.18.200.001/Model/SalesPricesWorksheetDetail.cs delete mode 100644 Default.18.200.001/Model/Salesperson.cs delete mode 100644 Default.18.200.001/Model/ShipToSettings.cs delete mode 100644 Default.18.200.001/Model/ShipVia.cs delete mode 100644 Default.18.200.001/Model/ShipViaFreightRate.cs delete mode 100644 Default.18.200.001/Model/Shipment.cs delete mode 100644 Default.18.200.001/Model/ShipmentDetail.cs delete mode 100644 Default.18.200.001/Model/ShipmentDetailAllocation.cs delete mode 100644 Default.18.200.001/Model/ShipmentOrderDetail.cs delete mode 100644 Default.18.200.001/Model/ShipmentPackage.cs delete mode 100644 Default.18.200.001/Model/ShippingBox.cs delete mode 100644 Default.18.200.001/Model/ShippingInstructions.cs delete mode 100644 Default.18.200.001/Model/ShippingSettings.cs delete mode 100644 Default.18.200.001/Model/ShippingTerm.cs delete mode 100644 Default.18.200.001/Model/ShippingTermDetail.cs delete mode 100644 Default.18.200.001/Model/ShippingZones.cs delete mode 100644 Default.18.200.001/Model/ShopForRates.cs delete mode 100644 Default.18.200.001/Model/StatementCycle.cs delete mode 100644 Default.18.200.001/Model/StockItem.cs delete mode 100644 Default.18.200.001/Model/StockItemVendorDetail.cs delete mode 100644 Default.18.200.001/Model/StockItemWarehouseDetail.cs delete mode 100644 Default.18.200.001/Model/SubItemStockItem.cs delete mode 100644 Default.18.200.001/Model/Subaccount.cs delete mode 100644 Default.18.200.001/Model/Task.cs delete mode 100644 Default.18.200.001/Model/TaskRelatedActivity.cs delete mode 100644 Default.18.200.001/Model/TaskRelatedTask.cs delete mode 100644 Default.18.200.001/Model/TaskTimeActivity.cs delete mode 100644 Default.18.200.001/Model/Tax.cs delete mode 100644 Default.18.200.001/Model/TaxCategory.cs delete mode 100644 Default.18.200.001/Model/TaxCategoryTaxDetail.cs delete mode 100644 Default.18.200.001/Model/TaxDetail.cs delete mode 100644 Default.18.200.001/Model/TaxScheduleDetail.cs delete mode 100644 Default.18.200.001/Model/TaxZone.cs delete mode 100644 Default.18.200.001/Model/TaxZoneApplicableTaxDetail.cs delete mode 100644 Default.18.200.001/Model/TaxZoneDetail.cs delete mode 100644 Default.18.200.001/Model/TimeActivity.cs delete mode 100644 Default.18.200.001/Model/TimeAndMaterial.cs delete mode 100644 Default.18.200.001/Model/TimeEntry.cs delete mode 100644 Default.18.200.001/Model/Totals.cs delete mode 100644 Default.18.200.001/Model/TransferOrder.cs delete mode 100644 Default.18.200.001/Model/TransferOrderDetail.cs delete mode 100644 Default.18.200.001/Model/TransferOrderDetailAllocation.cs delete mode 100644 Default.18.200.001/Model/TrialBalance.cs delete mode 100644 Default.18.200.001/Model/TrialBalanceDetail.cs delete mode 100644 Default.18.200.001/Model/UnionLocal.cs delete mode 100644 Default.18.200.001/Model/UnitsOfMeasure.cs delete mode 100644 Default.18.200.001/Model/Vendor.cs delete mode 100644 Default.18.200.001/Model/VendorClass.cs delete mode 100644 Default.18.200.001/Model/VendorPriceDetail.cs delete mode 100644 Default.18.200.001/Model/VendorPriceWorksheet.cs delete mode 100644 Default.18.200.001/Model/VendorPriceWorksheetDetail.cs delete mode 100644 Default.18.200.001/Model/VendorPricesInquiry.cs delete mode 100644 Default.18.200.001/Model/VisibilitySettings.cs delete mode 100644 Default.18.200.001/Model/VoucherEntryCode.cs delete mode 100644 Default.18.200.001/Model/Warehouse.cs delete mode 100644 Default.18.200.001/Model/WarehouseLocation.cs delete mode 100644 Default.18.200.001/Model/WorkClassCompensationCode.cs diff --git a/Acumatica REST API Client.sln b/Acumatica REST API Client.sln index 69162e51..73796279 100644 --- a/Acumatica REST API Client.sln +++ b/Acumatica REST API Client.sln @@ -9,8 +9,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.Auth", "Acumatica EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.RESTClient", "Acumatica.RESTClient\Acumatica.RESTClient.csproj", "{25008D3F-3D78-4BB9-B14B-0A792AE97892}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.Default_18.200.001", "Default.18.200.001\Acumatica.Default_18.200.001.csproj", "{B26A386B-F5DA-4679-ACBA-1541251B696B}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SOAPLikeWrapperForREST", "SOAPLikeWrapperForREST\SOAPLikeWrapperForREST.csproj", "{99541823-473A-46E8-AEC0-CE6250F00FE8}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Endpoints", "Endpoints", "{F0B2BD45-79AE-43AF-B737-3018CD95C6E3}" @@ -21,6 +19,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.DeviceHub_19.200. EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.Default_17.200.001", "Acumatica.Default_17.200.001\Acumatica.Default_17.200.001.csproj", "{8F2FDE89-9542-487F-AFD9-40DA3704DF92}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.Default_18.200.001", "Acumatica.Default_18.200.001\Acumatica.Default_18.200.001.csproj", "{B26A386B-F5DA-4679-ACBA-1541251B696B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -39,10 +39,6 @@ Global {25008D3F-3D78-4BB9-B14B-0A792AE97892}.Debug|Any CPU.Build.0 = Debug|Any CPU {25008D3F-3D78-4BB9-B14B-0A792AE97892}.Release|Any CPU.ActiveCfg = Release|Any CPU {25008D3F-3D78-4BB9-B14B-0A792AE97892}.Release|Any CPU.Build.0 = Release|Any CPU - {B26A386B-F5DA-4679-ACBA-1541251B696B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B26A386B-F5DA-4679-ACBA-1541251B696B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B26A386B-F5DA-4679-ACBA-1541251B696B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B26A386B-F5DA-4679-ACBA-1541251B696B}.Release|Any CPU.Build.0 = Release|Any CPU {99541823-473A-46E8-AEC0-CE6250F00FE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {99541823-473A-46E8-AEC0-CE6250F00FE8}.Debug|Any CPU.Build.0 = Debug|Any CPU {99541823-473A-46E8-AEC0-CE6250F00FE8}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -59,16 +55,20 @@ Global {8F2FDE89-9542-487F-AFD9-40DA3704DF92}.Debug|Any CPU.Build.0 = Debug|Any CPU {8F2FDE89-9542-487F-AFD9-40DA3704DF92}.Release|Any CPU.ActiveCfg = Release|Any CPU {8F2FDE89-9542-487F-AFD9-40DA3704DF92}.Release|Any CPU.Build.0 = Release|Any CPU + {B26A386B-F5DA-4679-ACBA-1541251B696B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B26A386B-F5DA-4679-ACBA-1541251B696B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B26A386B-F5DA-4679-ACBA-1541251B696B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B26A386B-F5DA-4679-ACBA-1541251B696B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {5B17772D-1F76-4A4B-A3F7-8C8CFFA93E29} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3} - {B26A386B-F5DA-4679-ACBA-1541251B696B} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3} {4FDDE01D-C802-4E52-9458-B614B1C8EFAB} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3} {638D4F3F-4496-44DC-8BAA-6C0F05516A22} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3} {8F2FDE89-9542-487F-AFD9-40DA3704DF92} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3} + {B26A386B-F5DA-4679-ACBA-1541251B696B} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A3A45447-0EDA-45D2-94CE-C3BFFBFE2717} diff --git a/Acumatica REST API Console Application/Acumatica REST API Example Console Application.csproj b/Acumatica REST API Console Application/Acumatica REST API Example Console Application.csproj index dec51b46..91e28729 100644 --- a/Acumatica REST API Console Application/Acumatica REST API Example Console Application.csproj +++ b/Acumatica REST API Console Application/Acumatica REST API Example Console Application.csproj @@ -61,14 +61,14 @@ {5b17772d-1f76-4a4b-a3f7-8c8cffa93e29} Acumatica.Auth + + {B26A386B-F5DA-4679-ACBA-1541251B696B} + Acumatica.Default_18.200.001 + {25008d3f-3d78-4bb9-b14b-0a792ae97892} Acumatica.RESTClient - - {B26A386B-F5DA-4679-ACBA-1541251B696B} - Acumatica.Default_18.200.001 - {99541823-473a-46e8-aec0-ce6250f00fe8} SOAPLikeWrapperForREST diff --git a/Acumatica.Default_17.200.001/Model/Account.cs b/Acumatica.Default_17.200.001/Model/Account.cs index 7e2c3842..390e7e9f 100644 --- a/Acumatica.Default_17.200.001/Model/Account.cs +++ b/Acumatica.Default_17.200.001/Model/Account.cs @@ -1,414 +1,69 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; namespace Acumatica.Default_17_200_001.Model { - /// - /// Account - /// - [DataContract] - public partial class Account : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountCD. - /// accountClass. - /// accountGroup. - /// accountID. - /// active. - /// cashAccount. - /// chartOfAccountsOrder. - /// consolidationAccount. - /// createdDateTime. - /// currencyID. - /// description. - /// lastModifiedDateTime. - /// postOption. - /// requireUnits. - /// revaluationRateType. - /// secured. - /// taxCategory. - /// type. - /// useDefaultSubaccount. - public Account(StringValue accountCD = default(StringValue), StringValue accountClass = default(StringValue), StringValue accountGroup = default(StringValue), IntValue accountID = default(IntValue), BooleanValue active = default(BooleanValue), BooleanValue cashAccount = default(BooleanValue), IntValue chartOfAccountsOrder = default(IntValue), StringValue consolidationAccount = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue postOption = default(StringValue), BooleanValue requireUnits = default(BooleanValue), StringValue revaluationRateType = default(StringValue), BooleanValue secured = default(BooleanValue), StringValue taxCategory = default(StringValue), StringValue type = default(StringValue), BooleanValue useDefaultSubaccount = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountCD = accountCD; - this.AccountClass = accountClass; - this.AccountGroup = accountGroup; - this.AccountID = accountID; - this.Active = active; - this.CashAccount = cashAccount; - this.ChartOfAccountsOrder = chartOfAccountsOrder; - this.ConsolidationAccount = consolidationAccount; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PostOption = postOption; - this.RequireUnits = requireUnits; - this.RevaluationRateType = revaluationRateType; - this.Secured = secured; - this.TaxCategory = taxCategory; - this.Type = type; - this.UseDefaultSubaccount = useDefaultSubaccount; - } - - /// - /// Gets or Sets AccountCD - /// - [DataMember(Name="AccountCD", EmitDefaultValue=false)] - public StringValue AccountCD { get; set; } - - /// - /// Gets or Sets AccountClass - /// - [DataMember(Name="AccountClass", EmitDefaultValue=false)] - public StringValue AccountClass { get; set; } - - /// - /// Gets or Sets AccountGroup - /// - [DataMember(Name="AccountGroup", EmitDefaultValue=false)] - public StringValue AccountGroup { get; set; } - - /// - /// Gets or Sets AccountID - /// - [DataMember(Name="AccountID", EmitDefaultValue=false)] - public IntValue AccountID { get; set; } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public BooleanValue CashAccount { get; set; } + [DataContract] + public partial class Account : Entity + { - /// - /// Gets or Sets ChartOfAccountsOrder - /// - [DataMember(Name="ChartOfAccountsOrder", EmitDefaultValue=false)] - public IntValue ChartOfAccountsOrder { get; set; } + [DataMember(Name="AccountCD", EmitDefaultValue=false)] + public StringValue AccountCD { get; set; } - /// - /// Gets or Sets ConsolidationAccount - /// - [DataMember(Name="ConsolidationAccount", EmitDefaultValue=false)] - public StringValue ConsolidationAccount { get; set; } + [DataMember(Name="AccountClass", EmitDefaultValue=false)] + public StringValue AccountClass { get; set; } - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } + [DataMember(Name="AccountGroup", EmitDefaultValue=false)] + public StringValue AccountGroup { get; set; } - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } + [DataMember(Name="AccountID", EmitDefaultValue=false)] + public IntValue AccountID { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public BooleanValue CashAccount { get; set; } - /// - /// Gets or Sets PostOption - /// - [DataMember(Name="PostOption", EmitDefaultValue=false)] - public StringValue PostOption { get; set; } + [DataMember(Name="ChartOfAccountsOrder", EmitDefaultValue=false)] + public IntValue ChartOfAccountsOrder { get; set; } - /// - /// Gets or Sets RequireUnits - /// - [DataMember(Name="RequireUnits", EmitDefaultValue=false)] - public BooleanValue RequireUnits { get; set; } + [DataMember(Name="ConsolidationAccount", EmitDefaultValue=false)] + public StringValue ConsolidationAccount { get; set; } - /// - /// Gets or Sets RevaluationRateType - /// - [DataMember(Name="RevaluationRateType", EmitDefaultValue=false)] - public StringValue RevaluationRateType { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets Secured - /// - [DataMember(Name="Secured", EmitDefaultValue=false)] - public BooleanValue Secured { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets or Sets UseDefaultSubaccount - /// - [DataMember(Name="UseDefaultSubaccount", EmitDefaultValue=false)] - public BooleanValue UseDefaultSubaccount { get; set; } + [DataMember(Name="PostOption", EmitDefaultValue=false)] + public StringValue PostOption { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Account {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountCD: ").Append(AccountCD).Append("\n"); - sb.Append(" AccountClass: ").Append(AccountClass).Append("\n"); - sb.Append(" AccountGroup: ").Append(AccountGroup).Append("\n"); - sb.Append(" AccountID: ").Append(AccountID).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" ChartOfAccountsOrder: ").Append(ChartOfAccountsOrder).Append("\n"); - sb.Append(" ConsolidationAccount: ").Append(ConsolidationAccount).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PostOption: ").Append(PostOption).Append("\n"); - sb.Append(" RequireUnits: ").Append(RequireUnits).Append("\n"); - sb.Append(" RevaluationRateType: ").Append(RevaluationRateType).Append("\n"); - sb.Append(" Secured: ").Append(Secured).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UseDefaultSubaccount: ").Append(UseDefaultSubaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="RequireUnits", EmitDefaultValue=false)] + public BooleanValue RequireUnits { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Account); - } + [DataMember(Name="RevaluationRateType", EmitDefaultValue=false)] + public StringValue RevaluationRateType { get; set; } - /// - /// Returns true if Account instances are equal - /// - /// Instance of Account to be compared - /// Boolean - public bool Equals(Account input) - { - if (input == null) - return false; + [DataMember(Name="Secured", EmitDefaultValue=false)] + public BooleanValue Secured { get; set; } - return base.Equals(input) && - ( - this.AccountCD == input.AccountCD || - (this.AccountCD != null && - this.AccountCD.Equals(input.AccountCD)) - ) && base.Equals(input) && - ( - this.AccountClass == input.AccountClass || - (this.AccountClass != null && - this.AccountClass.Equals(input.AccountClass)) - ) && base.Equals(input) && - ( - this.AccountGroup == input.AccountGroup || - (this.AccountGroup != null && - this.AccountGroup.Equals(input.AccountGroup)) - ) && base.Equals(input) && - ( - this.AccountID == input.AccountID || - (this.AccountID != null && - this.AccountID.Equals(input.AccountID)) - ) && base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.ChartOfAccountsOrder == input.ChartOfAccountsOrder || - (this.ChartOfAccountsOrder != null && - this.ChartOfAccountsOrder.Equals(input.ChartOfAccountsOrder)) - ) && base.Equals(input) && - ( - this.ConsolidationAccount == input.ConsolidationAccount || - (this.ConsolidationAccount != null && - this.ConsolidationAccount.Equals(input.ConsolidationAccount)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PostOption == input.PostOption || - (this.PostOption != null && - this.PostOption.Equals(input.PostOption)) - ) && base.Equals(input) && - ( - this.RequireUnits == input.RequireUnits || - (this.RequireUnits != null && - this.RequireUnits.Equals(input.RequireUnits)) - ) && base.Equals(input) && - ( - this.RevaluationRateType == input.RevaluationRateType || - (this.RevaluationRateType != null && - this.RevaluationRateType.Equals(input.RevaluationRateType)) - ) && base.Equals(input) && - ( - this.Secured == input.Secured || - (this.Secured != null && - this.Secured.Equals(input.Secured)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UseDefaultSubaccount == input.UseDefaultSubaccount || - (this.UseDefaultSubaccount != null && - this.UseDefaultSubaccount.Equals(input.UseDefaultSubaccount)) - ); - } + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountCD != null) - hashCode = hashCode * 59 + this.AccountCD.GetHashCode(); - if (this.AccountClass != null) - hashCode = hashCode * 59 + this.AccountClass.GetHashCode(); - if (this.AccountGroup != null) - hashCode = hashCode * 59 + this.AccountGroup.GetHashCode(); - if (this.AccountID != null) - hashCode = hashCode * 59 + this.AccountID.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.ChartOfAccountsOrder != null) - hashCode = hashCode * 59 + this.ChartOfAccountsOrder.GetHashCode(); - if (this.ConsolidationAccount != null) - hashCode = hashCode * 59 + this.ConsolidationAccount.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PostOption != null) - hashCode = hashCode * 59 + this.PostOption.GetHashCode(); - if (this.RequireUnits != null) - hashCode = hashCode * 59 + this.RequireUnits.GetHashCode(); - if (this.RevaluationRateType != null) - hashCode = hashCode * 59 + this.RevaluationRateType.GetHashCode(); - if (this.Secured != null) - hashCode = hashCode * 59 + this.Secured.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UseDefaultSubaccount != null) - hashCode = hashCode * 59 + this.UseDefaultSubaccount.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UseDefaultSubaccount", EmitDefaultValue=false)] + public BooleanValue UseDefaultSubaccount { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AccountByPeriodInquiry.cs b/Acumatica.Default_17.200.001/Model/AccountByPeriodInquiry.cs index 536807e2..ba9db130 100644 --- a/Acumatica.Default_17.200.001/Model/AccountByPeriodInquiry.cs +++ b/Acumatica.Default_17.200.001/Model/AccountByPeriodInquiry.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AccountByPeriodInquiry - /// - [DataContract] - public partial class AccountByPeriodInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// branchID. - /// financialYear. - /// ledger. - /// results. - /// subaccount. - public AccountByPeriodInquiry(StringValue account = default(StringValue), StringValue branchID = default(StringValue), StringValue financialYear = default(StringValue), StringValue ledger = default(StringValue), List results = default(List), StringValue subaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.BranchID = branchID; - this.FinancialYear = financialYear; - this.Ledger = ledger; - this.Results = results; - this.Subaccount = subaccount; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets FinancialYear - /// - [DataMember(Name="FinancialYear", EmitDefaultValue=false)] - public StringValue FinancialYear { get; set; } - - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public List Results { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataContract] + public partial class AccountByPeriodInquiry : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountByPeriodInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" FinancialYear: ").Append(FinancialYear).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountByPeriodInquiry); - } + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } - /// - /// Returns true if AccountByPeriodInquiry instances are equal - /// - /// Instance of AccountByPeriodInquiry to be compared - /// Boolean - public bool Equals(AccountByPeriodInquiry input) - { - if (input == null) - return false; + [DataMember(Name="FinancialYear", EmitDefaultValue=false)] + public StringValue FinancialYear { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.FinancialYear == input.FinancialYear || - (this.FinancialYear != null && - this.FinancialYear.Equals(input.FinancialYear)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ); - } + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.FinancialYear != null) - hashCode = hashCode * 59 + this.FinancialYear.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AccountByPeriodRow.cs b/Acumatica.Default_17.200.001/Model/AccountByPeriodRow.cs index fe80ba1c..d648c7d3 100644 --- a/Acumatica.Default_17.200.001/Model/AccountByPeriodRow.cs +++ b/Acumatica.Default_17.200.001/Model/AccountByPeriodRow.cs @@ -1,318 +1,51 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AccountByPeriodRow - /// - [DataContract] - public partial class AccountByPeriodRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// beginingBalance. - /// creditTotal. - /// currencyBeginingBalance. - /// currencyCreditTotal. - /// currencyDebitTotal. - /// currencyEndingBalance. - /// currencyID. - /// currencyPtdTotal. - /// debitTotal. - /// endingBalance. - /// ledgerID. - /// period. - /// ptdTotal. - public AccountByPeriodRow(DecimalValue beginingBalance = default(DecimalValue), DecimalValue creditTotal = default(DecimalValue), DecimalValue currencyBeginingBalance = default(DecimalValue), DecimalValue currencyCreditTotal = default(DecimalValue), DecimalValue currencyDebitTotal = default(DecimalValue), DecimalValue currencyEndingBalance = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue currencyPtdTotal = default(DecimalValue), DecimalValue debitTotal = default(DecimalValue), DecimalValue endingBalance = default(DecimalValue), IntValue ledgerID = default(IntValue), StringValue period = default(StringValue), DecimalValue ptdTotal = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BeginingBalance = beginingBalance; - this.CreditTotal = creditTotal; - this.CurrencyBeginingBalance = currencyBeginingBalance; - this.CurrencyCreditTotal = currencyCreditTotal; - this.CurrencyDebitTotal = currencyDebitTotal; - this.CurrencyEndingBalance = currencyEndingBalance; - this.CurrencyID = currencyID; - this.CurrencyPtdTotal = currencyPtdTotal; - this.DebitTotal = debitTotal; - this.EndingBalance = endingBalance; - this.LedgerID = ledgerID; - this.Period = period; - this.PtdTotal = ptdTotal; - } - - /// - /// Gets or Sets BeginingBalance - /// - [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] - public DecimalValue BeginingBalance { get; set; } - - /// - /// Gets or Sets CreditTotal - /// - [DataMember(Name="CreditTotal", EmitDefaultValue=false)] - public DecimalValue CreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyBeginingBalance - /// - [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyBeginingBalance { get; set; } - - /// - /// Gets or Sets CurrencyCreditTotal - /// - [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyCreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyDebitTotal - /// - [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyDebitTotal { get; set; } - - /// - /// Gets or Sets CurrencyEndingBalance - /// - [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyEndingBalance { get; set; } + [DataContract] + public partial class AccountByPeriodRow : Entity + { - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } + [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] + public DecimalValue BeginingBalance { get; set; } - /// - /// Gets or Sets CurrencyPtdTotal - /// - [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyPtdTotal { get; set; } + [DataMember(Name="CreditTotal", EmitDefaultValue=false)] + public DecimalValue CreditTotal { get; set; } - /// - /// Gets or Sets DebitTotal - /// - [DataMember(Name="DebitTotal", EmitDefaultValue=false)] - public DecimalValue DebitTotal { get; set; } + [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyBeginingBalance { get; set; } - /// - /// Gets or Sets EndingBalance - /// - [DataMember(Name="EndingBalance", EmitDefaultValue=false)] - public DecimalValue EndingBalance { get; set; } + [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyCreditTotal { get; set; } - /// - /// Gets or Sets LedgerID - /// - [DataMember(Name="LedgerID", EmitDefaultValue=false)] - public IntValue LedgerID { get; set; } + [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyDebitTotal { get; set; } - /// - /// Gets or Sets Period - /// - [DataMember(Name="Period", EmitDefaultValue=false)] - public StringValue Period { get; set; } + [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyEndingBalance { get; set; } - /// - /// Gets or Sets PtdTotal - /// - [DataMember(Name="PtdTotal", EmitDefaultValue=false)] - public DecimalValue PtdTotal { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountByPeriodRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BeginingBalance: ").Append(BeginingBalance).Append("\n"); - sb.Append(" CreditTotal: ").Append(CreditTotal).Append("\n"); - sb.Append(" CurrencyBeginingBalance: ").Append(CurrencyBeginingBalance).Append("\n"); - sb.Append(" CurrencyCreditTotal: ").Append(CurrencyCreditTotal).Append("\n"); - sb.Append(" CurrencyDebitTotal: ").Append(CurrencyDebitTotal).Append("\n"); - sb.Append(" CurrencyEndingBalance: ").Append(CurrencyEndingBalance).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyPtdTotal: ").Append(CurrencyPtdTotal).Append("\n"); - sb.Append(" DebitTotal: ").Append(DebitTotal).Append("\n"); - sb.Append(" EndingBalance: ").Append(EndingBalance).Append("\n"); - sb.Append(" LedgerID: ").Append(LedgerID).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" PtdTotal: ").Append(PtdTotal).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyPtdTotal { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountByPeriodRow); - } + [DataMember(Name="DebitTotal", EmitDefaultValue=false)] + public DecimalValue DebitTotal { get; set; } - /// - /// Returns true if AccountByPeriodRow instances are equal - /// - /// Instance of AccountByPeriodRow to be compared - /// Boolean - public bool Equals(AccountByPeriodRow input) - { - if (input == null) - return false; + [DataMember(Name="EndingBalance", EmitDefaultValue=false)] + public DecimalValue EndingBalance { get; set; } - return base.Equals(input) && - ( - this.BeginingBalance == input.BeginingBalance || - (this.BeginingBalance != null && - this.BeginingBalance.Equals(input.BeginingBalance)) - ) && base.Equals(input) && - ( - this.CreditTotal == input.CreditTotal || - (this.CreditTotal != null && - this.CreditTotal.Equals(input.CreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyBeginingBalance == input.CurrencyBeginingBalance || - (this.CurrencyBeginingBalance != null && - this.CurrencyBeginingBalance.Equals(input.CurrencyBeginingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyCreditTotal == input.CurrencyCreditTotal || - (this.CurrencyCreditTotal != null && - this.CurrencyCreditTotal.Equals(input.CurrencyCreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyDebitTotal == input.CurrencyDebitTotal || - (this.CurrencyDebitTotal != null && - this.CurrencyDebitTotal.Equals(input.CurrencyDebitTotal)) - ) && base.Equals(input) && - ( - this.CurrencyEndingBalance == input.CurrencyEndingBalance || - (this.CurrencyEndingBalance != null && - this.CurrencyEndingBalance.Equals(input.CurrencyEndingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyPtdTotal == input.CurrencyPtdTotal || - (this.CurrencyPtdTotal != null && - this.CurrencyPtdTotal.Equals(input.CurrencyPtdTotal)) - ) && base.Equals(input) && - ( - this.DebitTotal == input.DebitTotal || - (this.DebitTotal != null && - this.DebitTotal.Equals(input.DebitTotal)) - ) && base.Equals(input) && - ( - this.EndingBalance == input.EndingBalance || - (this.EndingBalance != null && - this.EndingBalance.Equals(input.EndingBalance)) - ) && base.Equals(input) && - ( - this.LedgerID == input.LedgerID || - (this.LedgerID != null && - this.LedgerID.Equals(input.LedgerID)) - ) && base.Equals(input) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && base.Equals(input) && - ( - this.PtdTotal == input.PtdTotal || - (this.PtdTotal != null && - this.PtdTotal.Equals(input.PtdTotal)) - ); - } + [DataMember(Name="LedgerID", EmitDefaultValue=false)] + public IntValue LedgerID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BeginingBalance != null) - hashCode = hashCode * 59 + this.BeginingBalance.GetHashCode(); - if (this.CreditTotal != null) - hashCode = hashCode * 59 + this.CreditTotal.GetHashCode(); - if (this.CurrencyBeginingBalance != null) - hashCode = hashCode * 59 + this.CurrencyBeginingBalance.GetHashCode(); - if (this.CurrencyCreditTotal != null) - hashCode = hashCode * 59 + this.CurrencyCreditTotal.GetHashCode(); - if (this.CurrencyDebitTotal != null) - hashCode = hashCode * 59 + this.CurrencyDebitTotal.GetHashCode(); - if (this.CurrencyEndingBalance != null) - hashCode = hashCode * 59 + this.CurrencyEndingBalance.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyPtdTotal != null) - hashCode = hashCode * 59 + this.CurrencyPtdTotal.GetHashCode(); - if (this.DebitTotal != null) - hashCode = hashCode * 59 + this.DebitTotal.GetHashCode(); - if (this.EndingBalance != null) - hashCode = hashCode * 59 + this.EndingBalance.GetHashCode(); - if (this.LedgerID != null) - hashCode = hashCode * 59 + this.LedgerID.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.PtdTotal != null) - hashCode = hashCode * 59 + this.PtdTotal.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Period", EmitDefaultValue=false)] + public StringValue Period { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="PtdTotal", EmitDefaultValue=false)] + public DecimalValue PtdTotal { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AccountBySubaccountInquiry.cs b/Acumatica.Default_17.200.001/Model/AccountBySubaccountInquiry.cs index 74a69ebf..db770528 100644 --- a/Acumatica.Default_17.200.001/Model/AccountBySubaccountInquiry.cs +++ b/Acumatica.Default_17.200.001/Model/AccountBySubaccountInquiry.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AccountBySubaccountInquiry - /// - [DataContract] - public partial class AccountBySubaccountInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// branch. - /// ledger. - /// period. - /// results. - /// subaccount. - public AccountBySubaccountInquiry(StringValue account = default(StringValue), StringValue branch = default(StringValue), StringValue ledger = default(StringValue), StringValue period = default(StringValue), List results = default(List), StringValue subaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Branch = branch; - this.Ledger = ledger; - this.Period = period; - this.Results = results; - this.Subaccount = subaccount; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } - - /// - /// Gets or Sets Period - /// - [DataMember(Name="Period", EmitDefaultValue=false)] - public StringValue Period { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public List Results { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataContract] + public partial class AccountBySubaccountInquiry : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountBySubaccountInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountBySubaccountInquiry); - } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Returns true if AccountBySubaccountInquiry instances are equal - /// - /// Instance of AccountBySubaccountInquiry to be compared - /// Boolean - public bool Equals(AccountBySubaccountInquiry input) - { - if (input == null) - return false; + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ); - } + [DataMember(Name="Period", EmitDefaultValue=false)] + public StringValue Period { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AccountBySubaccountRow.cs b/Acumatica.Default_17.200.001/Model/AccountBySubaccountRow.cs index 53f707bc..9bc6ec82 100644 --- a/Acumatica.Default_17.200.001/Model/AccountBySubaccountRow.cs +++ b/Acumatica.Default_17.200.001/Model/AccountBySubaccountRow.cs @@ -1,318 +1,51 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AccountBySubaccountRow - /// - [DataContract] - public partial class AccountBySubaccountRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// beginingBalance. - /// creditTotal. - /// currencyBeginingBalance. - /// currencyCreditTotal. - /// currencyDebitTotal. - /// currencyEndingBalance. - /// currencyID. - /// currencyPtdTotal. - /// debitTotal. - /// endingBalance. - /// ledgerID. - /// ptdTotal. - /// subaccount. - public AccountBySubaccountRow(DecimalValue beginingBalance = default(DecimalValue), DecimalValue creditTotal = default(DecimalValue), DecimalValue currencyBeginingBalance = default(DecimalValue), DecimalValue currencyCreditTotal = default(DecimalValue), DecimalValue currencyDebitTotal = default(DecimalValue), DecimalValue currencyEndingBalance = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue currencyPtdTotal = default(DecimalValue), DecimalValue debitTotal = default(DecimalValue), DecimalValue endingBalance = default(DecimalValue), IntValue ledgerID = default(IntValue), DecimalValue ptdTotal = default(DecimalValue), StringValue subaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BeginingBalance = beginingBalance; - this.CreditTotal = creditTotal; - this.CurrencyBeginingBalance = currencyBeginingBalance; - this.CurrencyCreditTotal = currencyCreditTotal; - this.CurrencyDebitTotal = currencyDebitTotal; - this.CurrencyEndingBalance = currencyEndingBalance; - this.CurrencyID = currencyID; - this.CurrencyPtdTotal = currencyPtdTotal; - this.DebitTotal = debitTotal; - this.EndingBalance = endingBalance; - this.LedgerID = ledgerID; - this.PtdTotal = ptdTotal; - this.Subaccount = subaccount; - } - - /// - /// Gets or Sets BeginingBalance - /// - [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] - public DecimalValue BeginingBalance { get; set; } - - /// - /// Gets or Sets CreditTotal - /// - [DataMember(Name="CreditTotal", EmitDefaultValue=false)] - public DecimalValue CreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyBeginingBalance - /// - [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyBeginingBalance { get; set; } - - /// - /// Gets or Sets CurrencyCreditTotal - /// - [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyCreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyDebitTotal - /// - [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyDebitTotal { get; set; } - - /// - /// Gets or Sets CurrencyEndingBalance - /// - [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyEndingBalance { get; set; } + [DataContract] + public partial class AccountBySubaccountRow : Entity + { - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } + [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] + public DecimalValue BeginingBalance { get; set; } - /// - /// Gets or Sets CurrencyPtdTotal - /// - [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyPtdTotal { get; set; } + [DataMember(Name="CreditTotal", EmitDefaultValue=false)] + public DecimalValue CreditTotal { get; set; } - /// - /// Gets or Sets DebitTotal - /// - [DataMember(Name="DebitTotal", EmitDefaultValue=false)] - public DecimalValue DebitTotal { get; set; } + [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyBeginingBalance { get; set; } - /// - /// Gets or Sets EndingBalance - /// - [DataMember(Name="EndingBalance", EmitDefaultValue=false)] - public DecimalValue EndingBalance { get; set; } + [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyCreditTotal { get; set; } - /// - /// Gets or Sets LedgerID - /// - [DataMember(Name="LedgerID", EmitDefaultValue=false)] - public IntValue LedgerID { get; set; } + [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyDebitTotal { get; set; } - /// - /// Gets or Sets PtdTotal - /// - [DataMember(Name="PtdTotal", EmitDefaultValue=false)] - public DecimalValue PtdTotal { get; set; } + [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyEndingBalance { get; set; } - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountBySubaccountRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BeginingBalance: ").Append(BeginingBalance).Append("\n"); - sb.Append(" CreditTotal: ").Append(CreditTotal).Append("\n"); - sb.Append(" CurrencyBeginingBalance: ").Append(CurrencyBeginingBalance).Append("\n"); - sb.Append(" CurrencyCreditTotal: ").Append(CurrencyCreditTotal).Append("\n"); - sb.Append(" CurrencyDebitTotal: ").Append(CurrencyDebitTotal).Append("\n"); - sb.Append(" CurrencyEndingBalance: ").Append(CurrencyEndingBalance).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyPtdTotal: ").Append(CurrencyPtdTotal).Append("\n"); - sb.Append(" DebitTotal: ").Append(DebitTotal).Append("\n"); - sb.Append(" EndingBalance: ").Append(EndingBalance).Append("\n"); - sb.Append(" LedgerID: ").Append(LedgerID).Append("\n"); - sb.Append(" PtdTotal: ").Append(PtdTotal).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyPtdTotal { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountBySubaccountRow); - } + [DataMember(Name="DebitTotal", EmitDefaultValue=false)] + public DecimalValue DebitTotal { get; set; } - /// - /// Returns true if AccountBySubaccountRow instances are equal - /// - /// Instance of AccountBySubaccountRow to be compared - /// Boolean - public bool Equals(AccountBySubaccountRow input) - { - if (input == null) - return false; + [DataMember(Name="EndingBalance", EmitDefaultValue=false)] + public DecimalValue EndingBalance { get; set; } - return base.Equals(input) && - ( - this.BeginingBalance == input.BeginingBalance || - (this.BeginingBalance != null && - this.BeginingBalance.Equals(input.BeginingBalance)) - ) && base.Equals(input) && - ( - this.CreditTotal == input.CreditTotal || - (this.CreditTotal != null && - this.CreditTotal.Equals(input.CreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyBeginingBalance == input.CurrencyBeginingBalance || - (this.CurrencyBeginingBalance != null && - this.CurrencyBeginingBalance.Equals(input.CurrencyBeginingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyCreditTotal == input.CurrencyCreditTotal || - (this.CurrencyCreditTotal != null && - this.CurrencyCreditTotal.Equals(input.CurrencyCreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyDebitTotal == input.CurrencyDebitTotal || - (this.CurrencyDebitTotal != null && - this.CurrencyDebitTotal.Equals(input.CurrencyDebitTotal)) - ) && base.Equals(input) && - ( - this.CurrencyEndingBalance == input.CurrencyEndingBalance || - (this.CurrencyEndingBalance != null && - this.CurrencyEndingBalance.Equals(input.CurrencyEndingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyPtdTotal == input.CurrencyPtdTotal || - (this.CurrencyPtdTotal != null && - this.CurrencyPtdTotal.Equals(input.CurrencyPtdTotal)) - ) && base.Equals(input) && - ( - this.DebitTotal == input.DebitTotal || - (this.DebitTotal != null && - this.DebitTotal.Equals(input.DebitTotal)) - ) && base.Equals(input) && - ( - this.EndingBalance == input.EndingBalance || - (this.EndingBalance != null && - this.EndingBalance.Equals(input.EndingBalance)) - ) && base.Equals(input) && - ( - this.LedgerID == input.LedgerID || - (this.LedgerID != null && - this.LedgerID.Equals(input.LedgerID)) - ) && base.Equals(input) && - ( - this.PtdTotal == input.PtdTotal || - (this.PtdTotal != null && - this.PtdTotal.Equals(input.PtdTotal)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ); - } + [DataMember(Name="LedgerID", EmitDefaultValue=false)] + public IntValue LedgerID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BeginingBalance != null) - hashCode = hashCode * 59 + this.BeginingBalance.GetHashCode(); - if (this.CreditTotal != null) - hashCode = hashCode * 59 + this.CreditTotal.GetHashCode(); - if (this.CurrencyBeginingBalance != null) - hashCode = hashCode * 59 + this.CurrencyBeginingBalance.GetHashCode(); - if (this.CurrencyCreditTotal != null) - hashCode = hashCode * 59 + this.CurrencyCreditTotal.GetHashCode(); - if (this.CurrencyDebitTotal != null) - hashCode = hashCode * 59 + this.CurrencyDebitTotal.GetHashCode(); - if (this.CurrencyEndingBalance != null) - hashCode = hashCode * 59 + this.CurrencyEndingBalance.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyPtdTotal != null) - hashCode = hashCode * 59 + this.CurrencyPtdTotal.GetHashCode(); - if (this.DebitTotal != null) - hashCode = hashCode * 59 + this.DebitTotal.GetHashCode(); - if (this.EndingBalance != null) - hashCode = hashCode * 59 + this.EndingBalance.GetHashCode(); - if (this.LedgerID != null) - hashCode = hashCode * 59 + this.LedgerID.GetHashCode(); - if (this.PtdTotal != null) - hashCode = hashCode * 59 + this.PtdTotal.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PtdTotal", EmitDefaultValue=false)] + public DecimalValue PtdTotal { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AccountDetailsInquiry.cs b/Acumatica.Default_17.200.001/Model/AccountDetailsInquiry.cs index 438bbddb..c3bd110a 100644 --- a/Acumatica.Default_17.200.001/Model/AccountDetailsInquiry.cs +++ b/Acumatica.Default_17.200.001/Model/AccountDetailsInquiry.cs @@ -1,382 +1,63 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AccountDetailsInquiry - /// - [DataContract] - public partial class AccountDetailsInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// beginingBalance. - /// branch. - /// endingBalance. - /// fromDate. - /// fromPeriod. - /// includeReclassified. - /// includeUnposted. - /// includeUnreleased. - /// ledger. - /// periodEndDate. - /// periodStartDate. - /// results. - /// subaccount. - /// toDate. - /// toPeriod. - /// turnover. - public AccountDetailsInquiry(StringValue account = default(StringValue), DecimalValue beginingBalance = default(DecimalValue), StringValue branch = default(StringValue), DecimalValue endingBalance = default(DecimalValue), DateTimeValue fromDate = default(DateTimeValue), StringValue fromPeriod = default(StringValue), BooleanValue includeReclassified = default(BooleanValue), BooleanValue includeUnposted = default(BooleanValue), BooleanValue includeUnreleased = default(BooleanValue), StringValue ledger = default(StringValue), DateTimeValue periodEndDate = default(DateTimeValue), DateTimeValue periodStartDate = default(DateTimeValue), List results = default(List), StringValue subaccount = default(StringValue), DateTimeValue toDate = default(DateTimeValue), StringValue toPeriod = default(StringValue), DecimalValue turnover = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.BeginingBalance = beginingBalance; - this.Branch = branch; - this.EndingBalance = endingBalance; - this.FromDate = fromDate; - this.FromPeriod = fromPeriod; - this.IncludeReclassified = includeReclassified; - this.IncludeUnposted = includeUnposted; - this.IncludeUnreleased = includeUnreleased; - this.Ledger = ledger; - this.PeriodEndDate = periodEndDate; - this.PeriodStartDate = periodStartDate; - this.Results = results; - this.Subaccount = subaccount; - this.ToDate = toDate; - this.ToPeriod = toPeriod; - this.Turnover = turnover; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets BeginingBalance - /// - [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] - public DecimalValue BeginingBalance { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets EndingBalance - /// - [DataMember(Name="EndingBalance", EmitDefaultValue=false)] - public DecimalValue EndingBalance { get; set; } - - /// - /// Gets or Sets FromDate - /// - [DataMember(Name="FromDate", EmitDefaultValue=false)] - public DateTimeValue FromDate { get; set; } - - /// - /// Gets or Sets FromPeriod - /// - [DataMember(Name="FromPeriod", EmitDefaultValue=false)] - public StringValue FromPeriod { get; set; } + [DataContract] + public partial class AccountDetailsInquiry : Entity + { - /// - /// Gets or Sets IncludeReclassified - /// - [DataMember(Name="IncludeReclassified", EmitDefaultValue=false)] - public BooleanValue IncludeReclassified { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Gets or Sets IncludeUnposted - /// - [DataMember(Name="IncludeUnposted", EmitDefaultValue=false)] - public BooleanValue IncludeUnposted { get; set; } + [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] + public DecimalValue BeginingBalance { get; set; } - /// - /// Gets or Sets IncludeUnreleased - /// - [DataMember(Name="IncludeUnreleased", EmitDefaultValue=false)] - public BooleanValue IncludeUnreleased { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } + [DataMember(Name="EndingBalance", EmitDefaultValue=false)] + public DecimalValue EndingBalance { get; set; } - /// - /// Gets or Sets PeriodEndDate - /// - [DataMember(Name="PeriodEndDate", EmitDefaultValue=false)] - public DateTimeValue PeriodEndDate { get; set; } + [DataMember(Name="FromDate", EmitDefaultValue=false)] + public DateTimeValue FromDate { get; set; } - /// - /// Gets or Sets PeriodStartDate - /// - [DataMember(Name="PeriodStartDate", EmitDefaultValue=false)] - public DateTimeValue PeriodStartDate { get; set; } + [DataMember(Name="FromPeriod", EmitDefaultValue=false)] + public StringValue FromPeriod { get; set; } - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public List Results { get; set; } + [DataMember(Name="IncludeReclassified", EmitDefaultValue=false)] + public BooleanValue IncludeReclassified { get; set; } - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataMember(Name="IncludeUnposted", EmitDefaultValue=false)] + public BooleanValue IncludeUnposted { get; set; } - /// - /// Gets or Sets ToDate - /// - [DataMember(Name="ToDate", EmitDefaultValue=false)] - public DateTimeValue ToDate { get; set; } + [DataMember(Name="IncludeUnreleased", EmitDefaultValue=false)] + public BooleanValue IncludeUnreleased { get; set; } - /// - /// Gets or Sets ToPeriod - /// - [DataMember(Name="ToPeriod", EmitDefaultValue=false)] - public StringValue ToPeriod { get; set; } + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } - /// - /// Gets or Sets Turnover - /// - [DataMember(Name="Turnover", EmitDefaultValue=false)] - public DecimalValue Turnover { get; set; } + [DataMember(Name="PeriodEndDate", EmitDefaultValue=false)] + public DateTimeValue PeriodEndDate { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountDetailsInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" BeginingBalance: ").Append(BeginingBalance).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" EndingBalance: ").Append(EndingBalance).Append("\n"); - sb.Append(" FromDate: ").Append(FromDate).Append("\n"); - sb.Append(" FromPeriod: ").Append(FromPeriod).Append("\n"); - sb.Append(" IncludeReclassified: ").Append(IncludeReclassified).Append("\n"); - sb.Append(" IncludeUnposted: ").Append(IncludeUnposted).Append("\n"); - sb.Append(" IncludeUnreleased: ").Append(IncludeUnreleased).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" PeriodEndDate: ").Append(PeriodEndDate).Append("\n"); - sb.Append(" PeriodStartDate: ").Append(PeriodStartDate).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" ToDate: ").Append(ToDate).Append("\n"); - sb.Append(" ToPeriod: ").Append(ToPeriod).Append("\n"); - sb.Append(" Turnover: ").Append(Turnover).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PeriodStartDate", EmitDefaultValue=false)] + public DateTimeValue PeriodStartDate { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountDetailsInquiry); - } + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } - /// - /// Returns true if AccountDetailsInquiry instances are equal - /// - /// Instance of AccountDetailsInquiry to be compared - /// Boolean - public bool Equals(AccountDetailsInquiry input) - { - if (input == null) - return false; + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.BeginingBalance == input.BeginingBalance || - (this.BeginingBalance != null && - this.BeginingBalance.Equals(input.BeginingBalance)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.EndingBalance == input.EndingBalance || - (this.EndingBalance != null && - this.EndingBalance.Equals(input.EndingBalance)) - ) && base.Equals(input) && - ( - this.FromDate == input.FromDate || - (this.FromDate != null && - this.FromDate.Equals(input.FromDate)) - ) && base.Equals(input) && - ( - this.FromPeriod == input.FromPeriod || - (this.FromPeriod != null && - this.FromPeriod.Equals(input.FromPeriod)) - ) && base.Equals(input) && - ( - this.IncludeReclassified == input.IncludeReclassified || - (this.IncludeReclassified != null && - this.IncludeReclassified.Equals(input.IncludeReclassified)) - ) && base.Equals(input) && - ( - this.IncludeUnposted == input.IncludeUnposted || - (this.IncludeUnposted != null && - this.IncludeUnposted.Equals(input.IncludeUnposted)) - ) && base.Equals(input) && - ( - this.IncludeUnreleased == input.IncludeUnreleased || - (this.IncludeUnreleased != null && - this.IncludeUnreleased.Equals(input.IncludeUnreleased)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.PeriodEndDate == input.PeriodEndDate || - (this.PeriodEndDate != null && - this.PeriodEndDate.Equals(input.PeriodEndDate)) - ) && base.Equals(input) && - ( - this.PeriodStartDate == input.PeriodStartDate || - (this.PeriodStartDate != null && - this.PeriodStartDate.Equals(input.PeriodStartDate)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.ToDate == input.ToDate || - (this.ToDate != null && - this.ToDate.Equals(input.ToDate)) - ) && base.Equals(input) && - ( - this.ToPeriod == input.ToPeriod || - (this.ToPeriod != null && - this.ToPeriod.Equals(input.ToPeriod)) - ) && base.Equals(input) && - ( - this.Turnover == input.Turnover || - (this.Turnover != null && - this.Turnover.Equals(input.Turnover)) - ); - } + [DataMember(Name="ToDate", EmitDefaultValue=false)] + public DateTimeValue ToDate { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.BeginingBalance != null) - hashCode = hashCode * 59 + this.BeginingBalance.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.EndingBalance != null) - hashCode = hashCode * 59 + this.EndingBalance.GetHashCode(); - if (this.FromDate != null) - hashCode = hashCode * 59 + this.FromDate.GetHashCode(); - if (this.FromPeriod != null) - hashCode = hashCode * 59 + this.FromPeriod.GetHashCode(); - if (this.IncludeReclassified != null) - hashCode = hashCode * 59 + this.IncludeReclassified.GetHashCode(); - if (this.IncludeUnposted != null) - hashCode = hashCode * 59 + this.IncludeUnposted.GetHashCode(); - if (this.IncludeUnreleased != null) - hashCode = hashCode * 59 + this.IncludeUnreleased.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.PeriodEndDate != null) - hashCode = hashCode * 59 + this.PeriodEndDate.GetHashCode(); - if (this.PeriodStartDate != null) - hashCode = hashCode * 59 + this.PeriodStartDate.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.ToDate != null) - hashCode = hashCode * 59 + this.ToDate.GetHashCode(); - if (this.ToPeriod != null) - hashCode = hashCode * 59 + this.ToPeriod.GetHashCode(); - if (this.Turnover != null) - hashCode = hashCode * 59 + this.Turnover.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ToPeriod", EmitDefaultValue=false)] + public StringValue ToPeriod { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Turnover", EmitDefaultValue=false)] + public DecimalValue Turnover { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AccountDetailsRow.cs b/Acumatica.Default_17.200.001/Model/AccountDetailsRow.cs index a9583ef5..ce5bf024 100644 --- a/Acumatica.Default_17.200.001/Model/AccountDetailsRow.cs +++ b/Acumatica.Default_17.200.001/Model/AccountDetailsRow.cs @@ -1,494 +1,84 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AccountDetailsRow - /// - [DataContract] - public partial class AccountDetailsRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// batchNbr. - /// beginingBalance. - /// branch. - /// creditAmount. - /// currencyBeginingBalance. - /// currencyCreditAmount. - /// currencyDebitAmount. - /// currencyEndingBalance. - /// currencyID. - /// debitAmount. - /// description. - /// endingBalance. - /// includedinReclassHistory. - /// inventoryID. - /// lineNbr. - /// module. - /// period. - /// reclassBatchNbr. - /// referenceNbr. - /// selected. - /// subaccount. - /// transactionDate. - /// vendorOrCustomer. - public AccountDetailsRow(StringValue account = default(StringValue), StringValue batchNbr = default(StringValue), DecimalValue beginingBalance = default(DecimalValue), StringValue branch = default(StringValue), DecimalValue creditAmount = default(DecimalValue), DecimalValue currencyBeginingBalance = default(DecimalValue), DecimalValue currencyCreditAmount = default(DecimalValue), DecimalValue currencyDebitAmount = default(DecimalValue), DecimalValue currencyEndingBalance = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue debitAmount = default(DecimalValue), StringValue description = default(StringValue), DecimalValue endingBalance = default(DecimalValue), BooleanValue includedinReclassHistory = default(BooleanValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue module = default(StringValue), StringValue period = default(StringValue), StringValue reclassBatchNbr = default(StringValue), StringValue referenceNbr = default(StringValue), BooleanValue selected = default(BooleanValue), StringValue subaccount = default(StringValue), DateTimeValue transactionDate = default(DateTimeValue), StringValue vendorOrCustomer = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.BatchNbr = batchNbr; - this.BeginingBalance = beginingBalance; - this.Branch = branch; - this.CreditAmount = creditAmount; - this.CurrencyBeginingBalance = currencyBeginingBalance; - this.CurrencyCreditAmount = currencyCreditAmount; - this.CurrencyDebitAmount = currencyDebitAmount; - this.CurrencyEndingBalance = currencyEndingBalance; - this.CurrencyID = currencyID; - this.DebitAmount = debitAmount; - this.Description = description; - this.EndingBalance = endingBalance; - this.IncludedinReclassHistory = includedinReclassHistory; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.Module = module; - this.Period = period; - this.ReclassBatchNbr = reclassBatchNbr; - this.ReferenceNbr = referenceNbr; - this.Selected = selected; - this.Subaccount = subaccount; - this.TransactionDate = transactionDate; - this.VendorOrCustomer = vendorOrCustomer; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets BeginingBalance - /// - [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] - public DecimalValue BeginingBalance { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CreditAmount - /// - [DataMember(Name="CreditAmount", EmitDefaultValue=false)] - public DecimalValue CreditAmount { get; set; } - - /// - /// Gets or Sets CurrencyBeginingBalance - /// - [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyBeginingBalance { get; set; } + [DataContract] + public partial class AccountDetailsRow : Entity + { - /// - /// Gets or Sets CurrencyCreditAmount - /// - [DataMember(Name="CurrencyCreditAmount", EmitDefaultValue=false)] - public DecimalValue CurrencyCreditAmount { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Gets or Sets CurrencyDebitAmount - /// - [DataMember(Name="CurrencyDebitAmount", EmitDefaultValue=false)] - public DecimalValue CurrencyDebitAmount { get; set; } + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } - /// - /// Gets or Sets CurrencyEndingBalance - /// - [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyEndingBalance { get; set; } + [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] + public DecimalValue BeginingBalance { get; set; } - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets DebitAmount - /// - [DataMember(Name="DebitAmount", EmitDefaultValue=false)] - public DecimalValue DebitAmount { get; set; } + [DataMember(Name="CreditAmount", EmitDefaultValue=false)] + public DecimalValue CreditAmount { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyBeginingBalance { get; set; } - /// - /// Gets or Sets EndingBalance - /// - [DataMember(Name="EndingBalance", EmitDefaultValue=false)] - public DecimalValue EndingBalance { get; set; } + [DataMember(Name="CurrencyCreditAmount", EmitDefaultValue=false)] + public DecimalValue CurrencyCreditAmount { get; set; } - /// - /// Gets or Sets IncludedinReclassHistory - /// - [DataMember(Name="IncludedinReclassHistory", EmitDefaultValue=false)] - public BooleanValue IncludedinReclassHistory { get; set; } + [DataMember(Name="CurrencyDebitAmount", EmitDefaultValue=false)] + public DecimalValue CurrencyDebitAmount { get; set; } - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } + [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyEndingBalance { get; set; } - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } + [DataMember(Name="DebitAmount", EmitDefaultValue=false)] + public DecimalValue DebitAmount { get; set; } - /// - /// Gets or Sets Period - /// - [DataMember(Name="Period", EmitDefaultValue=false)] - public StringValue Period { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets ReclassBatchNbr - /// - [DataMember(Name="ReclassBatchNbr", EmitDefaultValue=false)] - public StringValue ReclassBatchNbr { get; set; } + [DataMember(Name="EndingBalance", EmitDefaultValue=false)] + public DecimalValue EndingBalance { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="IncludedinReclassHistory", EmitDefaultValue=false)] + public BooleanValue IncludedinReclassHistory { get; set; } - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets TransactionDate - /// - [DataMember(Name="TransactionDate", EmitDefaultValue=false)] - public DateTimeValue TransactionDate { get; set; } + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } - /// - /// Gets or Sets VendorOrCustomer - /// - [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] - public StringValue VendorOrCustomer { get; set; } + [DataMember(Name="Period", EmitDefaultValue=false)] + public StringValue Period { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountDetailsRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" BeginingBalance: ").Append(BeginingBalance).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CreditAmount: ").Append(CreditAmount).Append("\n"); - sb.Append(" CurrencyBeginingBalance: ").Append(CurrencyBeginingBalance).Append("\n"); - sb.Append(" CurrencyCreditAmount: ").Append(CurrencyCreditAmount).Append("\n"); - sb.Append(" CurrencyDebitAmount: ").Append(CurrencyDebitAmount).Append("\n"); - sb.Append(" CurrencyEndingBalance: ").Append(CurrencyEndingBalance).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" DebitAmount: ").Append(DebitAmount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EndingBalance: ").Append(EndingBalance).Append("\n"); - sb.Append(" IncludedinReclassHistory: ").Append(IncludedinReclassHistory).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" ReclassBatchNbr: ").Append(ReclassBatchNbr).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" TransactionDate: ").Append(TransactionDate).Append("\n"); - sb.Append(" VendorOrCustomer: ").Append(VendorOrCustomer).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ReclassBatchNbr", EmitDefaultValue=false)] + public StringValue ReclassBatchNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountDetailsRow); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Returns true if AccountDetailsRow instances are equal - /// - /// Instance of AccountDetailsRow to be compared - /// Boolean - public bool Equals(AccountDetailsRow input) - { - if (input == null) - return false; + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.BeginingBalance == input.BeginingBalance || - (this.BeginingBalance != null && - this.BeginingBalance.Equals(input.BeginingBalance)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CreditAmount == input.CreditAmount || - (this.CreditAmount != null && - this.CreditAmount.Equals(input.CreditAmount)) - ) && base.Equals(input) && - ( - this.CurrencyBeginingBalance == input.CurrencyBeginingBalance || - (this.CurrencyBeginingBalance != null && - this.CurrencyBeginingBalance.Equals(input.CurrencyBeginingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyCreditAmount == input.CurrencyCreditAmount || - (this.CurrencyCreditAmount != null && - this.CurrencyCreditAmount.Equals(input.CurrencyCreditAmount)) - ) && base.Equals(input) && - ( - this.CurrencyDebitAmount == input.CurrencyDebitAmount || - (this.CurrencyDebitAmount != null && - this.CurrencyDebitAmount.Equals(input.CurrencyDebitAmount)) - ) && base.Equals(input) && - ( - this.CurrencyEndingBalance == input.CurrencyEndingBalance || - (this.CurrencyEndingBalance != null && - this.CurrencyEndingBalance.Equals(input.CurrencyEndingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.DebitAmount == input.DebitAmount || - (this.DebitAmount != null && - this.DebitAmount.Equals(input.DebitAmount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EndingBalance == input.EndingBalance || - (this.EndingBalance != null && - this.EndingBalance.Equals(input.EndingBalance)) - ) && base.Equals(input) && - ( - this.IncludedinReclassHistory == input.IncludedinReclassHistory || - (this.IncludedinReclassHistory != null && - this.IncludedinReclassHistory.Equals(input.IncludedinReclassHistory)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && base.Equals(input) && - ( - this.ReclassBatchNbr == input.ReclassBatchNbr || - (this.ReclassBatchNbr != null && - this.ReclassBatchNbr.Equals(input.ReclassBatchNbr)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.TransactionDate == input.TransactionDate || - (this.TransactionDate != null && - this.TransactionDate.Equals(input.TransactionDate)) - ) && base.Equals(input) && - ( - this.VendorOrCustomer == input.VendorOrCustomer || - (this.VendorOrCustomer != null && - this.VendorOrCustomer.Equals(input.VendorOrCustomer)) - ); - } + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.BeginingBalance != null) - hashCode = hashCode * 59 + this.BeginingBalance.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CreditAmount != null) - hashCode = hashCode * 59 + this.CreditAmount.GetHashCode(); - if (this.CurrencyBeginingBalance != null) - hashCode = hashCode * 59 + this.CurrencyBeginingBalance.GetHashCode(); - if (this.CurrencyCreditAmount != null) - hashCode = hashCode * 59 + this.CurrencyCreditAmount.GetHashCode(); - if (this.CurrencyDebitAmount != null) - hashCode = hashCode * 59 + this.CurrencyDebitAmount.GetHashCode(); - if (this.CurrencyEndingBalance != null) - hashCode = hashCode * 59 + this.CurrencyEndingBalance.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.DebitAmount != null) - hashCode = hashCode * 59 + this.DebitAmount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EndingBalance != null) - hashCode = hashCode * 59 + this.EndingBalance.GetHashCode(); - if (this.IncludedinReclassHistory != null) - hashCode = hashCode * 59 + this.IncludedinReclassHistory.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.ReclassBatchNbr != null) - hashCode = hashCode * 59 + this.ReclassBatchNbr.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.TransactionDate != null) - hashCode = hashCode * 59 + this.TransactionDate.GetHashCode(); - if (this.VendorOrCustomer != null) - hashCode = hashCode * 59 + this.VendorOrCustomer.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TransactionDate", EmitDefaultValue=false)] + public DateTimeValue TransactionDate { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] + public StringValue VendorOrCustomer { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AccountLocation.cs b/Acumatica.Default_17.200.001/Model/AccountLocation.cs index e02f7db2..3d281a7a 100644 --- a/Acumatica.Default_17.200.001/Model/AccountLocation.cs +++ b/Acumatica.Default_17.200.001/Model/AccountLocation.cs @@ -1,734 +1,129 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; namespace Acumatica.Default_17_200_001.Model { - /// - /// AccountLocation - /// - [DataContract] - public partial class AccountLocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// address. - /// addressSameAsMain. - /// addressValidated. - /// aRAccount. - /// aRSubaccount. - /// businessAccountID. - /// calendar. - /// cases. - /// contact. - /// defaultProject. - /// discountAccount. - /// discountSubaccount. - /// entityUsageType. - /// fedExGroundCollect. - /// fOBPoint. - /// freightAccount. - /// freightSubaccount. - /// insurance. - /// leadTimeInDays. - /// locationID. - /// locationName. - /// opportunities. - /// orderPriority. - /// priceClass. - /// residentialDelivery. - /// salesAccount. - /// salesSubaccount. - /// sameAsDefaultLocation. - /// saturdayDelivery. - /// shippingBranch. - /// shippingRule. - /// shippingTerms. - /// shippingZone. - /// shipVia. - /// taxExemptionNumber. - /// taxRegistrationID. - /// taxZone. - /// warehouse. - public AccountLocation(BooleanValue active = default(BooleanValue), Address address = default(Address), BooleanValue addressSameAsMain = default(BooleanValue), BooleanValue addressValidated = default(BooleanValue), StringValue aRAccount = default(StringValue), StringValue aRSubaccount = default(StringValue), StringValue businessAccountID = default(StringValue), StringValue calendar = default(StringValue), List cases = default(List), AccountLocationContact contact = default(AccountLocationContact), StringValue defaultProject = default(StringValue), StringValue discountAccount = default(StringValue), StringValue discountSubaccount = default(StringValue), StringValue entityUsageType = default(StringValue), BooleanValue fedExGroundCollect = default(BooleanValue), StringValue fOBPoint = default(StringValue), StringValue freightAccount = default(StringValue), StringValue freightSubaccount = default(StringValue), BooleanValue insurance = default(BooleanValue), ShortValue leadTimeInDays = default(ShortValue), StringValue locationID = default(StringValue), StringValue locationName = default(StringValue), List opportunities = default(List), ShortValue orderPriority = default(ShortValue), StringValue priceClass = default(StringValue), BooleanValue residentialDelivery = default(BooleanValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), BooleanValue sameAsDefaultLocation = default(BooleanValue), BooleanValue saturdayDelivery = default(BooleanValue), StringValue shippingBranch = default(StringValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shippingZone = default(StringValue), StringValue shipVia = default(StringValue), StringValue taxExemptionNumber = default(StringValue), StringValue taxRegistrationID = default(StringValue), StringValue taxZone = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Address = address; - this.AddressSameAsMain = addressSameAsMain; - this.AddressValidated = addressValidated; - this.ARAccount = aRAccount; - this.ARSubaccount = aRSubaccount; - this.BusinessAccountID = businessAccountID; - this.Calendar = calendar; - this.Cases = cases; - this.Contact = contact; - this.DefaultProject = defaultProject; - this.DiscountAccount = discountAccount; - this.DiscountSubaccount = discountSubaccount; - this.EntityUsageType = entityUsageType; - this.FedExGroundCollect = fedExGroundCollect; - this.FOBPoint = fOBPoint; - this.FreightAccount = freightAccount; - this.FreightSubaccount = freightSubaccount; - this.Insurance = insurance; - this.LeadTimeInDays = leadTimeInDays; - this.LocationID = locationID; - this.LocationName = locationName; - this.Opportunities = opportunities; - this.OrderPriority = orderPriority; - this.PriceClass = priceClass; - this.ResidentialDelivery = residentialDelivery; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.SameAsDefaultLocation = sameAsDefaultLocation; - this.SaturdayDelivery = saturdayDelivery; - this.ShippingBranch = shippingBranch; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShippingZone = shippingZone; - this.ShipVia = shipVia; - this.TaxExemptionNumber = taxExemptionNumber; - this.TaxRegistrationID = taxRegistrationID; - this.TaxZone = taxZone; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Address - /// - [DataMember(Name="Address", EmitDefaultValue=false)] - public Address Address { get; set; } - - /// - /// Gets or Sets AddressSameAsMain - /// - [DataMember(Name="AddressSameAsMain", EmitDefaultValue=false)] - public BooleanValue AddressSameAsMain { get; set; } - - /// - /// Gets or Sets AddressValidated - /// - [DataMember(Name="AddressValidated", EmitDefaultValue=false)] - public BooleanValue AddressValidated { get; set; } - - /// - /// Gets or Sets ARAccount - /// - [DataMember(Name="ARAccount", EmitDefaultValue=false)] - public StringValue ARAccount { get; set; } - - /// - /// Gets or Sets ARSubaccount - /// - [DataMember(Name="ARSubaccount", EmitDefaultValue=false)] - public StringValue ARSubaccount { get; set; } - - /// - /// Gets or Sets BusinessAccountID - /// - [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] - public StringValue BusinessAccountID { get; set; } - - /// - /// Gets or Sets Calendar - /// - [DataMember(Name="Calendar", EmitDefaultValue=false)] - public StringValue Calendar { get; set; } - - /// - /// Gets or Sets Cases - /// - [DataMember(Name="Cases", EmitDefaultValue=false)] - public List Cases { get; set; } - - /// - /// Gets or Sets Contact - /// - [DataMember(Name="Contact", EmitDefaultValue=false)] - public AccountLocationContact Contact { get; set; } - - /// - /// Gets or Sets DefaultProject - /// - [DataMember(Name="DefaultProject", EmitDefaultValue=false)] - public StringValue DefaultProject { get; set; } - - /// - /// Gets or Sets DiscountAccount - /// - [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] - public StringValue DiscountAccount { get; set; } - - /// - /// Gets or Sets DiscountSubaccount - /// - [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] - public StringValue DiscountSubaccount { get; set; } - - /// - /// Gets or Sets EntityUsageType - /// - [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] - public StringValue EntityUsageType { get; set; } - - /// - /// Gets or Sets FedExGroundCollect - /// - [DataMember(Name="FedExGroundCollect", EmitDefaultValue=false)] - public BooleanValue FedExGroundCollect { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets FreightAccount - /// - [DataMember(Name="FreightAccount", EmitDefaultValue=false)] - public StringValue FreightAccount { get; set; } - - /// - /// Gets or Sets FreightSubaccount - /// - [DataMember(Name="FreightSubaccount", EmitDefaultValue=false)] - public StringValue FreightSubaccount { get; set; } - - /// - /// Gets or Sets Insurance - /// - [DataMember(Name="Insurance", EmitDefaultValue=false)] - public BooleanValue Insurance { get; set; } - - /// - /// Gets or Sets LeadTimeInDays - /// - [DataMember(Name="LeadTimeInDays", EmitDefaultValue=false)] - public ShortValue LeadTimeInDays { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets Opportunities - /// - [DataMember(Name="Opportunities", EmitDefaultValue=false)] - public List Opportunities { get; set; } - - /// - /// Gets or Sets OrderPriority - /// - [DataMember(Name="OrderPriority", EmitDefaultValue=false)] - public ShortValue OrderPriority { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets SameAsDefaultLocation - /// - [DataMember(Name="SameAsDefaultLocation", EmitDefaultValue=false)] - public BooleanValue SameAsDefaultLocation { get; set; } - - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } - - /// - /// Gets or Sets ShippingBranch - /// - [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] - public StringValue ShippingBranch { get; set; } - - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShippingZone - /// - [DataMember(Name="ShippingZone", EmitDefaultValue=false)] - public StringValue ShippingZone { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets TaxExemptionNumber - /// - [DataMember(Name="TaxExemptionNumber", EmitDefaultValue=false)] - public StringValue TaxExemptionNumber { get; set; } - - /// - /// Gets or Sets TaxRegistrationID - /// - [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] - public StringValue TaxRegistrationID { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountLocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" AddressSameAsMain: ").Append(AddressSameAsMain).Append("\n"); - sb.Append(" AddressValidated: ").Append(AddressValidated).Append("\n"); - sb.Append(" ARAccount: ").Append(ARAccount).Append("\n"); - sb.Append(" ARSubaccount: ").Append(ARSubaccount).Append("\n"); - sb.Append(" BusinessAccountID: ").Append(BusinessAccountID).Append("\n"); - sb.Append(" Calendar: ").Append(Calendar).Append("\n"); - sb.Append(" Cases: ").Append(Cases).Append("\n"); - sb.Append(" Contact: ").Append(Contact).Append("\n"); - sb.Append(" DefaultProject: ").Append(DefaultProject).Append("\n"); - sb.Append(" DiscountAccount: ").Append(DiscountAccount).Append("\n"); - sb.Append(" DiscountSubaccount: ").Append(DiscountSubaccount).Append("\n"); - sb.Append(" EntityUsageType: ").Append(EntityUsageType).Append("\n"); - sb.Append(" FedExGroundCollect: ").Append(FedExGroundCollect).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" FreightAccount: ").Append(FreightAccount).Append("\n"); - sb.Append(" FreightSubaccount: ").Append(FreightSubaccount).Append("\n"); - sb.Append(" Insurance: ").Append(Insurance).Append("\n"); - sb.Append(" LeadTimeInDays: ").Append(LeadTimeInDays).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" Opportunities: ").Append(Opportunities).Append("\n"); - sb.Append(" OrderPriority: ").Append(OrderPriority).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" SameAsDefaultLocation: ").Append(SameAsDefaultLocation).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" ShippingBranch: ").Append(ShippingBranch).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZone: ").Append(ShippingZone).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" TaxExemptionNumber: ").Append(TaxExemptionNumber).Append("\n"); - sb.Append(" TaxRegistrationID: ").Append(TaxRegistrationID).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountLocation); - } - - /// - /// Returns true if AccountLocation instances are equal - /// - /// Instance of AccountLocation to be compared - /// Boolean - public bool Equals(AccountLocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && base.Equals(input) && - ( - this.AddressSameAsMain == input.AddressSameAsMain || - (this.AddressSameAsMain != null && - this.AddressSameAsMain.Equals(input.AddressSameAsMain)) - ) && base.Equals(input) && - ( - this.AddressValidated == input.AddressValidated || - (this.AddressValidated != null && - this.AddressValidated.Equals(input.AddressValidated)) - ) && base.Equals(input) && - ( - this.ARAccount == input.ARAccount || - (this.ARAccount != null && - this.ARAccount.Equals(input.ARAccount)) - ) && base.Equals(input) && - ( - this.ARSubaccount == input.ARSubaccount || - (this.ARSubaccount != null && - this.ARSubaccount.Equals(input.ARSubaccount)) - ) && base.Equals(input) && - ( - this.BusinessAccountID == input.BusinessAccountID || - (this.BusinessAccountID != null && - this.BusinessAccountID.Equals(input.BusinessAccountID)) - ) && base.Equals(input) && - ( - this.Calendar == input.Calendar || - (this.Calendar != null && - this.Calendar.Equals(input.Calendar)) - ) && base.Equals(input) && - ( - this.Cases == input.Cases || - this.Cases != null && - this.Cases.SequenceEqual(input.Cases) - ) && base.Equals(input) && - ( - this.Contact == input.Contact || - (this.Contact != null && - this.Contact.Equals(input.Contact)) - ) && base.Equals(input) && - ( - this.DefaultProject == input.DefaultProject || - (this.DefaultProject != null && - this.DefaultProject.Equals(input.DefaultProject)) - ) && base.Equals(input) && - ( - this.DiscountAccount == input.DiscountAccount || - (this.DiscountAccount != null && - this.DiscountAccount.Equals(input.DiscountAccount)) - ) && base.Equals(input) && - ( - this.DiscountSubaccount == input.DiscountSubaccount || - (this.DiscountSubaccount != null && - this.DiscountSubaccount.Equals(input.DiscountSubaccount)) - ) && base.Equals(input) && - ( - this.EntityUsageType == input.EntityUsageType || - (this.EntityUsageType != null && - this.EntityUsageType.Equals(input.EntityUsageType)) - ) && base.Equals(input) && - ( - this.FedExGroundCollect == input.FedExGroundCollect || - (this.FedExGroundCollect != null && - this.FedExGroundCollect.Equals(input.FedExGroundCollect)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.FreightAccount == input.FreightAccount || - (this.FreightAccount != null && - this.FreightAccount.Equals(input.FreightAccount)) - ) && base.Equals(input) && - ( - this.FreightSubaccount == input.FreightSubaccount || - (this.FreightSubaccount != null && - this.FreightSubaccount.Equals(input.FreightSubaccount)) - ) && base.Equals(input) && - ( - this.Insurance == input.Insurance || - (this.Insurance != null && - this.Insurance.Equals(input.Insurance)) - ) && base.Equals(input) && - ( - this.LeadTimeInDays == input.LeadTimeInDays || - (this.LeadTimeInDays != null && - this.LeadTimeInDays.Equals(input.LeadTimeInDays)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.Opportunities == input.Opportunities || - this.Opportunities != null && - this.Opportunities.SequenceEqual(input.Opportunities) - ) && base.Equals(input) && - ( - this.OrderPriority == input.OrderPriority || - (this.OrderPriority != null && - this.OrderPriority.Equals(input.OrderPriority)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.SameAsDefaultLocation == input.SameAsDefaultLocation || - (this.SameAsDefaultLocation != null && - this.SameAsDefaultLocation.Equals(input.SameAsDefaultLocation)) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.ShippingBranch == input.ShippingBranch || - (this.ShippingBranch != null && - this.ShippingBranch.Equals(input.ShippingBranch)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZone == input.ShippingZone || - (this.ShippingZone != null && - this.ShippingZone.Equals(input.ShippingZone)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.TaxExemptionNumber == input.TaxExemptionNumber || - (this.TaxExemptionNumber != null && - this.TaxExemptionNumber.Equals(input.TaxExemptionNumber)) - ) && base.Equals(input) && - ( - this.TaxRegistrationID == input.TaxRegistrationID || - (this.TaxRegistrationID != null && - this.TaxRegistrationID.Equals(input.TaxRegistrationID)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.AddressSameAsMain != null) - hashCode = hashCode * 59 + this.AddressSameAsMain.GetHashCode(); - if (this.AddressValidated != null) - hashCode = hashCode * 59 + this.AddressValidated.GetHashCode(); - if (this.ARAccount != null) - hashCode = hashCode * 59 + this.ARAccount.GetHashCode(); - if (this.ARSubaccount != null) - hashCode = hashCode * 59 + this.ARSubaccount.GetHashCode(); - if (this.BusinessAccountID != null) - hashCode = hashCode * 59 + this.BusinessAccountID.GetHashCode(); - if (this.Calendar != null) - hashCode = hashCode * 59 + this.Calendar.GetHashCode(); - if (this.Cases != null) - hashCode = hashCode * 59 + this.Cases.GetHashCode(); - if (this.Contact != null) - hashCode = hashCode * 59 + this.Contact.GetHashCode(); - if (this.DefaultProject != null) - hashCode = hashCode * 59 + this.DefaultProject.GetHashCode(); - if (this.DiscountAccount != null) - hashCode = hashCode * 59 + this.DiscountAccount.GetHashCode(); - if (this.DiscountSubaccount != null) - hashCode = hashCode * 59 + this.DiscountSubaccount.GetHashCode(); - if (this.EntityUsageType != null) - hashCode = hashCode * 59 + this.EntityUsageType.GetHashCode(); - if (this.FedExGroundCollect != null) - hashCode = hashCode * 59 + this.FedExGroundCollect.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.FreightAccount != null) - hashCode = hashCode * 59 + this.FreightAccount.GetHashCode(); - if (this.FreightSubaccount != null) - hashCode = hashCode * 59 + this.FreightSubaccount.GetHashCode(); - if (this.Insurance != null) - hashCode = hashCode * 59 + this.Insurance.GetHashCode(); - if (this.LeadTimeInDays != null) - hashCode = hashCode * 59 + this.LeadTimeInDays.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.Opportunities != null) - hashCode = hashCode * 59 + this.Opportunities.GetHashCode(); - if (this.OrderPriority != null) - hashCode = hashCode * 59 + this.OrderPriority.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.SameAsDefaultLocation != null) - hashCode = hashCode * 59 + this.SameAsDefaultLocation.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.ShippingBranch != null) - hashCode = hashCode * 59 + this.ShippingBranch.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZone != null) - hashCode = hashCode * 59 + this.ShippingZone.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.TaxExemptionNumber != null) - hashCode = hashCode * 59 + this.TaxExemptionNumber.GetHashCode(); - if (this.TaxRegistrationID != null) - hashCode = hashCode * 59 + this.TaxRegistrationID.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class AccountLocation : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Address", EmitDefaultValue=false)] + public Address Address { get; set; } + + [DataMember(Name="AddressSameAsMain", EmitDefaultValue=false)] + public BooleanValue AddressSameAsMain { get; set; } + + [DataMember(Name="AddressValidated", EmitDefaultValue=false)] + public BooleanValue AddressValidated { get; set; } + + [DataMember(Name="ARAccount", EmitDefaultValue=false)] + public StringValue ARAccount { get; set; } + + [DataMember(Name="ARSubaccount", EmitDefaultValue=false)] + public StringValue ARSubaccount { get; set; } + + [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] + public StringValue BusinessAccountID { get; set; } + + [DataMember(Name="Calendar", EmitDefaultValue=false)] + public StringValue Calendar { get; set; } + + [DataMember(Name="Cases", EmitDefaultValue=false)] + public List Cases { get; set; } + + [DataMember(Name="Contact", EmitDefaultValue=false)] + public AccountLocationContact Contact { get; set; } + + [DataMember(Name="DefaultProject", EmitDefaultValue=false)] + public StringValue DefaultProject { get; set; } + + [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] + public StringValue DiscountAccount { get; set; } + + [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] + public StringValue DiscountSubaccount { get; set; } + + [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] + public StringValue EntityUsageType { get; set; } + + [DataMember(Name="FedExGroundCollect", EmitDefaultValue=false)] + public BooleanValue FedExGroundCollect { get; set; } + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="FreightAccount", EmitDefaultValue=false)] + public StringValue FreightAccount { get; set; } + + [DataMember(Name="FreightSubaccount", EmitDefaultValue=false)] + public StringValue FreightSubaccount { get; set; } + + [DataMember(Name="Insurance", EmitDefaultValue=false)] + public BooleanValue Insurance { get; set; } + + [DataMember(Name="LeadTimeInDays", EmitDefaultValue=false)] + public ShortValue LeadTimeInDays { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } + + [DataMember(Name="Opportunities", EmitDefaultValue=false)] + public List Opportunities { get; set; } + + [DataMember(Name="OrderPriority", EmitDefaultValue=false)] + public ShortValue OrderPriority { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="SameAsDefaultLocation", EmitDefaultValue=false)] + public BooleanValue SameAsDefaultLocation { get; set; } + + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } + + [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] + public StringValue ShippingBranch { get; set; } + + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShippingZone", EmitDefaultValue=false)] + public StringValue ShippingZone { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="TaxExemptionNumber", EmitDefaultValue=false)] + public StringValue TaxExemptionNumber { get; set; } + + [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] + public StringValue TaxRegistrationID { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AccountLocationContact.cs b/Acumatica.Default_17.200.001/Model/AccountLocationContact.cs index 1282a031..055d9fdf 100644 --- a/Acumatica.Default_17.200.001/Model/AccountLocationContact.cs +++ b/Acumatica.Default_17.200.001/Model/AccountLocationContact.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AccountLocationContact - /// - [DataContract] - public partial class AccountLocationContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attention. - /// companyName. - /// email. - /// fax. - /// faxType. - /// phone1. - /// phone1Type. - /// phone2. - /// phone2Type. - /// sameAsMain. - /// webSite. - public AccountLocationContact(StringValue attention = default(StringValue), StringValue companyName = default(StringValue), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue faxType = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone1Type = default(StringValue), StringValue phone2 = default(StringValue), StringValue phone2Type = default(StringValue), BooleanValue sameAsMain = default(BooleanValue), StringValue webSite = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attention = attention; - this.CompanyName = companyName; - this.Email = email; - this.Fax = fax; - this.FaxType = faxType; - this.Phone1 = phone1; - this.Phone1Type = phone1Type; - this.Phone2 = phone2; - this.Phone2Type = phone2Type; - this.SameAsMain = sameAsMain; - this.WebSite = webSite; - } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets CompanyName - /// - [DataMember(Name="CompanyName", EmitDefaultValue=false)] - public StringValue CompanyName { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets FaxType - /// - [DataMember(Name="FaxType", EmitDefaultValue=false)] - public StringValue FaxType { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } + [DataContract] + public partial class AccountLocationContact : Entity + { - /// - /// Gets or Sets Phone1Type - /// - [DataMember(Name="Phone1Type", EmitDefaultValue=false)] - public StringValue Phone1Type { get; set; } + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public StringValue CompanyName { get; set; } - /// - /// Gets or Sets Phone2Type - /// - [DataMember(Name="Phone2Type", EmitDefaultValue=false)] - public StringValue Phone2Type { get; set; } + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - /// - /// Gets or Sets SameAsMain - /// - [DataMember(Name="SameAsMain", EmitDefaultValue=false)] - public BooleanValue SameAsMain { get; set; } + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } - /// - /// Gets or Sets WebSite - /// - [DataMember(Name="WebSite", EmitDefaultValue=false)] - public StringValue WebSite { get; set; } + [DataMember(Name="FaxType", EmitDefaultValue=false)] + public StringValue FaxType { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountLocationContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" FaxType: ").Append(FaxType).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone1Type: ").Append(Phone1Type).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" Phone2Type: ").Append(Phone2Type).Append("\n"); - sb.Append(" SameAsMain: ").Append(SameAsMain).Append("\n"); - sb.Append(" WebSite: ").Append(WebSite).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountLocationContact); - } + [DataMember(Name="Phone1Type", EmitDefaultValue=false)] + public StringValue Phone1Type { get; set; } - /// - /// Returns true if AccountLocationContact instances are equal - /// - /// Instance of AccountLocationContact to be compared - /// Boolean - public bool Equals(AccountLocationContact input) - { - if (input == null) - return false; + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } - return base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.CompanyName == input.CompanyName || - (this.CompanyName != null && - this.CompanyName.Equals(input.CompanyName)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.FaxType == input.FaxType || - (this.FaxType != null && - this.FaxType.Equals(input.FaxType)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone1Type == input.Phone1Type || - (this.Phone1Type != null && - this.Phone1Type.Equals(input.Phone1Type)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.Phone2Type == input.Phone2Type || - (this.Phone2Type != null && - this.Phone2Type.Equals(input.Phone2Type)) - ) && base.Equals(input) && - ( - this.SameAsMain == input.SameAsMain || - (this.SameAsMain != null && - this.SameAsMain.Equals(input.SameAsMain)) - ) && base.Equals(input) && - ( - this.WebSite == input.WebSite || - (this.WebSite != null && - this.WebSite.Equals(input.WebSite)) - ); - } + [DataMember(Name="Phone2Type", EmitDefaultValue=false)] + public StringValue Phone2Type { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.CompanyName != null) - hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.FaxType != null) - hashCode = hashCode * 59 + this.FaxType.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone1Type != null) - hashCode = hashCode * 59 + this.Phone1Type.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.Phone2Type != null) - hashCode = hashCode * 59 + this.Phone2Type.GetHashCode(); - if (this.SameAsMain != null) - hashCode = hashCode * 59 + this.SameAsMain.GetHashCode(); - if (this.WebSite != null) - hashCode = hashCode * 59 + this.WebSite.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="SameAsMain", EmitDefaultValue=false)] + public BooleanValue SameAsMain { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WebSite", EmitDefaultValue=false)] + public StringValue WebSite { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AccountSummaryInquiry.cs b/Acumatica.Default_17.200.001/Model/AccountSummaryInquiry.cs index 50f9936c..45c98868 100644 --- a/Acumatica.Default_17.200.001/Model/AccountSummaryInquiry.cs +++ b/Acumatica.Default_17.200.001/Model/AccountSummaryInquiry.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AccountSummaryInquiry - /// - [DataContract] - public partial class AccountSummaryInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountClass. - /// branch. - /// ledger. - /// period. - /// results. - /// subaccount. - public AccountSummaryInquiry(StringValue accountClass = default(StringValue), StringValue branch = default(StringValue), StringValue ledger = default(StringValue), StringValue period = default(StringValue), List results = default(List), StringValue subaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountClass = accountClass; - this.Branch = branch; - this.Ledger = ledger; - this.Period = period; - this.Results = results; - this.Subaccount = subaccount; - } - - /// - /// Gets or Sets AccountClass - /// - [DataMember(Name="AccountClass", EmitDefaultValue=false)] - public StringValue AccountClass { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } - - /// - /// Gets or Sets Period - /// - [DataMember(Name="Period", EmitDefaultValue=false)] - public StringValue Period { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public List Results { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataContract] + public partial class AccountSummaryInquiry : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountSummaryInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountClass: ").Append(AccountClass).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="AccountClass", EmitDefaultValue=false)] + public StringValue AccountClass { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountSummaryInquiry); - } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Returns true if AccountSummaryInquiry instances are equal - /// - /// Instance of AccountSummaryInquiry to be compared - /// Boolean - public bool Equals(AccountSummaryInquiry input) - { - if (input == null) - return false; + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } - return base.Equals(input) && - ( - this.AccountClass == input.AccountClass || - (this.AccountClass != null && - this.AccountClass.Equals(input.AccountClass)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ); - } + [DataMember(Name="Period", EmitDefaultValue=false)] + public StringValue Period { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountClass != null) - hashCode = hashCode * 59 + this.AccountClass.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AccountSummaryRow.cs b/Acumatica.Default_17.200.001/Model/AccountSummaryRow.cs index 5a9b3b42..5550d2c6 100644 --- a/Acumatica.Default_17.200.001/Model/AccountSummaryRow.cs +++ b/Acumatica.Default_17.200.001/Model/AccountSummaryRow.cs @@ -1,430 +1,72 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AccountSummaryRow - /// - [DataContract] - public partial class AccountSummaryRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// accountClass. - /// beginingBalance. - /// branch. - /// consolidationAccount. - /// creditTotal. - /// currencyBeginingBalance. - /// currencyCreditTotal. - /// currencyDebitTotal. - /// currencyEndingBalance. - /// currencyID. - /// currencyPtdTotal. - /// debitTotal. - /// description. - /// endingBalance. - /// lastActivity. - /// ledgerID. - /// ptdTotal. - /// subaccount. - /// type. - public AccountSummaryRow(StringValue account = default(StringValue), StringValue accountClass = default(StringValue), DecimalValue beginingBalance = default(DecimalValue), StringValue branch = default(StringValue), StringValue consolidationAccount = default(StringValue), DecimalValue creditTotal = default(DecimalValue), DecimalValue currencyBeginingBalance = default(DecimalValue), DecimalValue currencyCreditTotal = default(DecimalValue), DecimalValue currencyDebitTotal = default(DecimalValue), DecimalValue currencyEndingBalance = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue currencyPtdTotal = default(DecimalValue), DecimalValue debitTotal = default(DecimalValue), StringValue description = default(StringValue), DecimalValue endingBalance = default(DecimalValue), StringValue lastActivity = default(StringValue), IntValue ledgerID = default(IntValue), DecimalValue ptdTotal = default(DecimalValue), StringValue subaccount = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.AccountClass = accountClass; - this.BeginingBalance = beginingBalance; - this.Branch = branch; - this.ConsolidationAccount = consolidationAccount; - this.CreditTotal = creditTotal; - this.CurrencyBeginingBalance = currencyBeginingBalance; - this.CurrencyCreditTotal = currencyCreditTotal; - this.CurrencyDebitTotal = currencyDebitTotal; - this.CurrencyEndingBalance = currencyEndingBalance; - this.CurrencyID = currencyID; - this.CurrencyPtdTotal = currencyPtdTotal; - this.DebitTotal = debitTotal; - this.Description = description; - this.EndingBalance = endingBalance; - this.LastActivity = lastActivity; - this.LedgerID = ledgerID; - this.PtdTotal = ptdTotal; - this.Subaccount = subaccount; - this.Type = type; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets AccountClass - /// - [DataMember(Name="AccountClass", EmitDefaultValue=false)] - public StringValue AccountClass { get; set; } - - /// - /// Gets or Sets BeginingBalance - /// - [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] - public DecimalValue BeginingBalance { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ConsolidationAccount - /// - [DataMember(Name="ConsolidationAccount", EmitDefaultValue=false)] - public StringValue ConsolidationAccount { get; set; } - - /// - /// Gets or Sets CreditTotal - /// - [DataMember(Name="CreditTotal", EmitDefaultValue=false)] - public DecimalValue CreditTotal { get; set; } + [DataContract] + public partial class AccountSummaryRow : Entity + { - /// - /// Gets or Sets CurrencyBeginingBalance - /// - [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyBeginingBalance { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Gets or Sets CurrencyCreditTotal - /// - [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyCreditTotal { get; set; } + [DataMember(Name="AccountClass", EmitDefaultValue=false)] + public StringValue AccountClass { get; set; } - /// - /// Gets or Sets CurrencyDebitTotal - /// - [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyDebitTotal { get; set; } + [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] + public DecimalValue BeginingBalance { get; set; } - /// - /// Gets or Sets CurrencyEndingBalance - /// - [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyEndingBalance { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } + [DataMember(Name="ConsolidationAccount", EmitDefaultValue=false)] + public StringValue ConsolidationAccount { get; set; } - /// - /// Gets or Sets CurrencyPtdTotal - /// - [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyPtdTotal { get; set; } + [DataMember(Name="CreditTotal", EmitDefaultValue=false)] + public DecimalValue CreditTotal { get; set; } - /// - /// Gets or Sets DebitTotal - /// - [DataMember(Name="DebitTotal", EmitDefaultValue=false)] - public DecimalValue DebitTotal { get; set; } + [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyBeginingBalance { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyCreditTotal { get; set; } - /// - /// Gets or Sets EndingBalance - /// - [DataMember(Name="EndingBalance", EmitDefaultValue=false)] - public DecimalValue EndingBalance { get; set; } + [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyDebitTotal { get; set; } - /// - /// Gets or Sets LastActivity - /// - [DataMember(Name="LastActivity", EmitDefaultValue=false)] - public StringValue LastActivity { get; set; } + [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyEndingBalance { get; set; } - /// - /// Gets or Sets LedgerID - /// - [DataMember(Name="LedgerID", EmitDefaultValue=false)] - public IntValue LedgerID { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets PtdTotal - /// - [DataMember(Name="PtdTotal", EmitDefaultValue=false)] - public DecimalValue PtdTotal { get; set; } + [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyPtdTotal { get; set; } - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataMember(Name="DebitTotal", EmitDefaultValue=false)] + public DecimalValue DebitTotal { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountSummaryRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" AccountClass: ").Append(AccountClass).Append("\n"); - sb.Append(" BeginingBalance: ").Append(BeginingBalance).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ConsolidationAccount: ").Append(ConsolidationAccount).Append("\n"); - sb.Append(" CreditTotal: ").Append(CreditTotal).Append("\n"); - sb.Append(" CurrencyBeginingBalance: ").Append(CurrencyBeginingBalance).Append("\n"); - sb.Append(" CurrencyCreditTotal: ").Append(CurrencyCreditTotal).Append("\n"); - sb.Append(" CurrencyDebitTotal: ").Append(CurrencyDebitTotal).Append("\n"); - sb.Append(" CurrencyEndingBalance: ").Append(CurrencyEndingBalance).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyPtdTotal: ").Append(CurrencyPtdTotal).Append("\n"); - sb.Append(" DebitTotal: ").Append(DebitTotal).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EndingBalance: ").Append(EndingBalance).Append("\n"); - sb.Append(" LastActivity: ").Append(LastActivity).Append("\n"); - sb.Append(" LedgerID: ").Append(LedgerID).Append("\n"); - sb.Append(" PtdTotal: ").Append(PtdTotal).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="EndingBalance", EmitDefaultValue=false)] + public DecimalValue EndingBalance { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountSummaryRow); - } + [DataMember(Name="LastActivity", EmitDefaultValue=false)] + public StringValue LastActivity { get; set; } - /// - /// Returns true if AccountSummaryRow instances are equal - /// - /// Instance of AccountSummaryRow to be compared - /// Boolean - public bool Equals(AccountSummaryRow input) - { - if (input == null) - return false; + [DataMember(Name="LedgerID", EmitDefaultValue=false)] + public IntValue LedgerID { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.AccountClass == input.AccountClass || - (this.AccountClass != null && - this.AccountClass.Equals(input.AccountClass)) - ) && base.Equals(input) && - ( - this.BeginingBalance == input.BeginingBalance || - (this.BeginingBalance != null && - this.BeginingBalance.Equals(input.BeginingBalance)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ConsolidationAccount == input.ConsolidationAccount || - (this.ConsolidationAccount != null && - this.ConsolidationAccount.Equals(input.ConsolidationAccount)) - ) && base.Equals(input) && - ( - this.CreditTotal == input.CreditTotal || - (this.CreditTotal != null && - this.CreditTotal.Equals(input.CreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyBeginingBalance == input.CurrencyBeginingBalance || - (this.CurrencyBeginingBalance != null && - this.CurrencyBeginingBalance.Equals(input.CurrencyBeginingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyCreditTotal == input.CurrencyCreditTotal || - (this.CurrencyCreditTotal != null && - this.CurrencyCreditTotal.Equals(input.CurrencyCreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyDebitTotal == input.CurrencyDebitTotal || - (this.CurrencyDebitTotal != null && - this.CurrencyDebitTotal.Equals(input.CurrencyDebitTotal)) - ) && base.Equals(input) && - ( - this.CurrencyEndingBalance == input.CurrencyEndingBalance || - (this.CurrencyEndingBalance != null && - this.CurrencyEndingBalance.Equals(input.CurrencyEndingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyPtdTotal == input.CurrencyPtdTotal || - (this.CurrencyPtdTotal != null && - this.CurrencyPtdTotal.Equals(input.CurrencyPtdTotal)) - ) && base.Equals(input) && - ( - this.DebitTotal == input.DebitTotal || - (this.DebitTotal != null && - this.DebitTotal.Equals(input.DebitTotal)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EndingBalance == input.EndingBalance || - (this.EndingBalance != null && - this.EndingBalance.Equals(input.EndingBalance)) - ) && base.Equals(input) && - ( - this.LastActivity == input.LastActivity || - (this.LastActivity != null && - this.LastActivity.Equals(input.LastActivity)) - ) && base.Equals(input) && - ( - this.LedgerID == input.LedgerID || - (this.LedgerID != null && - this.LedgerID.Equals(input.LedgerID)) - ) && base.Equals(input) && - ( - this.PtdTotal == input.PtdTotal || - (this.PtdTotal != null && - this.PtdTotal.Equals(input.PtdTotal)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="PtdTotal", EmitDefaultValue=false)] + public DecimalValue PtdTotal { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.AccountClass != null) - hashCode = hashCode * 59 + this.AccountClass.GetHashCode(); - if (this.BeginingBalance != null) - hashCode = hashCode * 59 + this.BeginingBalance.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ConsolidationAccount != null) - hashCode = hashCode * 59 + this.ConsolidationAccount.GetHashCode(); - if (this.CreditTotal != null) - hashCode = hashCode * 59 + this.CreditTotal.GetHashCode(); - if (this.CurrencyBeginingBalance != null) - hashCode = hashCode * 59 + this.CurrencyBeginingBalance.GetHashCode(); - if (this.CurrencyCreditTotal != null) - hashCode = hashCode * 59 + this.CurrencyCreditTotal.GetHashCode(); - if (this.CurrencyDebitTotal != null) - hashCode = hashCode * 59 + this.CurrencyDebitTotal.GetHashCode(); - if (this.CurrencyEndingBalance != null) - hashCode = hashCode * 59 + this.CurrencyEndingBalance.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyPtdTotal != null) - hashCode = hashCode * 59 + this.CurrencyPtdTotal.GetHashCode(); - if (this.DebitTotal != null) - hashCode = hashCode * 59 + this.DebitTotal.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EndingBalance != null) - hashCode = hashCode * 59 + this.EndingBalance.GetHashCode(); - if (this.LastActivity != null) - hashCode = hashCode * 59 + this.LastActivity.GetHashCode(); - if (this.LedgerID != null) - hashCode = hashCode * 59 + this.LedgerID.GetHashCode(); - if (this.PtdTotal != null) - hashCode = hashCode * 59 + this.PtdTotal.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Actions/AcceptInvitationEvent.cs b/Acumatica.Default_17.200.001/Model/Actions/AcceptInvitationEvent.cs index dcb63ba7..ae8be010 100644 --- a/Acumatica.Default_17.200.001/Model/Actions/AcceptInvitationEvent.cs +++ b/Acumatica.Default_17.200.001/Model/Actions/AcceptInvitationEvent.cs @@ -1,137 +1,14 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - +using System.Runtime.Serialization; namespace Acumatica.Default_17_200_001.Model { - /// - /// AcceptInvitationEvent - /// - [DataContract] - public partial class AcceptInvitationEvent : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AcceptInvitationEvent() { } - /// - /// Initializes a new instance of the class. - /// - /// entity (required). - public AcceptInvitationEvent(Event entity = default(Event)) - { - // to ensure "entity" is required (not null) - if (entity == null) - { - throw new InvalidDataException("entity is a required property for AcceptInvitationEvent and cannot be null"); - } - else - { - this.Entity = entity; - } - } - - /// - /// Gets or Sets Entity - /// - [DataMember(Name="entity", EmitDefaultValue=false)] - public Event Entity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AcceptInvitationEvent {\n"); - sb.Append(" Entity: ").Append(Entity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AcceptInvitationEvent); - } - - /// - /// Returns true if AcceptInvitationEvent instances are equal - /// - /// Instance of AcceptInvitationEvent to be compared - /// Boolean - public bool Equals(AcceptInvitationEvent input) - { - if (input == null) - return false; - - return - ( - this.Entity == input.Entity || - (this.Entity != null && - this.Entity.Equals(input.Entity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Entity != null) - hashCode = hashCode * 59 + this.Entity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - + [DataContract] + public partial class AcceptInvitationEvent : EntityAction + { + public AcceptInvitationEvent(Event entity) : base(entity) + { } + public AcceptInvitationEvent() : base() + { } + } } diff --git a/Acumatica.Default_17.200.001/Model/Actions/ArchiveEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/ArchiveEmail.cs new file mode 100644 index 00000000..a524da80 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ArchiveEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ArchiveEmail : EntityAction + { + public ArchiveEmail(Email entity) : base(entity) + { } + public ArchiveEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/AssignCase.cs b/Acumatica.Default_17.200.001/Model/Actions/AssignCase.cs index 813e2a39..eb3375d5 100644 --- a/Acumatica.Default_17.200.001/Model/Actions/AssignCase.cs +++ b/Acumatica.Default_17.200.001/Model/Actions/AssignCase.cs @@ -1,137 +1,14 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - +using System.Runtime.Serialization; namespace Acumatica.Default_17_200_001.Model { - /// - /// AssignCase - /// - [DataContract] - public partial class AssignCase : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AssignCase() { } - /// - /// Initializes a new instance of the class. - /// - /// entity (required). - public AssignCase(Case entity = default(Case)) - { - // to ensure "entity" is required (not null) - if (entity == null) - { - throw new InvalidDataException("entity is a required property for AssignCase and cannot be null"); - } - else - { - this.Entity = entity; - } - } - - /// - /// Gets or Sets Entity - /// - [DataMember(Name="entity", EmitDefaultValue=false)] - public Case Entity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AssignCase {\n"); - sb.Append(" Entity: ").Append(Entity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AssignCase); - } - - /// - /// Returns true if AssignCase instances are equal - /// - /// Instance of AssignCase to be compared - /// Boolean - public bool Equals(AssignCase input) - { - if (input == null) - return false; - - return - ( - this.Entity == input.Entity || - (this.Entity != null && - this.Entity.Equals(input.Entity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Entity != null) - hashCode = hashCode * 59 + this.Entity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - + [DataContract] + public partial class AssignCase : EntityAction + { + public AssignCase(Case entity) : base(entity) + { } + public AssignCase() : base() + { } + } } diff --git a/Acumatica.Default_17.200.001/Model/Actions/CancelActivityEvent.cs b/Acumatica.Default_17.200.001/Model/Actions/CancelActivityEvent.cs index 90ef63ec..677d395e 100644 --- a/Acumatica.Default_17.200.001/Model/Actions/CancelActivityEvent.cs +++ b/Acumatica.Default_17.200.001/Model/Actions/CancelActivityEvent.cs @@ -1,137 +1,14 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - +using System.Runtime.Serialization; namespace Acumatica.Default_17_200_001.Model { - /// - /// CancelActivityEvent - /// - [DataContract] - public partial class CancelActivityEvent : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected CancelActivityEvent() { } - /// - /// Initializes a new instance of the class. - /// - /// entity (required). - public CancelActivityEvent(Event entity = default(Event)) - { - // to ensure "entity" is required (not null) - if (entity == null) - { - throw new InvalidDataException("entity is a required property for CancelActivityEvent and cannot be null"); - } - else - { - this.Entity = entity; - } - } - - /// - /// Gets or Sets Entity - /// - [DataMember(Name="entity", EmitDefaultValue=false)] - public Event Entity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CancelActivityEvent {\n"); - sb.Append(" Entity: ").Append(Entity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CancelActivityEvent); - } - - /// - /// Returns true if CancelActivityEvent instances are equal - /// - /// Instance of CancelActivityEvent to be compared - /// Boolean - public bool Equals(CancelActivityEvent input) - { - if (input == null) - return false; - - return - ( - this.Entity == input.Entity || - (this.Entity != null && - this.Entity.Equals(input.Entity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Entity != null) - hashCode = hashCode * 59 + this.Entity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - + [DataContract] + public partial class CancelActivityEvent : EntityAction + { + public CancelActivityEvent(Event entity) : base(entity) + { } + public CancelActivityEvent() : base() + { } + } } diff --git a/Acumatica.Default_17.200.001/Model/Actions/CancelActivityTask.cs b/Acumatica.Default_17.200.001/Model/Actions/CancelActivityTask.cs index 07c53f83..6f2d613d 100644 --- a/Acumatica.Default_17.200.001/Model/Actions/CancelActivityTask.cs +++ b/Acumatica.Default_17.200.001/Model/Actions/CancelActivityTask.cs @@ -1,137 +1,14 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - +using System.Runtime.Serialization; namespace Acumatica.Default_17_200_001.Model { - /// - /// CancelActivityTask - /// - [DataContract] - public partial class CancelActivityTask : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected CancelActivityTask() { } - /// - /// Initializes a new instance of the class. - /// - /// entity (required). - public CancelActivityTask(Task entity = default(Task)) - { - // to ensure "entity" is required (not null) - if (entity == null) - { - throw new InvalidDataException("entity is a required property for CancelActivityTask and cannot be null"); - } - else - { - this.Entity = entity; - } - } - - /// - /// Gets or Sets Entity - /// - [DataMember(Name="entity", EmitDefaultValue=false)] - public Task Entity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CancelActivityTask {\n"); - sb.Append(" Entity: ").Append(Entity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CancelActivityTask); - } - - /// - /// Returns true if CancelActivityTask instances are equal - /// - /// Instance of CancelActivityTask to be compared - /// Boolean - public bool Equals(CancelActivityTask input) - { - if (input == null) - return false; - - return - ( - this.Entity == input.Entity || - (this.Entity != null && - this.Entity.Equals(input.Entity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Entity != null) - hashCode = hashCode * 59 + this.Entity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - + [DataContract] + public partial class CancelActivityTask : EntityAction + { + public CancelActivityTask(Task entity) : base(entity) + { } + public CancelActivityTask() : base() + { } + } } diff --git a/Acumatica.Default_17.200.001/Model/Actions/CancelPhysicalInventory.cs b/Acumatica.Default_17.200.001/Model/Actions/CancelPhysicalInventory.cs index 3ab6ff33..7c968ef1 100644 --- a/Acumatica.Default_17.200.001/Model/Actions/CancelPhysicalInventory.cs +++ b/Acumatica.Default_17.200.001/Model/Actions/CancelPhysicalInventory.cs @@ -1,137 +1,14 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - +using System.Runtime.Serialization; namespace Acumatica.Default_17_200_001.Model { - /// - /// CancelPhysicalInventory - /// - [DataContract] - public partial class CancelPhysicalInventory : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected CancelPhysicalInventory() { } - /// - /// Initializes a new instance of the class. - /// - /// entity (required). - public CancelPhysicalInventory(PhysicalInventoryReview entity = default(PhysicalInventoryReview)) - { - // to ensure "entity" is required (not null) - if (entity == null) - { - throw new InvalidDataException("entity is a required property for CancelPhysicalInventory and cannot be null"); - } - else - { - this.Entity = entity; - } - } - - /// - /// Gets or Sets Entity - /// - [DataMember(Name="entity", EmitDefaultValue=false)] - public PhysicalInventoryReview Entity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CancelPhysicalInventory {\n"); - sb.Append(" Entity: ").Append(Entity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CancelPhysicalInventory); - } - - /// - /// Returns true if CancelPhysicalInventory instances are equal - /// - /// Instance of CancelPhysicalInventory to be compared - /// Boolean - public bool Equals(CancelPhysicalInventory input) - { - if (input == null) - return false; - - return - ( - this.Entity == input.Entity || - (this.Entity != null && - this.Entity.Equals(input.Entity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Entity != null) - hashCode = hashCode * 59 + this.Entity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - + [DataContract] + public partial class CancelPhysicalInventory : EntityAction + { + public CancelPhysicalInventory(PhysicalInventoryReview entity) : base(entity) + { } + public CancelPhysicalInventory() : base() + { } + } } diff --git a/Acumatica.Default_17.200.001/Model/Actions/CancelSalesOrder.cs b/Acumatica.Default_17.200.001/Model/Actions/CancelSalesOrder.cs index 0bb986fa..171d00e5 100644 --- a/Acumatica.Default_17.200.001/Model/Actions/CancelSalesOrder.cs +++ b/Acumatica.Default_17.200.001/Model/Actions/CancelSalesOrder.cs @@ -1,137 +1,14 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - +using System.Runtime.Serialization; namespace Acumatica.Default_17_200_001.Model { - /// - /// CancelSalesOrder - /// - [DataContract] - public partial class CancelSalesOrder : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected CancelSalesOrder() { } - /// - /// Initializes a new instance of the class. - /// - /// entity (required). - public CancelSalesOrder(SalesOrder entity = default(SalesOrder)) - { - // to ensure "entity" is required (not null) - if (entity == null) - { - throw new InvalidDataException("entity is a required property for CancelSalesOrder and cannot be null"); - } - else - { - this.Entity = entity; - } - } - - /// - /// Gets or Sets Entity - /// - [DataMember(Name="entity", EmitDefaultValue=false)] - public SalesOrder Entity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CancelSalesOrder {\n"); - sb.Append(" Entity: ").Append(Entity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CancelSalesOrder); - } - - /// - /// Returns true if CancelSalesOrder instances are equal - /// - /// Instance of CancelSalesOrder to be compared - /// Boolean - public bool Equals(CancelSalesOrder input) - { - if (input == null) - return false; - - return - ( - this.Entity == input.Entity || - (this.Entity != null && - this.Entity.Equals(input.Entity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Entity != null) - hashCode = hashCode * 59 + this.Entity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - + [DataContract] + public partial class CancelSalesOrder : EntityAction + { + public CancelSalesOrder(SalesOrder entity) : base(entity) + { } + public CancelSalesOrder() : base() + { } + } } diff --git a/Acumatica.Default_17.200.001/Model/Actions/CancelSendingEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/CancelSendingEmail.cs index 3ba80efc..e7ef3129 100644 --- a/Acumatica.Default_17.200.001/Model/Actions/CancelSendingEmail.cs +++ b/Acumatica.Default_17.200.001/Model/Actions/CancelSendingEmail.cs @@ -1,137 +1,14 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - +using System.Runtime.Serialization; namespace Acumatica.Default_17_200_001.Model { - /// - /// CancelSendingEmail - /// - [DataContract] - public partial class CancelSendingEmail : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected CancelSendingEmail() { } - /// - /// Initializes a new instance of the class. - /// - /// entity (required). - public CancelSendingEmail(Email entity = default(Email)) - { - // to ensure "entity" is required (not null) - if (entity == null) - { - throw new InvalidDataException("entity is a required property for CancelSendingEmail and cannot be null"); - } - else - { - this.Entity = entity; - } - } - - /// - /// Gets or Sets Entity - /// - [DataMember(Name="entity", EmitDefaultValue=false)] - public Email Entity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CancelSendingEmail {\n"); - sb.Append(" Entity: ").Append(Entity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CancelSendingEmail); - } - - /// - /// Returns true if CancelSendingEmail instances are equal - /// - /// Instance of CancelSendingEmail to be compared - /// Boolean - public bool Equals(CancelSendingEmail input) - { - if (input == null) - return false; - - return - ( - this.Entity == input.Entity || - (this.Entity != null && - this.Entity.Equals(input.Entity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Entity != null) - hashCode = hashCode * 59 + this.Entity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - + [DataContract] + public partial class CancelSendingEmail : EntityAction + { + public CancelSendingEmail(Email entity) : base(entity) + { } + public CancelSendingEmail() : base() + { } + } } diff --git a/Acumatica.Default_17.200.001/Model/Actions/CaptureCreditCardPayment.cs b/Acumatica.Default_17.200.001/Model/Actions/CaptureCreditCardPayment.cs index 94670ef8..d529cdbd 100644 --- a/Acumatica.Default_17.200.001/Model/Actions/CaptureCreditCardPayment.cs +++ b/Acumatica.Default_17.200.001/Model/Actions/CaptureCreditCardPayment.cs @@ -1,137 +1,14 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - +using System.Runtime.Serialization; namespace Acumatica.Default_17_200_001.Model { - /// - /// CaptureCreditCardPayment - /// - [DataContract] - public partial class CaptureCreditCardPayment : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected CaptureCreditCardPayment() { } - /// - /// Initializes a new instance of the class. - /// - /// entity (required). - public CaptureCreditCardPayment(Payment entity = default(Payment)) - { - // to ensure "entity" is required (not null) - if (entity == null) - { - throw new InvalidDataException("entity is a required property for CaptureCreditCardPayment and cannot be null"); - } - else - { - this.Entity = entity; - } - } - - /// - /// Gets or Sets Entity - /// - [DataMember(Name="entity", EmitDefaultValue=false)] - public Payment Entity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CaptureCreditCardPayment {\n"); - sb.Append(" Entity: ").Append(Entity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CaptureCreditCardPayment); - } - - /// - /// Returns true if CaptureCreditCardPayment instances are equal - /// - /// Instance of CaptureCreditCardPayment to be compared - /// Boolean - public bool Equals(CaptureCreditCardPayment input) - { - if (input == null) - return false; - - return - ( - this.Entity == input.Entity || - (this.Entity != null && - this.Entity.Equals(input.Entity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Entity != null) - hashCode = hashCode * 59 + this.Entity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - + [DataContract] + public partial class CaptureCreditCardPayment : EntityAction + { + public CaptureCreditCardPayment(Payment entity) : base(entity) + { } + public CaptureCreditCardPayment() : base() + { } + } } diff --git a/Acumatica.Default_17.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs b/Acumatica.Default_17.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs new file mode 100644 index 00000000..cfb68cc4 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CheckForBusinessAccountDuplicates : EntityAction + { + public CheckForBusinessAccountDuplicates(BusinessAccount entity) : base(entity) + { } + public CheckForBusinessAccountDuplicates() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CheckForContactDuplicates.cs b/Acumatica.Default_17.200.001/Model/Actions/CheckForContactDuplicates.cs new file mode 100644 index 00000000..b081f0d8 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CheckForContactDuplicates.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CheckForContactDuplicates : EntityAction + { + public CheckForContactDuplicates(Contact entity) : base(entity) + { } + public CheckForContactDuplicates() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CheckLeadForDuplicates.cs b/Acumatica.Default_17.200.001/Model/Actions/CheckLeadForDuplicates.cs new file mode 100644 index 00000000..cf25765d --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CheckLeadForDuplicates.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CheckLeadForDuplicates : EntityAction + { + public CheckLeadForDuplicates(Lead entity) : base(entity) + { } + public CheckLeadForDuplicates() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CloseContactAsDuplicate.cs b/Acumatica.Default_17.200.001/Model/Actions/CloseContactAsDuplicate.cs new file mode 100644 index 00000000..30383173 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CloseContactAsDuplicate.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CloseContactAsDuplicate : EntityAction + { + public CloseContactAsDuplicate(Contact entity) : base(entity) + { } + public CloseContactAsDuplicate() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CloseLeadAsDuplicate.cs b/Acumatica.Default_17.200.001/Model/Actions/CloseLeadAsDuplicate.cs new file mode 100644 index 00000000..792223b9 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CloseLeadAsDuplicate.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CloseLeadAsDuplicate : EntityAction + { + public CloseLeadAsDuplicate(Lead entity) : base(entity) + { } + public CloseLeadAsDuplicate() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CompleteAndFollowUpEvent.cs b/Acumatica.Default_17.200.001/Model/Actions/CompleteAndFollowUpEvent.cs new file mode 100644 index 00000000..e89ac69b --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CompleteAndFollowUpEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CompleteAndFollowUpEvent : EntityAction + { + public CompleteAndFollowUpEvent(Event entity) : base(entity) + { } + public CompleteAndFollowUpEvent() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CompleteAndFollowUpTask.cs b/Acumatica.Default_17.200.001/Model/Actions/CompleteAndFollowUpTask.cs new file mode 100644 index 00000000..a7c2000f --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CompleteAndFollowUpTask.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CompleteAndFollowUpTask : EntityAction + { + public CompleteAndFollowUpTask(Task entity) : base(entity) + { } + public CompleteAndFollowUpTask() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CompleteEvent.cs b/Acumatica.Default_17.200.001/Model/Actions/CompleteEvent.cs new file mode 100644 index 00000000..aa664e40 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CompleteEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CompleteEvent : EntityAction + { + public CompleteEvent(Event entity) : base(entity) + { } + public CompleteEvent() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CompletePhysicalInventory.cs b/Acumatica.Default_17.200.001/Model/Actions/CompletePhysicalInventory.cs new file mode 100644 index 00000000..78fd7a1e --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CompletePhysicalInventory.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CompletePhysicalInventory : EntityAction + { + public CompletePhysicalInventory(PhysicalInventoryReview entity) : base(entity) + { } + public CompletePhysicalInventory() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CompleteTask.cs b/Acumatica.Default_17.200.001/Model/Actions/CompleteTask.cs new file mode 100644 index 00000000..a1dd999b --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CompleteTask.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CompleteTask : EntityAction + { + public CompleteTask(Task entity) : base(entity) + { } + public CompleteTask() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ConfirmShipment.cs b/Acumatica.Default_17.200.001/Model/Actions/ConfirmShipment.cs new file mode 100644 index 00000000..dbca7c11 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ConfirmShipment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ConfirmShipment : EntityAction + { + public ConfirmShipment(Shipment entity) : base(entity) + { } + public ConfirmShipment() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs b/Acumatica.Default_17.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs new file mode 100644 index 00000000..88817a26 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ConvertBusinessAccountToCustomer : EntityAction + { + public ConvertBusinessAccountToCustomer(BusinessAccount entity) : base(entity) + { } + public ConvertBusinessAccountToCustomer() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs b/Acumatica.Default_17.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs new file mode 100644 index 00000000..639280c4 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ConvertBusinessAccountToVendor : EntityAction + { + public ConvertBusinessAccountToVendor(BusinessAccount entity) : base(entity) + { } + public ConvertBusinessAccountToVendor() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ConvertLeadToContact.cs b/Acumatica.Default_17.200.001/Model/Actions/ConvertLeadToContact.cs new file mode 100644 index 00000000..fe5b8f81 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ConvertLeadToContact.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ConvertLeadToContact : EntityAction + { + public ConvertLeadToContact(Lead entity) : base(entity) + { } + public ConvertLeadToContact() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ConvertLeadToOpportunity.cs b/Acumatica.Default_17.200.001/Model/Actions/ConvertLeadToOpportunity.cs new file mode 100644 index 00000000..0479ee54 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ConvertLeadToOpportunity.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ConvertLeadToOpportunity : EntityAction + { + public ConvertLeadToOpportunity(Lead entity) : base(entity) + { } + public ConvertLeadToOpportunity() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CopyFromCompany.cs b/Acumatica.Default_17.200.001/Model/Actions/CopyFromCompany.cs new file mode 100644 index 00000000..081c8e14 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CopyFromCompany.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CopyFromCompany : EntityAction + { + public CopyFromCompany(Contact entity) : base(entity) + { } + public CopyFromCompany() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CorrectShipment.cs b/Acumatica.Default_17.200.001/Model/Actions/CorrectShipment.cs new file mode 100644 index 00000000..4714ba8b --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CorrectShipment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CorrectShipment : EntityAction + { + public CorrectShipment(Shipment entity) : base(entity) + { } + public CorrectShipment() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CreateCaseEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/CreateCaseEmail.cs new file mode 100644 index 00000000..9f4bdef8 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CreateCaseEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CreateCaseEmail : EntityAction + { + public CreateCaseEmail(Email entity) : base(entity) + { } + public CreateCaseEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CreateContactEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/CreateContactEmail.cs new file mode 100644 index 00000000..f80c860e --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CreateContactEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CreateContactEmail : EntityAction + { + public CreateContactEmail(Email entity) : base(entity) + { } + public CreateContactEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CreateContactFromOpportunity.cs b/Acumatica.Default_17.200.001/Model/Actions/CreateContactFromOpportunity.cs new file mode 100644 index 00000000..e3ab2069 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CreateContactFromOpportunity.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CreateContactFromOpportunity : EntityAction + { + public CreateContactFromOpportunity(Opportunity entity) : base(entity) + { } + public CreateContactFromOpportunity() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CreateEventEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/CreateEventEmail.cs new file mode 100644 index 00000000..2486b9f9 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CreateEventEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CreateEventEmail : EntityAction + { + public CreateEventEmail(Email entity) : base(entity) + { } + public CreateEventEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CreateExpenseReceiptEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/CreateExpenseReceiptEmail.cs new file mode 100644 index 00000000..c3d92027 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CreateExpenseReceiptEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CreateExpenseReceiptEmail : EntityAction + { + public CreateExpenseReceiptEmail(Email entity) : base(entity) + { } + public CreateExpenseReceiptEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CreateLeadEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/CreateLeadEmail.cs new file mode 100644 index 00000000..3b19e00a --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CreateLeadEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CreateLeadEmail : EntityAction + { + public CreateLeadEmail(Email entity) : base(entity) + { } + public CreateLeadEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CreateOpportunityEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/CreateOpportunityEmail.cs new file mode 100644 index 00000000..3140a311 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CreateOpportunityEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CreateOpportunityEmail : EntityAction + { + public CreateOpportunityEmail(Email entity) : base(entity) + { } + public CreateOpportunityEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CreateOpportunityInvoice.cs b/Acumatica.Default_17.200.001/Model/Actions/CreateOpportunityInvoice.cs new file mode 100644 index 00000000..1e534c8d --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CreateOpportunityInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CreateOpportunityInvoice : EntityAction + { + public CreateOpportunityInvoice(Opportunity entity) : base(entity) + { } + public CreateOpportunityInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/CreateTaskEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/CreateTaskEmail.cs new file mode 100644 index 00000000..771bc426 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/CreateTaskEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class CreateTaskEmail : EntityAction + { + public CreateTaskEmail(Email entity) : base(entity) + { } + public CreateTaskEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/DownloadEmlFileEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/DownloadEmlFileEmail.cs new file mode 100644 index 00000000..8808fa09 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/DownloadEmlFileEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class DownloadEmlFileEmail : EntityAction + { + public DownloadEmlFileEmail(Email entity) : base(entity) + { } + public DownloadEmlFileEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ExportCardEvent.cs b/Acumatica.Default_17.200.001/Model/Actions/ExportCardEvent.cs new file mode 100644 index 00000000..0eccd39c --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ExportCardEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ExportCardEvent : EntityAction + { + public ExportCardEvent(Event entity) : base(entity) + { } + public ExportCardEvent() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/FinishCountingPhysicalInventory.cs b/Acumatica.Default_17.200.001/Model/Actions/FinishCountingPhysicalInventory.cs new file mode 100644 index 00000000..f0efef83 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/FinishCountingPhysicalInventory.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class FinishCountingPhysicalInventory : EntityAction + { + public FinishCountingPhysicalInventory(PhysicalInventoryReview entity) : base(entity) + { } + public FinishCountingPhysicalInventory() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/GeneratePeriods.cs b/Acumatica.Default_17.200.001/Model/Actions/GeneratePeriods.cs new file mode 100644 index 00000000..3d6d235a --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/GeneratePeriods.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class GeneratePeriods : EntityAction + { + public GeneratePeriods(FinancialPeriod entity) : base(entity) + { } + public GeneratePeriods() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/InviteAllEvent.cs b/Acumatica.Default_17.200.001/Model/Actions/InviteAllEvent.cs new file mode 100644 index 00000000..60b27341 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/InviteAllEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class InviteAllEvent : EntityAction + { + public InviteAllEvent(Event entity) : base(entity) + { } + public InviteAllEvent() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/InviteEvent.cs b/Acumatica.Default_17.200.001/Model/Actions/InviteEvent.cs new file mode 100644 index 00000000..fb89c1bc --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/InviteEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class InviteEvent : EntityAction + { + public InviteEvent(Event entity) : base(entity) + { } + public InviteEvent() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs b/Acumatica.Default_17.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs new file mode 100644 index 00000000..98b0977e --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class MarkBusinessAccountAsValidated : EntityAction + { + public MarkBusinessAccountAsValidated(BusinessAccount entity) : base(entity) + { } + public MarkBusinessAccountAsValidated() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/MarkContactAsValidated.cs b/Acumatica.Default_17.200.001/Model/Actions/MarkContactAsValidated.cs new file mode 100644 index 00000000..dbe219cd --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/MarkContactAsValidated.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class MarkContactAsValidated : EntityAction + { + public MarkContactAsValidated(Contact entity) : base(entity) + { } + public MarkContactAsValidated() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/MarkLeadAsValidated.cs b/Acumatica.Default_17.200.001/Model/Actions/MarkLeadAsValidated.cs new file mode 100644 index 00000000..dd5bd8e7 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/MarkLeadAsValidated.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class MarkLeadAsValidated : EntityAction + { + public MarkLeadAsValidated(Lead entity) : base(entity) + { } + public MarkLeadAsValidated() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/PrepareSalesInvoice.cs b/Acumatica.Default_17.200.001/Model/Actions/PrepareSalesInvoice.cs new file mode 100644 index 00000000..7b9a6b9f --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/PrepareSalesInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class PrepareSalesInvoice : EntityAction + { + public PrepareSalesInvoice(SalesOrder entity) : base(entity) + { } + public PrepareSalesInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ProcessAllEmailProcessing.cs b/Acumatica.Default_17.200.001/Model/Actions/ProcessAllEmailProcessing.cs new file mode 100644 index 00000000..d2492558 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ProcessAllEmailProcessing.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ProcessAllEmailProcessing : EntityAction + { + public ProcessAllEmailProcessing(EmailProcessing entity) : base(entity) + { } + public ProcessAllEmailProcessing() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ProcessEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/ProcessEmail.cs new file mode 100644 index 00000000..fe3a302b --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ProcessEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ProcessEmail : EntityAction + { + public ProcessEmail(Email entity) : base(entity) + { } + public ProcessEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ProcessEmailProcessing.cs b/Acumatica.Default_17.200.001/Model/Actions/ProcessEmailProcessing.cs new file mode 100644 index 00000000..c0072994 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ProcessEmailProcessing.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ProcessEmailProcessing : EntityAction + { + public ProcessEmailProcessing(EmailProcessing entity) : base(entity) + { } + public ProcessEmailProcessing() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/RejectInvitationEvent.cs b/Acumatica.Default_17.200.001/Model/Actions/RejectInvitationEvent.cs new file mode 100644 index 00000000..928adbb9 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/RejectInvitationEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class RejectInvitationEvent : EntityAction + { + public RejectInvitationEvent(Event entity) : base(entity) + { } + public RejectInvitationEvent() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseAdjustment.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseAdjustment.cs new file mode 100644 index 00000000..cf9c7016 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseAdjustment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseAdjustment : EntityAction + { + public ReleaseAdjustment(Adjustment entity) : base(entity) + { } + public ReleaseAdjustment() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseBill.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseBill.cs new file mode 100644 index 00000000..09e0b45c --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseBill.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseBill : EntityAction + { + public ReleaseBill(Bill entity) : base(entity) + { } + public ReleaseBill() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseCase.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseCase.cs new file mode 100644 index 00000000..b037ae91 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseCase.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseCase : EntityAction + { + public ReleaseCase(Case entity) : base(entity) + { } + public ReleaseCase() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseCashSale.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseCashSale.cs new file mode 100644 index 00000000..d2882474 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseCashSale.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseCashSale : EntityAction + { + public ReleaseCashSale(CashSale entity) : base(entity) + { } + public ReleaseCashSale() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseCheck.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseCheck.cs new file mode 100644 index 00000000..e0453ce5 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseCheck.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseCheck : EntityAction + { + public ReleaseCheck(Check entity) : base(entity) + { } + public ReleaseCheck() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseInventoryReceipt.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseInventoryReceipt.cs new file mode 100644 index 00000000..a35320d4 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseInventoryReceipt.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseInventoryReceipt : EntityAction + { + public ReleaseInventoryReceipt(InventoryReceipt entity) : base(entity) + { } + public ReleaseInventoryReceipt() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseInvoice.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseInvoice.cs new file mode 100644 index 00000000..01f3b59f --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseInvoice : EntityAction + { + public ReleaseInvoice(Invoice entity) : base(entity) + { } + public ReleaseInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseJournalTransaction.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseJournalTransaction.cs new file mode 100644 index 00000000..7230464a --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseJournalTransaction.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseJournalTransaction : EntityAction + { + public ReleaseJournalTransaction(JournalTransaction entity) : base(entity) + { } + public ReleaseJournalTransaction() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseJournalVoucher.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseJournalVoucher.cs new file mode 100644 index 00000000..3463f061 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseJournalVoucher.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseJournalVoucher : EntityAction + { + public ReleaseJournalVoucher(JournalVoucher entity) : base(entity) + { } + public ReleaseJournalVoucher() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseKitAssembly.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseKitAssembly.cs new file mode 100644 index 00000000..9ed379fa --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseKitAssembly.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseKitAssembly : EntityAction + { + public ReleaseKitAssembly(KitAssembly entity) : base(entity) + { } + public ReleaseKitAssembly() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleasePayment.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleasePayment.cs new file mode 100644 index 00000000..9f80651f --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleasePayment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleasePayment : EntityAction + { + public ReleasePayment(Payment entity) : base(entity) + { } + public ReleasePayment() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleasePurchaseReceipt.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleasePurchaseReceipt.cs new file mode 100644 index 00000000..cf5b9ce4 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleasePurchaseReceipt.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleasePurchaseReceipt : EntityAction + { + public ReleasePurchaseReceipt(PurchaseReceipt entity) : base(entity) + { } + public ReleasePurchaseReceipt() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseSalesInvoice.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseSalesInvoice.cs new file mode 100644 index 00000000..b8760292 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseSalesInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseSalesInvoice : EntityAction + { + public ReleaseSalesInvoice(SalesInvoice entity) : base(entity) + { } + public ReleaseSalesInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs new file mode 100644 index 00000000..e2451fe2 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseSalesPriceWorksheet : EntityAction + { + public ReleaseSalesPriceWorksheet(SalesPriceWorksheet entity) : base(entity) + { } + public ReleaseSalesPriceWorksheet() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseTransferOrder.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseTransferOrder.cs new file mode 100644 index 00000000..cc44dae0 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseTransferOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseTransferOrder : EntityAction + { + public ReleaseTransferOrder(TransferOrder entity) : base(entity) + { } + public ReleaseTransferOrder() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseTrialBalance.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseTrialBalance.cs new file mode 100644 index 00000000..daba3d38 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseTrialBalance.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseTrialBalance : EntityAction + { + public ReleaseTrialBalance(TrialBalance entity) : base(entity) + { } + public ReleaseTrialBalance() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs b/Acumatica.Default_17.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs new file mode 100644 index 00000000..f5b0a814 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReleaseVendorPriceWorksheet : EntityAction + { + public ReleaseVendorPriceWorksheet(VendorPriceWorksheet entity) : base(entity) + { } + public ReleaseVendorPriceWorksheet() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReopenSalesOrder.cs b/Acumatica.Default_17.200.001/Model/Actions/ReopenSalesOrder.cs new file mode 100644 index 00000000..2e2b84a6 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReopenSalesOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReopenSalesOrder : EntityAction + { + public ReopenSalesOrder(SalesOrder entity) : base(entity) + { } + public ReopenSalesOrder() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/RestoreArchivedEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/RestoreArchivedEmail.cs new file mode 100644 index 00000000..e48670e1 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/RestoreArchivedEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class RestoreArchivedEmail : EntityAction + { + public RestoreArchivedEmail(Email entity) : base(entity) + { } + public RestoreArchivedEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/RestoreDeletedEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/RestoreDeletedEmail.cs new file mode 100644 index 00000000..12d23b1c --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/RestoreDeletedEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class RestoreDeletedEmail : EntityAction + { + public RestoreDeletedEmail(Email entity) : base(entity) + { } + public RestoreDeletedEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReverseBill.cs b/Acumatica.Default_17.200.001/Model/Actions/ReverseBill.cs new file mode 100644 index 00000000..5a1f15a2 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReverseBill.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReverseBill : EntityAction + { + public ReverseBill(Bill entity) : base(entity) + { } + public ReverseBill() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ReverseInvoice.cs b/Acumatica.Default_17.200.001/Model/Actions/ReverseInvoice.cs new file mode 100644 index 00000000..0dd2c1f3 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ReverseInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ReverseInvoice : EntityAction + { + public ReverseInvoice(Invoice entity) : base(entity) + { } + public ReverseInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/SelectSourceEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/SelectSourceEmail.cs new file mode 100644 index 00000000..0ab35425 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/SelectSourceEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class SelectSourceEmail : EntityAction + { + public SelectSourceEmail(Email entity) : base(entity) + { } + public SelectSourceEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/SendEmail.cs b/Acumatica.Default_17.200.001/Model/Actions/SendEmail.cs new file mode 100644 index 00000000..b0e6f8a4 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/SendEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class SendEmail : EntityAction + { + public SendEmail(Email entity) : base(entity) + { } + public SendEmail() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/TakeCase.cs b/Acumatica.Default_17.200.001/Model/Actions/TakeCase.cs new file mode 100644 index 00000000..04d84db7 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/TakeCase.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class TakeCase : EntityAction + { + public TakeCase(Case entity) : base(entity) + { } + public TakeCase() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/TrialBalanceProcess.cs b/Acumatica.Default_17.200.001/Model/Actions/TrialBalanceProcess.cs new file mode 100644 index 00000000..9a4a8abe --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/TrialBalanceProcess.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class TrialBalanceProcess : EntityAction + { + public TrialBalanceProcess(TrialBalance entity) : base(entity) + { } + public TrialBalanceProcess() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/TrialBalanceProcessAll.cs b/Acumatica.Default_17.200.001/Model/Actions/TrialBalanceProcessAll.cs new file mode 100644 index 00000000..58144284 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/TrialBalanceProcessAll.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class TrialBalanceProcessAll : EntityAction + { + public TrialBalanceProcessAll(TrialBalance entity) : base(entity) + { } + public TrialBalanceProcessAll() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/UpdateIN.cs b/Acumatica.Default_17.200.001/Model/Actions/UpdateIN.cs new file mode 100644 index 00000000..ed2fc61e --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/UpdateIN.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class UpdateIN : EntityAction + { + public UpdateIN(Shipment entity) : base(entity) + { } + public UpdateIN() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs b/Acumatica.Default_17.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs new file mode 100644 index 00000000..ffe6b75c --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class UpdateStandardCostNonStockItem : EntityAction + { + public UpdateStandardCostNonStockItem(NonStockItem entity) : base(entity) + { } + public UpdateStandardCostNonStockItem() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/UpdateStandardCostStockItem.cs b/Acumatica.Default_17.200.001/Model/Actions/UpdateStandardCostStockItem.cs new file mode 100644 index 00000000..cb3097f7 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/UpdateStandardCostStockItem.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class UpdateStandardCostStockItem : EntityAction + { + public UpdateStandardCostStockItem(StockItem entity) : base(entity) + { } + public UpdateStandardCostStockItem() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs b/Acumatica.Default_17.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs new file mode 100644 index 00000000..5e520c8c --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ValidateBusinessAccountAddresses : EntityAction + { + public ValidateBusinessAccountAddresses(BusinessAccount entity) : base(entity) + { } + public ValidateBusinessAccountAddresses() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ValidateContactAddress.cs b/Acumatica.Default_17.200.001/Model/Actions/ValidateContactAddress.cs new file mode 100644 index 00000000..3d06c058 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ValidateContactAddress.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ValidateContactAddress : EntityAction + { + public ValidateContactAddress(Contact entity) : base(entity) + { } + public ValidateContactAddress() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/ValidateLeadAddress.cs b/Acumatica.Default_17.200.001/Model/Actions/ValidateLeadAddress.cs new file mode 100644 index 00000000..96077040 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/ValidateLeadAddress.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class ValidateLeadAddress : EntityAction + { + public ValidateLeadAddress(Lead entity) : base(entity) + { } + public ValidateLeadAddress() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/Actions/VoidPayment.cs b/Acumatica.Default_17.200.001/Model/Actions/VoidPayment.cs new file mode 100644 index 00000000..53f9b6f5 --- /dev/null +++ b/Acumatica.Default_17.200.001/Model/Actions/VoidPayment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_17_200_001.Model +{ + [DataContract] + public partial class VoidPayment : EntityAction + { + public VoidPayment(Payment entity) : base(entity) + { } + public VoidPayment() : base() + { } + } +} diff --git a/Acumatica.Default_17.200.001/Model/ActivityDetail.cs b/Acumatica.Default_17.200.001/Model/ActivityDetail.cs index 7fd9b8e3..bbe9c7c8 100644 --- a/Acumatica.Default_17.200.001/Model/ActivityDetail.cs +++ b/Acumatica.Default_17.200.001/Model/ActivityDetail.cs @@ -1,398 +1,66 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ActivityDetail - /// - [DataContract] - public partial class ActivityDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// classIcon. - /// createdAt. - /// creatorID. - /// creatorUsername. - /// isCompleteIcon. - /// owner. - /// priorityIcon. - /// project. - /// projectTask. - /// refNoteID. - /// released. - /// reminderIcon. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - /// workgroupID. - public ActivityDetail(StringValue classIcon = default(StringValue), DateTimeValue createdAt = default(DateTimeValue), StringValue creatorID = default(StringValue), StringValue creatorUsername = default(StringValue), StringValue isCompleteIcon = default(StringValue), StringValue owner = default(StringValue), StringValue priorityIcon = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), GuidValue refNoteID = default(GuidValue), BooleanValue released = default(BooleanValue), StringValue reminderIcon = default(StringValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), StringValue workgroupID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ClassIcon = classIcon; - this.CreatedAt = createdAt; - this.CreatorID = creatorID; - this.CreatorUsername = creatorUsername; - this.IsCompleteIcon = isCompleteIcon; - this.Owner = owner; - this.PriorityIcon = priorityIcon; - this.Project = project; - this.ProjectTask = projectTask; - this.RefNoteID = refNoteID; - this.Released = released; - this.ReminderIcon = reminderIcon; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - this.WorkgroupID = workgroupID; - } - - /// - /// Gets or Sets ClassIcon - /// - [DataMember(Name="ClassIcon", EmitDefaultValue=false)] - public StringValue ClassIcon { get; set; } - - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name="CreatedAt", EmitDefaultValue=false)] - public DateTimeValue CreatedAt { get; set; } - - /// - /// Gets or Sets CreatorID - /// - [DataMember(Name="CreatorID", EmitDefaultValue=false)] - public StringValue CreatorID { get; set; } - - /// - /// Gets or Sets CreatorUsername - /// - [DataMember(Name="CreatorUsername", EmitDefaultValue=false)] - public StringValue CreatorUsername { get; set; } - - /// - /// Gets or Sets IsCompleteIcon - /// - [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] - public StringValue IsCompleteIcon { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataContract] + public partial class ActivityDetail : Entity + { - /// - /// Gets or Sets PriorityIcon - /// - [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] - public StringValue PriorityIcon { get; set; } + [DataMember(Name="ClassIcon", EmitDefaultValue=false)] + public StringValue ClassIcon { get; set; } - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTimeValue CreatedAt { get; set; } - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } + [DataMember(Name="CreatorID", EmitDefaultValue=false)] + public StringValue CreatorID { get; set; } - /// - /// Gets or Sets RefNoteID - /// - [DataMember(Name="RefNoteID", EmitDefaultValue=false)] - public GuidValue RefNoteID { get; set; } + [DataMember(Name="CreatorUsername", EmitDefaultValue=false)] + public StringValue CreatorUsername { get; set; } - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } + [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] + public StringValue IsCompleteIcon { get; set; } - /// - /// Gets or Sets ReminderIcon - /// - [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] - public StringValue ReminderIcon { get; set; } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] + public StringValue PriorityIcon { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } + [DataMember(Name="RefNoteID", EmitDefaultValue=false)] + public GuidValue RefNoteID { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } - /// - /// Gets or Sets WorkgroupID - /// - [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] - public StringValue WorkgroupID { get; set; } + [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] + public StringValue ReminderIcon { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ActivityDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ClassIcon: ").Append(ClassIcon).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" CreatorID: ").Append(CreatorID).Append("\n"); - sb.Append(" CreatorUsername: ").Append(CreatorUsername).Append("\n"); - sb.Append(" IsCompleteIcon: ").Append(IsCompleteIcon).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PriorityIcon: ").Append(PriorityIcon).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" RefNoteID: ").Append(RefNoteID).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" ReminderIcon: ").Append(ReminderIcon).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" WorkgroupID: ").Append(WorkgroupID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ActivityDetail); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns true if ActivityDetail instances are equal - /// - /// Instance of ActivityDetail to be compared - /// Boolean - public bool Equals(ActivityDetail input) - { - if (input == null) - return false; + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } - return base.Equals(input) && - ( - this.ClassIcon == input.ClassIcon || - (this.ClassIcon != null && - this.ClassIcon.Equals(input.ClassIcon)) - ) && base.Equals(input) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && base.Equals(input) && - ( - this.CreatorID == input.CreatorID || - (this.CreatorID != null && - this.CreatorID.Equals(input.CreatorID)) - ) && base.Equals(input) && - ( - this.CreatorUsername == input.CreatorUsername || - (this.CreatorUsername != null && - this.CreatorUsername.Equals(input.CreatorUsername)) - ) && base.Equals(input) && - ( - this.IsCompleteIcon == input.IsCompleteIcon || - (this.IsCompleteIcon != null && - this.IsCompleteIcon.Equals(input.IsCompleteIcon)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PriorityIcon == input.PriorityIcon || - (this.PriorityIcon != null && - this.PriorityIcon.Equals(input.PriorityIcon)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.RefNoteID == input.RefNoteID || - (this.RefNoteID != null && - this.RefNoteID.Equals(input.RefNoteID)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.ReminderIcon == input.ReminderIcon || - (this.ReminderIcon != null && - this.ReminderIcon.Equals(input.ReminderIcon)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.WorkgroupID == input.WorkgroupID || - (this.WorkgroupID != null && - this.WorkgroupID.Equals(input.WorkgroupID)) - ); - } + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ClassIcon != null) - hashCode = hashCode * 59 + this.ClassIcon.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.CreatorID != null) - hashCode = hashCode * 59 + this.CreatorID.GetHashCode(); - if (this.CreatorUsername != null) - hashCode = hashCode * 59 + this.CreatorUsername.GetHashCode(); - if (this.IsCompleteIcon != null) - hashCode = hashCode * 59 + this.IsCompleteIcon.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PriorityIcon != null) - hashCode = hashCode * 59 + this.PriorityIcon.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.RefNoteID != null) - hashCode = hashCode * 59 + this.RefNoteID.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.ReminderIcon != null) - hashCode = hashCode * 59 + this.ReminderIcon.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.WorkgroupID != null) - hashCode = hashCode * 59 + this.WorkgroupID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] + public StringValue WorkgroupID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Address.cs b/Acumatica.Default_17.200.001/Model/Address.cs index 6b99ffc5..ccd517b4 100644 --- a/Acumatica.Default_17.200.001/Model/Address.cs +++ b/Acumatica.Default_17.200.001/Model/Address.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Address - /// - [DataContract] - public partial class Address : Entity, IEquatable
, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// addressLine1. - /// addressLine2. - /// city. - /// country. - /// postalCode. - /// state. - public Address(StringValue addressLine1 = default(StringValue), StringValue addressLine2 = default(StringValue), StringValue city = default(StringValue), StringValue country = default(StringValue), StringValue postalCode = default(StringValue), StringValue state = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AddressLine1 = addressLine1; - this.AddressLine2 = addressLine2; - this.City = city; - this.Country = country; - this.PostalCode = postalCode; - this.State = state; - } - - /// - /// Gets or Sets AddressLine1 - /// - [DataMember(Name="AddressLine1", EmitDefaultValue=false)] - public StringValue AddressLine1 { get; set; } - - /// - /// Gets or Sets AddressLine2 - /// - [DataMember(Name="AddressLine2", EmitDefaultValue=false)] - public StringValue AddressLine2 { get; set; } - - /// - /// Gets or Sets City - /// - [DataMember(Name="City", EmitDefaultValue=false)] - public StringValue City { get; set; } - - /// - /// Gets or Sets Country - /// - [DataMember(Name="Country", EmitDefaultValue=false)] - public StringValue Country { get; set; } - - /// - /// Gets or Sets PostalCode - /// - [DataMember(Name="PostalCode", EmitDefaultValue=false)] - public StringValue PostalCode { get; set; } - - /// - /// Gets or Sets State - /// - [DataMember(Name="State", EmitDefaultValue=false)] - public StringValue State { get; set; } + [DataContract] + public partial class Address : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Address {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AddressLine1: ").Append(AddressLine1).Append("\n"); - sb.Append(" AddressLine2: ").Append(AddressLine2).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="AddressLine1", EmitDefaultValue=false)] + public StringValue AddressLine1 { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Address); - } + [DataMember(Name="AddressLine2", EmitDefaultValue=false)] + public StringValue AddressLine2 { get; set; } - /// - /// Returns true if Address instances are equal - /// - /// Instance of Address to be compared - /// Boolean - public bool Equals(Address input) - { - if (input == null) - return false; + [DataMember(Name="City", EmitDefaultValue=false)] + public StringValue City { get; set; } - return base.Equals(input) && - ( - this.AddressLine1 == input.AddressLine1 || - (this.AddressLine1 != null && - this.AddressLine1.Equals(input.AddressLine1)) - ) && base.Equals(input) && - ( - this.AddressLine2 == input.AddressLine2 || - (this.AddressLine2 != null && - this.AddressLine2.Equals(input.AddressLine2)) - ) && base.Equals(input) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && base.Equals(input) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ) && base.Equals(input) && - ( - this.PostalCode == input.PostalCode || - (this.PostalCode != null && - this.PostalCode.Equals(input.PostalCode)) - ) && base.Equals(input) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ); - } + [DataMember(Name="Country", EmitDefaultValue=false)] + public StringValue Country { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AddressLine1 != null) - hashCode = hashCode * 59 + this.AddressLine1.GetHashCode(); - if (this.AddressLine2 != null) - hashCode = hashCode * 59 + this.AddressLine2.GetHashCode(); - if (this.City != null) - hashCode = hashCode * 59 + this.City.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - if (this.PostalCode != null) - hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PostalCode", EmitDefaultValue=false)] + public StringValue PostalCode { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="State", EmitDefaultValue=false)] + public StringValue State { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Adjustment.cs b/Acumatica.Default_17.200.001/Model/Adjustment.cs index fe1cbc01..d032369a 100644 --- a/Acumatica.Default_17.200.001/Model/Adjustment.cs +++ b/Acumatica.Default_17.200.001/Model/Adjustment.cs @@ -1,254 +1,39 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Adjustment - /// - [DataContract] - public partial class Adjustment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// date. - /// description. - /// details. - /// externalRef. - /// hold. - /// referenceNbr. - /// status. - /// totalCost. - /// totalQty. - public Adjustment(DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), List details = default(List), StringValue externalRef = default(StringValue), BooleanValue hold = default(BooleanValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalCost = default(DecimalValue), DecimalValue totalQty = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Date = date; - this.Description = description; - this.Details = details; - this.ExternalRef = externalRef; - this.Hold = hold; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TotalCost = totalCost; - this.TotalQty = totalQty; - } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets ExternalRef - /// - [DataMember(Name="ExternalRef", EmitDefaultValue=false)] - public StringValue ExternalRef { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataContract] + public partial class Adjustment : Entity + { - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets TotalCost - /// - [DataMember(Name="TotalCost", EmitDefaultValue=false)] - public DecimalValue TotalCost { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets TotalQty - /// - [DataMember(Name="TotalQty", EmitDefaultValue=false)] - public DecimalValue TotalQty { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Adjustment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" ExternalRef: ").Append(ExternalRef).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalCost: ").Append(TotalCost).Append("\n"); - sb.Append(" TotalQty: ").Append(TotalQty).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ExternalRef", EmitDefaultValue=false)] + public StringValue ExternalRef { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Adjustment); - } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Returns true if Adjustment instances are equal - /// - /// Instance of Adjustment to be compared - /// Boolean - public bool Equals(Adjustment input) - { - if (input == null) - return false; + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - return base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.ExternalRef == input.ExternalRef || - (this.ExternalRef != null && - this.ExternalRef.Equals(input.ExternalRef)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalCost == input.TotalCost || - (this.TotalCost != null && - this.TotalCost.Equals(input.TotalCost)) - ) && base.Equals(input) && - ( - this.TotalQty == input.TotalQty || - (this.TotalQty != null && - this.TotalQty.Equals(input.TotalQty)) - ); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.ExternalRef != null) - hashCode = hashCode * 59 + this.ExternalRef.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalCost != null) - hashCode = hashCode * 59 + this.TotalCost.GetHashCode(); - if (this.TotalQty != null) - hashCode = hashCode * 59 + this.TotalQty.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TotalCost", EmitDefaultValue=false)] + public DecimalValue TotalCost { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TotalQty", EmitDefaultValue=false)] + public DecimalValue TotalQty { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AdjustmentDetail.cs b/Acumatica.Default_17.200.001/Model/AdjustmentDetail.cs index eb3e5759..5e36b5a1 100644 --- a/Acumatica.Default_17.200.001/Model/AdjustmentDetail.cs +++ b/Acumatica.Default_17.200.001/Model/AdjustmentDetail.cs @@ -1,318 +1,51 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AdjustmentDetail - /// - [DataContract] - public partial class AdjustmentDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// branchID. - /// description. - /// expirationDate. - /// extendedCost. - /// inventoryID. - /// locationID. - /// lotSerialNbr. - /// qty. - /// reasonCode. - /// receiptNbr. - /// subitem. - /// uOM. - /// warehouseID. - public AdjustmentDetail(StringValue branchID = default(StringValue), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), DecimalValue extendedCost = default(DecimalValue), StringValue inventoryID = default(StringValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue reasonCode = default(StringValue), StringValue receiptNbr = default(StringValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BranchID = branchID; - this.Description = description; - this.ExpirationDate = expirationDate; - this.ExtendedCost = extendedCost; - this.InventoryID = inventoryID; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.ReasonCode = reasonCode; - this.ReceiptNbr = receiptNbr; - this.Subitem = subitem; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets ExtendedCost - /// - [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] - public DecimalValue ExtendedCost { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } + [DataContract] + public partial class AdjustmentDetail : Entity + { - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets ReceiptNbr - /// - [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] - public StringValue ReceiptNbr { get; set; } + [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] + public DecimalValue ExtendedCost { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdjustmentDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" ExtendedCost: ").Append(ExtendedCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" ReceiptNbr: ").Append(ReceiptNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdjustmentDetail); - } + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } - /// - /// Returns true if AdjustmentDetail instances are equal - /// - /// Instance of AdjustmentDetail to be compared - /// Boolean - public bool Equals(AdjustmentDetail input) - { - if (input == null) - return false; + [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] + public StringValue ReceiptNbr { get; set; } - return base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.ExtendedCost == input.ExtendedCost || - (this.ExtendedCost != null && - this.ExtendedCost.Equals(input.ExtendedCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.ReceiptNbr == input.ReceiptNbr || - (this.ReceiptNbr != null && - this.ReceiptNbr.Equals(input.ReceiptNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.ExtendedCost != null) - hashCode = hashCode * 59 + this.ExtendedCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.ReceiptNbr != null) - hashCode = hashCode * 59 + this.ReceiptNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AttributeDefinition.cs b/Acumatica.Default_17.200.001/Model/AttributeDefinition.cs index b8fa9c31..f7ca1c4e 100644 --- a/Acumatica.Default_17.200.001/Model/AttributeDefinition.cs +++ b/Acumatica.Default_17.200.001/Model/AttributeDefinition.cs @@ -1,254 +1,39 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AttributeDefinition - /// - [DataContract] - public partial class AttributeDefinition : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributeID. - /// controlType. - /// createdDateTime. - /// description. - /// entryMask. - /// _internal. - /// lastModifiedDateTime. - /// regExp. - /// values. - public AttributeDefinition(StringValue attributeID = default(StringValue), StringValue controlType = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), StringValue entryMask = default(StringValue), BooleanValue _internal = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue regExp = default(StringValue), List values = default(List), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AttributeID = attributeID; - this.ControlType = controlType; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.EntryMask = entryMask; - this.Internal = _internal; - this.LastModifiedDateTime = lastModifiedDateTime; - this.RegExp = regExp; - this.Values = values; - } - - /// - /// Gets or Sets AttributeID - /// - [DataMember(Name="AttributeID", EmitDefaultValue=false)] - public StringValue AttributeID { get; set; } - - /// - /// Gets or Sets ControlType - /// - [DataMember(Name="ControlType", EmitDefaultValue=false)] - public StringValue ControlType { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EntryMask - /// - [DataMember(Name="EntryMask", EmitDefaultValue=false)] - public StringValue EntryMask { get; set; } - - /// - /// Gets or Sets Internal - /// - [DataMember(Name="Internal", EmitDefaultValue=false)] - public BooleanValue Internal { get; set; } + [DataContract] + public partial class AttributeDefinition : Entity + { - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="AttributeID", EmitDefaultValue=false)] + public StringValue AttributeID { get; set; } - /// - /// Gets or Sets RegExp - /// - [DataMember(Name="RegExp", EmitDefaultValue=false)] - public StringValue RegExp { get; set; } + [DataMember(Name="ControlType", EmitDefaultValue=false)] + public StringValue ControlType { get; set; } - /// - /// Gets or Sets Values - /// - [DataMember(Name="Values", EmitDefaultValue=false)] - public List Values { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttributeDefinition {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AttributeID: ").Append(AttributeID).Append("\n"); - sb.Append(" ControlType: ").Append(ControlType).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EntryMask: ").Append(EntryMask).Append("\n"); - sb.Append(" Internal: ").Append(Internal).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" RegExp: ").Append(RegExp).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttributeDefinition); - } + [DataMember(Name="EntryMask", EmitDefaultValue=false)] + public StringValue EntryMask { get; set; } - /// - /// Returns true if AttributeDefinition instances are equal - /// - /// Instance of AttributeDefinition to be compared - /// Boolean - public bool Equals(AttributeDefinition input) - { - if (input == null) - return false; + [DataMember(Name="Internal", EmitDefaultValue=false)] + public BooleanValue Internal { get; set; } - return base.Equals(input) && - ( - this.AttributeID == input.AttributeID || - (this.AttributeID != null && - this.AttributeID.Equals(input.AttributeID)) - ) && base.Equals(input) && - ( - this.ControlType == input.ControlType || - (this.ControlType != null && - this.ControlType.Equals(input.ControlType)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EntryMask == input.EntryMask || - (this.EntryMask != null && - this.EntryMask.Equals(input.EntryMask)) - ) && base.Equals(input) && - ( - this.Internal == input.Internal || - (this.Internal != null && - this.Internal.Equals(input.Internal)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.RegExp == input.RegExp || - (this.RegExp != null && - this.RegExp.Equals(input.RegExp)) - ) && base.Equals(input) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ); - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AttributeID != null) - hashCode = hashCode * 59 + this.AttributeID.GetHashCode(); - if (this.ControlType != null) - hashCode = hashCode * 59 + this.ControlType.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EntryMask != null) - hashCode = hashCode * 59 + this.EntryMask.GetHashCode(); - if (this.Internal != null) - hashCode = hashCode * 59 + this.Internal.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.RegExp != null) - hashCode = hashCode * 59 + this.RegExp.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="RegExp", EmitDefaultValue=false)] + public StringValue RegExp { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Values", EmitDefaultValue=false)] + public List Values { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AttributeDefinitionValue.cs b/Acumatica.Default_17.200.001/Model/AttributeDefinitionValue.cs index bcc7539a..cdca3bcd 100644 --- a/Acumatica.Default_17.200.001/Model/AttributeDefinitionValue.cs +++ b/Acumatica.Default_17.200.001/Model/AttributeDefinitionValue.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AttributeDefinitionValue - /// - [DataContract] - public partial class AttributeDefinitionValue : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// disabled. - /// sortOrder. - /// valueID. - public AttributeDefinitionValue(StringValue description = default(StringValue), BooleanValue disabled = default(BooleanValue), ShortValue sortOrder = default(ShortValue), StringValue valueID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.Disabled = disabled; - this.SortOrder = sortOrder; - this.ValueID = valueID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Disabled - /// - [DataMember(Name="Disabled", EmitDefaultValue=false)] - public BooleanValue Disabled { get; set; } - - /// - /// Gets or Sets SortOrder - /// - [DataMember(Name="SortOrder", EmitDefaultValue=false)] - public ShortValue SortOrder { get; set; } - - /// - /// Gets or Sets ValueID - /// - [DataMember(Name="ValueID", EmitDefaultValue=false)] - public StringValue ValueID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttributeDefinitionValue {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Disabled: ").Append(Disabled).Append("\n"); - sb.Append(" SortOrder: ").Append(SortOrder).Append("\n"); - sb.Append(" ValueID: ").Append(ValueID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttributeDefinitionValue); - } + [DataContract] + public partial class AttributeDefinitionValue : Entity + { - /// - /// Returns true if AttributeDefinitionValue instances are equal - /// - /// Instance of AttributeDefinitionValue to be compared - /// Boolean - public bool Equals(AttributeDefinitionValue input) - { - if (input == null) - return false; + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Disabled == input.Disabled || - (this.Disabled != null && - this.Disabled.Equals(input.Disabled)) - ) && base.Equals(input) && - ( - this.SortOrder == input.SortOrder || - (this.SortOrder != null && - this.SortOrder.Equals(input.SortOrder)) - ) && base.Equals(input) && - ( - this.ValueID == input.ValueID || - (this.ValueID != null && - this.ValueID.Equals(input.ValueID)) - ); - } + [DataMember(Name="Disabled", EmitDefaultValue=false)] + public BooleanValue Disabled { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Disabled != null) - hashCode = hashCode * 59 + this.Disabled.GetHashCode(); - if (this.SortOrder != null) - hashCode = hashCode * 59 + this.SortOrder.GetHashCode(); - if (this.ValueID != null) - hashCode = hashCode * 59 + this.ValueID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="SortOrder", EmitDefaultValue=false)] + public ShortValue SortOrder { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ValueID", EmitDefaultValue=false)] + public StringValue ValueID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AttributeDetail.cs b/Acumatica.Default_17.200.001/Model/AttributeDetail.cs index 6aa06961..66739ae8 100644 --- a/Acumatica.Default_17.200.001/Model/AttributeDetail.cs +++ b/Acumatica.Default_17.200.001/Model/AttributeDetail.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AttributeDetail - /// - [DataContract] - public partial class AttributeDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attribute. - /// refNoteID. - /// required. - /// value. - public AttributeDetail(StringValue attribute = default(StringValue), GuidValue refNoteID = default(GuidValue), BooleanValue required = default(BooleanValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attribute = attribute; - this.RefNoteID = refNoteID; - this.Required = required; - this.Value = value; - } - - /// - /// Gets or Sets Attribute - /// - [DataMember(Name="Attribute", EmitDefaultValue=false)] - public StringValue Attribute { get; set; } - - /// - /// Gets or Sets RefNoteID - /// - [DataMember(Name="RefNoteID", EmitDefaultValue=false)] - public GuidValue RefNoteID { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="Required", EmitDefaultValue=false)] - public BooleanValue Required { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttributeDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attribute: ").Append(Attribute).Append("\n"); - sb.Append(" RefNoteID: ").Append(RefNoteID).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttributeDetail); - } + [DataContract] + public partial class AttributeDetail : Entity + { - /// - /// Returns true if AttributeDetail instances are equal - /// - /// Instance of AttributeDetail to be compared - /// Boolean - public bool Equals(AttributeDetail input) - { - if (input == null) - return false; + [DataMember(Name="Attribute", EmitDefaultValue=false)] + public StringValue Attribute { get; set; } - return base.Equals(input) && - ( - this.Attribute == input.Attribute || - (this.Attribute != null && - this.Attribute.Equals(input.Attribute)) - ) && base.Equals(input) && - ( - this.RefNoteID == input.RefNoteID || - (this.RefNoteID != null && - this.RefNoteID.Equals(input.RefNoteID)) - ) && base.Equals(input) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } + [DataMember(Name="RefNoteID", EmitDefaultValue=false)] + public GuidValue RefNoteID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attribute != null) - hashCode = hashCode * 59 + this.Attribute.GetHashCode(); - if (this.RefNoteID != null) - hashCode = hashCode * 59 + this.RefNoteID.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Required", EmitDefaultValue=false)] + public BooleanValue Required { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/AttributeValue.cs b/Acumatica.Default_17.200.001/Model/AttributeValue.cs index cc267099..38fdec2a 100644 --- a/Acumatica.Default_17.200.001/Model/AttributeValue.cs +++ b/Acumatica.Default_17.200.001/Model/AttributeValue.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// AttributeValue - /// - [DataContract] - public partial class AttributeValue : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributeID. - /// required. - /// value. - public AttributeValue(StringValue attributeID = default(StringValue), BooleanValue required = default(BooleanValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AttributeID = attributeID; - this.Required = required; - this.Value = value; - } - - /// - /// Gets or Sets AttributeID - /// - [DataMember(Name="AttributeID", EmitDefaultValue=false)] - public StringValue AttributeID { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="Required", EmitDefaultValue=false)] - public BooleanValue Required { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttributeValue {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AttributeID: ").Append(AttributeID).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttributeValue); - } - - /// - /// Returns true if AttributeValue instances are equal - /// - /// Instance of AttributeValue to be compared - /// Boolean - public bool Equals(AttributeValue input) - { - if (input == null) - return false; + [DataContract] + public partial class AttributeValue : Entity + { - return base.Equals(input) && - ( - this.AttributeID == input.AttributeID || - (this.AttributeID != null && - this.AttributeID.Equals(input.AttributeID)) - ) && base.Equals(input) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } + [DataMember(Name="AttributeID", EmitDefaultValue=false)] + public StringValue AttributeID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AttributeID != null) - hashCode = hashCode * 59 + this.AttributeID.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Required", EmitDefaultValue=false)] + public BooleanValue Required { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Bill.cs b/Acumatica.Default_17.200.001/Model/Bill.cs index bc516745..61682e69 100644 --- a/Acumatica.Default_17.200.001/Model/Bill.cs +++ b/Acumatica.Default_17.200.001/Model/Bill.cs @@ -1,462 +1,78 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Bill - /// - [DataContract] - public partial class Bill : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// applications. - /// approvedForPayment. - /// balance. - /// branchID. - /// cashAccount. - /// currencyID. - /// date. - /// description. - /// details. - /// dueDate. - /// hold. - /// locationID. - /// postPeriod. - /// referenceNbr. - /// status. - /// taxDetails. - /// taxTotal. - /// terms. - /// type. - /// vendor. - /// vendorRef. - public Bill(DecimalValue amount = default(DecimalValue), List applications = default(List), BooleanValue approvedForPayment = default(BooleanValue), DecimalValue balance = default(DecimalValue), StringValue branchID = default(StringValue), StringValue cashAccount = default(StringValue), StringValue currencyID = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), List details = default(List), DateTimeValue dueDate = default(DateTimeValue), BooleanValue hold = default(BooleanValue), StringValue locationID = default(StringValue), StringValue postPeriod = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), List taxDetails = default(List), DecimalValue taxTotal = default(DecimalValue), StringValue terms = default(StringValue), StringValue type = default(StringValue), StringValue vendor = default(StringValue), StringValue vendorRef = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.Applications = applications; - this.ApprovedForPayment = approvedForPayment; - this.Balance = balance; - this.BranchID = branchID; - this.CashAccount = cashAccount; - this.CurrencyID = currencyID; - this.Date = date; - this.Description = description; - this.Details = details; - this.DueDate = dueDate; - this.Hold = hold; - this.LocationID = locationID; - this.PostPeriod = postPeriod; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TaxDetails = taxDetails; - this.TaxTotal = taxTotal; - this.Terms = terms; - this.Type = type; - this.Vendor = vendor; - this.VendorRef = vendorRef; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Applications - /// - [DataMember(Name="Applications", EmitDefaultValue=false)] - public List Applications { get; set; } - - /// - /// Gets or Sets ApprovedForPayment - /// - [DataMember(Name="ApprovedForPayment", EmitDefaultValue=false)] - public BooleanValue ApprovedForPayment { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } + [DataContract] + public partial class Bill : Entity + { - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } + [DataMember(Name="Applications", EmitDefaultValue=false)] + public List Applications { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="ApprovedForPayment", EmitDefaultValue=false)] + public BooleanValue ApprovedForPayment { get; set; } - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public List TaxDetails { get; set; } + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Gets or Sets VendorRef - /// - [DataMember(Name="VendorRef", EmitDefaultValue=false)] - public StringValue VendorRef { get; set; } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Bill {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Applications: ").Append(Applications).Append("\n"); - sb.Append(" ApprovedForPayment: ").Append(ApprovedForPayment).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append(" VendorRef: ").Append(VendorRef).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Bill); - } + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } - /// - /// Returns true if Bill instances are equal - /// - /// Instance of Bill to be compared - /// Boolean - public bool Equals(Bill input) - { - if (input == null) - return false; + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Applications == input.Applications || - this.Applications != null && - this.Applications.SequenceEqual(input.Applications) - ) && base.Equals(input) && - ( - this.ApprovedForPayment == input.ApprovedForPayment || - (this.ApprovedForPayment != null && - this.ApprovedForPayment.Equals(input.ApprovedForPayment)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ) && base.Equals(input) && - ( - this.VendorRef == input.VendorRef || - (this.VendorRef != null && - this.VendorRef.Equals(input.VendorRef)) - ); - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Applications != null) - hashCode = hashCode * 59 + this.Applications.GetHashCode(); - if (this.ApprovedForPayment != null) - hashCode = hashCode * 59 + this.ApprovedForPayment.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - if (this.VendorRef != null) - hashCode = hashCode * 59 + this.VendorRef.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorRef", EmitDefaultValue=false)] + public StringValue VendorRef { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BillApplicationDetail.cs b/Acumatica.Default_17.200.001/Model/BillApplicationDetail.cs index 13cff4f9..95607184 100644 --- a/Acumatica.Default_17.200.001/Model/BillApplicationDetail.cs +++ b/Acumatica.Default_17.200.001/Model/BillApplicationDetail.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BillApplicationDetail - /// - [DataContract] - public partial class BillApplicationDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// docType. - /// referenceNbr. - /// status. - public BillApplicationDetail(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - this.Status = status; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BillApplicationDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class BillApplicationDetail : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BillApplicationDetail); - } + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } - /// - /// Returns true if BillApplicationDetail instances are equal - /// - /// Instance of BillApplicationDetail to be compared - /// Boolean - public bool Equals(BillApplicationDetail input) - { - if (input == null) - return false; + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BillDetail.cs b/Acumatica.Default_17.200.001/Model/BillDetail.cs index 866a18da..e3deb8de 100644 --- a/Acumatica.Default_17.200.001/Model/BillDetail.cs +++ b/Acumatica.Default_17.200.001/Model/BillDetail.cs @@ -1,366 +1,60 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BillDetail - /// - [DataContract] - public partial class BillDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// amount. - /// branch. - /// description. - /// extendedCost. - /// nonBillable. - /// pOOrderNbr. - /// pOOrderType. - /// project. - /// projectTask. - /// qty. - /// subaccount. - /// taxCategory. - /// transactionDescription. - /// unitCost. - /// uOM. - public BillDetail(StringValue account = default(StringValue), DecimalValue amount = default(DecimalValue), StringValue branch = default(StringValue), StringValue description = default(StringValue), DecimalValue extendedCost = default(DecimalValue), BooleanValue nonBillable = default(BooleanValue), StringValue pOOrderNbr = default(StringValue), StringValue pOOrderType = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subaccount = default(StringValue), StringValue taxCategory = default(StringValue), StringValue transactionDescription = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Amount = amount; - this.Branch = branch; - this.Description = description; - this.ExtendedCost = extendedCost; - this.NonBillable = nonBillable; - this.POOrderNbr = pOOrderNbr; - this.POOrderType = pOOrderType; - this.Project = project; - this.ProjectTask = projectTask; - this.Qty = qty; - this.Subaccount = subaccount; - this.TaxCategory = taxCategory; - this.TransactionDescription = transactionDescription; - this.UnitCost = unitCost; - this.UOM = uOM; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExtendedCost - /// - [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] - public DecimalValue ExtendedCost { get; set; } - - /// - /// Gets or Sets NonBillable - /// - [DataMember(Name="NonBillable", EmitDefaultValue=false)] - public BooleanValue NonBillable { get; set; } + [DataContract] + public partial class BillDetail : Entity + { - /// - /// Gets or Sets POOrderNbr - /// - [DataMember(Name="POOrderNbr", EmitDefaultValue=false)] - public StringValue POOrderNbr { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Gets or Sets POOrderType - /// - [DataMember(Name="POOrderType", EmitDefaultValue=false)] - public StringValue POOrderType { get; set; } + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] + public DecimalValue ExtendedCost { get; set; } - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataMember(Name="NonBillable", EmitDefaultValue=false)] + public BooleanValue NonBillable { get; set; } - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } + [DataMember(Name="POOrderNbr", EmitDefaultValue=false)] + public StringValue POOrderNbr { get; set; } - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } + [DataMember(Name="POOrderType", EmitDefaultValue=false)] + public StringValue POOrderType { get; set; } - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BillDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExtendedCost: ").Append(ExtendedCost).Append("\n"); - sb.Append(" NonBillable: ").Append(NonBillable).Append("\n"); - sb.Append(" POOrderNbr: ").Append(POOrderNbr).Append("\n"); - sb.Append(" POOrderType: ").Append(POOrderType).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BillDetail); - } + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } - /// - /// Returns true if BillDetail instances are equal - /// - /// Instance of BillDetail to be compared - /// Boolean - public bool Equals(BillDetail input) - { - if (input == null) - return false; + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExtendedCost == input.ExtendedCost || - (this.ExtendedCost != null && - this.ExtendedCost.Equals(input.ExtendedCost)) - ) && base.Equals(input) && - ( - this.NonBillable == input.NonBillable || - (this.NonBillable != null && - this.NonBillable.Equals(input.NonBillable)) - ) && base.Equals(input) && - ( - this.POOrderNbr == input.POOrderNbr || - (this.POOrderNbr != null && - this.POOrderNbr.Equals(input.POOrderNbr)) - ) && base.Equals(input) && - ( - this.POOrderType == input.POOrderType || - (this.POOrderType != null && - this.POOrderType.Equals(input.POOrderType)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExtendedCost != null) - hashCode = hashCode * 59 + this.ExtendedCost.GetHashCode(); - if (this.NonBillable != null) - hashCode = hashCode * 59 + this.NonBillable.GetHashCode(); - if (this.POOrderNbr != null) - hashCode = hashCode * 59 + this.POOrderNbr.GetHashCode(); - if (this.POOrderType != null) - hashCode = hashCode * 59 + this.POOrderType.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BillTaxDetail.cs b/Acumatica.Default_17.200.001/Model/BillTaxDetail.cs index ff823b69..df86e835 100644 --- a/Acumatica.Default_17.200.001/Model/BillTaxDetail.cs +++ b/Acumatica.Default_17.200.001/Model/BillTaxDetail.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BillTaxDetail - /// - [DataContract] - public partial class BillTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - public BillTaxDetail(DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BillTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BillTaxDetail); - } + [DataContract] + public partial class BillTaxDetail : Entity + { - /// - /// Returns true if BillTaxDetail instances are equal - /// - /// Instance of BillTaxDetail to be compared - /// Boolean - public bool Equals(BillTaxDetail input) - { - if (input == null) - return false; + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } - return base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ); - } + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BillToSettings.cs b/Acumatica.Default_17.200.001/Model/BillToSettings.cs index da1b4b5f..2418554b 100644 --- a/Acumatica.Default_17.200.001/Model/BillToSettings.cs +++ b/Acumatica.Default_17.200.001/Model/BillToSettings.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BillToSettings - /// - [DataContract] - public partial class BillToSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billToAddress. - /// billToAddressOverride. - /// billToContact. - /// billToContactOverride. - public BillToSettings(Address billToAddress = default(Address), BooleanValue billToAddressOverride = default(BooleanValue), DocContact billToContact = default(DocContact), BooleanValue billToContactOverride = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillToAddress = billToAddress; - this.BillToAddressOverride = billToAddressOverride; - this.BillToContact = billToContact; - this.BillToContactOverride = billToContactOverride; - } - - /// - /// Gets or Sets BillToAddress - /// - [DataMember(Name="BillToAddress", EmitDefaultValue=false)] - public Address BillToAddress { get; set; } - - /// - /// Gets or Sets BillToAddressOverride - /// - [DataMember(Name="BillToAddressOverride", EmitDefaultValue=false)] - public BooleanValue BillToAddressOverride { get; set; } - - /// - /// Gets or Sets BillToContact - /// - [DataMember(Name="BillToContact", EmitDefaultValue=false)] - public DocContact BillToContact { get; set; } - - /// - /// Gets or Sets BillToContactOverride - /// - [DataMember(Name="BillToContactOverride", EmitDefaultValue=false)] - public BooleanValue BillToContactOverride { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BillToSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillToAddress: ").Append(BillToAddress).Append("\n"); - sb.Append(" BillToAddressOverride: ").Append(BillToAddressOverride).Append("\n"); - sb.Append(" BillToContact: ").Append(BillToContact).Append("\n"); - sb.Append(" BillToContactOverride: ").Append(BillToContactOverride).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BillToSettings); - } + [DataContract] + public partial class BillToSettings : Entity + { - /// - /// Returns true if BillToSettings instances are equal - /// - /// Instance of BillToSettings to be compared - /// Boolean - public bool Equals(BillToSettings input) - { - if (input == null) - return false; + [DataMember(Name="BillToAddress", EmitDefaultValue=false)] + public Address BillToAddress { get; set; } - return base.Equals(input) && - ( - this.BillToAddress == input.BillToAddress || - (this.BillToAddress != null && - this.BillToAddress.Equals(input.BillToAddress)) - ) && base.Equals(input) && - ( - this.BillToAddressOverride == input.BillToAddressOverride || - (this.BillToAddressOverride != null && - this.BillToAddressOverride.Equals(input.BillToAddressOverride)) - ) && base.Equals(input) && - ( - this.BillToContact == input.BillToContact || - (this.BillToContact != null && - this.BillToContact.Equals(input.BillToContact)) - ) && base.Equals(input) && - ( - this.BillToContactOverride == input.BillToContactOverride || - (this.BillToContactOverride != null && - this.BillToContactOverride.Equals(input.BillToContactOverride)) - ); - } + [DataMember(Name="BillToAddressOverride", EmitDefaultValue=false)] + public BooleanValue BillToAddressOverride { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillToAddress != null) - hashCode = hashCode * 59 + this.BillToAddress.GetHashCode(); - if (this.BillToAddressOverride != null) - hashCode = hashCode * 59 + this.BillToAddressOverride.GetHashCode(); - if (this.BillToContact != null) - hashCode = hashCode * 59 + this.BillToContact.GetHashCode(); - if (this.BillToContactOverride != null) - hashCode = hashCode * 59 + this.BillToContactOverride.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="BillToContact", EmitDefaultValue=false)] + public DocContact BillToContact { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="BillToContactOverride", EmitDefaultValue=false)] + public BooleanValue BillToContactOverride { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BoxStockItem.cs b/Acumatica.Default_17.200.001/Model/BoxStockItem.cs index 0b9ae43e..97ee486b 100644 --- a/Acumatica.Default_17.200.001/Model/BoxStockItem.cs +++ b/Acumatica.Default_17.200.001/Model/BoxStockItem.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BoxStockItem - /// - [DataContract] - public partial class BoxStockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// boxID. - /// description. - /// maxQty. - /// maxVolume. - /// maxWeight. - /// qty. - /// uOM. - public BoxStockItem(StringValue boxID = default(StringValue), StringValue description = default(StringValue), DecimalValue maxQty = default(DecimalValue), DecimalValue maxVolume = default(DecimalValue), DecimalValue maxWeight = default(DecimalValue), DecimalValue qty = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BoxID = boxID; - this.Description = description; - this.MaxQty = maxQty; - this.MaxVolume = maxVolume; - this.MaxWeight = maxWeight; - this.Qty = qty; - this.UOM = uOM; - } - - /// - /// Gets or Sets BoxID - /// - [DataMember(Name="BoxID", EmitDefaultValue=false)] - public StringValue BoxID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets MaxQty - /// - [DataMember(Name="MaxQty", EmitDefaultValue=false)] - public DecimalValue MaxQty { get; set; } - - /// - /// Gets or Sets MaxVolume - /// - [DataMember(Name="MaxVolume", EmitDefaultValue=false)] - public DecimalValue MaxVolume { get; set; } - - /// - /// Gets or Sets MaxWeight - /// - [DataMember(Name="MaxWeight", EmitDefaultValue=false)] - public DecimalValue MaxWeight { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataContract] + public partial class BoxStockItem : Entity + { - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="BoxID", EmitDefaultValue=false)] + public StringValue BoxID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BoxStockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BoxID: ").Append(BoxID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" MaxQty: ").Append(MaxQty).Append("\n"); - sb.Append(" MaxVolume: ").Append(MaxVolume).Append("\n"); - sb.Append(" MaxWeight: ").Append(MaxWeight).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BoxStockItem); - } + [DataMember(Name="MaxQty", EmitDefaultValue=false)] + public DecimalValue MaxQty { get; set; } - /// - /// Returns true if BoxStockItem instances are equal - /// - /// Instance of BoxStockItem to be compared - /// Boolean - public bool Equals(BoxStockItem input) - { - if (input == null) - return false; + [DataMember(Name="MaxVolume", EmitDefaultValue=false)] + public DecimalValue MaxVolume { get; set; } - return base.Equals(input) && - ( - this.BoxID == input.BoxID || - (this.BoxID != null && - this.BoxID.Equals(input.BoxID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.MaxQty == input.MaxQty || - (this.MaxQty != null && - this.MaxQty.Equals(input.MaxQty)) - ) && base.Equals(input) && - ( - this.MaxVolume == input.MaxVolume || - (this.MaxVolume != null && - this.MaxVolume.Equals(input.MaxVolume)) - ) && base.Equals(input) && - ( - this.MaxWeight == input.MaxWeight || - (this.MaxWeight != null && - this.MaxWeight.Equals(input.MaxWeight)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="MaxWeight", EmitDefaultValue=false)] + public DecimalValue MaxWeight { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BoxID != null) - hashCode = hashCode * 59 + this.BoxID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.MaxQty != null) - hashCode = hashCode * 59 + this.MaxQty.GetHashCode(); - if (this.MaxVolume != null) - hashCode = hashCode * 59 + this.MaxVolume.GetHashCode(); - if (this.MaxWeight != null) - hashCode = hashCode * 59 + this.MaxWeight.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccount.cs b/Acumatica.Default_17.200.001/Model/BusinessAccount.cs index 63883ce2..eedfde1a 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccount.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccount.cs @@ -1,670 +1,117 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccount - /// - [DataContract] - public partial class BusinessAccount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountRef. - /// activities. - /// attributes. - /// businessAccountID. - /// campaigns. - /// cases. - /// classID. - /// contacts. - /// contracts. - /// defaultLocationSettings. - /// duplicate. - /// duplicates. - /// lastIncomingActivity. - /// lastOutgoingActivity. - /// locations. - /// mainAddress. - /// mainAddressValidated. - /// mainContact. - /// marketingLists. - /// name. - /// opportunities. - /// orders. - /// owner. - /// ownerEmployeeName. - /// parentAccount. - /// relations. - /// shippingAddress. - /// shippingAddressSameAsMain. - /// shippingAddressValidated. - /// shippingContact. - /// sourceCampaign. - /// status. - /// type. - /// workgroup. - /// workgroupDescription. - public BusinessAccount(StringValue accountRef = default(StringValue), List activities = default(List), List attributes = default(List), StringValue businessAccountID = default(StringValue), List campaigns = default(List), List cases = default(List), StringValue classID = default(StringValue), List contacts = default(List), List contracts = default(List), BusinessAccountDefaultLocationSetting defaultLocationSettings = default(BusinessAccountDefaultLocationSetting), StringValue duplicate = default(StringValue), List duplicates = default(List), DateTimeValue lastIncomingActivity = default(DateTimeValue), DateTimeValue lastOutgoingActivity = default(DateTimeValue), List locations = default(List), Address mainAddress = default(Address), BooleanValue mainAddressValidated = default(BooleanValue), BusinessAccountMainContact mainContact = default(BusinessAccountMainContact), List marketingLists = default(List), StringValue name = default(StringValue), List opportunities = default(List), List orders = default(List), StringValue owner = default(StringValue), StringValue ownerEmployeeName = default(StringValue), StringValue parentAccount = default(StringValue), List relations = default(List), Address shippingAddress = default(Address), BooleanValue shippingAddressSameAsMain = default(BooleanValue), BooleanValue shippingAddressValidated = default(BooleanValue), BusinessAccountShippingContact shippingContact = default(BusinessAccountShippingContact), StringValue sourceCampaign = default(StringValue), StringValue status = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), StringValue workgroupDescription = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountRef = accountRef; - this.Activities = activities; - this.Attributes = attributes; - this.BusinessAccountID = businessAccountID; - this.Campaigns = campaigns; - this.Cases = cases; - this.ClassID = classID; - this.Contacts = contacts; - this.Contracts = contracts; - this.DefaultLocationSettings = defaultLocationSettings; - this.Duplicate = duplicate; - this.Duplicates = duplicates; - this.LastIncomingActivity = lastIncomingActivity; - this.LastOutgoingActivity = lastOutgoingActivity; - this.Locations = locations; - this.MainAddress = mainAddress; - this.MainAddressValidated = mainAddressValidated; - this.MainContact = mainContact; - this.MarketingLists = marketingLists; - this.Name = name; - this.Opportunities = opportunities; - this.Orders = orders; - this.Owner = owner; - this.OwnerEmployeeName = ownerEmployeeName; - this.ParentAccount = parentAccount; - this.Relations = relations; - this.ShippingAddress = shippingAddress; - this.ShippingAddressSameAsMain = shippingAddressSameAsMain; - this.ShippingAddressValidated = shippingAddressValidated; - this.ShippingContact = shippingContact; - this.SourceCampaign = sourceCampaign; - this.Status = status; - this.Type = type; - this.Workgroup = workgroup; - this.WorkgroupDescription = workgroupDescription; - } - - /// - /// Gets or Sets AccountRef - /// - [DataMember(Name="AccountRef", EmitDefaultValue=false)] - public StringValue AccountRef { get; set; } - - /// - /// Gets or Sets Activities - /// - [DataMember(Name="Activities", EmitDefaultValue=false)] - public List Activities { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets BusinessAccountID - /// - [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] - public StringValue BusinessAccountID { get; set; } - - /// - /// Gets or Sets Campaigns - /// - [DataMember(Name="Campaigns", EmitDefaultValue=false)] - public List Campaigns { get; set; } - - /// - /// Gets or Sets Cases - /// - [DataMember(Name="Cases", EmitDefaultValue=false)] - public List Cases { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets Contacts - /// - [DataMember(Name="Contacts", EmitDefaultValue=false)] - public List Contacts { get; set; } - - /// - /// Gets or Sets Contracts - /// - [DataMember(Name="Contracts", EmitDefaultValue=false)] - public List Contracts { get; set; } - - /// - /// Gets or Sets DefaultLocationSettings - /// - [DataMember(Name="DefaultLocationSettings", EmitDefaultValue=false)] - public BusinessAccountDefaultLocationSetting DefaultLocationSettings { get; set; } - - /// - /// Gets or Sets Duplicate - /// - [DataMember(Name="Duplicate", EmitDefaultValue=false)] - public StringValue Duplicate { get; set; } - - /// - /// Gets or Sets Duplicates - /// - [DataMember(Name="Duplicates", EmitDefaultValue=false)] - public List Duplicates { get; set; } - - /// - /// Gets or Sets LastIncomingActivity - /// - [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] - public DateTimeValue LastIncomingActivity { get; set; } - - /// - /// Gets or Sets LastOutgoingActivity - /// - [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] - public DateTimeValue LastOutgoingActivity { get; set; } - - /// - /// Gets or Sets Locations - /// - [DataMember(Name="Locations", EmitDefaultValue=false)] - public List Locations { get; set; } - - /// - /// Gets or Sets MainAddress - /// - [DataMember(Name="MainAddress", EmitDefaultValue=false)] - public Address MainAddress { get; set; } - - /// - /// Gets or Sets MainAddressValidated - /// - [DataMember(Name="MainAddressValidated", EmitDefaultValue=false)] - public BooleanValue MainAddressValidated { get; set; } - - /// - /// Gets or Sets MainContact - /// - [DataMember(Name="MainContact", EmitDefaultValue=false)] - public BusinessAccountMainContact MainContact { get; set; } - - /// - /// Gets or Sets MarketingLists - /// - [DataMember(Name="MarketingLists", EmitDefaultValue=false)] - public List MarketingLists { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Gets or Sets Opportunities - /// - [DataMember(Name="Opportunities", EmitDefaultValue=false)] - public List Opportunities { get; set; } - - /// - /// Gets or Sets Orders - /// - [DataMember(Name="Orders", EmitDefaultValue=false)] - public List Orders { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets OwnerEmployeeName - /// - [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] - public StringValue OwnerEmployeeName { get; set; } - - /// - /// Gets or Sets ParentAccount - /// - [DataMember(Name="ParentAccount", EmitDefaultValue=false)] - public StringValue ParentAccount { get; set; } - - /// - /// Gets or Sets Relations - /// - [DataMember(Name="Relations", EmitDefaultValue=false)] - public List Relations { get; set; } - - /// - /// Gets or Sets ShippingAddress - /// - [DataMember(Name="ShippingAddress", EmitDefaultValue=false)] - public Address ShippingAddress { get; set; } - - /// - /// Gets or Sets ShippingAddressSameAsMain - /// - [DataMember(Name="ShippingAddressSameAsMain", EmitDefaultValue=false)] - public BooleanValue ShippingAddressSameAsMain { get; set; } - - /// - /// Gets or Sets ShippingAddressValidated - /// - [DataMember(Name="ShippingAddressValidated", EmitDefaultValue=false)] - public BooleanValue ShippingAddressValidated { get; set; } - - /// - /// Gets or Sets ShippingContact - /// - [DataMember(Name="ShippingContact", EmitDefaultValue=false)] - public BusinessAccountShippingContact ShippingContact { get; set; } - - /// - /// Gets or Sets SourceCampaign - /// - [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] - public StringValue SourceCampaign { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Gets or Sets WorkgroupDescription - /// - [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] - public StringValue WorkgroupDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountRef: ").Append(AccountRef).Append("\n"); - sb.Append(" Activities: ").Append(Activities).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BusinessAccountID: ").Append(BusinessAccountID).Append("\n"); - sb.Append(" Campaigns: ").Append(Campaigns).Append("\n"); - sb.Append(" Cases: ").Append(Cases).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" Contacts: ").Append(Contacts).Append("\n"); - sb.Append(" Contracts: ").Append(Contracts).Append("\n"); - sb.Append(" DefaultLocationSettings: ").Append(DefaultLocationSettings).Append("\n"); - sb.Append(" Duplicate: ").Append(Duplicate).Append("\n"); - sb.Append(" Duplicates: ").Append(Duplicates).Append("\n"); - sb.Append(" LastIncomingActivity: ").Append(LastIncomingActivity).Append("\n"); - sb.Append(" LastOutgoingActivity: ").Append(LastOutgoingActivity).Append("\n"); - sb.Append(" Locations: ").Append(Locations).Append("\n"); - sb.Append(" MainAddress: ").Append(MainAddress).Append("\n"); - sb.Append(" MainAddressValidated: ").Append(MainAddressValidated).Append("\n"); - sb.Append(" MainContact: ").Append(MainContact).Append("\n"); - sb.Append(" MarketingLists: ").Append(MarketingLists).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Opportunities: ").Append(Opportunities).Append("\n"); - sb.Append(" Orders: ").Append(Orders).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerEmployeeName: ").Append(OwnerEmployeeName).Append("\n"); - sb.Append(" ParentAccount: ").Append(ParentAccount).Append("\n"); - sb.Append(" Relations: ").Append(Relations).Append("\n"); - sb.Append(" ShippingAddress: ").Append(ShippingAddress).Append("\n"); - sb.Append(" ShippingAddressSameAsMain: ").Append(ShippingAddressSameAsMain).Append("\n"); - sb.Append(" ShippingAddressValidated: ").Append(ShippingAddressValidated).Append("\n"); - sb.Append(" ShippingContact: ").Append(ShippingContact).Append("\n"); - sb.Append(" SourceCampaign: ").Append(SourceCampaign).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append(" WorkgroupDescription: ").Append(WorkgroupDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccount); - } - - /// - /// Returns true if BusinessAccount instances are equal - /// - /// Instance of BusinessAccount to be compared - /// Boolean - public bool Equals(BusinessAccount input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountRef == input.AccountRef || - (this.AccountRef != null && - this.AccountRef.Equals(input.AccountRef)) - ) && base.Equals(input) && - ( - this.Activities == input.Activities || - this.Activities != null && - this.Activities.SequenceEqual(input.Activities) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BusinessAccountID == input.BusinessAccountID || - (this.BusinessAccountID != null && - this.BusinessAccountID.Equals(input.BusinessAccountID)) - ) && base.Equals(input) && - ( - this.Campaigns == input.Campaigns || - this.Campaigns != null && - this.Campaigns.SequenceEqual(input.Campaigns) - ) && base.Equals(input) && - ( - this.Cases == input.Cases || - this.Cases != null && - this.Cases.SequenceEqual(input.Cases) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.Contacts == input.Contacts || - this.Contacts != null && - this.Contacts.SequenceEqual(input.Contacts) - ) && base.Equals(input) && - ( - this.Contracts == input.Contracts || - this.Contracts != null && - this.Contracts.SequenceEqual(input.Contracts) - ) && base.Equals(input) && - ( - this.DefaultLocationSettings == input.DefaultLocationSettings || - (this.DefaultLocationSettings != null && - this.DefaultLocationSettings.Equals(input.DefaultLocationSettings)) - ) && base.Equals(input) && - ( - this.Duplicate == input.Duplicate || - (this.Duplicate != null && - this.Duplicate.Equals(input.Duplicate)) - ) && base.Equals(input) && - ( - this.Duplicates == input.Duplicates || - this.Duplicates != null && - this.Duplicates.SequenceEqual(input.Duplicates) - ) && base.Equals(input) && - ( - this.LastIncomingActivity == input.LastIncomingActivity || - (this.LastIncomingActivity != null && - this.LastIncomingActivity.Equals(input.LastIncomingActivity)) - ) && base.Equals(input) && - ( - this.LastOutgoingActivity == input.LastOutgoingActivity || - (this.LastOutgoingActivity != null && - this.LastOutgoingActivity.Equals(input.LastOutgoingActivity)) - ) && base.Equals(input) && - ( - this.Locations == input.Locations || - this.Locations != null && - this.Locations.SequenceEqual(input.Locations) - ) && base.Equals(input) && - ( - this.MainAddress == input.MainAddress || - (this.MainAddress != null && - this.MainAddress.Equals(input.MainAddress)) - ) && base.Equals(input) && - ( - this.MainAddressValidated == input.MainAddressValidated || - (this.MainAddressValidated != null && - this.MainAddressValidated.Equals(input.MainAddressValidated)) - ) && base.Equals(input) && - ( - this.MainContact == input.MainContact || - (this.MainContact != null && - this.MainContact.Equals(input.MainContact)) - ) && base.Equals(input) && - ( - this.MarketingLists == input.MarketingLists || - this.MarketingLists != null && - this.MarketingLists.SequenceEqual(input.MarketingLists) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.Opportunities == input.Opportunities || - this.Opportunities != null && - this.Opportunities.SequenceEqual(input.Opportunities) - ) && base.Equals(input) && - ( - this.Orders == input.Orders || - this.Orders != null && - this.Orders.SequenceEqual(input.Orders) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.OwnerEmployeeName == input.OwnerEmployeeName || - (this.OwnerEmployeeName != null && - this.OwnerEmployeeName.Equals(input.OwnerEmployeeName)) - ) && base.Equals(input) && - ( - this.ParentAccount == input.ParentAccount || - (this.ParentAccount != null && - this.ParentAccount.Equals(input.ParentAccount)) - ) && base.Equals(input) && - ( - this.Relations == input.Relations || - this.Relations != null && - this.Relations.SequenceEqual(input.Relations) - ) && base.Equals(input) && - ( - this.ShippingAddress == input.ShippingAddress || - (this.ShippingAddress != null && - this.ShippingAddress.Equals(input.ShippingAddress)) - ) && base.Equals(input) && - ( - this.ShippingAddressSameAsMain == input.ShippingAddressSameAsMain || - (this.ShippingAddressSameAsMain != null && - this.ShippingAddressSameAsMain.Equals(input.ShippingAddressSameAsMain)) - ) && base.Equals(input) && - ( - this.ShippingAddressValidated == input.ShippingAddressValidated || - (this.ShippingAddressValidated != null && - this.ShippingAddressValidated.Equals(input.ShippingAddressValidated)) - ) && base.Equals(input) && - ( - this.ShippingContact == input.ShippingContact || - (this.ShippingContact != null && - this.ShippingContact.Equals(input.ShippingContact)) - ) && base.Equals(input) && - ( - this.SourceCampaign == input.SourceCampaign || - (this.SourceCampaign != null && - this.SourceCampaign.Equals(input.SourceCampaign)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ) && base.Equals(input) && - ( - this.WorkgroupDescription == input.WorkgroupDescription || - (this.WorkgroupDescription != null && - this.WorkgroupDescription.Equals(input.WorkgroupDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountRef != null) - hashCode = hashCode * 59 + this.AccountRef.GetHashCode(); - if (this.Activities != null) - hashCode = hashCode * 59 + this.Activities.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BusinessAccountID != null) - hashCode = hashCode * 59 + this.BusinessAccountID.GetHashCode(); - if (this.Campaigns != null) - hashCode = hashCode * 59 + this.Campaigns.GetHashCode(); - if (this.Cases != null) - hashCode = hashCode * 59 + this.Cases.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.Contacts != null) - hashCode = hashCode * 59 + this.Contacts.GetHashCode(); - if (this.Contracts != null) - hashCode = hashCode * 59 + this.Contracts.GetHashCode(); - if (this.DefaultLocationSettings != null) - hashCode = hashCode * 59 + this.DefaultLocationSettings.GetHashCode(); - if (this.Duplicate != null) - hashCode = hashCode * 59 + this.Duplicate.GetHashCode(); - if (this.Duplicates != null) - hashCode = hashCode * 59 + this.Duplicates.GetHashCode(); - if (this.LastIncomingActivity != null) - hashCode = hashCode * 59 + this.LastIncomingActivity.GetHashCode(); - if (this.LastOutgoingActivity != null) - hashCode = hashCode * 59 + this.LastOutgoingActivity.GetHashCode(); - if (this.Locations != null) - hashCode = hashCode * 59 + this.Locations.GetHashCode(); - if (this.MainAddress != null) - hashCode = hashCode * 59 + this.MainAddress.GetHashCode(); - if (this.MainAddressValidated != null) - hashCode = hashCode * 59 + this.MainAddressValidated.GetHashCode(); - if (this.MainContact != null) - hashCode = hashCode * 59 + this.MainContact.GetHashCode(); - if (this.MarketingLists != null) - hashCode = hashCode * 59 + this.MarketingLists.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Opportunities != null) - hashCode = hashCode * 59 + this.Opportunities.GetHashCode(); - if (this.Orders != null) - hashCode = hashCode * 59 + this.Orders.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerEmployeeName != null) - hashCode = hashCode * 59 + this.OwnerEmployeeName.GetHashCode(); - if (this.ParentAccount != null) - hashCode = hashCode * 59 + this.ParentAccount.GetHashCode(); - if (this.Relations != null) - hashCode = hashCode * 59 + this.Relations.GetHashCode(); - if (this.ShippingAddress != null) - hashCode = hashCode * 59 + this.ShippingAddress.GetHashCode(); - if (this.ShippingAddressSameAsMain != null) - hashCode = hashCode * 59 + this.ShippingAddressSameAsMain.GetHashCode(); - if (this.ShippingAddressValidated != null) - hashCode = hashCode * 59 + this.ShippingAddressValidated.GetHashCode(); - if (this.ShippingContact != null) - hashCode = hashCode * 59 + this.ShippingContact.GetHashCode(); - if (this.SourceCampaign != null) - hashCode = hashCode * 59 + this.SourceCampaign.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - if (this.WorkgroupDescription != null) - hashCode = hashCode * 59 + this.WorkgroupDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class BusinessAccount : Entity + { + + [DataMember(Name="AccountRef", EmitDefaultValue=false)] + public StringValue AccountRef { get; set; } + + [DataMember(Name="Activities", EmitDefaultValue=false)] + public List Activities { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] + public StringValue BusinessAccountID { get; set; } + + [DataMember(Name="Campaigns", EmitDefaultValue=false)] + public List Campaigns { get; set; } + + [DataMember(Name="Cases", EmitDefaultValue=false)] + public List Cases { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="Contacts", EmitDefaultValue=false)] + public List Contacts { get; set; } + + [DataMember(Name="Contracts", EmitDefaultValue=false)] + public List Contracts { get; set; } + + [DataMember(Name="DefaultLocationSettings", EmitDefaultValue=false)] + public BusinessAccountDefaultLocationSetting DefaultLocationSettings { get; set; } + + [DataMember(Name="Duplicate", EmitDefaultValue=false)] + public StringValue Duplicate { get; set; } + + [DataMember(Name="Duplicates", EmitDefaultValue=false)] + public List Duplicates { get; set; } + + [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] + public DateTimeValue LastIncomingActivity { get; set; } + + [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] + public DateTimeValue LastOutgoingActivity { get; set; } + + [DataMember(Name="Locations", EmitDefaultValue=false)] + public List Locations { get; set; } + + [DataMember(Name="MainAddress", EmitDefaultValue=false)] + public Address MainAddress { get; set; } + + [DataMember(Name="MainAddressValidated", EmitDefaultValue=false)] + public BooleanValue MainAddressValidated { get; set; } + + [DataMember(Name="MainContact", EmitDefaultValue=false)] + public BusinessAccountMainContact MainContact { get; set; } + + [DataMember(Name="MarketingLists", EmitDefaultValue=false)] + public List MarketingLists { get; set; } + + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } + + [DataMember(Name="Opportunities", EmitDefaultValue=false)] + public List Opportunities { get; set; } + + [DataMember(Name="Orders", EmitDefaultValue=false)] + public List Orders { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] + public StringValue OwnerEmployeeName { get; set; } + + [DataMember(Name="ParentAccount", EmitDefaultValue=false)] + public StringValue ParentAccount { get; set; } + + [DataMember(Name="Relations", EmitDefaultValue=false)] + public List Relations { get; set; } + + [DataMember(Name="ShippingAddress", EmitDefaultValue=false)] + public Address ShippingAddress { get; set; } + + [DataMember(Name="ShippingAddressSameAsMain", EmitDefaultValue=false)] + public BooleanValue ShippingAddressSameAsMain { get; set; } + + [DataMember(Name="ShippingAddressValidated", EmitDefaultValue=false)] + public BooleanValue ShippingAddressValidated { get; set; } + + [DataMember(Name="ShippingContact", EmitDefaultValue=false)] + public BusinessAccountShippingContact ShippingContact { get; set; } + + [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] + public StringValue SourceCampaign { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] + public StringValue WorkgroupDescription { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountActivityDetail.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountActivityDetail.cs index 3105fe22..6b8ea48c 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountActivityDetail.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountActivityDetail.cs @@ -1,414 +1,69 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountActivityDetail - /// - [DataContract] - public partial class BusinessAccountActivityDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// classIcon. - /// createdAt. - /// creatorID. - /// creatorUsername. - /// isCompleteIcon. - /// owner. - /// priorityIcon. - /// project. - /// projectTask. - /// refNoteID. - /// relatedEntityDescription. - /// released. - /// reminderIcon. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - /// workgroup. - public BusinessAccountActivityDetail(StringValue classIcon = default(StringValue), DateTimeValue createdAt = default(DateTimeValue), StringValue creatorID = default(StringValue), StringValue creatorUsername = default(StringValue), StringValue isCompleteIcon = default(StringValue), StringValue owner = default(StringValue), StringValue priorityIcon = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), GuidValue refNoteID = default(GuidValue), StringValue relatedEntityDescription = default(StringValue), BooleanValue released = default(BooleanValue), StringValue reminderIcon = default(StringValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ClassIcon = classIcon; - this.CreatedAt = createdAt; - this.CreatorID = creatorID; - this.CreatorUsername = creatorUsername; - this.IsCompleteIcon = isCompleteIcon; - this.Owner = owner; - this.PriorityIcon = priorityIcon; - this.Project = project; - this.ProjectTask = projectTask; - this.RefNoteID = refNoteID; - this.RelatedEntityDescription = relatedEntityDescription; - this.Released = released; - this.ReminderIcon = reminderIcon; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets ClassIcon - /// - [DataMember(Name="ClassIcon", EmitDefaultValue=false)] - public StringValue ClassIcon { get; set; } - - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name="CreatedAt", EmitDefaultValue=false)] - public DateTimeValue CreatedAt { get; set; } - - /// - /// Gets or Sets CreatorID - /// - [DataMember(Name="CreatorID", EmitDefaultValue=false)] - public StringValue CreatorID { get; set; } - - /// - /// Gets or Sets CreatorUsername - /// - [DataMember(Name="CreatorUsername", EmitDefaultValue=false)] - public StringValue CreatorUsername { get; set; } - - /// - /// Gets or Sets IsCompleteIcon - /// - [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] - public StringValue IsCompleteIcon { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataContract] + public partial class BusinessAccountActivityDetail : Entity + { - /// - /// Gets or Sets PriorityIcon - /// - [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] - public StringValue PriorityIcon { get; set; } + [DataMember(Name="ClassIcon", EmitDefaultValue=false)] + public StringValue ClassIcon { get; set; } - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTimeValue CreatedAt { get; set; } - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } + [DataMember(Name="CreatorID", EmitDefaultValue=false)] + public StringValue CreatorID { get; set; } - /// - /// Gets or Sets RefNoteID - /// - [DataMember(Name="RefNoteID", EmitDefaultValue=false)] - public GuidValue RefNoteID { get; set; } + [DataMember(Name="CreatorUsername", EmitDefaultValue=false)] + public StringValue CreatorUsername { get; set; } - /// - /// Gets or Sets RelatedEntityDescription - /// - [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] - public StringValue RelatedEntityDescription { get; set; } + [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] + public StringValue IsCompleteIcon { get; set; } - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Gets or Sets ReminderIcon - /// - [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] - public StringValue ReminderIcon { get; set; } + [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] + public StringValue PriorityIcon { get; set; } - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } + [DataMember(Name="RefNoteID", EmitDefaultValue=false)] + public GuidValue RefNoteID { get; set; } - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } + [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] + public StringValue RelatedEntityDescription { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } + [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] + public StringValue ReminderIcon { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountActivityDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ClassIcon: ").Append(ClassIcon).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" CreatorID: ").Append(CreatorID).Append("\n"); - sb.Append(" CreatorUsername: ").Append(CreatorUsername).Append("\n"); - sb.Append(" IsCompleteIcon: ").Append(IsCompleteIcon).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PriorityIcon: ").Append(PriorityIcon).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" RefNoteID: ").Append(RefNoteID).Append("\n"); - sb.Append(" RelatedEntityDescription: ").Append(RelatedEntityDescription).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" ReminderIcon: ").Append(ReminderIcon).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountActivityDetail); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns true if BusinessAccountActivityDetail instances are equal - /// - /// Instance of BusinessAccountActivityDetail to be compared - /// Boolean - public bool Equals(BusinessAccountActivityDetail input) - { - if (input == null) - return false; + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } - return base.Equals(input) && - ( - this.ClassIcon == input.ClassIcon || - (this.ClassIcon != null && - this.ClassIcon.Equals(input.ClassIcon)) - ) && base.Equals(input) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && base.Equals(input) && - ( - this.CreatorID == input.CreatorID || - (this.CreatorID != null && - this.CreatorID.Equals(input.CreatorID)) - ) && base.Equals(input) && - ( - this.CreatorUsername == input.CreatorUsername || - (this.CreatorUsername != null && - this.CreatorUsername.Equals(input.CreatorUsername)) - ) && base.Equals(input) && - ( - this.IsCompleteIcon == input.IsCompleteIcon || - (this.IsCompleteIcon != null && - this.IsCompleteIcon.Equals(input.IsCompleteIcon)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PriorityIcon == input.PriorityIcon || - (this.PriorityIcon != null && - this.PriorityIcon.Equals(input.PriorityIcon)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.RefNoteID == input.RefNoteID || - (this.RefNoteID != null && - this.RefNoteID.Equals(input.RefNoteID)) - ) && base.Equals(input) && - ( - this.RelatedEntityDescription == input.RelatedEntityDescription || - (this.RelatedEntityDescription != null && - this.RelatedEntityDescription.Equals(input.RelatedEntityDescription)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.ReminderIcon == input.ReminderIcon || - (this.ReminderIcon != null && - this.ReminderIcon.Equals(input.ReminderIcon)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ClassIcon != null) - hashCode = hashCode * 59 + this.ClassIcon.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.CreatorID != null) - hashCode = hashCode * 59 + this.CreatorID.GetHashCode(); - if (this.CreatorUsername != null) - hashCode = hashCode * 59 + this.CreatorUsername.GetHashCode(); - if (this.IsCompleteIcon != null) - hashCode = hashCode * 59 + this.IsCompleteIcon.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PriorityIcon != null) - hashCode = hashCode * 59 + this.PriorityIcon.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.RefNoteID != null) - hashCode = hashCode * 59 + this.RefNoteID.GetHashCode(); - if (this.RelatedEntityDescription != null) - hashCode = hashCode * 59 + this.RelatedEntityDescription.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.ReminderIcon != null) - hashCode = hashCode * 59 + this.ReminderIcon.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountCaseDetail.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountCaseDetail.cs index ea8030b3..b8277296 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountCaseDetail.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountCaseDetail.cs @@ -1,318 +1,51 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountCaseDetail - /// - [DataContract] - public partial class BusinessAccountCaseDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// caseID. - /// classID. - /// closingDate. - /// contract. - /// dateReported. - /// estimation. - /// initialResponse. - /// owner. - /// reason. - /// severity. - /// status. - /// subject. - /// workgroup. - public BusinessAccountCaseDetail(StringValue caseID = default(StringValue), StringValue classID = default(StringValue), DateTimeValue closingDate = default(DateTimeValue), StringValue contract = default(StringValue), DateTimeValue dateReported = default(DateTimeValue), StringValue estimation = default(StringValue), StringValue initialResponse = default(StringValue), StringValue owner = default(StringValue), StringValue reason = default(StringValue), StringValue severity = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CaseID = caseID; - this.ClassID = classID; - this.ClosingDate = closingDate; - this.Contract = contract; - this.DateReported = dateReported; - this.Estimation = estimation; - this.InitialResponse = initialResponse; - this.Owner = owner; - this.Reason = reason; - this.Severity = severity; - this.Status = status; - this.Subject = subject; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets CaseID - /// - [DataMember(Name="CaseID", EmitDefaultValue=false)] - public StringValue CaseID { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets ClosingDate - /// - [DataMember(Name="ClosingDate", EmitDefaultValue=false)] - public DateTimeValue ClosingDate { get; set; } - - /// - /// Gets or Sets Contract - /// - [DataMember(Name="Contract", EmitDefaultValue=false)] - public StringValue Contract { get; set; } - - /// - /// Gets or Sets DateReported - /// - [DataMember(Name="DateReported", EmitDefaultValue=false)] - public DateTimeValue DateReported { get; set; } - - /// - /// Gets or Sets Estimation - /// - [DataMember(Name="Estimation", EmitDefaultValue=false)] - public StringValue Estimation { get; set; } + [DataContract] + public partial class BusinessAccountCaseDetail : Entity + { - /// - /// Gets or Sets InitialResponse - /// - [DataMember(Name="InitialResponse", EmitDefaultValue=false)] - public StringValue InitialResponse { get; set; } + [DataMember(Name="CaseID", EmitDefaultValue=false)] + public StringValue CaseID { get; set; } - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } + [DataMember(Name="ClosingDate", EmitDefaultValue=false)] + public DateTimeValue ClosingDate { get; set; } - /// - /// Gets or Sets Severity - /// - [DataMember(Name="Severity", EmitDefaultValue=false)] - public StringValue Severity { get; set; } + [DataMember(Name="Contract", EmitDefaultValue=false)] + public StringValue Contract { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="DateReported", EmitDefaultValue=false)] + public DateTimeValue DateReported { get; set; } - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } + [DataMember(Name="Estimation", EmitDefaultValue=false)] + public StringValue Estimation { get; set; } - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } + [DataMember(Name="InitialResponse", EmitDefaultValue=false)] + public StringValue InitialResponse { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountCaseDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CaseID: ").Append(CaseID).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" ClosingDate: ").Append(ClosingDate).Append("\n"); - sb.Append(" Contract: ").Append(Contract).Append("\n"); - sb.Append(" DateReported: ").Append(DateReported).Append("\n"); - sb.Append(" Estimation: ").Append(Estimation).Append("\n"); - sb.Append(" InitialResponse: ").Append(InitialResponse).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" Severity: ").Append(Severity).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountCaseDetail); - } + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } - /// - /// Returns true if BusinessAccountCaseDetail instances are equal - /// - /// Instance of BusinessAccountCaseDetail to be compared - /// Boolean - public bool Equals(BusinessAccountCaseDetail input) - { - if (input == null) - return false; + [DataMember(Name="Severity", EmitDefaultValue=false)] + public StringValue Severity { get; set; } - return base.Equals(input) && - ( - this.CaseID == input.CaseID || - (this.CaseID != null && - this.CaseID.Equals(input.CaseID)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.ClosingDate == input.ClosingDate || - (this.ClosingDate != null && - this.ClosingDate.Equals(input.ClosingDate)) - ) && base.Equals(input) && - ( - this.Contract == input.Contract || - (this.Contract != null && - this.Contract.Equals(input.Contract)) - ) && base.Equals(input) && - ( - this.DateReported == input.DateReported || - (this.DateReported != null && - this.DateReported.Equals(input.DateReported)) - ) && base.Equals(input) && - ( - this.Estimation == input.Estimation || - (this.Estimation != null && - this.Estimation.Equals(input.Estimation)) - ) && base.Equals(input) && - ( - this.InitialResponse == input.InitialResponse || - (this.InitialResponse != null && - this.InitialResponse.Equals(input.InitialResponse)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.Severity == input.Severity || - (this.Severity != null && - this.Severity.Equals(input.Severity)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CaseID != null) - hashCode = hashCode * 59 + this.CaseID.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.ClosingDate != null) - hashCode = hashCode * 59 + this.ClosingDate.GetHashCode(); - if (this.Contract != null) - hashCode = hashCode * 59 + this.Contract.GetHashCode(); - if (this.DateReported != null) - hashCode = hashCode * 59 + this.DateReported.GetHashCode(); - if (this.Estimation != null) - hashCode = hashCode * 59 + this.Estimation.GetHashCode(); - if (this.InitialResponse != null) - hashCode = hashCode * 59 + this.InitialResponse.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.Severity != null) - hashCode = hashCode * 59 + this.Severity.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountClassAttributeDetail.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountClassAttributeDetail.cs index ce982d34..1528dc6e 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountClassAttributeDetail.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountClassAttributeDetail.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountClassAttributeDetail - /// - [DataContract] - public partial class BusinessAccountClassAttributeDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// attributeID. - /// defaultValue. - /// description. - /// required. - /// sortOrder. - public BusinessAccountClassAttributeDetail(BooleanValue active = default(BooleanValue), StringValue attributeID = default(StringValue), StringValue defaultValue = default(StringValue), StringValue description = default(StringValue), BooleanValue required = default(BooleanValue), ShortValue sortOrder = default(ShortValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AttributeID = attributeID; - this.DefaultValue = defaultValue; - this.Description = description; - this.Required = required; - this.SortOrder = sortOrder; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AttributeID - /// - [DataMember(Name="AttributeID", EmitDefaultValue=false)] - public StringValue AttributeID { get; set; } - - /// - /// Gets or Sets DefaultValue - /// - [DataMember(Name="DefaultValue", EmitDefaultValue=false)] - public StringValue DefaultValue { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="Required", EmitDefaultValue=false)] - public BooleanValue Required { get; set; } - - /// - /// Gets or Sets SortOrder - /// - [DataMember(Name="SortOrder", EmitDefaultValue=false)] - public ShortValue SortOrder { get; set; } + [DataContract] + public partial class BusinessAccountClassAttributeDetail : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountClassAttributeDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AttributeID: ").Append(AttributeID).Append("\n"); - sb.Append(" DefaultValue: ").Append(DefaultValue).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" SortOrder: ").Append(SortOrder).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountClassAttributeDetail); - } + [DataMember(Name="AttributeID", EmitDefaultValue=false)] + public StringValue AttributeID { get; set; } - /// - /// Returns true if BusinessAccountClassAttributeDetail instances are equal - /// - /// Instance of BusinessAccountClassAttributeDetail to be compared - /// Boolean - public bool Equals(BusinessAccountClassAttributeDetail input) - { - if (input == null) - return false; + [DataMember(Name="DefaultValue", EmitDefaultValue=false)] + public StringValue DefaultValue { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AttributeID == input.AttributeID || - (this.AttributeID != null && - this.AttributeID.Equals(input.AttributeID)) - ) && base.Equals(input) && - ( - this.DefaultValue == input.DefaultValue || - (this.DefaultValue != null && - this.DefaultValue.Equals(input.DefaultValue)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && base.Equals(input) && - ( - this.SortOrder == input.SortOrder || - (this.SortOrder != null && - this.SortOrder.Equals(input.SortOrder)) - ); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AttributeID != null) - hashCode = hashCode * 59 + this.AttributeID.GetHashCode(); - if (this.DefaultValue != null) - hashCode = hashCode * 59 + this.DefaultValue.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.SortOrder != null) - hashCode = hashCode * 59 + this.SortOrder.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Required", EmitDefaultValue=false)] + public BooleanValue Required { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="SortOrder", EmitDefaultValue=false)] + public ShortValue SortOrder { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountContact.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountContact.cs index 3ef48c8f..59997203 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountContact.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountContact.cs @@ -1,270 +1,42 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountContact - /// - [DataContract] - public partial class BusinessAccountContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// city. - /// contactID. - /// displayName. - /// email. - /// jobTitle. - /// owner. - /// phone1. - /// type. - /// workgroup. - public BusinessAccountContact(BooleanValue active = default(BooleanValue), StringValue city = default(StringValue), IntValue contactID = default(IntValue), StringValue displayName = default(StringValue), StringValue email = default(StringValue), StringValue jobTitle = default(StringValue), StringValue owner = default(StringValue), StringValue phone1 = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.City = city; - this.ContactID = contactID; - this.DisplayName = displayName; - this.Email = email; - this.JobTitle = jobTitle; - this.Owner = owner; - this.Phone1 = phone1; - this.Type = type; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets City - /// - [DataMember(Name="City", EmitDefaultValue=false)] - public StringValue City { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets JobTitle - /// - [DataMember(Name="JobTitle", EmitDefaultValue=false)] - public StringValue JobTitle { get; set; } + [DataContract] + public partial class BusinessAccountContact : Entity + { - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } + [DataMember(Name="City", EmitDefaultValue=false)] + public StringValue City { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountContact); - } + [DataMember(Name="JobTitle", EmitDefaultValue=false)] + public StringValue JobTitle { get; set; } - /// - /// Returns true if BusinessAccountContact instances are equal - /// - /// Instance of BusinessAccountContact to be compared - /// Boolean - public bool Equals(BusinessAccountContact input) - { - if (input == null) - return false; + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.JobTitle == input.JobTitle || - (this.JobTitle != null && - this.JobTitle.Equals(input.JobTitle)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.City != null) - hashCode = hashCode * 59 + this.City.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.JobTitle != null) - hashCode = hashCode * 59 + this.JobTitle.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountContract.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountContract.cs index e7efdaf1..0ef2b723 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountContract.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountContract.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountContract - /// - [DataContract] - public partial class BusinessAccountContract : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// businessAccountID. - /// businessAccountName. - /// contractID. - /// description. - /// expirationDate. - /// location. - /// status. - public BusinessAccountContract(StringValue businessAccountID = default(StringValue), StringValue businessAccountName = default(StringValue), StringValue contractID = default(StringValue), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue location = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BusinessAccountID = businessAccountID; - this.BusinessAccountName = businessAccountName; - this.ContractID = contractID; - this.Description = description; - this.ExpirationDate = expirationDate; - this.Location = location; - this.Status = status; - } - - /// - /// Gets or Sets BusinessAccountID - /// - [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] - public StringValue BusinessAccountID { get; set; } - - /// - /// Gets or Sets BusinessAccountName - /// - [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] - public StringValue BusinessAccountName { get; set; } - - /// - /// Gets or Sets ContractID - /// - [DataMember(Name="ContractID", EmitDefaultValue=false)] - public StringValue ContractID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } + [DataContract] + public partial class BusinessAccountContract : Entity + { - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] + public StringValue BusinessAccountID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountContract {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BusinessAccountID: ").Append(BusinessAccountID).Append("\n"); - sb.Append(" BusinessAccountName: ").Append(BusinessAccountName).Append("\n"); - sb.Append(" ContractID: ").Append(ContractID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] + public StringValue BusinessAccountName { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountContract); - } + [DataMember(Name="ContractID", EmitDefaultValue=false)] + public StringValue ContractID { get; set; } - /// - /// Returns true if BusinessAccountContract instances are equal - /// - /// Instance of BusinessAccountContract to be compared - /// Boolean - public bool Equals(BusinessAccountContract input) - { - if (input == null) - return false; + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - return base.Equals(input) && - ( - this.BusinessAccountID == input.BusinessAccountID || - (this.BusinessAccountID != null && - this.BusinessAccountID.Equals(input.BusinessAccountID)) - ) && base.Equals(input) && - ( - this.BusinessAccountName == input.BusinessAccountName || - (this.BusinessAccountName != null && - this.BusinessAccountName.Equals(input.BusinessAccountName)) - ) && base.Equals(input) && - ( - this.ContractID == input.ContractID || - (this.ContractID != null && - this.ContractID.Equals(input.ContractID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BusinessAccountID != null) - hashCode = hashCode * 59 + this.BusinessAccountID.GetHashCode(); - if (this.BusinessAccountName != null) - hashCode = hashCode * 59 + this.BusinessAccountName.GetHashCode(); - if (this.ContractID != null) - hashCode = hashCode * 59 + this.ContractID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountDefaultLocationSetting.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountDefaultLocationSetting.cs index aec35b1d..bb9297e2 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountDefaultLocationSetting.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountDefaultLocationSetting.cs @@ -1,366 +1,60 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountDefaultLocationSetting - /// - [DataContract] - public partial class BusinessAccountDefaultLocationSetting : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// fOBPoint. - /// insurance. - /// leadTimeInDays. - /// locationName. - /// orderPriority. - /// priceClass. - /// residentialDelivery. - /// saturdayDelivery. - /// shippingBranch. - /// shippingRule. - /// shippingTerms. - /// shippingZone. - /// shipVia. - /// taxRegistrationID. - /// taxZone. - /// warehouse. - public BusinessAccountDefaultLocationSetting(StringValue fOBPoint = default(StringValue), BooleanValue insurance = default(BooleanValue), ShortValue leadTimeInDays = default(ShortValue), StringValue locationName = default(StringValue), ShortValue orderPriority = default(ShortValue), StringValue priceClass = default(StringValue), BooleanValue residentialDelivery = default(BooleanValue), BooleanValue saturdayDelivery = default(BooleanValue), StringValue shippingBranch = default(StringValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shippingZone = default(StringValue), StringValue shipVia = default(StringValue), StringValue taxRegistrationID = default(StringValue), StringValue taxZone = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.FOBPoint = fOBPoint; - this.Insurance = insurance; - this.LeadTimeInDays = leadTimeInDays; - this.LocationName = locationName; - this.OrderPriority = orderPriority; - this.PriceClass = priceClass; - this.ResidentialDelivery = residentialDelivery; - this.SaturdayDelivery = saturdayDelivery; - this.ShippingBranch = shippingBranch; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShippingZone = shippingZone; - this.ShipVia = shipVia; - this.TaxRegistrationID = taxRegistrationID; - this.TaxZone = taxZone; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets Insurance - /// - [DataMember(Name="Insurance", EmitDefaultValue=false)] - public BooleanValue Insurance { get; set; } - - /// - /// Gets or Sets LeadTimeInDays - /// - [DataMember(Name="LeadTimeInDays", EmitDefaultValue=false)] - public ShortValue LeadTimeInDays { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets OrderPriority - /// - [DataMember(Name="OrderPriority", EmitDefaultValue=false)] - public ShortValue OrderPriority { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } + [DataContract] + public partial class BusinessAccountDefaultLocationSetting : Entity + { - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } + [DataMember(Name="Insurance", EmitDefaultValue=false)] + public BooleanValue Insurance { get; set; } - /// - /// Gets or Sets ShippingBranch - /// - [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] - public StringValue ShippingBranch { get; set; } + [DataMember(Name="LeadTimeInDays", EmitDefaultValue=false)] + public ShortValue LeadTimeInDays { get; set; } - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } + [DataMember(Name="OrderPriority", EmitDefaultValue=false)] + public ShortValue OrderPriority { get; set; } - /// - /// Gets or Sets ShippingZone - /// - [DataMember(Name="ShippingZone", EmitDefaultValue=false)] - public StringValue ShippingZone { get; set; } + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } - /// - /// Gets or Sets TaxRegistrationID - /// - [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] - public StringValue TaxRegistrationID { get; set; } + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } + [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] + public StringValue ShippingBranch { get; set; } - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountDefaultLocationSetting {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" Insurance: ").Append(Insurance).Append("\n"); - sb.Append(" LeadTimeInDays: ").Append(LeadTimeInDays).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" OrderPriority: ").Append(OrderPriority).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" ShippingBranch: ").Append(ShippingBranch).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZone: ").Append(ShippingZone).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" TaxRegistrationID: ").Append(TaxRegistrationID).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountDefaultLocationSetting); - } + [DataMember(Name="ShippingZone", EmitDefaultValue=false)] + public StringValue ShippingZone { get; set; } - /// - /// Returns true if BusinessAccountDefaultLocationSetting instances are equal - /// - /// Instance of BusinessAccountDefaultLocationSetting to be compared - /// Boolean - public bool Equals(BusinessAccountDefaultLocationSetting input) - { - if (input == null) - return false; + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } - return base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.Insurance == input.Insurance || - (this.Insurance != null && - this.Insurance.Equals(input.Insurance)) - ) && base.Equals(input) && - ( - this.LeadTimeInDays == input.LeadTimeInDays || - (this.LeadTimeInDays != null && - this.LeadTimeInDays.Equals(input.LeadTimeInDays)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.OrderPriority == input.OrderPriority || - (this.OrderPriority != null && - this.OrderPriority.Equals(input.OrderPriority)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.ShippingBranch == input.ShippingBranch || - (this.ShippingBranch != null && - this.ShippingBranch.Equals(input.ShippingBranch)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZone == input.ShippingZone || - (this.ShippingZone != null && - this.ShippingZone.Equals(input.ShippingZone)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.TaxRegistrationID == input.TaxRegistrationID || - (this.TaxRegistrationID != null && - this.TaxRegistrationID.Equals(input.TaxRegistrationID)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } + [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] + public StringValue TaxRegistrationID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.Insurance != null) - hashCode = hashCode * 59 + this.Insurance.GetHashCode(); - if (this.LeadTimeInDays != null) - hashCode = hashCode * 59 + this.LeadTimeInDays.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.OrderPriority != null) - hashCode = hashCode * 59 + this.OrderPriority.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.ShippingBranch != null) - hashCode = hashCode * 59 + this.ShippingBranch.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZone != null) - hashCode = hashCode * 59 + this.ShippingZone.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.TaxRegistrationID != null) - hashCode = hashCode * 59 + this.TaxRegistrationID.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountLocation.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountLocation.cs index d89e83a8..b6134240 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountLocation.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountLocation.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountLocation - /// - [DataContract] - public partial class BusinessAccountLocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// city. - /// country. - /// _default. - /// locationID. - /// locationName. - /// priceClass. - /// salesAccount. - /// salesSubaccount. - /// state. - /// taxZone. - public BusinessAccountLocation(BooleanValue active = default(BooleanValue), StringValue city = default(StringValue), StringValue country = default(StringValue), BooleanValue _default = default(BooleanValue), StringValue locationID = default(StringValue), StringValue locationName = default(StringValue), StringValue priceClass = default(StringValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), StringValue state = default(StringValue), StringValue taxZone = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.City = city; - this.Country = country; - this.Default = _default; - this.LocationID = locationID; - this.LocationName = locationName; - this.PriceClass = priceClass; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.State = state; - this.TaxZone = taxZone; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets City - /// - [DataMember(Name="City", EmitDefaultValue=false)] - public StringValue City { get; set; } - - /// - /// Gets or Sets Country - /// - [DataMember(Name="Country", EmitDefaultValue=false)] - public StringValue Country { get; set; } - - /// - /// Gets or Sets Default - /// - [DataMember(Name="Default", EmitDefaultValue=false)] - public BooleanValue Default { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } + [DataContract] + public partial class BusinessAccountLocation : Entity + { - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } + [DataMember(Name="City", EmitDefaultValue=false)] + public StringValue City { get; set; } - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } + [DataMember(Name="Country", EmitDefaultValue=false)] + public StringValue Country { get; set; } - /// - /// Gets or Sets State - /// - [DataMember(Name="State", EmitDefaultValue=false)] - public StringValue State { get; set; } + [DataMember(Name="Default", EmitDefaultValue=false)] + public BooleanValue Default { get; set; } - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountLocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountLocation); - } + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } - /// - /// Returns true if BusinessAccountLocation instances are equal - /// - /// Instance of BusinessAccountLocation to be compared - /// Boolean - public bool Equals(BusinessAccountLocation input) - { - if (input == null) - return false; + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && base.Equals(input) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ) && base.Equals(input) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ); - } + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.City != null) - hashCode = hashCode * 59 + this.City.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="State", EmitDefaultValue=false)] + public StringValue State { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountMainContact.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountMainContact.cs index be957eeb..e7e96b35 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountMainContact.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountMainContact.cs @@ -1,254 +1,39 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountMainContact - /// - [DataContract] - public partial class BusinessAccountMainContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// companyName. - /// email. - /// fax. - /// jobTitle. - /// attention. - /// languageOrLocale. - /// phone1. - /// phone2. - /// web. - public BusinessAccountMainContact(StringValue companyName = default(StringValue), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue jobTitle = default(StringValue), StringValue attention = default(StringValue), StringValue languageOrLocale = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone2 = default(StringValue), StringValue web = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CompanyName = companyName; - this.Email = email; - this.Fax = fax; - this.JobTitle = jobTitle; - this.Attention = attention; - this.LanguageOrLocale = languageOrLocale; - this.Phone1 = phone1; - this.Phone2 = phone2; - this.Web = web; - } - - /// - /// Gets or Sets CompanyName - /// - [DataMember(Name="CompanyName", EmitDefaultValue=false)] - public StringValue CompanyName { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets JobTitle - /// - [DataMember(Name="JobTitle", EmitDefaultValue=false)] - public StringValue JobTitle { get; set; } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets LanguageOrLocale - /// - [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] - public StringValue LanguageOrLocale { get; set; } + [DataContract] + public partial class BusinessAccountMainContact : Entity + { - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public StringValue CompanyName { get; set; } - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - /// - /// Gets or Sets Web - /// - [DataMember(Name="Web", EmitDefaultValue=false)] - public StringValue Web { get; set; } + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountMainContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" LanguageOrLocale: ").Append(LanguageOrLocale).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" Web: ").Append(Web).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="JobTitle", EmitDefaultValue=false)] + public StringValue JobTitle { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountMainContact); - } + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } - /// - /// Returns true if BusinessAccountMainContact instances are equal - /// - /// Instance of BusinessAccountMainContact to be compared - /// Boolean - public bool Equals(BusinessAccountMainContact input) - { - if (input == null) - return false; + [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] + public StringValue LanguageOrLocale { get; set; } - return base.Equals(input) && - ( - this.CompanyName == input.CompanyName || - (this.CompanyName != null && - this.CompanyName.Equals(input.CompanyName)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.JobTitle == input.JobTitle || - (this.JobTitle != null && - this.JobTitle.Equals(input.JobTitle)) - ) && base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.LanguageOrLocale == input.LanguageOrLocale || - (this.LanguageOrLocale != null && - this.LanguageOrLocale.Equals(input.LanguageOrLocale)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.Web == input.Web || - (this.Web != null && - this.Web.Equals(input.Web)) - ); - } + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CompanyName != null) - hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.JobTitle != null) - hashCode = hashCode * 59 + this.JobTitle.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.LanguageOrLocale != null) - hashCode = hashCode * 59 + this.LanguageOrLocale.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.Web != null) - hashCode = hashCode * 59 + this.Web.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Web", EmitDefaultValue=false)] + public StringValue Web { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountMarketingListDetail.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountMarketingListDetail.cs index c4676b36..000a1a36 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountMarketingListDetail.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountMarketingListDetail.cs @@ -1,254 +1,39 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountMarketingListDetail - /// - [DataContract] - public partial class BusinessAccountMarketingListDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// contactID. - /// dynamicList. - /// email. - /// format. - /// listName. - /// marketingListID. - /// memberName. - /// phone1. - /// subscribed. - public BusinessAccountMarketingListDetail(IntValue contactID = default(IntValue), BooleanValue dynamicList = default(BooleanValue), StringValue email = default(StringValue), StringValue format = default(StringValue), StringValue listName = default(StringValue), IntValue marketingListID = default(IntValue), StringValue memberName = default(StringValue), StringValue phone1 = default(StringValue), BooleanValue subscribed = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ContactID = contactID; - this.DynamicList = dynamicList; - this.Email = email; - this.Format = format; - this.ListName = listName; - this.MarketingListID = marketingListID; - this.MemberName = memberName; - this.Phone1 = phone1; - this.Subscribed = subscribed; - } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets DynamicList - /// - [DataMember(Name="DynamicList", EmitDefaultValue=false)] - public BooleanValue DynamicList { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Format - /// - [DataMember(Name="Format", EmitDefaultValue=false)] - public StringValue Format { get; set; } - - /// - /// Gets or Sets ListName - /// - [DataMember(Name="ListName", EmitDefaultValue=false)] - public StringValue ListName { get; set; } - - /// - /// Gets or Sets MarketingListID - /// - [DataMember(Name="MarketingListID", EmitDefaultValue=false)] - public IntValue MarketingListID { get; set; } + [DataContract] + public partial class BusinessAccountMarketingListDetail : Entity + { - /// - /// Gets or Sets MemberName - /// - [DataMember(Name="MemberName", EmitDefaultValue=false)] - public StringValue MemberName { get; set; } + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } + [DataMember(Name="DynamicList", EmitDefaultValue=false)] + public BooleanValue DynamicList { get; set; } - /// - /// Gets or Sets Subscribed - /// - [DataMember(Name="Subscribed", EmitDefaultValue=false)] - public BooleanValue Subscribed { get; set; } + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountMarketingListDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" DynamicList: ").Append(DynamicList).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Format: ").Append(Format).Append("\n"); - sb.Append(" ListName: ").Append(ListName).Append("\n"); - sb.Append(" MarketingListID: ").Append(MarketingListID).Append("\n"); - sb.Append(" MemberName: ").Append(MemberName).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Subscribed: ").Append(Subscribed).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Format", EmitDefaultValue=false)] + public StringValue Format { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountMarketingListDetail); - } + [DataMember(Name="ListName", EmitDefaultValue=false)] + public StringValue ListName { get; set; } - /// - /// Returns true if BusinessAccountMarketingListDetail instances are equal - /// - /// Instance of BusinessAccountMarketingListDetail to be compared - /// Boolean - public bool Equals(BusinessAccountMarketingListDetail input) - { - if (input == null) - return false; + [DataMember(Name="MarketingListID", EmitDefaultValue=false)] + public IntValue MarketingListID { get; set; } - return base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.DynamicList == input.DynamicList || - (this.DynamicList != null && - this.DynamicList.Equals(input.DynamicList)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Format == input.Format || - (this.Format != null && - this.Format.Equals(input.Format)) - ) && base.Equals(input) && - ( - this.ListName == input.ListName || - (this.ListName != null && - this.ListName.Equals(input.ListName)) - ) && base.Equals(input) && - ( - this.MarketingListID == input.MarketingListID || - (this.MarketingListID != null && - this.MarketingListID.Equals(input.MarketingListID)) - ) && base.Equals(input) && - ( - this.MemberName == input.MemberName || - (this.MemberName != null && - this.MemberName.Equals(input.MemberName)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Subscribed == input.Subscribed || - (this.Subscribed != null && - this.Subscribed.Equals(input.Subscribed)) - ); - } + [DataMember(Name="MemberName", EmitDefaultValue=false)] + public StringValue MemberName { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.DynamicList != null) - hashCode = hashCode * 59 + this.DynamicList.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Format != null) - hashCode = hashCode * 59 + this.Format.GetHashCode(); - if (this.ListName != null) - hashCode = hashCode * 59 + this.ListName.GetHashCode(); - if (this.MarketingListID != null) - hashCode = hashCode * 59 + this.MarketingListID.GetHashCode(); - if (this.MemberName != null) - hashCode = hashCode * 59 + this.MemberName.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Subscribed != null) - hashCode = hashCode * 59 + this.Subscribed.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Subscribed", EmitDefaultValue=false)] + public BooleanValue Subscribed { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountOpportunityDetail.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountOpportunityDetail.cs index 0441a057..0153a9e2 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountOpportunityDetail.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountOpportunityDetail.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountOpportunityDetail - /// - [DataContract] - public partial class BusinessAccountOpportunityDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// businessAccountID. - /// businessAccountName. - /// currencyID. - /// displayName. - /// estimation. - /// owner. - /// probability. - /// stage. - /// status. - /// subject. - /// total. - /// workgroup. - public BusinessAccountOpportunityDetail(StringValue businessAccountID = default(StringValue), StringValue businessAccountName = default(StringValue), StringValue currencyID = default(StringValue), StringValue displayName = default(StringValue), DateTimeValue estimation = default(DateTimeValue), StringValue owner = default(StringValue), IntValue probability = default(IntValue), StringValue stage = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), DecimalValue total = default(DecimalValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BusinessAccountID = businessAccountID; - this.BusinessAccountName = businessAccountName; - this.CurrencyID = currencyID; - this.DisplayName = displayName; - this.Estimation = estimation; - this.Owner = owner; - this.Probability = probability; - this.Stage = stage; - this.Status = status; - this.Subject = subject; - this.Total = total; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets BusinessAccountID - /// - [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] - public StringValue BusinessAccountID { get; set; } - - /// - /// Gets or Sets BusinessAccountName - /// - [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] - public StringValue BusinessAccountName { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets Estimation - /// - [DataMember(Name="Estimation", EmitDefaultValue=false)] - public DateTimeValue Estimation { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataContract] + public partial class BusinessAccountOpportunityDetail : Entity + { - /// - /// Gets or Sets Probability - /// - [DataMember(Name="Probability", EmitDefaultValue=false)] - public IntValue Probability { get; set; } + [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] + public StringValue BusinessAccountID { get; set; } - /// - /// Gets or Sets Stage - /// - [DataMember(Name="Stage", EmitDefaultValue=false)] - public StringValue Stage { get; set; } + [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] + public StringValue BusinessAccountName { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } - /// - /// Gets or Sets Total - /// - [DataMember(Name="Total", EmitDefaultValue=false)] - public DecimalValue Total { get; set; } + [DataMember(Name="Estimation", EmitDefaultValue=false)] + public DateTimeValue Estimation { get; set; } - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountOpportunityDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BusinessAccountID: ").Append(BusinessAccountID).Append("\n"); - sb.Append(" BusinessAccountName: ").Append(BusinessAccountName).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Estimation: ").Append(Estimation).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Probability: ").Append(Probability).Append("\n"); - sb.Append(" Stage: ").Append(Stage).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Total: ").Append(Total).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Probability", EmitDefaultValue=false)] + public IntValue Probability { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountOpportunityDetail); - } + [DataMember(Name="Stage", EmitDefaultValue=false)] + public StringValue Stage { get; set; } - /// - /// Returns true if BusinessAccountOpportunityDetail instances are equal - /// - /// Instance of BusinessAccountOpportunityDetail to be compared - /// Boolean - public bool Equals(BusinessAccountOpportunityDetail input) - { - if (input == null) - return false; + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - return base.Equals(input) && - ( - this.BusinessAccountID == input.BusinessAccountID || - (this.BusinessAccountID != null && - this.BusinessAccountID.Equals(input.BusinessAccountID)) - ) && base.Equals(input) && - ( - this.BusinessAccountName == input.BusinessAccountName || - (this.BusinessAccountName != null && - this.BusinessAccountName.Equals(input.BusinessAccountName)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.Estimation == input.Estimation || - (this.Estimation != null && - this.Estimation.Equals(input.Estimation)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Probability == input.Probability || - (this.Probability != null && - this.Probability.Equals(input.Probability)) - ) && base.Equals(input) && - ( - this.Stage == input.Stage || - (this.Stage != null && - this.Stage.Equals(input.Stage)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.Total == input.Total || - (this.Total != null && - this.Total.Equals(input.Total)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BusinessAccountID != null) - hashCode = hashCode * 59 + this.BusinessAccountID.GetHashCode(); - if (this.BusinessAccountName != null) - hashCode = hashCode * 59 + this.BusinessAccountName.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Estimation != null) - hashCode = hashCode * 59 + this.Estimation.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Probability != null) - hashCode = hashCode * 59 + this.Probability.GetHashCode(); - if (this.Stage != null) - hashCode = hashCode * 59 + this.Stage.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Total != null) - hashCode = hashCode * 59 + this.Total.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Total", EmitDefaultValue=false)] + public DecimalValue Total { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountOrder.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountOrder.cs index 275c07bf..7a7b41dc 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountOrder.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountOrder.cs @@ -1,334 +1,54 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountOrder - /// - [DataContract] - public partial class BusinessAccountOrder : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// currencyID. - /// customerOrder. - /// description. - /// orderedQty. - /// orderNbr. - /// orderTotal. - /// orderType. - /// orderVolume. - /// orderWeight. - /// requestedOn. - /// scheduledShipment. - /// shippingZone. - /// shipVia. - /// status. - public BusinessAccountOrder(StringValue currencyID = default(StringValue), StringValue customerOrder = default(StringValue), StringValue description = default(StringValue), DecimalValue orderedQty = default(DecimalValue), StringValue orderNbr = default(StringValue), DecimalValue orderTotal = default(DecimalValue), StringValue orderType = default(StringValue), DecimalValue orderVolume = default(DecimalValue), DecimalValue orderWeight = default(DecimalValue), DateTimeValue requestedOn = default(DateTimeValue), DateTimeValue scheduledShipment = default(DateTimeValue), StringValue shippingZone = default(StringValue), StringValue shipVia = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CurrencyID = currencyID; - this.CustomerOrder = customerOrder; - this.Description = description; - this.OrderedQty = orderedQty; - this.OrderNbr = orderNbr; - this.OrderTotal = orderTotal; - this.OrderType = orderType; - this.OrderVolume = orderVolume; - this.OrderWeight = orderWeight; - this.RequestedOn = requestedOn; - this.ScheduledShipment = scheduledShipment; - this.ShippingZone = shippingZone; - this.ShipVia = shipVia; - this.Status = status; - } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets OrderedQty - /// - [DataMember(Name="OrderedQty", EmitDefaultValue=false)] - public DecimalValue OrderedQty { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderTotal - /// - [DataMember(Name="OrderTotal", EmitDefaultValue=false)] - public DecimalValue OrderTotal { get; set; } + [DataContract] + public partial class BusinessAccountOrder : Entity + { - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets OrderVolume - /// - [DataMember(Name="OrderVolume", EmitDefaultValue=false)] - public DecimalValue OrderVolume { get; set; } + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } - /// - /// Gets or Sets OrderWeight - /// - [DataMember(Name="OrderWeight", EmitDefaultValue=false)] - public DecimalValue OrderWeight { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets RequestedOn - /// - [DataMember(Name="RequestedOn", EmitDefaultValue=false)] - public DateTimeValue RequestedOn { get; set; } + [DataMember(Name="OrderedQty", EmitDefaultValue=false)] + public DecimalValue OrderedQty { get; set; } - /// - /// Gets or Sets ScheduledShipment - /// - [DataMember(Name="ScheduledShipment", EmitDefaultValue=false)] - public DateTimeValue ScheduledShipment { get; set; } + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } - /// - /// Gets or Sets ShippingZone - /// - [DataMember(Name="ShippingZone", EmitDefaultValue=false)] - public StringValue ShippingZone { get; set; } + [DataMember(Name="OrderTotal", EmitDefaultValue=false)] + public DecimalValue OrderTotal { get; set; } - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="OrderVolume", EmitDefaultValue=false)] + public DecimalValue OrderVolume { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountOrder {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" OrderedQty: ").Append(OrderedQty).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderTotal: ").Append(OrderTotal).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" OrderVolume: ").Append(OrderVolume).Append("\n"); - sb.Append(" OrderWeight: ").Append(OrderWeight).Append("\n"); - sb.Append(" RequestedOn: ").Append(RequestedOn).Append("\n"); - sb.Append(" ScheduledShipment: ").Append(ScheduledShipment).Append("\n"); - sb.Append(" ShippingZone: ").Append(ShippingZone).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="OrderWeight", EmitDefaultValue=false)] + public DecimalValue OrderWeight { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountOrder); - } + [DataMember(Name="RequestedOn", EmitDefaultValue=false)] + public DateTimeValue RequestedOn { get; set; } - /// - /// Returns true if BusinessAccountOrder instances are equal - /// - /// Instance of BusinessAccountOrder to be compared - /// Boolean - public bool Equals(BusinessAccountOrder input) - { - if (input == null) - return false; + [DataMember(Name="ScheduledShipment", EmitDefaultValue=false)] + public DateTimeValue ScheduledShipment { get; set; } - return base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.OrderedQty == input.OrderedQty || - (this.OrderedQty != null && - this.OrderedQty.Equals(input.OrderedQty)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderTotal == input.OrderTotal || - (this.OrderTotal != null && - this.OrderTotal.Equals(input.OrderTotal)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.OrderVolume == input.OrderVolume || - (this.OrderVolume != null && - this.OrderVolume.Equals(input.OrderVolume)) - ) && base.Equals(input) && - ( - this.OrderWeight == input.OrderWeight || - (this.OrderWeight != null && - this.OrderWeight.Equals(input.OrderWeight)) - ) && base.Equals(input) && - ( - this.RequestedOn == input.RequestedOn || - (this.RequestedOn != null && - this.RequestedOn.Equals(input.RequestedOn)) - ) && base.Equals(input) && - ( - this.ScheduledShipment == input.ScheduledShipment || - (this.ScheduledShipment != null && - this.ScheduledShipment.Equals(input.ScheduledShipment)) - ) && base.Equals(input) && - ( - this.ShippingZone == input.ShippingZone || - (this.ShippingZone != null && - this.ShippingZone.Equals(input.ShippingZone)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } + [DataMember(Name="ShippingZone", EmitDefaultValue=false)] + public StringValue ShippingZone { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.OrderedQty != null) - hashCode = hashCode * 59 + this.OrderedQty.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderTotal != null) - hashCode = hashCode * 59 + this.OrderTotal.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.OrderVolume != null) - hashCode = hashCode * 59 + this.OrderVolume.GetHashCode(); - if (this.OrderWeight != null) - hashCode = hashCode * 59 + this.OrderWeight.GetHashCode(); - if (this.RequestedOn != null) - hashCode = hashCode * 59 + this.RequestedOn.GetHashCode(); - if (this.ScheduledShipment != null) - hashCode = hashCode * 59 + this.ScheduledShipment.GetHashCode(); - if (this.ShippingZone != null) - hashCode = hashCode * 59 + this.ShippingZone.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountPaymentInstructionDetail.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountPaymentInstructionDetail.cs index e212c0fd..fb34beac 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountPaymentInstructionDetail.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountPaymentInstructionDetail.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountPaymentInstructionDetail - /// - [DataContract] - public partial class BusinessAccountPaymentInstructionDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// locationID. - /// paymentInstructionsID. - /// paymentMethod. - /// value. - public BusinessAccountPaymentInstructionDetail(StringValue description = default(StringValue), IntValue locationID = default(IntValue), StringValue paymentInstructionsID = default(StringValue), StringValue paymentMethod = default(StringValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.LocationID = locationID; - this.PaymentInstructionsID = paymentInstructionsID; - this.PaymentMethod = paymentMethod; - this.Value = value; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public IntValue LocationID { get; set; } - - /// - /// Gets or Sets PaymentInstructionsID - /// - [DataMember(Name="PaymentInstructionsID", EmitDefaultValue=false)] - public StringValue PaymentInstructionsID { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountPaymentInstructionDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" PaymentInstructionsID: ").Append(PaymentInstructionsID).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class BusinessAccountPaymentInstructionDetail : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountPaymentInstructionDetail); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if BusinessAccountPaymentInstructionDetail instances are equal - /// - /// Instance of BusinessAccountPaymentInstructionDetail to be compared - /// Boolean - public bool Equals(BusinessAccountPaymentInstructionDetail input) - { - if (input == null) - return false; + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public IntValue LocationID { get; set; } - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.PaymentInstructionsID == input.PaymentInstructionsID || - (this.PaymentInstructionsID != null && - this.PaymentInstructionsID.Equals(input.PaymentInstructionsID)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } + [DataMember(Name="PaymentInstructionsID", EmitDefaultValue=false)] + public StringValue PaymentInstructionsID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.PaymentInstructionsID != null) - hashCode = hashCode * 59 + this.PaymentInstructionsID.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/BusinessAccountShippingContact.cs b/Acumatica.Default_17.200.001/Model/BusinessAccountShippingContact.cs index d643af32..f61138ba 100644 --- a/Acumatica.Default_17.200.001/Model/BusinessAccountShippingContact.cs +++ b/Acumatica.Default_17.200.001/Model/BusinessAccountShippingContact.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// BusinessAccountShippingContact - /// - [DataContract] - public partial class BusinessAccountShippingContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// email. - /// fax. - /// jobTitle. - /// attention. - /// phone1. - /// phone2. - /// sameasMain. - public BusinessAccountShippingContact(StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue jobTitle = default(StringValue), StringValue attention = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone2 = default(StringValue), BooleanValue sameasMain = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Email = email; - this.Fax = fax; - this.JobTitle = jobTitle; - this.Attention = attention; - this.Phone1 = phone1; - this.Phone2 = phone2; - this.SameasMain = sameasMain; - } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets JobTitle - /// - [DataMember(Name="JobTitle", EmitDefaultValue=false)] - public StringValue JobTitle { get; set; } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } + [DataContract] + public partial class BusinessAccountShippingContact : Entity + { - /// - /// Gets or Sets SameasMain - /// - [DataMember(Name="SameasMain", EmitDefaultValue=false)] - public BooleanValue SameasMain { get; set; } + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountShippingContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" SameasMain: ").Append(SameasMain).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountShippingContact); - } + [DataMember(Name="JobTitle", EmitDefaultValue=false)] + public StringValue JobTitle { get; set; } - /// - /// Returns true if BusinessAccountShippingContact instances are equal - /// - /// Instance of BusinessAccountShippingContact to be compared - /// Boolean - public bool Equals(BusinessAccountShippingContact input) - { - if (input == null) - return false; + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } - return base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.JobTitle == input.JobTitle || - (this.JobTitle != null && - this.JobTitle.Equals(input.JobTitle)) - ) && base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.SameasMain == input.SameasMain || - (this.SameasMain != null && - this.SameasMain.Equals(input.SameasMain)) - ); - } + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.JobTitle != null) - hashCode = hashCode * 59 + this.JobTitle.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.SameasMain != null) - hashCode = hashCode * 59 + this.SameasMain.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="SameasMain", EmitDefaultValue=false)] + public BooleanValue SameasMain { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CampaignDetail.cs b/Acumatica.Default_17.200.001/Model/CampaignDetail.cs index 2134201b..84ced9bb 100644 --- a/Acumatica.Default_17.200.001/Model/CampaignDetail.cs +++ b/Acumatica.Default_17.200.001/Model/CampaignDetail.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CampaignDetail - /// - [DataContract] - public partial class CampaignDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// campaignID. - /// campaignName. - /// contactID. - /// stage. - public CampaignDetail(StringValue campaignID = default(StringValue), StringValue campaignName = default(StringValue), IntValue contactID = default(IntValue), StringValue stage = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CampaignID = campaignID; - this.CampaignName = campaignName; - this.ContactID = contactID; - this.Stage = stage; - } - - /// - /// Gets or Sets CampaignID - /// - [DataMember(Name="CampaignID", EmitDefaultValue=false)] - public StringValue CampaignID { get; set; } - - /// - /// Gets or Sets CampaignName - /// - [DataMember(Name="CampaignName", EmitDefaultValue=false)] - public StringValue CampaignName { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets Stage - /// - [DataMember(Name="Stage", EmitDefaultValue=false)] - public StringValue Stage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CampaignDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CampaignID: ").Append(CampaignID).Append("\n"); - sb.Append(" CampaignName: ").Append(CampaignName).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" Stage: ").Append(Stage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CampaignDetail); - } + [DataContract] + public partial class CampaignDetail : Entity + { - /// - /// Returns true if CampaignDetail instances are equal - /// - /// Instance of CampaignDetail to be compared - /// Boolean - public bool Equals(CampaignDetail input) - { - if (input == null) - return false; + [DataMember(Name="CampaignID", EmitDefaultValue=false)] + public StringValue CampaignID { get; set; } - return base.Equals(input) && - ( - this.CampaignID == input.CampaignID || - (this.CampaignID != null && - this.CampaignID.Equals(input.CampaignID)) - ) && base.Equals(input) && - ( - this.CampaignName == input.CampaignName || - (this.CampaignName != null && - this.CampaignName.Equals(input.CampaignName)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.Stage == input.Stage || - (this.Stage != null && - this.Stage.Equals(input.Stage)) - ); - } + [DataMember(Name="CampaignName", EmitDefaultValue=false)] + public StringValue CampaignName { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CampaignID != null) - hashCode = hashCode * 59 + this.CampaignID.GetHashCode(); - if (this.CampaignName != null) - hashCode = hashCode * 59 + this.CampaignName.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.Stage != null) - hashCode = hashCode * 59 + this.Stage.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Stage", EmitDefaultValue=false)] + public StringValue Stage { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Carrier.cs b/Acumatica.Default_17.200.001/Model/Carrier.cs index c64c7d85..66e0ea22 100644 --- a/Acumatica.Default_17.200.001/Model/Carrier.cs +++ b/Acumatica.Default_17.200.001/Model/Carrier.cs @@ -1,254 +1,39 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Carrier - /// - [DataContract] - public partial class Carrier : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// carrierID. - /// carrierUnitOfWeight. - /// createdDateTime. - /// customerAccounts. - /// description. - /// lastModifiedDateTime. - /// plugInParameters. - /// plugInType. - /// uOM. - public Carrier(StringValue carrierID = default(StringValue), StringValue carrierUnitOfWeight = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), List customerAccounts = default(List), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), List plugInParameters = default(List), StringValue plugInType = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CarrierID = carrierID; - this.CarrierUnitOfWeight = carrierUnitOfWeight; - this.CreatedDateTime = createdDateTime; - this.CustomerAccounts = customerAccounts; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PlugInParameters = plugInParameters; - this.PlugInType = plugInType; - this.UOM = uOM; - } - - /// - /// Gets or Sets CarrierID - /// - [DataMember(Name="CarrierID", EmitDefaultValue=false)] - public StringValue CarrierID { get; set; } - - /// - /// Gets or Sets CarrierUnitOfWeight - /// - [DataMember(Name="CarrierUnitOfWeight", EmitDefaultValue=false)] - public StringValue CarrierUnitOfWeight { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CustomerAccounts - /// - [DataMember(Name="CustomerAccounts", EmitDefaultValue=false)] - public List CustomerAccounts { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataContract] + public partial class Carrier : Entity + { - /// - /// Gets or Sets PlugInParameters - /// - [DataMember(Name="PlugInParameters", EmitDefaultValue=false)] - public List PlugInParameters { get; set; } + [DataMember(Name="CarrierID", EmitDefaultValue=false)] + public StringValue CarrierID { get; set; } - /// - /// Gets or Sets PlugInType - /// - [DataMember(Name="PlugInType", EmitDefaultValue=false)] - public StringValue PlugInType { get; set; } + [DataMember(Name="CarrierUnitOfWeight", EmitDefaultValue=false)] + public StringValue CarrierUnitOfWeight { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Carrier {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CarrierID: ").Append(CarrierID).Append("\n"); - sb.Append(" CarrierUnitOfWeight: ").Append(CarrierUnitOfWeight).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CustomerAccounts: ").Append(CustomerAccounts).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PlugInParameters: ").Append(PlugInParameters).Append("\n"); - sb.Append(" PlugInType: ").Append(PlugInType).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CustomerAccounts", EmitDefaultValue=false)] + public List CustomerAccounts { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Carrier); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if Carrier instances are equal - /// - /// Instance of Carrier to be compared - /// Boolean - public bool Equals(Carrier input) - { - if (input == null) - return false; + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - return base.Equals(input) && - ( - this.CarrierID == input.CarrierID || - (this.CarrierID != null && - this.CarrierID.Equals(input.CarrierID)) - ) && base.Equals(input) && - ( - this.CarrierUnitOfWeight == input.CarrierUnitOfWeight || - (this.CarrierUnitOfWeight != null && - this.CarrierUnitOfWeight.Equals(input.CarrierUnitOfWeight)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CustomerAccounts == input.CustomerAccounts || - this.CustomerAccounts != null && - this.CustomerAccounts.SequenceEqual(input.CustomerAccounts) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PlugInParameters == input.PlugInParameters || - this.PlugInParameters != null && - this.PlugInParameters.SequenceEqual(input.PlugInParameters) - ) && base.Equals(input) && - ( - this.PlugInType == input.PlugInType || - (this.PlugInType != null && - this.PlugInType.Equals(input.PlugInType)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="PlugInParameters", EmitDefaultValue=false)] + public List PlugInParameters { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CarrierID != null) - hashCode = hashCode * 59 + this.CarrierID.GetHashCode(); - if (this.CarrierUnitOfWeight != null) - hashCode = hashCode * 59 + this.CarrierUnitOfWeight.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CustomerAccounts != null) - hashCode = hashCode * 59 + this.CustomerAccounts.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PlugInParameters != null) - hashCode = hashCode * 59 + this.PlugInParameters.GetHashCode(); - if (this.PlugInType != null) - hashCode = hashCode * 59 + this.PlugInType.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PlugInType", EmitDefaultValue=false)] + public StringValue PlugInType { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CarrierCustomerAccount.cs b/Acumatica.Default_17.200.001/Model/CarrierCustomerAccount.cs index 0cf1de52..6401cb79 100644 --- a/Acumatica.Default_17.200.001/Model/CarrierCustomerAccount.cs +++ b/Acumatica.Default_17.200.001/Model/CarrierCustomerAccount.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CarrierCustomerAccount - /// - [DataContract] - public partial class CarrierCustomerAccount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// carrierAccount. - /// customerID. - /// customerName. - /// location. - /// postalCode. - /// recordID. - public CarrierCustomerAccount(BooleanValue active = default(BooleanValue), StringValue carrierAccount = default(StringValue), StringValue customerID = default(StringValue), StringValue customerName = default(StringValue), StringValue location = default(StringValue), StringValue postalCode = default(StringValue), IntValue recordID = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.CarrierAccount = carrierAccount; - this.CustomerID = customerID; - this.CustomerName = customerName; - this.Location = location; - this.PostalCode = postalCode; - this.RecordID = recordID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CarrierAccount - /// - [DataMember(Name="CarrierAccount", EmitDefaultValue=false)] - public StringValue CarrierAccount { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerName - /// - [DataMember(Name="CustomerName", EmitDefaultValue=false)] - public StringValue CustomerName { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets PostalCode - /// - [DataMember(Name="PostalCode", EmitDefaultValue=false)] - public StringValue PostalCode { get; set; } + [DataContract] + public partial class CarrierCustomerAccount : Entity + { - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CarrierCustomerAccount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CarrierAccount: ").Append(CarrierAccount).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CarrierAccount", EmitDefaultValue=false)] + public StringValue CarrierAccount { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CarrierCustomerAccount); - } + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } - /// - /// Returns true if CarrierCustomerAccount instances are equal - /// - /// Instance of CarrierCustomerAccount to be compared - /// Boolean - public bool Equals(CarrierCustomerAccount input) - { - if (input == null) - return false; + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public StringValue CustomerName { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CarrierAccount == input.CarrierAccount || - (this.CarrierAccount != null && - this.CarrierAccount.Equals(input.CarrierAccount)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerName == input.CustomerName || - (this.CustomerName != null && - this.CustomerName.Equals(input.CustomerName)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.PostalCode == input.PostalCode || - (this.PostalCode != null && - this.PostalCode.Equals(input.PostalCode)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ); - } + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CarrierAccount != null) - hashCode = hashCode * 59 + this.CarrierAccount.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerName != null) - hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.PostalCode != null) - hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PostalCode", EmitDefaultValue=false)] + public StringValue PostalCode { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CarrierPluginParameter.cs b/Acumatica.Default_17.200.001/Model/CarrierPluginParameter.cs index 070052ae..bfbaec4a 100644 --- a/Acumatica.Default_17.200.001/Model/CarrierPluginParameter.cs +++ b/Acumatica.Default_17.200.001/Model/CarrierPluginParameter.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CarrierPluginParameter - /// - [DataContract] - public partial class CarrierPluginParameter : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// pluginID. - /// value. - public CarrierPluginParameter(StringValue description = default(StringValue), StringValue pluginID = default(StringValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.PluginID = pluginID; - this.Value = value; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets PluginID - /// - [DataMember(Name="PluginID", EmitDefaultValue=false)] - public StringValue PluginID { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CarrierPluginParameter {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" PluginID: ").Append(PluginID).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CarrierPluginParameter); - } - - /// - /// Returns true if CarrierPluginParameter instances are equal - /// - /// Instance of CarrierPluginParameter to be compared - /// Boolean - public bool Equals(CarrierPluginParameter input) - { - if (input == null) - return false; + [DataContract] + public partial class CarrierPluginParameter : Entity + { - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.PluginID == input.PluginID || - (this.PluginID != null && - this.PluginID.Equals(input.PluginID)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.PluginID != null) - hashCode = hashCode * 59 + this.PluginID.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PluginID", EmitDefaultValue=false)] + public StringValue PluginID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Case.cs b/Acumatica.Default_17.200.001/Model/Case.cs index 60695716..f11d5e21 100644 --- a/Acumatica.Default_17.200.001/Model/Case.cs +++ b/Acumatica.Default_17.200.001/Model/Case.cs @@ -1,686 +1,120 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Case - /// - [DataContract] - public partial class Case : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// activities. - /// attributes. - /// billable. - /// billableOvertime. - /// billableTime. - /// businessAccount. - /// businessAccountName. - /// caseID. - /// classID. - /// closingDate. - /// contactDisplayName. - /// contactID. - /// contract. - /// dateReported. - /// description. - /// initialResponse. - /// lastActivityDate. - /// lastIncomingActivity. - /// lastOutgoingActivity. - /// location. - /// manualOverride. - /// overtimeSpent. - /// owner. - /// ownerEmployeeName. - /// priority. - /// reason. - /// relatedCases. - /// relations. - /// resolutionTime. - /// severity. - /// sLA. - /// status. - /// subject. - /// timeSpent. - /// workgroup. - /// workgroupDescription. - public Case(List activities = default(List), List attributes = default(List), BooleanValue billable = default(BooleanValue), IntValue billableOvertime = default(IntValue), IntValue billableTime = default(IntValue), StringValue businessAccount = default(StringValue), StringValue businessAccountName = default(StringValue), StringValue caseID = default(StringValue), StringValue classID = default(StringValue), DateTimeValue closingDate = default(DateTimeValue), StringValue contactDisplayName = default(StringValue), IntValue contactID = default(IntValue), StringValue contract = default(StringValue), DateTimeValue dateReported = default(DateTimeValue), StringValue description = default(StringValue), StringValue initialResponse = default(StringValue), DateTimeValue lastActivityDate = default(DateTimeValue), DateTimeValue lastIncomingActivity = default(DateTimeValue), DateTimeValue lastOutgoingActivity = default(DateTimeValue), StringValue location = default(StringValue), BooleanValue manualOverride = default(BooleanValue), StringValue overtimeSpent = default(StringValue), StringValue owner = default(StringValue), StringValue ownerEmployeeName = default(StringValue), StringValue priority = default(StringValue), StringValue reason = default(StringValue), List relatedCases = default(List), List relations = default(List), StringValue resolutionTime = default(StringValue), StringValue severity = default(StringValue), DateTimeValue sLA = default(DateTimeValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), StringValue timeSpent = default(StringValue), StringValue workgroup = default(StringValue), StringValue workgroupDescription = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Activities = activities; - this.Attributes = attributes; - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.BusinessAccount = businessAccount; - this.BusinessAccountName = businessAccountName; - this.CaseID = caseID; - this.ClassID = classID; - this.ClosingDate = closingDate; - this.ContactDisplayName = contactDisplayName; - this.ContactID = contactID; - this.Contract = contract; - this.DateReported = dateReported; - this.Description = description; - this.InitialResponse = initialResponse; - this.LastActivityDate = lastActivityDate; - this.LastIncomingActivity = lastIncomingActivity; - this.LastOutgoingActivity = lastOutgoingActivity; - this.Location = location; - this.ManualOverride = manualOverride; - this.OvertimeSpent = overtimeSpent; - this.Owner = owner; - this.OwnerEmployeeName = ownerEmployeeName; - this.Priority = priority; - this.Reason = reason; - this.RelatedCases = relatedCases; - this.Relations = relations; - this.ResolutionTime = resolutionTime; - this.Severity = severity; - this.SLA = sLA; - this.Status = status; - this.Subject = subject; - this.TimeSpent = timeSpent; - this.Workgroup = workgroup; - this.WorkgroupDescription = workgroupDescription; - } - - /// - /// Gets or Sets Activities - /// - [DataMember(Name="Activities", EmitDefaultValue=false)] - public List Activities { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public IntValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public IntValue BillableTime { get; set; } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets BusinessAccountName - /// - [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] - public StringValue BusinessAccountName { get; set; } - - /// - /// Gets or Sets CaseID - /// - [DataMember(Name="CaseID", EmitDefaultValue=false)] - public StringValue CaseID { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets ClosingDate - /// - [DataMember(Name="ClosingDate", EmitDefaultValue=false)] - public DateTimeValue ClosingDate { get; set; } - - /// - /// Gets or Sets ContactDisplayName - /// - [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] - public StringValue ContactDisplayName { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets Contract - /// - [DataMember(Name="Contract", EmitDefaultValue=false)] - public StringValue Contract { get; set; } - - /// - /// Gets or Sets DateReported - /// - [DataMember(Name="DateReported", EmitDefaultValue=false)] - public DateTimeValue DateReported { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InitialResponse - /// - [DataMember(Name="InitialResponse", EmitDefaultValue=false)] - public StringValue InitialResponse { get; set; } - - /// - /// Gets or Sets LastActivityDate - /// - [DataMember(Name="LastActivityDate", EmitDefaultValue=false)] - public DateTimeValue LastActivityDate { get; set; } - - /// - /// Gets or Sets LastIncomingActivity - /// - [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] - public DateTimeValue LastIncomingActivity { get; set; } - - /// - /// Gets or Sets LastOutgoingActivity - /// - [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] - public DateTimeValue LastOutgoingActivity { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets ManualOverride - /// - [DataMember(Name="ManualOverride", EmitDefaultValue=false)] - public BooleanValue ManualOverride { get; set; } - - /// - /// Gets or Sets OvertimeSpent - /// - [DataMember(Name="OvertimeSpent", EmitDefaultValue=false)] - public StringValue OvertimeSpent { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets OwnerEmployeeName - /// - [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] - public StringValue OwnerEmployeeName { get; set; } - - /// - /// Gets or Sets Priority - /// - [DataMember(Name="Priority", EmitDefaultValue=false)] - public StringValue Priority { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } - - /// - /// Gets or Sets RelatedCases - /// - [DataMember(Name="RelatedCases", EmitDefaultValue=false)] - public List RelatedCases { get; set; } - - /// - /// Gets or Sets Relations - /// - [DataMember(Name="Relations", EmitDefaultValue=false)] - public List Relations { get; set; } - - /// - /// Gets or Sets ResolutionTime - /// - [DataMember(Name="ResolutionTime", EmitDefaultValue=false)] - public StringValue ResolutionTime { get; set; } - - /// - /// Gets or Sets Severity - /// - [DataMember(Name="Severity", EmitDefaultValue=false)] - public StringValue Severity { get; set; } - - /// - /// Gets or Sets SLA - /// - [DataMember(Name="SLA", EmitDefaultValue=false)] - public DateTimeValue SLA { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Gets or Sets WorkgroupDescription - /// - [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] - public StringValue WorkgroupDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Case {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Activities: ").Append(Activities).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" BusinessAccountName: ").Append(BusinessAccountName).Append("\n"); - sb.Append(" CaseID: ").Append(CaseID).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" ClosingDate: ").Append(ClosingDate).Append("\n"); - sb.Append(" ContactDisplayName: ").Append(ContactDisplayName).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" Contract: ").Append(Contract).Append("\n"); - sb.Append(" DateReported: ").Append(DateReported).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InitialResponse: ").Append(InitialResponse).Append("\n"); - sb.Append(" LastActivityDate: ").Append(LastActivityDate).Append("\n"); - sb.Append(" LastIncomingActivity: ").Append(LastIncomingActivity).Append("\n"); - sb.Append(" LastOutgoingActivity: ").Append(LastOutgoingActivity).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" ManualOverride: ").Append(ManualOverride).Append("\n"); - sb.Append(" OvertimeSpent: ").Append(OvertimeSpent).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerEmployeeName: ").Append(OwnerEmployeeName).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" RelatedCases: ").Append(RelatedCases).Append("\n"); - sb.Append(" Relations: ").Append(Relations).Append("\n"); - sb.Append(" ResolutionTime: ").Append(ResolutionTime).Append("\n"); - sb.Append(" Severity: ").Append(Severity).Append("\n"); - sb.Append(" SLA: ").Append(SLA).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append(" WorkgroupDescription: ").Append(WorkgroupDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Case); - } - - /// - /// Returns true if Case instances are equal - /// - /// Instance of Case to be compared - /// Boolean - public bool Equals(Case input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Activities == input.Activities || - this.Activities != null && - this.Activities.SequenceEqual(input.Activities) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.BusinessAccountName == input.BusinessAccountName || - (this.BusinessAccountName != null && - this.BusinessAccountName.Equals(input.BusinessAccountName)) - ) && base.Equals(input) && - ( - this.CaseID == input.CaseID || - (this.CaseID != null && - this.CaseID.Equals(input.CaseID)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.ClosingDate == input.ClosingDate || - (this.ClosingDate != null && - this.ClosingDate.Equals(input.ClosingDate)) - ) && base.Equals(input) && - ( - this.ContactDisplayName == input.ContactDisplayName || - (this.ContactDisplayName != null && - this.ContactDisplayName.Equals(input.ContactDisplayName)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.Contract == input.Contract || - (this.Contract != null && - this.Contract.Equals(input.Contract)) - ) && base.Equals(input) && - ( - this.DateReported == input.DateReported || - (this.DateReported != null && - this.DateReported.Equals(input.DateReported)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InitialResponse == input.InitialResponse || - (this.InitialResponse != null && - this.InitialResponse.Equals(input.InitialResponse)) - ) && base.Equals(input) && - ( - this.LastActivityDate == input.LastActivityDate || - (this.LastActivityDate != null && - this.LastActivityDate.Equals(input.LastActivityDate)) - ) && base.Equals(input) && - ( - this.LastIncomingActivity == input.LastIncomingActivity || - (this.LastIncomingActivity != null && - this.LastIncomingActivity.Equals(input.LastIncomingActivity)) - ) && base.Equals(input) && - ( - this.LastOutgoingActivity == input.LastOutgoingActivity || - (this.LastOutgoingActivity != null && - this.LastOutgoingActivity.Equals(input.LastOutgoingActivity)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.ManualOverride == input.ManualOverride || - (this.ManualOverride != null && - this.ManualOverride.Equals(input.ManualOverride)) - ) && base.Equals(input) && - ( - this.OvertimeSpent == input.OvertimeSpent || - (this.OvertimeSpent != null && - this.OvertimeSpent.Equals(input.OvertimeSpent)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.OwnerEmployeeName == input.OwnerEmployeeName || - (this.OwnerEmployeeName != null && - this.OwnerEmployeeName.Equals(input.OwnerEmployeeName)) - ) && base.Equals(input) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.RelatedCases == input.RelatedCases || - this.RelatedCases != null && - this.RelatedCases.SequenceEqual(input.RelatedCases) - ) && base.Equals(input) && - ( - this.Relations == input.Relations || - this.Relations != null && - this.Relations.SequenceEqual(input.Relations) - ) && base.Equals(input) && - ( - this.ResolutionTime == input.ResolutionTime || - (this.ResolutionTime != null && - this.ResolutionTime.Equals(input.ResolutionTime)) - ) && base.Equals(input) && - ( - this.Severity == input.Severity || - (this.Severity != null && - this.Severity.Equals(input.Severity)) - ) && base.Equals(input) && - ( - this.SLA == input.SLA || - (this.SLA != null && - this.SLA.Equals(input.SLA)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ) && base.Equals(input) && - ( - this.WorkgroupDescription == input.WorkgroupDescription || - (this.WorkgroupDescription != null && - this.WorkgroupDescription.Equals(input.WorkgroupDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Activities != null) - hashCode = hashCode * 59 + this.Activities.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.BusinessAccountName != null) - hashCode = hashCode * 59 + this.BusinessAccountName.GetHashCode(); - if (this.CaseID != null) - hashCode = hashCode * 59 + this.CaseID.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.ClosingDate != null) - hashCode = hashCode * 59 + this.ClosingDate.GetHashCode(); - if (this.ContactDisplayName != null) - hashCode = hashCode * 59 + this.ContactDisplayName.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.Contract != null) - hashCode = hashCode * 59 + this.Contract.GetHashCode(); - if (this.DateReported != null) - hashCode = hashCode * 59 + this.DateReported.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InitialResponse != null) - hashCode = hashCode * 59 + this.InitialResponse.GetHashCode(); - if (this.LastActivityDate != null) - hashCode = hashCode * 59 + this.LastActivityDate.GetHashCode(); - if (this.LastIncomingActivity != null) - hashCode = hashCode * 59 + this.LastIncomingActivity.GetHashCode(); - if (this.LastOutgoingActivity != null) - hashCode = hashCode * 59 + this.LastOutgoingActivity.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.ManualOverride != null) - hashCode = hashCode * 59 + this.ManualOverride.GetHashCode(); - if (this.OvertimeSpent != null) - hashCode = hashCode * 59 + this.OvertimeSpent.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerEmployeeName != null) - hashCode = hashCode * 59 + this.OwnerEmployeeName.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.RelatedCases != null) - hashCode = hashCode * 59 + this.RelatedCases.GetHashCode(); - if (this.Relations != null) - hashCode = hashCode * 59 + this.Relations.GetHashCode(); - if (this.ResolutionTime != null) - hashCode = hashCode * 59 + this.ResolutionTime.GetHashCode(); - if (this.Severity != null) - hashCode = hashCode * 59 + this.Severity.GetHashCode(); - if (this.SLA != null) - hashCode = hashCode * 59 + this.SLA.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - if (this.WorkgroupDescription != null) - hashCode = hashCode * 59 + this.WorkgroupDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class Case : Entity + { + + [DataMember(Name="Activities", EmitDefaultValue=false)] + public List Activities { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public IntValue BillableOvertime { get; set; } + + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public IntValue BillableTime { get; set; } + + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } + + [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] + public StringValue BusinessAccountName { get; set; } + + [DataMember(Name="CaseID", EmitDefaultValue=false)] + public StringValue CaseID { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="ClosingDate", EmitDefaultValue=false)] + public DateTimeValue ClosingDate { get; set; } + + [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] + public StringValue ContactDisplayName { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="Contract", EmitDefaultValue=false)] + public StringValue Contract { get; set; } + + [DataMember(Name="DateReported", EmitDefaultValue=false)] + public DateTimeValue DateReported { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InitialResponse", EmitDefaultValue=false)] + public StringValue InitialResponse { get; set; } + + [DataMember(Name="LastActivityDate", EmitDefaultValue=false)] + public DateTimeValue LastActivityDate { get; set; } + + [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] + public DateTimeValue LastIncomingActivity { get; set; } + + [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] + public DateTimeValue LastOutgoingActivity { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="ManualOverride", EmitDefaultValue=false)] + public BooleanValue ManualOverride { get; set; } + + [DataMember(Name="OvertimeSpent", EmitDefaultValue=false)] + public StringValue OvertimeSpent { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] + public StringValue OwnerEmployeeName { get; set; } + + [DataMember(Name="Priority", EmitDefaultValue=false)] + public StringValue Priority { get; set; } + + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } + + [DataMember(Name="RelatedCases", EmitDefaultValue=false)] + public List RelatedCases { get; set; } + + [DataMember(Name="Relations", EmitDefaultValue=false)] + public List Relations { get; set; } + + [DataMember(Name="ResolutionTime", EmitDefaultValue=false)] + public StringValue ResolutionTime { get; set; } + + [DataMember(Name="Severity", EmitDefaultValue=false)] + public StringValue Severity { get; set; } + + [DataMember(Name="SLA", EmitDefaultValue=false)] + public DateTimeValue SLA { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] + public StringValue WorkgroupDescription { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CaseActivityDetail.cs b/Acumatica.Default_17.200.001/Model/CaseActivityDetail.cs index 700fae35..46208f83 100644 --- a/Acumatica.Default_17.200.001/Model/CaseActivityDetail.cs +++ b/Acumatica.Default_17.200.001/Model/CaseActivityDetail.cs @@ -1,462 +1,78 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CaseActivityDetail - /// - [DataContract] - public partial class CaseActivityDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billable. - /// billableOvertime. - /// billableTime. - /// category. - /// classIcon. - /// createdAt. - /// createdBy. - /// isCompleteIcon. - /// overtime. - /// owner. - /// priorityIcon. - /// project. - /// projectTask. - /// refNoteID. - /// released. - /// reminderIcon. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - /// workgroup. - public CaseActivityDetail(BooleanValue billable = default(BooleanValue), StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue category = default(StringValue), StringValue classIcon = default(StringValue), DateTimeValue createdAt = default(DateTimeValue), StringValue createdBy = default(StringValue), StringValue isCompleteIcon = default(StringValue), StringValue overtime = default(StringValue), StringValue owner = default(StringValue), StringValue priorityIcon = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), GuidValue refNoteID = default(GuidValue), BooleanValue released = default(BooleanValue), StringValue reminderIcon = default(StringValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.Category = category; - this.ClassIcon = classIcon; - this.CreatedAt = createdAt; - this.CreatedBy = createdBy; - this.IsCompleteIcon = isCompleteIcon; - this.Overtime = overtime; - this.Owner = owner; - this.PriorityIcon = priorityIcon; - this.Project = project; - this.ProjectTask = projectTask; - this.RefNoteID = refNoteID; - this.Released = released; - this.ReminderIcon = reminderIcon; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets Category - /// - [DataMember(Name="Category", EmitDefaultValue=false)] - public StringValue Category { get; set; } - - /// - /// Gets or Sets ClassIcon - /// - [DataMember(Name="ClassIcon", EmitDefaultValue=false)] - public StringValue ClassIcon { get; set; } - - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name="CreatedAt", EmitDefaultValue=false)] - public DateTimeValue CreatedAt { get; set; } + [DataContract] + public partial class CaseActivityDetail : Entity + { - /// - /// Gets or Sets CreatedBy - /// - [DataMember(Name="CreatedBy", EmitDefaultValue=false)] - public StringValue CreatedBy { get; set; } + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } - /// - /// Gets or Sets IsCompleteIcon - /// - [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] - public StringValue IsCompleteIcon { get; set; } + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataMember(Name="Category", EmitDefaultValue=false)] + public StringValue Category { get; set; } - /// - /// Gets or Sets PriorityIcon - /// - [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] - public StringValue PriorityIcon { get; set; } + [DataMember(Name="ClassIcon", EmitDefaultValue=false)] + public StringValue ClassIcon { get; set; } - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTimeValue CreatedAt { get; set; } - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } + [DataMember(Name="CreatedBy", EmitDefaultValue=false)] + public StringValue CreatedBy { get; set; } - /// - /// Gets or Sets RefNoteID - /// - [DataMember(Name="RefNoteID", EmitDefaultValue=false)] - public GuidValue RefNoteID { get; set; } + [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] + public StringValue IsCompleteIcon { get; set; } - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } - /// - /// Gets or Sets ReminderIcon - /// - [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] - public StringValue ReminderIcon { get; set; } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] + public StringValue PriorityIcon { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } + [DataMember(Name="RefNoteID", EmitDefaultValue=false)] + public GuidValue RefNoteID { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } + [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] + public StringValue ReminderIcon { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CaseActivityDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" ClassIcon: ").Append(ClassIcon).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n"); - sb.Append(" IsCompleteIcon: ").Append(IsCompleteIcon).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PriorityIcon: ").Append(PriorityIcon).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" RefNoteID: ").Append(RefNoteID).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" ReminderIcon: ").Append(ReminderIcon).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CaseActivityDetail); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns true if CaseActivityDetail instances are equal - /// - /// Instance of CaseActivityDetail to be compared - /// Boolean - public bool Equals(CaseActivityDetail input) - { - if (input == null) - return false; + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } - return base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && base.Equals(input) && - ( - this.ClassIcon == input.ClassIcon || - (this.ClassIcon != null && - this.ClassIcon.Equals(input.ClassIcon)) - ) && base.Equals(input) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && base.Equals(input) && - ( - this.CreatedBy == input.CreatedBy || - (this.CreatedBy != null && - this.CreatedBy.Equals(input.CreatedBy)) - ) && base.Equals(input) && - ( - this.IsCompleteIcon == input.IsCompleteIcon || - (this.IsCompleteIcon != null && - this.IsCompleteIcon.Equals(input.IsCompleteIcon)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PriorityIcon == input.PriorityIcon || - (this.PriorityIcon != null && - this.PriorityIcon.Equals(input.PriorityIcon)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.RefNoteID == input.RefNoteID || - (this.RefNoteID != null && - this.RefNoteID.Equals(input.RefNoteID)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.ReminderIcon == input.ReminderIcon || - (this.ReminderIcon != null && - this.ReminderIcon.Equals(input.ReminderIcon)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.ClassIcon != null) - hashCode = hashCode * 59 + this.ClassIcon.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.CreatedBy != null) - hashCode = hashCode * 59 + this.CreatedBy.GetHashCode(); - if (this.IsCompleteIcon != null) - hashCode = hashCode * 59 + this.IsCompleteIcon.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PriorityIcon != null) - hashCode = hashCode * 59 + this.PriorityIcon.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.RefNoteID != null) - hashCode = hashCode * 59 + this.RefNoteID.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.ReminderIcon != null) - hashCode = hashCode * 59 + this.ReminderIcon.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CaseDetail.cs b/Acumatica.Default_17.200.001/Model/CaseDetail.cs index fdf2f4ee..4a34a260 100644 --- a/Acumatica.Default_17.200.001/Model/CaseDetail.cs +++ b/Acumatica.Default_17.200.001/Model/CaseDetail.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CaseDetail - /// - [DataContract] - public partial class CaseDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// caseID. - /// classID. - /// closingDate. - /// dateReported. - /// estimation. - /// initialResponse. - /// owner. - /// reason. - /// severity. - /// status. - /// subject. - /// workgroup. - public CaseDetail(StringValue caseID = default(StringValue), StringValue classID = default(StringValue), DateTimeValue closingDate = default(DateTimeValue), DateTimeValue dateReported = default(DateTimeValue), StringValue estimation = default(StringValue), StringValue initialResponse = default(StringValue), StringValue owner = default(StringValue), StringValue reason = default(StringValue), StringValue severity = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CaseID = caseID; - this.ClassID = classID; - this.ClosingDate = closingDate; - this.DateReported = dateReported; - this.Estimation = estimation; - this.InitialResponse = initialResponse; - this.Owner = owner; - this.Reason = reason; - this.Severity = severity; - this.Status = status; - this.Subject = subject; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets CaseID - /// - [DataMember(Name="CaseID", EmitDefaultValue=false)] - public StringValue CaseID { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets ClosingDate - /// - [DataMember(Name="ClosingDate", EmitDefaultValue=false)] - public DateTimeValue ClosingDate { get; set; } - - /// - /// Gets or Sets DateReported - /// - [DataMember(Name="DateReported", EmitDefaultValue=false)] - public DateTimeValue DateReported { get; set; } - - /// - /// Gets or Sets Estimation - /// - [DataMember(Name="Estimation", EmitDefaultValue=false)] - public StringValue Estimation { get; set; } - - /// - /// Gets or Sets InitialResponse - /// - [DataMember(Name="InitialResponse", EmitDefaultValue=false)] - public StringValue InitialResponse { get; set; } + [DataContract] + public partial class CaseDetail : Entity + { - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataMember(Name="CaseID", EmitDefaultValue=false)] + public StringValue CaseID { get; set; } - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } - /// - /// Gets or Sets Severity - /// - [DataMember(Name="Severity", EmitDefaultValue=false)] - public StringValue Severity { get; set; } + [DataMember(Name="ClosingDate", EmitDefaultValue=false)] + public DateTimeValue ClosingDate { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="DateReported", EmitDefaultValue=false)] + public DateTimeValue DateReported { get; set; } - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } + [DataMember(Name="Estimation", EmitDefaultValue=false)] + public StringValue Estimation { get; set; } - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } + [DataMember(Name="InitialResponse", EmitDefaultValue=false)] + public StringValue InitialResponse { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CaseDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CaseID: ").Append(CaseID).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" ClosingDate: ").Append(ClosingDate).Append("\n"); - sb.Append(" DateReported: ").Append(DateReported).Append("\n"); - sb.Append(" Estimation: ").Append(Estimation).Append("\n"); - sb.Append(" InitialResponse: ").Append(InitialResponse).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" Severity: ").Append(Severity).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CaseDetail); - } + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } - /// - /// Returns true if CaseDetail instances are equal - /// - /// Instance of CaseDetail to be compared - /// Boolean - public bool Equals(CaseDetail input) - { - if (input == null) - return false; + [DataMember(Name="Severity", EmitDefaultValue=false)] + public StringValue Severity { get; set; } - return base.Equals(input) && - ( - this.CaseID == input.CaseID || - (this.CaseID != null && - this.CaseID.Equals(input.CaseID)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.ClosingDate == input.ClosingDate || - (this.ClosingDate != null && - this.ClosingDate.Equals(input.ClosingDate)) - ) && base.Equals(input) && - ( - this.DateReported == input.DateReported || - (this.DateReported != null && - this.DateReported.Equals(input.DateReported)) - ) && base.Equals(input) && - ( - this.Estimation == input.Estimation || - (this.Estimation != null && - this.Estimation.Equals(input.Estimation)) - ) && base.Equals(input) && - ( - this.InitialResponse == input.InitialResponse || - (this.InitialResponse != null && - this.InitialResponse.Equals(input.InitialResponse)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.Severity == input.Severity || - (this.Severity != null && - this.Severity.Equals(input.Severity)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CaseID != null) - hashCode = hashCode * 59 + this.CaseID.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.ClosingDate != null) - hashCode = hashCode * 59 + this.ClosingDate.GetHashCode(); - if (this.DateReported != null) - hashCode = hashCode * 59 + this.DateReported.GetHashCode(); - if (this.Estimation != null) - hashCode = hashCode * 59 + this.Estimation.GetHashCode(); - if (this.InitialResponse != null) - hashCode = hashCode * 59 + this.InitialResponse.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.Severity != null) - hashCode = hashCode * 59 + this.Severity.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CaseRelatedCase.cs b/Acumatica.Default_17.200.001/Model/CaseRelatedCase.cs index f2b39e3d..16c8c120 100644 --- a/Acumatica.Default_17.200.001/Model/CaseRelatedCase.cs +++ b/Acumatica.Default_17.200.001/Model/CaseRelatedCase.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CaseRelatedCase - /// - [DataContract] - public partial class CaseRelatedCase : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// caseID. - /// owner. - /// parentCaseID. - /// relationType. - /// status. - /// subject. - /// workgroup. - public CaseRelatedCase(StringValue caseID = default(StringValue), StringValue owner = default(StringValue), IntValue parentCaseID = default(IntValue), StringValue relationType = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CaseID = caseID; - this.Owner = owner; - this.ParentCaseID = parentCaseID; - this.RelationType = relationType; - this.Status = status; - this.Subject = subject; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets CaseID - /// - [DataMember(Name="CaseID", EmitDefaultValue=false)] - public StringValue CaseID { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets ParentCaseID - /// - [DataMember(Name="ParentCaseID", EmitDefaultValue=false)] - public IntValue ParentCaseID { get; set; } - - /// - /// Gets or Sets RelationType - /// - [DataMember(Name="RelationType", EmitDefaultValue=false)] - public StringValue RelationType { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } + [DataContract] + public partial class CaseRelatedCase : Entity + { - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } + [DataMember(Name="CaseID", EmitDefaultValue=false)] + public StringValue CaseID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CaseRelatedCase {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CaseID: ").Append(CaseID).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" ParentCaseID: ").Append(ParentCaseID).Append("\n"); - sb.Append(" RelationType: ").Append(RelationType).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CaseRelatedCase); - } + [DataMember(Name="ParentCaseID", EmitDefaultValue=false)] + public IntValue ParentCaseID { get; set; } - /// - /// Returns true if CaseRelatedCase instances are equal - /// - /// Instance of CaseRelatedCase to be compared - /// Boolean - public bool Equals(CaseRelatedCase input) - { - if (input == null) - return false; + [DataMember(Name="RelationType", EmitDefaultValue=false)] + public StringValue RelationType { get; set; } - return base.Equals(input) && - ( - this.CaseID == input.CaseID || - (this.CaseID != null && - this.CaseID.Equals(input.CaseID)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.ParentCaseID == input.ParentCaseID || - (this.ParentCaseID != null && - this.ParentCaseID.Equals(input.ParentCaseID)) - ) && base.Equals(input) && - ( - this.RelationType == input.RelationType || - (this.RelationType != null && - this.RelationType.Equals(input.RelationType)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CaseID != null) - hashCode = hashCode * 59 + this.CaseID.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.ParentCaseID != null) - hashCode = hashCode * 59 + this.ParentCaseID.GetHashCode(); - if (this.RelationType != null) - hashCode = hashCode * 59 + this.RelationType.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CashSale.cs b/Acumatica.Default_17.200.001/Model/CashSale.cs index 473546c1..4b4446fa 100644 --- a/Acumatica.Default_17.200.001/Model/CashSale.cs +++ b/Acumatica.Default_17.200.001/Model/CashSale.cs @@ -1,366 +1,60 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CashSale - /// - [DataContract] - public partial class CashSale : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// balance. - /// cashAccount. - /// createdDateTime. - /// customerID. - /// date. - /// description. - /// details. - /// hold. - /// lastModifiedDateTime. - /// paymentMethod. - /// paymentRef. - /// referenceNbr. - /// status. - /// taxTotal. - /// type. - public CashSale(DecimalValue amount = default(DecimalValue), DecimalValue balance = default(DecimalValue), StringValue cashAccount = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue customerID = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), List details = default(List), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue paymentMethod = default(StringValue), StringValue paymentRef = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue taxTotal = default(DecimalValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.Balance = balance; - this.CashAccount = cashAccount; - this.CreatedDateTime = createdDateTime; - this.CustomerID = customerID; - this.Date = date; - this.Description = description; - this.Details = details; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PaymentMethod = paymentMethod; - this.PaymentRef = paymentRef; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TaxTotal = taxTotal; - this.Type = type; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } + [DataContract] + public partial class CashSale : Entity + { - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CashSale {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CashSale); - } + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } - /// - /// Returns true if CashSale instances are equal - /// - /// Instance of CashSale to be compared - /// Boolean - public bool Equals(CashSale input) - { - if (input == null) - return false; + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CashSaleDetail.cs b/Acumatica.Default_17.200.001/Model/CashSaleDetail.cs index b167e9a0..d603f07f 100644 --- a/Acumatica.Default_17.200.001/Model/CashSaleDetail.cs +++ b/Acumatica.Default_17.200.001/Model/CashSaleDetail.cs @@ -1,270 +1,42 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CashSaleDetail - /// - [DataContract] - public partial class CashSaleDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// amount. - /// branch. - /// extendedPrice. - /// inventoryID. - /// qty. - /// subaccount. - /// taxCategory. - /// transactionDescription. - /// unitPrice. - public CashSaleDetail(StringValue account = default(StringValue), DecimalValue amount = default(DecimalValue), StringValue branch = default(StringValue), DecimalValue extendedPrice = default(DecimalValue), StringValue inventoryID = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subaccount = default(StringValue), StringValue taxCategory = default(StringValue), StringValue transactionDescription = default(StringValue), DecimalValue unitPrice = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Amount = amount; - this.Branch = branch; - this.ExtendedPrice = extendedPrice; - this.InventoryID = inventoryID; - this.Qty = qty; - this.Subaccount = subaccount; - this.TaxCategory = taxCategory; - this.TransactionDescription = transactionDescription; - this.UnitPrice = unitPrice; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ExtendedPrice - /// - [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] - public DecimalValue ExtendedPrice { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataContract] + public partial class CashSaleDetail : Entity + { - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } + [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] + public DecimalValue ExtendedPrice { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CashSaleDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ExtendedPrice: ").Append(ExtendedPrice).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CashSaleDetail); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if CashSaleDetail instances are equal - /// - /// Instance of CashSaleDetail to be compared - /// Boolean - public bool Equals(CashSaleDetail input) - { - if (input == null) - return false; + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ExtendedPrice == input.ExtendedPrice || - (this.ExtendedPrice != null && - this.ExtendedPrice.Equals(input.ExtendedPrice)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ); - } + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ExtendedPrice != null) - hashCode = hashCode * 59 + this.ExtendedPrice.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CategoryStockItem.cs b/Acumatica.Default_17.200.001/Model/CategoryStockItem.cs index aa6e56be..3e32ebb8 100644 --- a/Acumatica.Default_17.200.001/Model/CategoryStockItem.cs +++ b/Acumatica.Default_17.200.001/Model/CategoryStockItem.cs @@ -1,126 +1,15 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CategoryStockItem - /// - [DataContract] - public partial class CategoryStockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// categoryID. - public CategoryStockItem(IntValue categoryID = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CategoryID = categoryID; - } - - /// - /// Gets or Sets CategoryID - /// - [DataMember(Name="CategoryID", EmitDefaultValue=false)] - public IntValue CategoryID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CategoryStockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CategoryID: ").Append(CategoryID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CategoryStockItem); - } - - /// - /// Returns true if CategoryStockItem instances are equal - /// - /// Instance of CategoryStockItem to be compared - /// Boolean - public bool Equals(CategoryStockItem input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CategoryID == input.CategoryID || - (this.CategoryID != null && - this.CategoryID.Equals(input.CategoryID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CategoryID != null) - hashCode = hashCode * 59 + this.CategoryID.GetHashCode(); - return hashCode; - } - } + [DataContract] + public partial class CategoryStockItem : Entity + { - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="CategoryID", EmitDefaultValue=false)] + public IntValue CategoryID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Check.cs b/Acumatica.Default_17.200.001/Model/Check.cs index 35154b2f..bb071b4c 100644 --- a/Acumatica.Default_17.200.001/Model/Check.cs +++ b/Acumatica.Default_17.200.001/Model/Check.cs @@ -1,350 +1,57 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Check - /// - [DataContract] - public partial class Check : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// applicationDate. - /// cashAccount. - /// currencyID. - /// description. - /// details. - /// history. - /// hold. - /// paymentAmount. - /// paymentMethod. - /// paymentRef. - /// referenceNbr. - /// status. - /// type. - /// unappliedBalance. - /// vendor. - public Check(DateTimeValue applicationDate = default(DateTimeValue), StringValue cashAccount = default(StringValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), List details = default(List), List history = default(List), BooleanValue hold = default(BooleanValue), DecimalValue paymentAmount = default(DecimalValue), StringValue paymentMethod = default(StringValue), StringValue paymentRef = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), StringValue type = default(StringValue), DecimalValue unappliedBalance = default(DecimalValue), StringValue vendor = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApplicationDate = applicationDate; - this.CashAccount = cashAccount; - this.CurrencyID = currencyID; - this.Description = description; - this.Details = details; - this.History = history; - this.Hold = hold; - this.PaymentAmount = paymentAmount; - this.PaymentMethod = paymentMethod; - this.PaymentRef = paymentRef; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.Type = type; - this.UnappliedBalance = unappliedBalance; - this.Vendor = vendor; - } - - /// - /// Gets or Sets ApplicationDate - /// - [DataMember(Name="ApplicationDate", EmitDefaultValue=false)] - public DateTimeValue ApplicationDate { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets History - /// - [DataMember(Name="History", EmitDefaultValue=false)] - public List History { get; set; } + [DataContract] + public partial class Check : Entity + { - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataMember(Name="ApplicationDate", EmitDefaultValue=false)] + public DateTimeValue ApplicationDate { get; set; } - /// - /// Gets or Sets PaymentAmount - /// - [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] - public DecimalValue PaymentAmount { get; set; } + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="History", EmitDefaultValue=false)] + public List History { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Gets or Sets UnappliedBalance - /// - [DataMember(Name="UnappliedBalance", EmitDefaultValue=false)] - public DecimalValue UnappliedBalance { get; set; } + [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] + public DecimalValue PaymentAmount { get; set; } - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Check {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApplicationDate: ").Append(ApplicationDate).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" History: ").Append(History).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" PaymentAmount: ").Append(PaymentAmount).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UnappliedBalance: ").Append(UnappliedBalance).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Check); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Returns true if Check instances are equal - /// - /// Instance of Check to be compared - /// Boolean - public bool Equals(Check input) - { - if (input == null) - return false; + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - return base.Equals(input) && - ( - this.ApplicationDate == input.ApplicationDate || - (this.ApplicationDate != null && - this.ApplicationDate.Equals(input.ApplicationDate)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.History == input.History || - this.History != null && - this.History.SequenceEqual(input.History) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.PaymentAmount == input.PaymentAmount || - (this.PaymentAmount != null && - this.PaymentAmount.Equals(input.PaymentAmount)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UnappliedBalance == input.UnappliedBalance || - (this.UnappliedBalance != null && - this.UnappliedBalance.Equals(input.UnappliedBalance)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ); - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApplicationDate != null) - hashCode = hashCode * 59 + this.ApplicationDate.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.History != null) - hashCode = hashCode * 59 + this.History.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.PaymentAmount != null) - hashCode = hashCode * 59 + this.PaymentAmount.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UnappliedBalance != null) - hashCode = hashCode * 59 + this.UnappliedBalance.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UnappliedBalance", EmitDefaultValue=false)] + public DecimalValue UnappliedBalance { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CheckDetail.cs b/Acumatica.Default_17.200.001/Model/CheckDetail.cs index 51c04b90..7147faf8 100644 --- a/Acumatica.Default_17.200.001/Model/CheckDetail.cs +++ b/Acumatica.Default_17.200.001/Model/CheckDetail.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CheckDetail - /// - [DataContract] - public partial class CheckDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// cashDiscountBalance. - /// docType. - /// referenceNbr. - public CheckDetail(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), DecimalValue cashDiscountBalance = default(DecimalValue), StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.CashDiscountBalance = cashDiscountBalance; - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashDiscountBalance - /// - [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] - public DecimalValue CashDiscountBalance { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CheckDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashDiscountBalance: ").Append(CashDiscountBalance).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class CheckDetail : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CheckDetail); - } + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } - /// - /// Returns true if CheckDetail instances are equal - /// - /// Instance of CheckDetail to be compared - /// Boolean - public bool Equals(CheckDetail input) - { - if (input == null) - return false; + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashDiscountBalance == input.CashDiscountBalance || - (this.CashDiscountBalance != null && - this.CashDiscountBalance.Equals(input.CashDiscountBalance)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ); - } + [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] + public DecimalValue CashDiscountBalance { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashDiscountBalance != null) - hashCode = hashCode * 59 + this.CashDiscountBalance.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CheckHistoryDetail.cs b/Acumatica.Default_17.200.001/Model/CheckHistoryDetail.cs index 52acc061..34ee374a 100644 --- a/Acumatica.Default_17.200.001/Model/CheckHistoryDetail.cs +++ b/Acumatica.Default_17.200.001/Model/CheckHistoryDetail.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CheckHistoryDetail - /// - [DataContract] - public partial class CheckHistoryDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// cashDiscountBalance. - /// cashDiscountTaken. - /// docType. - /// referenceNbr. - /// vendorRef. - public CheckHistoryDetail(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), DecimalValue cashDiscountBalance = default(DecimalValue), DecimalValue cashDiscountTaken = default(DecimalValue), StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue vendorRef = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.CashDiscountBalance = cashDiscountBalance; - this.CashDiscountTaken = cashDiscountTaken; - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - this.VendorRef = vendorRef; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashDiscountBalance - /// - [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] - public DecimalValue CashDiscountBalance { get; set; } - - /// - /// Gets or Sets CashDiscountTaken - /// - [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] - public DecimalValue CashDiscountTaken { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataContract] + public partial class CheckHistoryDetail : Entity + { - /// - /// Gets or Sets VendorRef - /// - [DataMember(Name="VendorRef", EmitDefaultValue=false)] - public StringValue VendorRef { get; set; } + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CheckHistoryDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashDiscountBalance: ").Append(CashDiscountBalance).Append("\n"); - sb.Append(" CashDiscountTaken: ").Append(CashDiscountTaken).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" VendorRef: ").Append(VendorRef).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CheckHistoryDetail); - } + [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] + public DecimalValue CashDiscountBalance { get; set; } - /// - /// Returns true if CheckHistoryDetail instances are equal - /// - /// Instance of CheckHistoryDetail to be compared - /// Boolean - public bool Equals(CheckHistoryDetail input) - { - if (input == null) - return false; + [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] + public DecimalValue CashDiscountTaken { get; set; } - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashDiscountBalance == input.CashDiscountBalance || - (this.CashDiscountBalance != null && - this.CashDiscountBalance.Equals(input.CashDiscountBalance)) - ) && base.Equals(input) && - ( - this.CashDiscountTaken == input.CashDiscountTaken || - (this.CashDiscountTaken != null && - this.CashDiscountTaken.Equals(input.CashDiscountTaken)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.VendorRef == input.VendorRef || - (this.VendorRef != null && - this.VendorRef.Equals(input.VendorRef)) - ); - } + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashDiscountBalance != null) - hashCode = hashCode * 59 + this.CashDiscountBalance.GetHashCode(); - if (this.CashDiscountTaken != null) - hashCode = hashCode * 59 + this.CashDiscountTaken.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.VendorRef != null) - hashCode = hashCode * 59 + this.VendorRef.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorRef", EmitDefaultValue=false)] + public StringValue VendorRef { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Commissions.cs b/Acumatica.Default_17.200.001/Model/Commissions.cs index 94aabf97..8d16288f 100644 --- a/Acumatica.Default_17.200.001/Model/Commissions.cs +++ b/Acumatica.Default_17.200.001/Model/Commissions.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Commissions - /// - [DataContract] - public partial class Commissions : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// defaultSalesperson. - /// salesPersons. - public Commissions(StringValue defaultSalesperson = default(StringValue), List salesPersons = default(List), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DefaultSalesperson = defaultSalesperson; - this.SalesPersons = salesPersons; - } - - /// - /// Gets or Sets DefaultSalesperson - /// - [DataMember(Name="DefaultSalesperson", EmitDefaultValue=false)] - public StringValue DefaultSalesperson { get; set; } - - /// - /// Gets or Sets SalesPersons - /// - [DataMember(Name="SalesPersons", EmitDefaultValue=false)] - public List SalesPersons { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Commissions {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DefaultSalesperson: ").Append(DefaultSalesperson).Append("\n"); - sb.Append(" SalesPersons: ").Append(SalesPersons).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Commissions); - } - - /// - /// Returns true if Commissions instances are equal - /// - /// Instance of Commissions to be compared - /// Boolean - public bool Equals(Commissions input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DefaultSalesperson == input.DefaultSalesperson || - (this.DefaultSalesperson != null && - this.DefaultSalesperson.Equals(input.DefaultSalesperson)) - ) && base.Equals(input) && - ( - this.SalesPersons == input.SalesPersons || - this.SalesPersons != null && - this.SalesPersons.SequenceEqual(input.SalesPersons) - ); - } + [DataContract] + public partial class Commissions : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DefaultSalesperson != null) - hashCode = hashCode * 59 + this.DefaultSalesperson.GetHashCode(); - if (this.SalesPersons != null) - hashCode = hashCode * 59 + this.SalesPersons.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="DefaultSalesperson", EmitDefaultValue=false)] + public StringValue DefaultSalesperson { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="SalesPersons", EmitDefaultValue=false)] + public List SalesPersons { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Contact.cs b/Acumatica.Default_17.200.001/Model/Contact.cs index 1aff6d53..bae34c69 100644 --- a/Acumatica.Default_17.200.001/Model/Contact.cs +++ b/Acumatica.Default_17.200.001/Model/Contact.cs @@ -1,1150 +1,207 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Contact - /// - [DataContract] - public partial class Contact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// activities. - /// address. - /// addressIsSameAsInAccount. - /// addressValidated. - /// attention. - /// attributes. - /// businessAccount. - /// campaigns. - /// cases. - /// companyName. - /// contactClass. - /// contactID. - /// contactMethod. - /// convertedBy. - /// dateOfBirth. - /// displayName. - /// doNotCall. - /// doNotEmail. - /// doNotFax. - /// doNotMail. - /// duplicate. - /// duplicateFound. - /// duplicates. - /// email. - /// fax. - /// faxType. - /// firstName. - /// gender. - /// image. - /// jobTitle. - /// languageOrLocale. - /// lastIncomingActivity. - /// lastName. - /// lastOutgoingActivity. - /// maritalStatus. - /// marketingLists. - /// middleName. - /// noMarketing. - /// noMassMail. - /// notifications. - /// opportunities. - /// owner. - /// ownerEmployeeName. - /// parentAccount. - /// phone1. - /// phone1Type. - /// phone2. - /// phone2Type. - /// phone3. - /// phone3Type. - /// qualificationDate. - /// reason. - /// relations. - /// source. - /// sourceCampaign. - /// spouseOrPartnerName. - /// status. - /// synchronize. - /// title. - /// type. - /// userInfo. - /// webSite. - /// workgroup. - /// workgroupDescription. - public Contact(BooleanValue active = default(BooleanValue), List activities = default(List), Address address = default(Address), BooleanValue addressIsSameAsInAccount = default(BooleanValue), BooleanValue addressValidated = default(BooleanValue), StringValue attention = default(StringValue), List attributes = default(List), StringValue businessAccount = default(StringValue), List campaigns = default(List), List cases = default(List), StringValue companyName = default(StringValue), StringValue contactClass = default(StringValue), IntValue contactID = default(IntValue), StringValue contactMethod = default(StringValue), StringValue convertedBy = default(StringValue), DateTimeValue dateOfBirth = default(DateTimeValue), StringValue displayName = default(StringValue), BooleanValue doNotCall = default(BooleanValue), BooleanValue doNotEmail = default(BooleanValue), BooleanValue doNotFax = default(BooleanValue), BooleanValue doNotMail = default(BooleanValue), StringValue duplicate = default(StringValue), BooleanValue duplicateFound = default(BooleanValue), List duplicates = default(List), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue faxType = default(StringValue), StringValue firstName = default(StringValue), StringValue gender = default(StringValue), StringValue image = default(StringValue), StringValue jobTitle = default(StringValue), StringValue languageOrLocale = default(StringValue), DateTimeValue lastIncomingActivity = default(DateTimeValue), StringValue lastName = default(StringValue), DateTimeValue lastOutgoingActivity = default(DateTimeValue), StringValue maritalStatus = default(StringValue), List marketingLists = default(List), StringValue middleName = default(StringValue), BooleanValue noMarketing = default(BooleanValue), BooleanValue noMassMail = default(BooleanValue), List notifications = default(List), List opportunities = default(List), StringValue owner = default(StringValue), StringValue ownerEmployeeName = default(StringValue), StringValue parentAccount = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone1Type = default(StringValue), StringValue phone2 = default(StringValue), StringValue phone2Type = default(StringValue), StringValue phone3 = default(StringValue), StringValue phone3Type = default(StringValue), DateTimeValue qualificationDate = default(DateTimeValue), StringValue reason = default(StringValue), List relations = default(List), StringValue source = default(StringValue), StringValue sourceCampaign = default(StringValue), StringValue spouseOrPartnerName = default(StringValue), StringValue status = default(StringValue), BooleanValue synchronize = default(BooleanValue), StringValue title = default(StringValue), StringValue type = default(StringValue), ContactUserInfo userInfo = default(ContactUserInfo), StringValue webSite = default(StringValue), StringValue workgroup = default(StringValue), StringValue workgroupDescription = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Activities = activities; - this.Address = address; - this.AddressIsSameAsInAccount = addressIsSameAsInAccount; - this.AddressValidated = addressValidated; - this.Attention = attention; - this.Attributes = attributes; - this.BusinessAccount = businessAccount; - this.Campaigns = campaigns; - this.Cases = cases; - this.CompanyName = companyName; - this.ContactClass = contactClass; - this.ContactID = contactID; - this.ContactMethod = contactMethod; - this.ConvertedBy = convertedBy; - this.DateOfBirth = dateOfBirth; - this.DisplayName = displayName; - this.DoNotCall = doNotCall; - this.DoNotEmail = doNotEmail; - this.DoNotFax = doNotFax; - this.DoNotMail = doNotMail; - this.Duplicate = duplicate; - this.DuplicateFound = duplicateFound; - this.Duplicates = duplicates; - this.Email = email; - this.Fax = fax; - this.FaxType = faxType; - this.FirstName = firstName; - this.Gender = gender; - this.Image = image; - this.JobTitle = jobTitle; - this.LanguageOrLocale = languageOrLocale; - this.LastIncomingActivity = lastIncomingActivity; - this.LastName = lastName; - this.LastOutgoingActivity = lastOutgoingActivity; - this.MaritalStatus = maritalStatus; - this.MarketingLists = marketingLists; - this.MiddleName = middleName; - this.NoMarketing = noMarketing; - this.NoMassMail = noMassMail; - this.Notifications = notifications; - this.Opportunities = opportunities; - this.Owner = owner; - this.OwnerEmployeeName = ownerEmployeeName; - this.ParentAccount = parentAccount; - this.Phone1 = phone1; - this.Phone1Type = phone1Type; - this.Phone2 = phone2; - this.Phone2Type = phone2Type; - this.Phone3 = phone3; - this.Phone3Type = phone3Type; - this.QualificationDate = qualificationDate; - this.Reason = reason; - this.Relations = relations; - this.Source = source; - this.SourceCampaign = sourceCampaign; - this.SpouseOrPartnerName = spouseOrPartnerName; - this.Status = status; - this.Synchronize = synchronize; - this.Title = title; - this.Type = type; - this.UserInfo = userInfo; - this.WebSite = webSite; - this.Workgroup = workgroup; - this.WorkgroupDescription = workgroupDescription; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Activities - /// - [DataMember(Name="Activities", EmitDefaultValue=false)] - public List Activities { get; set; } - - /// - /// Gets or Sets Address - /// - [DataMember(Name="Address", EmitDefaultValue=false)] - public Address Address { get; set; } - - /// - /// Gets or Sets AddressIsSameAsInAccount - /// - [DataMember(Name="AddressIsSameAsInAccount", EmitDefaultValue=false)] - public BooleanValue AddressIsSameAsInAccount { get; set; } - - /// - /// Gets or Sets AddressValidated - /// - [DataMember(Name="AddressValidated", EmitDefaultValue=false)] - public BooleanValue AddressValidated { get; set; } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets Campaigns - /// - [DataMember(Name="Campaigns", EmitDefaultValue=false)] - public List Campaigns { get; set; } - - /// - /// Gets or Sets Cases - /// - [DataMember(Name="Cases", EmitDefaultValue=false)] - public List Cases { get; set; } - - /// - /// Gets or Sets CompanyName - /// - [DataMember(Name="CompanyName", EmitDefaultValue=false)] - public StringValue CompanyName { get; set; } - - /// - /// Gets or Sets ContactClass - /// - [DataMember(Name="ContactClass", EmitDefaultValue=false)] - public StringValue ContactClass { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets ContactMethod - /// - [DataMember(Name="ContactMethod", EmitDefaultValue=false)] - public StringValue ContactMethod { get; set; } - - /// - /// Gets or Sets ConvertedBy - /// - [DataMember(Name="ConvertedBy", EmitDefaultValue=false)] - public StringValue ConvertedBy { get; set; } - - /// - /// Gets or Sets DateOfBirth - /// - [DataMember(Name="DateOfBirth", EmitDefaultValue=false)] - public DateTimeValue DateOfBirth { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets DoNotCall - /// - [DataMember(Name="DoNotCall", EmitDefaultValue=false)] - public BooleanValue DoNotCall { get; set; } - - /// - /// Gets or Sets DoNotEmail - /// - [DataMember(Name="DoNotEmail", EmitDefaultValue=false)] - public BooleanValue DoNotEmail { get; set; } - - /// - /// Gets or Sets DoNotFax - /// - [DataMember(Name="DoNotFax", EmitDefaultValue=false)] - public BooleanValue DoNotFax { get; set; } - - /// - /// Gets or Sets DoNotMail - /// - [DataMember(Name="DoNotMail", EmitDefaultValue=false)] - public BooleanValue DoNotMail { get; set; } - - /// - /// Gets or Sets Duplicate - /// - [DataMember(Name="Duplicate", EmitDefaultValue=false)] - public StringValue Duplicate { get; set; } - - /// - /// Gets or Sets DuplicateFound - /// - [DataMember(Name="DuplicateFound", EmitDefaultValue=false)] - public BooleanValue DuplicateFound { get; set; } - - /// - /// Gets or Sets Duplicates - /// - [DataMember(Name="Duplicates", EmitDefaultValue=false)] - public List Duplicates { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets FaxType - /// - [DataMember(Name="FaxType", EmitDefaultValue=false)] - public StringValue FaxType { get; set; } - - /// - /// Gets or Sets FirstName - /// - [DataMember(Name="FirstName", EmitDefaultValue=false)] - public StringValue FirstName { get; set; } - - /// - /// Gets or Sets Gender - /// - [DataMember(Name="Gender", EmitDefaultValue=false)] - public StringValue Gender { get; set; } - - /// - /// Gets or Sets Image - /// - [DataMember(Name="Image", EmitDefaultValue=false)] - public StringValue Image { get; set; } - - /// - /// Gets or Sets JobTitle - /// - [DataMember(Name="JobTitle", EmitDefaultValue=false)] - public StringValue JobTitle { get; set; } - - /// - /// Gets or Sets LanguageOrLocale - /// - [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] - public StringValue LanguageOrLocale { get; set; } - - /// - /// Gets or Sets LastIncomingActivity - /// - [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] - public DateTimeValue LastIncomingActivity { get; set; } - - /// - /// Gets or Sets LastName - /// - [DataMember(Name="LastName", EmitDefaultValue=false)] - public StringValue LastName { get; set; } - - /// - /// Gets or Sets LastOutgoingActivity - /// - [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] - public DateTimeValue LastOutgoingActivity { get; set; } - - /// - /// Gets or Sets MaritalStatus - /// - [DataMember(Name="MaritalStatus", EmitDefaultValue=false)] - public StringValue MaritalStatus { get; set; } - - /// - /// Gets or Sets MarketingLists - /// - [DataMember(Name="MarketingLists", EmitDefaultValue=false)] - public List MarketingLists { get; set; } - - /// - /// Gets or Sets MiddleName - /// - [DataMember(Name="MiddleName", EmitDefaultValue=false)] - public StringValue MiddleName { get; set; } - - /// - /// Gets or Sets NoMarketing - /// - [DataMember(Name="NoMarketing", EmitDefaultValue=false)] - public BooleanValue NoMarketing { get; set; } - - /// - /// Gets or Sets NoMassMail - /// - [DataMember(Name="NoMassMail", EmitDefaultValue=false)] - public BooleanValue NoMassMail { get; set; } - - /// - /// Gets or Sets Notifications - /// - [DataMember(Name="Notifications", EmitDefaultValue=false)] - public List Notifications { get; set; } - - /// - /// Gets or Sets Opportunities - /// - [DataMember(Name="Opportunities", EmitDefaultValue=false)] - public List Opportunities { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets OwnerEmployeeName - /// - [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] - public StringValue OwnerEmployeeName { get; set; } - - /// - /// Gets or Sets ParentAccount - /// - [DataMember(Name="ParentAccount", EmitDefaultValue=false)] - public StringValue ParentAccount { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Phone1Type - /// - [DataMember(Name="Phone1Type", EmitDefaultValue=false)] - public StringValue Phone1Type { get; set; } - - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } - - /// - /// Gets or Sets Phone2Type - /// - [DataMember(Name="Phone2Type", EmitDefaultValue=false)] - public StringValue Phone2Type { get; set; } - - /// - /// Gets or Sets Phone3 - /// - [DataMember(Name="Phone3", EmitDefaultValue=false)] - public StringValue Phone3 { get; set; } - - /// - /// Gets or Sets Phone3Type - /// - [DataMember(Name="Phone3Type", EmitDefaultValue=false)] - public StringValue Phone3Type { get; set; } - - /// - /// Gets or Sets QualificationDate - /// - [DataMember(Name="QualificationDate", EmitDefaultValue=false)] - public DateTimeValue QualificationDate { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } - - /// - /// Gets or Sets Relations - /// - [DataMember(Name="Relations", EmitDefaultValue=false)] - public List Relations { get; set; } - - /// - /// Gets or Sets Source - /// - [DataMember(Name="Source", EmitDefaultValue=false)] - public StringValue Source { get; set; } - - /// - /// Gets or Sets SourceCampaign - /// - [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] - public StringValue SourceCampaign { get; set; } - - /// - /// Gets or Sets SpouseOrPartnerName - /// - [DataMember(Name="SpouseOrPartnerName", EmitDefaultValue=false)] - public StringValue SpouseOrPartnerName { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Synchronize - /// - [DataMember(Name="Synchronize", EmitDefaultValue=false)] - public BooleanValue Synchronize { get; set; } - - /// - /// Gets or Sets Title - /// - [DataMember(Name="Title", EmitDefaultValue=false)] - public StringValue Title { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UserInfo - /// - [DataMember(Name="UserInfo", EmitDefaultValue=false)] - public ContactUserInfo UserInfo { get; set; } - - /// - /// Gets or Sets WebSite - /// - [DataMember(Name="WebSite", EmitDefaultValue=false)] - public StringValue WebSite { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Gets or Sets WorkgroupDescription - /// - [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] - public StringValue WorkgroupDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Contact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Activities: ").Append(Activities).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" AddressIsSameAsInAccount: ").Append(AddressIsSameAsInAccount).Append("\n"); - sb.Append(" AddressValidated: ").Append(AddressValidated).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" Campaigns: ").Append(Campaigns).Append("\n"); - sb.Append(" Cases: ").Append(Cases).Append("\n"); - sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); - sb.Append(" ContactClass: ").Append(ContactClass).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" ContactMethod: ").Append(ContactMethod).Append("\n"); - sb.Append(" ConvertedBy: ").Append(ConvertedBy).Append("\n"); - sb.Append(" DateOfBirth: ").Append(DateOfBirth).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" DoNotCall: ").Append(DoNotCall).Append("\n"); - sb.Append(" DoNotEmail: ").Append(DoNotEmail).Append("\n"); - sb.Append(" DoNotFax: ").Append(DoNotFax).Append("\n"); - sb.Append(" DoNotMail: ").Append(DoNotMail).Append("\n"); - sb.Append(" Duplicate: ").Append(Duplicate).Append("\n"); - sb.Append(" DuplicateFound: ").Append(DuplicateFound).Append("\n"); - sb.Append(" Duplicates: ").Append(Duplicates).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" FaxType: ").Append(FaxType).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" Gender: ").Append(Gender).Append("\n"); - sb.Append(" Image: ").Append(Image).Append("\n"); - sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); - sb.Append(" LanguageOrLocale: ").Append(LanguageOrLocale).Append("\n"); - sb.Append(" LastIncomingActivity: ").Append(LastIncomingActivity).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" LastOutgoingActivity: ").Append(LastOutgoingActivity).Append("\n"); - sb.Append(" MaritalStatus: ").Append(MaritalStatus).Append("\n"); - sb.Append(" MarketingLists: ").Append(MarketingLists).Append("\n"); - sb.Append(" MiddleName: ").Append(MiddleName).Append("\n"); - sb.Append(" NoMarketing: ").Append(NoMarketing).Append("\n"); - sb.Append(" NoMassMail: ").Append(NoMassMail).Append("\n"); - sb.Append(" Notifications: ").Append(Notifications).Append("\n"); - sb.Append(" Opportunities: ").Append(Opportunities).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerEmployeeName: ").Append(OwnerEmployeeName).Append("\n"); - sb.Append(" ParentAccount: ").Append(ParentAccount).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone1Type: ").Append(Phone1Type).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" Phone2Type: ").Append(Phone2Type).Append("\n"); - sb.Append(" Phone3: ").Append(Phone3).Append("\n"); - sb.Append(" Phone3Type: ").Append(Phone3Type).Append("\n"); - sb.Append(" QualificationDate: ").Append(QualificationDate).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" Relations: ").Append(Relations).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append(" SourceCampaign: ").Append(SourceCampaign).Append("\n"); - sb.Append(" SpouseOrPartnerName: ").Append(SpouseOrPartnerName).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Synchronize: ").Append(Synchronize).Append("\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UserInfo: ").Append(UserInfo).Append("\n"); - sb.Append(" WebSite: ").Append(WebSite).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append(" WorkgroupDescription: ").Append(WorkgroupDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Contact); - } - - /// - /// Returns true if Contact instances are equal - /// - /// Instance of Contact to be compared - /// Boolean - public bool Equals(Contact input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Activities == input.Activities || - this.Activities != null && - this.Activities.SequenceEqual(input.Activities) - ) && base.Equals(input) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && base.Equals(input) && - ( - this.AddressIsSameAsInAccount == input.AddressIsSameAsInAccount || - (this.AddressIsSameAsInAccount != null && - this.AddressIsSameAsInAccount.Equals(input.AddressIsSameAsInAccount)) - ) && base.Equals(input) && - ( - this.AddressValidated == input.AddressValidated || - (this.AddressValidated != null && - this.AddressValidated.Equals(input.AddressValidated)) - ) && base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.Campaigns == input.Campaigns || - this.Campaigns != null && - this.Campaigns.SequenceEqual(input.Campaigns) - ) && base.Equals(input) && - ( - this.Cases == input.Cases || - this.Cases != null && - this.Cases.SequenceEqual(input.Cases) - ) && base.Equals(input) && - ( - this.CompanyName == input.CompanyName || - (this.CompanyName != null && - this.CompanyName.Equals(input.CompanyName)) - ) && base.Equals(input) && - ( - this.ContactClass == input.ContactClass || - (this.ContactClass != null && - this.ContactClass.Equals(input.ContactClass)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.ContactMethod == input.ContactMethod || - (this.ContactMethod != null && - this.ContactMethod.Equals(input.ContactMethod)) - ) && base.Equals(input) && - ( - this.ConvertedBy == input.ConvertedBy || - (this.ConvertedBy != null && - this.ConvertedBy.Equals(input.ConvertedBy)) - ) && base.Equals(input) && - ( - this.DateOfBirth == input.DateOfBirth || - (this.DateOfBirth != null && - this.DateOfBirth.Equals(input.DateOfBirth)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.DoNotCall == input.DoNotCall || - (this.DoNotCall != null && - this.DoNotCall.Equals(input.DoNotCall)) - ) && base.Equals(input) && - ( - this.DoNotEmail == input.DoNotEmail || - (this.DoNotEmail != null && - this.DoNotEmail.Equals(input.DoNotEmail)) - ) && base.Equals(input) && - ( - this.DoNotFax == input.DoNotFax || - (this.DoNotFax != null && - this.DoNotFax.Equals(input.DoNotFax)) - ) && base.Equals(input) && - ( - this.DoNotMail == input.DoNotMail || - (this.DoNotMail != null && - this.DoNotMail.Equals(input.DoNotMail)) - ) && base.Equals(input) && - ( - this.Duplicate == input.Duplicate || - (this.Duplicate != null && - this.Duplicate.Equals(input.Duplicate)) - ) && base.Equals(input) && - ( - this.DuplicateFound == input.DuplicateFound || - (this.DuplicateFound != null && - this.DuplicateFound.Equals(input.DuplicateFound)) - ) && base.Equals(input) && - ( - this.Duplicates == input.Duplicates || - this.Duplicates != null && - this.Duplicates.SequenceEqual(input.Duplicates) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.FaxType == input.FaxType || - (this.FaxType != null && - this.FaxType.Equals(input.FaxType)) - ) && base.Equals(input) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && base.Equals(input) && - ( - this.Gender == input.Gender || - (this.Gender != null && - this.Gender.Equals(input.Gender)) - ) && base.Equals(input) && - ( - this.Image == input.Image || - (this.Image != null && - this.Image.Equals(input.Image)) - ) && base.Equals(input) && - ( - this.JobTitle == input.JobTitle || - (this.JobTitle != null && - this.JobTitle.Equals(input.JobTitle)) - ) && base.Equals(input) && - ( - this.LanguageOrLocale == input.LanguageOrLocale || - (this.LanguageOrLocale != null && - this.LanguageOrLocale.Equals(input.LanguageOrLocale)) - ) && base.Equals(input) && - ( - this.LastIncomingActivity == input.LastIncomingActivity || - (this.LastIncomingActivity != null && - this.LastIncomingActivity.Equals(input.LastIncomingActivity)) - ) && base.Equals(input) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && base.Equals(input) && - ( - this.LastOutgoingActivity == input.LastOutgoingActivity || - (this.LastOutgoingActivity != null && - this.LastOutgoingActivity.Equals(input.LastOutgoingActivity)) - ) && base.Equals(input) && - ( - this.MaritalStatus == input.MaritalStatus || - (this.MaritalStatus != null && - this.MaritalStatus.Equals(input.MaritalStatus)) - ) && base.Equals(input) && - ( - this.MarketingLists == input.MarketingLists || - this.MarketingLists != null && - this.MarketingLists.SequenceEqual(input.MarketingLists) - ) && base.Equals(input) && - ( - this.MiddleName == input.MiddleName || - (this.MiddleName != null && - this.MiddleName.Equals(input.MiddleName)) - ) && base.Equals(input) && - ( - this.NoMarketing == input.NoMarketing || - (this.NoMarketing != null && - this.NoMarketing.Equals(input.NoMarketing)) - ) && base.Equals(input) && - ( - this.NoMassMail == input.NoMassMail || - (this.NoMassMail != null && - this.NoMassMail.Equals(input.NoMassMail)) - ) && base.Equals(input) && - ( - this.Notifications == input.Notifications || - this.Notifications != null && - this.Notifications.SequenceEqual(input.Notifications) - ) && base.Equals(input) && - ( - this.Opportunities == input.Opportunities || - this.Opportunities != null && - this.Opportunities.SequenceEqual(input.Opportunities) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.OwnerEmployeeName == input.OwnerEmployeeName || - (this.OwnerEmployeeName != null && - this.OwnerEmployeeName.Equals(input.OwnerEmployeeName)) - ) && base.Equals(input) && - ( - this.ParentAccount == input.ParentAccount || - (this.ParentAccount != null && - this.ParentAccount.Equals(input.ParentAccount)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone1Type == input.Phone1Type || - (this.Phone1Type != null && - this.Phone1Type.Equals(input.Phone1Type)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.Phone2Type == input.Phone2Type || - (this.Phone2Type != null && - this.Phone2Type.Equals(input.Phone2Type)) - ) && base.Equals(input) && - ( - this.Phone3 == input.Phone3 || - (this.Phone3 != null && - this.Phone3.Equals(input.Phone3)) - ) && base.Equals(input) && - ( - this.Phone3Type == input.Phone3Type || - (this.Phone3Type != null && - this.Phone3Type.Equals(input.Phone3Type)) - ) && base.Equals(input) && - ( - this.QualificationDate == input.QualificationDate || - (this.QualificationDate != null && - this.QualificationDate.Equals(input.QualificationDate)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.Relations == input.Relations || - this.Relations != null && - this.Relations.SequenceEqual(input.Relations) - ) && base.Equals(input) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ) && base.Equals(input) && - ( - this.SourceCampaign == input.SourceCampaign || - (this.SourceCampaign != null && - this.SourceCampaign.Equals(input.SourceCampaign)) - ) && base.Equals(input) && - ( - this.SpouseOrPartnerName == input.SpouseOrPartnerName || - (this.SpouseOrPartnerName != null && - this.SpouseOrPartnerName.Equals(input.SpouseOrPartnerName)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Synchronize == input.Synchronize || - (this.Synchronize != null && - this.Synchronize.Equals(input.Synchronize)) - ) && base.Equals(input) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UserInfo == input.UserInfo || - (this.UserInfo != null && - this.UserInfo.Equals(input.UserInfo)) - ) && base.Equals(input) && - ( - this.WebSite == input.WebSite || - (this.WebSite != null && - this.WebSite.Equals(input.WebSite)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ) && base.Equals(input) && - ( - this.WorkgroupDescription == input.WorkgroupDescription || - (this.WorkgroupDescription != null && - this.WorkgroupDescription.Equals(input.WorkgroupDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Activities != null) - hashCode = hashCode * 59 + this.Activities.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.AddressIsSameAsInAccount != null) - hashCode = hashCode * 59 + this.AddressIsSameAsInAccount.GetHashCode(); - if (this.AddressValidated != null) - hashCode = hashCode * 59 + this.AddressValidated.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.Campaigns != null) - hashCode = hashCode * 59 + this.Campaigns.GetHashCode(); - if (this.Cases != null) - hashCode = hashCode * 59 + this.Cases.GetHashCode(); - if (this.CompanyName != null) - hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); - if (this.ContactClass != null) - hashCode = hashCode * 59 + this.ContactClass.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.ContactMethod != null) - hashCode = hashCode * 59 + this.ContactMethod.GetHashCode(); - if (this.ConvertedBy != null) - hashCode = hashCode * 59 + this.ConvertedBy.GetHashCode(); - if (this.DateOfBirth != null) - hashCode = hashCode * 59 + this.DateOfBirth.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.DoNotCall != null) - hashCode = hashCode * 59 + this.DoNotCall.GetHashCode(); - if (this.DoNotEmail != null) - hashCode = hashCode * 59 + this.DoNotEmail.GetHashCode(); - if (this.DoNotFax != null) - hashCode = hashCode * 59 + this.DoNotFax.GetHashCode(); - if (this.DoNotMail != null) - hashCode = hashCode * 59 + this.DoNotMail.GetHashCode(); - if (this.Duplicate != null) - hashCode = hashCode * 59 + this.Duplicate.GetHashCode(); - if (this.DuplicateFound != null) - hashCode = hashCode * 59 + this.DuplicateFound.GetHashCode(); - if (this.Duplicates != null) - hashCode = hashCode * 59 + this.Duplicates.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.FaxType != null) - hashCode = hashCode * 59 + this.FaxType.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.Gender != null) - hashCode = hashCode * 59 + this.Gender.GetHashCode(); - if (this.Image != null) - hashCode = hashCode * 59 + this.Image.GetHashCode(); - if (this.JobTitle != null) - hashCode = hashCode * 59 + this.JobTitle.GetHashCode(); - if (this.LanguageOrLocale != null) - hashCode = hashCode * 59 + this.LanguageOrLocale.GetHashCode(); - if (this.LastIncomingActivity != null) - hashCode = hashCode * 59 + this.LastIncomingActivity.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.LastOutgoingActivity != null) - hashCode = hashCode * 59 + this.LastOutgoingActivity.GetHashCode(); - if (this.MaritalStatus != null) - hashCode = hashCode * 59 + this.MaritalStatus.GetHashCode(); - if (this.MarketingLists != null) - hashCode = hashCode * 59 + this.MarketingLists.GetHashCode(); - if (this.MiddleName != null) - hashCode = hashCode * 59 + this.MiddleName.GetHashCode(); - if (this.NoMarketing != null) - hashCode = hashCode * 59 + this.NoMarketing.GetHashCode(); - if (this.NoMassMail != null) - hashCode = hashCode * 59 + this.NoMassMail.GetHashCode(); - if (this.Notifications != null) - hashCode = hashCode * 59 + this.Notifications.GetHashCode(); - if (this.Opportunities != null) - hashCode = hashCode * 59 + this.Opportunities.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerEmployeeName != null) - hashCode = hashCode * 59 + this.OwnerEmployeeName.GetHashCode(); - if (this.ParentAccount != null) - hashCode = hashCode * 59 + this.ParentAccount.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone1Type != null) - hashCode = hashCode * 59 + this.Phone1Type.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.Phone2Type != null) - hashCode = hashCode * 59 + this.Phone2Type.GetHashCode(); - if (this.Phone3 != null) - hashCode = hashCode * 59 + this.Phone3.GetHashCode(); - if (this.Phone3Type != null) - hashCode = hashCode * 59 + this.Phone3Type.GetHashCode(); - if (this.QualificationDate != null) - hashCode = hashCode * 59 + this.QualificationDate.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.Relations != null) - hashCode = hashCode * 59 + this.Relations.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - if (this.SourceCampaign != null) - hashCode = hashCode * 59 + this.SourceCampaign.GetHashCode(); - if (this.SpouseOrPartnerName != null) - hashCode = hashCode * 59 + this.SpouseOrPartnerName.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Synchronize != null) - hashCode = hashCode * 59 + this.Synchronize.GetHashCode(); - if (this.Title != null) - hashCode = hashCode * 59 + this.Title.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UserInfo != null) - hashCode = hashCode * 59 + this.UserInfo.GetHashCode(); - if (this.WebSite != null) - hashCode = hashCode * 59 + this.WebSite.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - if (this.WorkgroupDescription != null) - hashCode = hashCode * 59 + this.WorkgroupDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class Contact : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Activities", EmitDefaultValue=false)] + public List Activities { get; set; } + + [DataMember(Name="Address", EmitDefaultValue=false)] + public Address Address { get; set; } + + [DataMember(Name="AddressIsSameAsInAccount", EmitDefaultValue=false)] + public BooleanValue AddressIsSameAsInAccount { get; set; } + + [DataMember(Name="AddressValidated", EmitDefaultValue=false)] + public BooleanValue AddressValidated { get; set; } + + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } + + [DataMember(Name="Campaigns", EmitDefaultValue=false)] + public List Campaigns { get; set; } + + [DataMember(Name="Cases", EmitDefaultValue=false)] + public List Cases { get; set; } + + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public StringValue CompanyName { get; set; } + + [DataMember(Name="ContactClass", EmitDefaultValue=false)] + public StringValue ContactClass { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="ContactMethod", EmitDefaultValue=false)] + public StringValue ContactMethod { get; set; } + + [DataMember(Name="ConvertedBy", EmitDefaultValue=false)] + public StringValue ConvertedBy { get; set; } + + [DataMember(Name="DateOfBirth", EmitDefaultValue=false)] + public DateTimeValue DateOfBirth { get; set; } + + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } + + [DataMember(Name="DoNotCall", EmitDefaultValue=false)] + public BooleanValue DoNotCall { get; set; } + + [DataMember(Name="DoNotEmail", EmitDefaultValue=false)] + public BooleanValue DoNotEmail { get; set; } + + [DataMember(Name="DoNotFax", EmitDefaultValue=false)] + public BooleanValue DoNotFax { get; set; } + + [DataMember(Name="DoNotMail", EmitDefaultValue=false)] + public BooleanValue DoNotMail { get; set; } + + [DataMember(Name="Duplicate", EmitDefaultValue=false)] + public StringValue Duplicate { get; set; } + + [DataMember(Name="DuplicateFound", EmitDefaultValue=false)] + public BooleanValue DuplicateFound { get; set; } + + [DataMember(Name="Duplicates", EmitDefaultValue=false)] + public List Duplicates { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } + + [DataMember(Name="FaxType", EmitDefaultValue=false)] + public StringValue FaxType { get; set; } + + [DataMember(Name="FirstName", EmitDefaultValue=false)] + public StringValue FirstName { get; set; } + + [DataMember(Name="Gender", EmitDefaultValue=false)] + public StringValue Gender { get; set; } + + [DataMember(Name="Image", EmitDefaultValue=false)] + public StringValue Image { get; set; } + + [DataMember(Name="JobTitle", EmitDefaultValue=false)] + public StringValue JobTitle { get; set; } + + [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] + public StringValue LanguageOrLocale { get; set; } + + [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] + public DateTimeValue LastIncomingActivity { get; set; } + + [DataMember(Name="LastName", EmitDefaultValue=false)] + public StringValue LastName { get; set; } + + [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] + public DateTimeValue LastOutgoingActivity { get; set; } + + [DataMember(Name="MaritalStatus", EmitDefaultValue=false)] + public StringValue MaritalStatus { get; set; } + + [DataMember(Name="MarketingLists", EmitDefaultValue=false)] + public List MarketingLists { get; set; } + + [DataMember(Name="MiddleName", EmitDefaultValue=false)] + public StringValue MiddleName { get; set; } + + [DataMember(Name="NoMarketing", EmitDefaultValue=false)] + public BooleanValue NoMarketing { get; set; } + + [DataMember(Name="NoMassMail", EmitDefaultValue=false)] + public BooleanValue NoMassMail { get; set; } + + [DataMember(Name="Notifications", EmitDefaultValue=false)] + public List Notifications { get; set; } + + [DataMember(Name="Opportunities", EmitDefaultValue=false)] + public List Opportunities { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] + public StringValue OwnerEmployeeName { get; set; } + + [DataMember(Name="ParentAccount", EmitDefaultValue=false)] + public StringValue ParentAccount { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + [DataMember(Name="Phone1Type", EmitDefaultValue=false)] + public StringValue Phone1Type { get; set; } + + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } + + [DataMember(Name="Phone2Type", EmitDefaultValue=false)] + public StringValue Phone2Type { get; set; } + + [DataMember(Name="Phone3", EmitDefaultValue=false)] + public StringValue Phone3 { get; set; } + + [DataMember(Name="Phone3Type", EmitDefaultValue=false)] + public StringValue Phone3Type { get; set; } + + [DataMember(Name="QualificationDate", EmitDefaultValue=false)] + public DateTimeValue QualificationDate { get; set; } + + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } + + [DataMember(Name="Relations", EmitDefaultValue=false)] + public List Relations { get; set; } + + [DataMember(Name="Source", EmitDefaultValue=false)] + public StringValue Source { get; set; } + + [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] + public StringValue SourceCampaign { get; set; } + + [DataMember(Name="SpouseOrPartnerName", EmitDefaultValue=false)] + public StringValue SpouseOrPartnerName { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Synchronize", EmitDefaultValue=false)] + public BooleanValue Synchronize { get; set; } + + [DataMember(Name="Title", EmitDefaultValue=false)] + public StringValue Title { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UserInfo", EmitDefaultValue=false)] + public ContactUserInfo UserInfo { get; set; } + + [DataMember(Name="WebSite", EmitDefaultValue=false)] + public StringValue WebSite { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] + public StringValue WorkgroupDescription { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ContactDuplicateDetail.cs b/Acumatica.Default_17.200.001/Model/ContactDuplicateDetail.cs index 14f8d68e..820a0243 100644 --- a/Acumatica.Default_17.200.001/Model/ContactDuplicateDetail.cs +++ b/Acumatica.Default_17.200.001/Model/ContactDuplicateDetail.cs @@ -1,238 +1,36 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ContactDuplicateDetail - /// - [DataContract] - public partial class ContactDuplicateDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// businessAccount. - /// businessAccountName. - /// businessAccountType. - /// displayName. - /// duplicate. - /// email. - /// lastModifiedDate. - /// type. - public ContactDuplicateDetail(StringValue businessAccount = default(StringValue), StringValue businessAccountName = default(StringValue), StringValue businessAccountType = default(StringValue), StringValue displayName = default(StringValue), StringValue duplicate = default(StringValue), StringValue email = default(StringValue), DateTimeValue lastModifiedDate = default(DateTimeValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BusinessAccount = businessAccount; - this.BusinessAccountName = businessAccountName; - this.BusinessAccountType = businessAccountType; - this.DisplayName = displayName; - this.Duplicate = duplicate; - this.Email = email; - this.LastModifiedDate = lastModifiedDate; - this.Type = type; - } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets BusinessAccountName - /// - [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] - public StringValue BusinessAccountName { get; set; } - - /// - /// Gets or Sets BusinessAccountType - /// - [DataMember(Name="BusinessAccountType", EmitDefaultValue=false)] - public StringValue BusinessAccountType { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets Duplicate - /// - [DataMember(Name="Duplicate", EmitDefaultValue=false)] - public StringValue Duplicate { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } + [DataContract] + public partial class ContactDuplicateDetail : Entity + { - /// - /// Gets or Sets LastModifiedDate - /// - [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDate { get; set; } + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] + public StringValue BusinessAccountName { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactDuplicateDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" BusinessAccountName: ").Append(BusinessAccountName).Append("\n"); - sb.Append(" BusinessAccountType: ").Append(BusinessAccountType).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Duplicate: ").Append(Duplicate).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" LastModifiedDate: ").Append(LastModifiedDate).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="BusinessAccountType", EmitDefaultValue=false)] + public StringValue BusinessAccountType { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactDuplicateDetail); - } + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } - /// - /// Returns true if ContactDuplicateDetail instances are equal - /// - /// Instance of ContactDuplicateDetail to be compared - /// Boolean - public bool Equals(ContactDuplicateDetail input) - { - if (input == null) - return false; + [DataMember(Name="Duplicate", EmitDefaultValue=false)] + public StringValue Duplicate { get; set; } - return base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.BusinessAccountName == input.BusinessAccountName || - (this.BusinessAccountName != null && - this.BusinessAccountName.Equals(input.BusinessAccountName)) - ) && base.Equals(input) && - ( - this.BusinessAccountType == input.BusinessAccountType || - (this.BusinessAccountType != null && - this.BusinessAccountType.Equals(input.BusinessAccountType)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.Duplicate == input.Duplicate || - (this.Duplicate != null && - this.Duplicate.Equals(input.Duplicate)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.LastModifiedDate == input.LastModifiedDate || - (this.LastModifiedDate != null && - this.LastModifiedDate.Equals(input.LastModifiedDate)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.BusinessAccountName != null) - hashCode = hashCode * 59 + this.BusinessAccountName.GetHashCode(); - if (this.BusinessAccountType != null) - hashCode = hashCode * 59 + this.BusinessAccountType.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Duplicate != null) - hashCode = hashCode * 59 + this.Duplicate.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.LastModifiedDate != null) - hashCode = hashCode * 59 + this.LastModifiedDate.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDate { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ContactNotification.cs b/Acumatica.Default_17.200.001/Model/ContactNotification.cs index 4edcc520..65805796 100644 --- a/Acumatica.Default_17.200.001/Model/ContactNotification.cs +++ b/Acumatica.Default_17.200.001/Model/ContactNotification.cs @@ -1,270 +1,42 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ContactNotification - /// - [DataContract] - public partial class ContactNotification : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// bcc. - /// classID. - /// description. - /// format. - /// mailingID. - /// module. - /// notificationID. - /// report. - /// source. - public ContactNotification(BooleanValue active = default(BooleanValue), BooleanValue bcc = default(BooleanValue), StringValue classID = default(StringValue), StringValue description = default(StringValue), StringValue format = default(StringValue), StringValue mailingID = default(StringValue), StringValue module = default(StringValue), IntValue notificationID = default(IntValue), StringValue report = default(StringValue), StringValue source = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Bcc = bcc; - this.ClassID = classID; - this.Description = description; - this.Format = format; - this.MailingID = mailingID; - this.Module = module; - this.NotificationID = notificationID; - this.Report = report; - this.Source = source; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Bcc - /// - [DataMember(Name="Bcc", EmitDefaultValue=false)] - public BooleanValue Bcc { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Format - /// - [DataMember(Name="Format", EmitDefaultValue=false)] - public StringValue Format { get; set; } - - /// - /// Gets or Sets MailingID - /// - [DataMember(Name="MailingID", EmitDefaultValue=false)] - public StringValue MailingID { get; set; } + [DataContract] + public partial class ContactNotification : Entity + { - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets NotificationID - /// - [DataMember(Name="NotificationID", EmitDefaultValue=false)] - public IntValue NotificationID { get; set; } + [DataMember(Name="Bcc", EmitDefaultValue=false)] + public BooleanValue Bcc { get; set; } - /// - /// Gets or Sets Report - /// - [DataMember(Name="Report", EmitDefaultValue=false)] - public StringValue Report { get; set; } + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } - /// - /// Gets or Sets Source - /// - [DataMember(Name="Source", EmitDefaultValue=false)] - public StringValue Source { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactNotification {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Bcc: ").Append(Bcc).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Format: ").Append(Format).Append("\n"); - sb.Append(" MailingID: ").Append(MailingID).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" NotificationID: ").Append(NotificationID).Append("\n"); - sb.Append(" Report: ").Append(Report).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Format", EmitDefaultValue=false)] + public StringValue Format { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactNotification); - } + [DataMember(Name="MailingID", EmitDefaultValue=false)] + public StringValue MailingID { get; set; } - /// - /// Returns true if ContactNotification instances are equal - /// - /// Instance of ContactNotification to be compared - /// Boolean - public bool Equals(ContactNotification input) - { - if (input == null) - return false; + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Bcc == input.Bcc || - (this.Bcc != null && - this.Bcc.Equals(input.Bcc)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Format == input.Format || - (this.Format != null && - this.Format.Equals(input.Format)) - ) && base.Equals(input) && - ( - this.MailingID == input.MailingID || - (this.MailingID != null && - this.MailingID.Equals(input.MailingID)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.NotificationID == input.NotificationID || - (this.NotificationID != null && - this.NotificationID.Equals(input.NotificationID)) - ) && base.Equals(input) && - ( - this.Report == input.Report || - (this.Report != null && - this.Report.Equals(input.Report)) - ) && base.Equals(input) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ); - } + [DataMember(Name="NotificationID", EmitDefaultValue=false)] + public IntValue NotificationID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Bcc != null) - hashCode = hashCode * 59 + this.Bcc.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Format != null) - hashCode = hashCode * 59 + this.Format.GetHashCode(); - if (this.MailingID != null) - hashCode = hashCode * 59 + this.MailingID.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.NotificationID != null) - hashCode = hashCode * 59 + this.NotificationID.GetHashCode(); - if (this.Report != null) - hashCode = hashCode * 59 + this.Report.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Report", EmitDefaultValue=false)] + public StringValue Report { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Source", EmitDefaultValue=false)] + public StringValue Source { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ContactRoles.cs b/Acumatica.Default_17.200.001/Model/ContactRoles.cs index b5bd6880..cd960295 100644 --- a/Acumatica.Default_17.200.001/Model/ContactRoles.cs +++ b/Acumatica.Default_17.200.001/Model/ContactRoles.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ContactRoles - /// - [DataContract] - public partial class ContactRoles : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// roleDescription. - /// roleName. - /// selected. - /// userType. - public ContactRoles(StringValue roleDescription = default(StringValue), StringValue roleName = default(StringValue), BooleanValue selected = default(BooleanValue), IntValue userType = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.RoleDescription = roleDescription; - this.RoleName = roleName; - this.Selected = selected; - this.UserType = userType; - } - - /// - /// Gets or Sets RoleDescription - /// - [DataMember(Name="RoleDescription", EmitDefaultValue=false)] - public StringValue RoleDescription { get; set; } - - /// - /// Gets or Sets RoleName - /// - [DataMember(Name="RoleName", EmitDefaultValue=false)] - public StringValue RoleName { get; set; } - - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } - - /// - /// Gets or Sets UserType - /// - [DataMember(Name="UserType", EmitDefaultValue=false)] - public IntValue UserType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactRoles {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" RoleDescription: ").Append(RoleDescription).Append("\n"); - sb.Append(" RoleName: ").Append(RoleName).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" UserType: ").Append(UserType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactRoles); - } + [DataContract] + public partial class ContactRoles : Entity + { - /// - /// Returns true if ContactRoles instances are equal - /// - /// Instance of ContactRoles to be compared - /// Boolean - public bool Equals(ContactRoles input) - { - if (input == null) - return false; + [DataMember(Name="RoleDescription", EmitDefaultValue=false)] + public StringValue RoleDescription { get; set; } - return base.Equals(input) && - ( - this.RoleDescription == input.RoleDescription || - (this.RoleDescription != null && - this.RoleDescription.Equals(input.RoleDescription)) - ) && base.Equals(input) && - ( - this.RoleName == input.RoleName || - (this.RoleName != null && - this.RoleName.Equals(input.RoleName)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.UserType == input.UserType || - (this.UserType != null && - this.UserType.Equals(input.UserType)) - ); - } + [DataMember(Name="RoleName", EmitDefaultValue=false)] + public StringValue RoleName { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.RoleDescription != null) - hashCode = hashCode * 59 + this.RoleDescription.GetHashCode(); - if (this.RoleName != null) - hashCode = hashCode * 59 + this.RoleName.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.UserType != null) - hashCode = hashCode * 59 + this.UserType.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UserType", EmitDefaultValue=false)] + public IntValue UserType { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ContactUserInfo.cs b/Acumatica.Default_17.200.001/Model/ContactUserInfo.cs index 735449a0..e01f841a 100644 --- a/Acumatica.Default_17.200.001/Model/ContactUserInfo.cs +++ b/Acumatica.Default_17.200.001/Model/ContactUserInfo.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ContactUserInfo - /// - [DataContract] - public partial class ContactUserInfo : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// generatePassword. - /// login. - /// password. - /// roles. - /// status. - /// userType. - public ContactUserInfo(BooleanValue generatePassword = default(BooleanValue), StringValue login = default(StringValue), StringValue password = default(StringValue), List roles = default(List), StringValue status = default(StringValue), StringValue userType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.GeneratePassword = generatePassword; - this.Login = login; - this.Password = password; - this.Roles = roles; - this.Status = status; - this.UserType = userType; - } - - /// - /// Gets or Sets GeneratePassword - /// - [DataMember(Name="GeneratePassword", EmitDefaultValue=false)] - public BooleanValue GeneratePassword { get; set; } - - /// - /// Gets or Sets Login - /// - [DataMember(Name="Login", EmitDefaultValue=false)] - public StringValue Login { get; set; } - - /// - /// Gets or Sets Password - /// - [DataMember(Name="Password", EmitDefaultValue=false)] - public StringValue Password { get; set; } - - /// - /// Gets or Sets Roles - /// - [DataMember(Name="Roles", EmitDefaultValue=false)] - public List Roles { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets UserType - /// - [DataMember(Name="UserType", EmitDefaultValue=false)] - public StringValue UserType { get; set; } + [DataContract] + public partial class ContactUserInfo : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactUserInfo {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" GeneratePassword: ").Append(GeneratePassword).Append("\n"); - sb.Append(" Login: ").Append(Login).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Roles: ").Append(Roles).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" UserType: ").Append(UserType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="GeneratePassword", EmitDefaultValue=false)] + public BooleanValue GeneratePassword { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactUserInfo); - } + [DataMember(Name="Login", EmitDefaultValue=false)] + public StringValue Login { get; set; } - /// - /// Returns true if ContactUserInfo instances are equal - /// - /// Instance of ContactUserInfo to be compared - /// Boolean - public bool Equals(ContactUserInfo input) - { - if (input == null) - return false; + [DataMember(Name="Password", EmitDefaultValue=false)] + public StringValue Password { get; set; } - return base.Equals(input) && - ( - this.GeneratePassword == input.GeneratePassword || - (this.GeneratePassword != null && - this.GeneratePassword.Equals(input.GeneratePassword)) - ) && base.Equals(input) && - ( - this.Login == input.Login || - (this.Login != null && - this.Login.Equals(input.Login)) - ) && base.Equals(input) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && base.Equals(input) && - ( - this.Roles == input.Roles || - this.Roles != null && - this.Roles.SequenceEqual(input.Roles) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.UserType == input.UserType || - (this.UserType != null && - this.UserType.Equals(input.UserType)) - ); - } + [DataMember(Name="Roles", EmitDefaultValue=false)] + public List Roles { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.GeneratePassword != null) - hashCode = hashCode * 59 + this.GeneratePassword.GetHashCode(); - if (this.Login != null) - hashCode = hashCode * 59 + this.Login.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Roles != null) - hashCode = hashCode * 59 + this.Roles.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.UserType != null) - hashCode = hashCode * 59 + this.UserType.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UserType", EmitDefaultValue=false)] + public StringValue UserType { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ContractUsage.cs b/Acumatica.Default_17.200.001/Model/ContractUsage.cs index 8fe62acb..c895dfbc 100644 --- a/Acumatica.Default_17.200.001/Model/ContractUsage.cs +++ b/Acumatica.Default_17.200.001/Model/ContractUsage.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ContractUsage - /// - [DataContract] - public partial class ContractUsage : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billedTransactions. - /// contractID. - /// postPeriod. - /// unbilledTransactions. - public ContractUsage(List billedTransactions = default(List), StringValue contractID = default(StringValue), StringValue postPeriod = default(StringValue), List unbilledTransactions = default(List), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BilledTransactions = billedTransactions; - this.ContractID = contractID; - this.PostPeriod = postPeriod; - this.UnbilledTransactions = unbilledTransactions; - } - - /// - /// Gets or Sets BilledTransactions - /// - [DataMember(Name="BilledTransactions", EmitDefaultValue=false)] - public List BilledTransactions { get; set; } - - /// - /// Gets or Sets ContractID - /// - [DataMember(Name="ContractID", EmitDefaultValue=false)] - public StringValue ContractID { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets UnbilledTransactions - /// - [DataMember(Name="UnbilledTransactions", EmitDefaultValue=false)] - public List UnbilledTransactions { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContractUsage {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BilledTransactions: ").Append(BilledTransactions).Append("\n"); - sb.Append(" ContractID: ").Append(ContractID).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" UnbilledTransactions: ").Append(UnbilledTransactions).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContractUsage); - } + [DataContract] + public partial class ContractUsage : Entity + { - /// - /// Returns true if ContractUsage instances are equal - /// - /// Instance of ContractUsage to be compared - /// Boolean - public bool Equals(ContractUsage input) - { - if (input == null) - return false; + [DataMember(Name="BilledTransactions", EmitDefaultValue=false)] + public List BilledTransactions { get; set; } - return base.Equals(input) && - ( - this.BilledTransactions == input.BilledTransactions || - this.BilledTransactions != null && - this.BilledTransactions.SequenceEqual(input.BilledTransactions) - ) && base.Equals(input) && - ( - this.ContractID == input.ContractID || - (this.ContractID != null && - this.ContractID.Equals(input.ContractID)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.UnbilledTransactions == input.UnbilledTransactions || - this.UnbilledTransactions != null && - this.UnbilledTransactions.SequenceEqual(input.UnbilledTransactions) - ); - } + [DataMember(Name="ContractID", EmitDefaultValue=false)] + public StringValue ContractID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BilledTransactions != null) - hashCode = hashCode * 59 + this.BilledTransactions.GetHashCode(); - if (this.ContractID != null) - hashCode = hashCode * 59 + this.ContractID.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.UnbilledTransactions != null) - hashCode = hashCode * 59 + this.UnbilledTransactions.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UnbilledTransactions", EmitDefaultValue=false)] + public List UnbilledTransactions { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ContractUsageTransactionDetail.cs b/Acumatica.Default_17.200.001/Model/ContractUsageTransactionDetail.cs index fb410526..32c577f1 100644 --- a/Acumatica.Default_17.200.001/Model/ContractUsageTransactionDetail.cs +++ b/Acumatica.Default_17.200.001/Model/ContractUsageTransactionDetail.cs @@ -1,318 +1,51 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ContractUsageTransactionDetail - /// - [DataContract] - public partial class ContractUsageTransactionDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billingDate. - /// branch. - /// caseID. - /// date. - /// description. - /// endDate. - /// inventoryID. - /// qty. - /// referenceNbr. - /// startDate. - /// transactionID. - /// type. - /// uOM. - public ContractUsageTransactionDetail(DateTimeValue billingDate = default(DateTimeValue), StringValue branch = default(StringValue), StringValue caseID = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue endDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue referenceNbr = default(StringValue), DateTimeValue startDate = default(DateTimeValue), LongValue transactionID = default(LongValue), StringValue type = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillingDate = billingDate; - this.Branch = branch; - this.CaseID = caseID; - this.Date = date; - this.Description = description; - this.EndDate = endDate; - this.InventoryID = inventoryID; - this.Qty = qty; - this.ReferenceNbr = referenceNbr; - this.StartDate = startDate; - this.TransactionID = transactionID; - this.Type = type; - this.UOM = uOM; - } - - /// - /// Gets or Sets BillingDate - /// - [DataMember(Name="BillingDate", EmitDefaultValue=false)] - public DateTimeValue BillingDate { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CaseID - /// - [DataMember(Name="CaseID", EmitDefaultValue=false)] - public StringValue CaseID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } + [DataContract] + public partial class ContractUsageTransactionDetail : Entity + { - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } + [DataMember(Name="BillingDate", EmitDefaultValue=false)] + public DateTimeValue BillingDate { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="CaseID", EmitDefaultValue=false)] + public StringValue CaseID { get; set; } - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets TransactionID - /// - [DataMember(Name="TransactionID", EmitDefaultValue=false)] - public LongValue TransactionID { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContractUsageTransactionDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillingDate: ").Append(BillingDate).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CaseID: ").Append(CaseID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" TransactionID: ").Append(TransactionID).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContractUsageTransactionDetail); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Returns true if ContractUsageTransactionDetail instances are equal - /// - /// Instance of ContractUsageTransactionDetail to be compared - /// Boolean - public bool Equals(ContractUsageTransactionDetail input) - { - if (input == null) - return false; + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - return base.Equals(input) && - ( - this.BillingDate == input.BillingDate || - (this.BillingDate != null && - this.BillingDate.Equals(input.BillingDate)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CaseID == input.CaseID || - (this.CaseID != null && - this.CaseID.Equals(input.CaseID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.TransactionID == input.TransactionID || - (this.TransactionID != null && - this.TransactionID.Equals(input.TransactionID)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="TransactionID", EmitDefaultValue=false)] + public LongValue TransactionID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillingDate != null) - hashCode = hashCode * 59 + this.BillingDate.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CaseID != null) - hashCode = hashCode * 59 + this.CaseID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.TransactionID != null) - hashCode = hashCode * 59 + this.TransactionID.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CreditCardProcessingDetail.cs b/Acumatica.Default_17.200.001/Model/CreditCardProcessingDetail.cs index 03bb912a..fe751192 100644 --- a/Acumatica.Default_17.200.001/Model/CreditCardProcessingDetail.cs +++ b/Acumatica.Default_17.200.001/Model/CreditCardProcessingDetail.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CreditCardProcessingDetail - /// - [DataContract] - public partial class CreditCardProcessingDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// transactionAmount. - /// transactionStatus. - public CreditCardProcessingDetail(DecimalValue transactionAmount = default(DecimalValue), StringValue transactionStatus = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.TransactionAmount = transactionAmount; - this.TransactionStatus = transactionStatus; - } - - /// - /// Gets or Sets TransactionAmount - /// - [DataMember(Name="TransactionAmount", EmitDefaultValue=false)] - public DecimalValue TransactionAmount { get; set; } - - /// - /// Gets or Sets TransactionStatus - /// - [DataMember(Name="TransactionStatus", EmitDefaultValue=false)] - public StringValue TransactionStatus { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CreditCardProcessingDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" TransactionAmount: ").Append(TransactionAmount).Append("\n"); - sb.Append(" TransactionStatus: ").Append(TransactionStatus).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CreditCardProcessingDetail); - } - - /// - /// Returns true if CreditCardProcessingDetail instances are equal - /// - /// Instance of CreditCardProcessingDetail to be compared - /// Boolean - public bool Equals(CreditCardProcessingDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.TransactionAmount == input.TransactionAmount || - (this.TransactionAmount != null && - this.TransactionAmount.Equals(input.TransactionAmount)) - ) && base.Equals(input) && - ( - this.TransactionStatus == input.TransactionStatus || - (this.TransactionStatus != null && - this.TransactionStatus.Equals(input.TransactionStatus)) - ); - } + [DataContract] + public partial class CreditCardProcessingDetail : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.TransactionAmount != null) - hashCode = hashCode * 59 + this.TransactionAmount.GetHashCode(); - if (this.TransactionStatus != null) - hashCode = hashCode * 59 + this.TransactionStatus.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TransactionAmount", EmitDefaultValue=false)] + public DecimalValue TransactionAmount { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TransactionStatus", EmitDefaultValue=false)] + public StringValue TransactionStatus { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CreditVerificationRules.cs b/Acumatica.Default_17.200.001/Model/CreditVerificationRules.cs index b83775c5..3d770411 100644 --- a/Acumatica.Default_17.200.001/Model/CreditVerificationRules.cs +++ b/Acumatica.Default_17.200.001/Model/CreditVerificationRules.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CreditVerificationRules - /// - [DataContract] - public partial class CreditVerificationRules : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// creditDaysPastDue. - /// creditLimit. - /// creditVerification. - /// firstDueDate. - /// openOrdersBalance. - /// remainingCreditLimit. - /// unreleasedBalance. - public CreditVerificationRules(ShortValue creditDaysPastDue = default(ShortValue), DecimalValue creditLimit = default(DecimalValue), StringValue creditVerification = default(StringValue), DateTimeValue firstDueDate = default(DateTimeValue), DecimalValue openOrdersBalance = default(DecimalValue), DecimalValue remainingCreditLimit = default(DecimalValue), DecimalValue unreleasedBalance = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreditDaysPastDue = creditDaysPastDue; - this.CreditLimit = creditLimit; - this.CreditVerification = creditVerification; - this.FirstDueDate = firstDueDate; - this.OpenOrdersBalance = openOrdersBalance; - this.RemainingCreditLimit = remainingCreditLimit; - this.UnreleasedBalance = unreleasedBalance; - } - - /// - /// Gets or Sets CreditDaysPastDue - /// - [DataMember(Name="CreditDaysPastDue", EmitDefaultValue=false)] - public ShortValue CreditDaysPastDue { get; set; } - - /// - /// Gets or Sets CreditLimit - /// - [DataMember(Name="CreditLimit", EmitDefaultValue=false)] - public DecimalValue CreditLimit { get; set; } - - /// - /// Gets or Sets CreditVerification - /// - [DataMember(Name="CreditVerification", EmitDefaultValue=false)] - public StringValue CreditVerification { get; set; } - - /// - /// Gets or Sets FirstDueDate - /// - [DataMember(Name="FirstDueDate", EmitDefaultValue=false)] - public DateTimeValue FirstDueDate { get; set; } - - /// - /// Gets or Sets OpenOrdersBalance - /// - [DataMember(Name="OpenOrdersBalance", EmitDefaultValue=false)] - public DecimalValue OpenOrdersBalance { get; set; } - - /// - /// Gets or Sets RemainingCreditLimit - /// - [DataMember(Name="RemainingCreditLimit", EmitDefaultValue=false)] - public DecimalValue RemainingCreditLimit { get; set; } + [DataContract] + public partial class CreditVerificationRules : Entity + { - /// - /// Gets or Sets UnreleasedBalance - /// - [DataMember(Name="UnreleasedBalance", EmitDefaultValue=false)] - public DecimalValue UnreleasedBalance { get; set; } + [DataMember(Name="CreditDaysPastDue", EmitDefaultValue=false)] + public ShortValue CreditDaysPastDue { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CreditVerificationRules {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreditDaysPastDue: ").Append(CreditDaysPastDue).Append("\n"); - sb.Append(" CreditLimit: ").Append(CreditLimit).Append("\n"); - sb.Append(" CreditVerification: ").Append(CreditVerification).Append("\n"); - sb.Append(" FirstDueDate: ").Append(FirstDueDate).Append("\n"); - sb.Append(" OpenOrdersBalance: ").Append(OpenOrdersBalance).Append("\n"); - sb.Append(" RemainingCreditLimit: ").Append(RemainingCreditLimit).Append("\n"); - sb.Append(" UnreleasedBalance: ").Append(UnreleasedBalance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CreditLimit", EmitDefaultValue=false)] + public DecimalValue CreditLimit { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CreditVerificationRules); - } + [DataMember(Name="CreditVerification", EmitDefaultValue=false)] + public StringValue CreditVerification { get; set; } - /// - /// Returns true if CreditVerificationRules instances are equal - /// - /// Instance of CreditVerificationRules to be compared - /// Boolean - public bool Equals(CreditVerificationRules input) - { - if (input == null) - return false; + [DataMember(Name="FirstDueDate", EmitDefaultValue=false)] + public DateTimeValue FirstDueDate { get; set; } - return base.Equals(input) && - ( - this.CreditDaysPastDue == input.CreditDaysPastDue || - (this.CreditDaysPastDue != null && - this.CreditDaysPastDue.Equals(input.CreditDaysPastDue)) - ) && base.Equals(input) && - ( - this.CreditLimit == input.CreditLimit || - (this.CreditLimit != null && - this.CreditLimit.Equals(input.CreditLimit)) - ) && base.Equals(input) && - ( - this.CreditVerification == input.CreditVerification || - (this.CreditVerification != null && - this.CreditVerification.Equals(input.CreditVerification)) - ) && base.Equals(input) && - ( - this.FirstDueDate == input.FirstDueDate || - (this.FirstDueDate != null && - this.FirstDueDate.Equals(input.FirstDueDate)) - ) && base.Equals(input) && - ( - this.OpenOrdersBalance == input.OpenOrdersBalance || - (this.OpenOrdersBalance != null && - this.OpenOrdersBalance.Equals(input.OpenOrdersBalance)) - ) && base.Equals(input) && - ( - this.RemainingCreditLimit == input.RemainingCreditLimit || - (this.RemainingCreditLimit != null && - this.RemainingCreditLimit.Equals(input.RemainingCreditLimit)) - ) && base.Equals(input) && - ( - this.UnreleasedBalance == input.UnreleasedBalance || - (this.UnreleasedBalance != null && - this.UnreleasedBalance.Equals(input.UnreleasedBalance)) - ); - } + [DataMember(Name="OpenOrdersBalance", EmitDefaultValue=false)] + public DecimalValue OpenOrdersBalance { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreditDaysPastDue != null) - hashCode = hashCode * 59 + this.CreditDaysPastDue.GetHashCode(); - if (this.CreditLimit != null) - hashCode = hashCode * 59 + this.CreditLimit.GetHashCode(); - if (this.CreditVerification != null) - hashCode = hashCode * 59 + this.CreditVerification.GetHashCode(); - if (this.FirstDueDate != null) - hashCode = hashCode * 59 + this.FirstDueDate.GetHashCode(); - if (this.OpenOrdersBalance != null) - hashCode = hashCode * 59 + this.OpenOrdersBalance.GetHashCode(); - if (this.RemainingCreditLimit != null) - hashCode = hashCode * 59 + this.RemainingCreditLimit.GetHashCode(); - if (this.UnreleasedBalance != null) - hashCode = hashCode * 59 + this.UnreleasedBalance.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="RemainingCreditLimit", EmitDefaultValue=false)] + public DecimalValue RemainingCreditLimit { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UnreleasedBalance", EmitDefaultValue=false)] + public DecimalValue UnreleasedBalance { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Currency.cs b/Acumatica.Default_17.200.001/Model/Currency.cs index 6f491960..3b1eb296 100644 --- a/Acumatica.Default_17.200.001/Model/Currency.cs +++ b/Acumatica.Default_17.200.001/Model/Currency.cs @@ -1,238 +1,36 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Currency - /// - [DataContract] - public partial class Currency : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// createdDateTime. - /// currencyID. - /// currencySymbol. - /// decimalPrecision. - /// description. - /// lastModifiedDateTime. - /// useForAccounting. - public Currency(BooleanValue active = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue currencySymbol = default(StringValue), ShortValue decimalPrecision = default(ShortValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), BooleanValue useForAccounting = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.CurrencySymbol = currencySymbol; - this.DecimalPrecision = decimalPrecision; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.UseForAccounting = useForAccounting; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencySymbol - /// - [DataMember(Name="CurrencySymbol", EmitDefaultValue=false)] - public StringValue CurrencySymbol { get; set; } - - /// - /// Gets or Sets DecimalPrecision - /// - [DataMember(Name="DecimalPrecision", EmitDefaultValue=false)] - public ShortValue DecimalPrecision { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataContract] + public partial class Currency : Entity + { - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets UseForAccounting - /// - [DataMember(Name="UseForAccounting", EmitDefaultValue=false)] - public BooleanValue UseForAccounting { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Currency {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencySymbol: ").Append(CurrencySymbol).Append("\n"); - sb.Append(" DecimalPrecision: ").Append(DecimalPrecision).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" UseForAccounting: ").Append(UseForAccounting).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Currency); - } + [DataMember(Name="CurrencySymbol", EmitDefaultValue=false)] + public StringValue CurrencySymbol { get; set; } - /// - /// Returns true if Currency instances are equal - /// - /// Instance of Currency to be compared - /// Boolean - public bool Equals(Currency input) - { - if (input == null) - return false; + [DataMember(Name="DecimalPrecision", EmitDefaultValue=false)] + public ShortValue DecimalPrecision { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencySymbol == input.CurrencySymbol || - (this.CurrencySymbol != null && - this.CurrencySymbol.Equals(input.CurrencySymbol)) - ) && base.Equals(input) && - ( - this.DecimalPrecision == input.DecimalPrecision || - (this.DecimalPrecision != null && - this.DecimalPrecision.Equals(input.DecimalPrecision)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.UseForAccounting == input.UseForAccounting || - (this.UseForAccounting != null && - this.UseForAccounting.Equals(input.UseForAccounting)) - ); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencySymbol != null) - hashCode = hashCode * 59 + this.CurrencySymbol.GetHashCode(); - if (this.DecimalPrecision != null) - hashCode = hashCode * 59 + this.DecimalPrecision.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.UseForAccounting != null) - hashCode = hashCode * 59 + this.UseForAccounting.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UseForAccounting", EmitDefaultValue=false)] + public BooleanValue UseForAccounting { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Customer.cs b/Acumatica.Default_17.200.001/Model/Customer.cs index 82c73aff..ee618f0f 100644 --- a/Acumatica.Default_17.200.001/Model/Customer.cs +++ b/Acumatica.Default_17.200.001/Model/Customer.cs @@ -1,958 +1,171 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Customer - /// - [DataContract] - public partial class Customer : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountRef. - /// applyOverdueCharges. - /// attributes. - /// autoApplyPayments. - /// billingAddressSameAsMain. - /// billingContact. - /// billingContactSameAsMain. - /// contacts. - /// createdDateTime. - /// creditVerificationRules. - /// currencyID. - /// currencyRateType. - /// customerClass. - /// customerID. - /// customerName. - /// enableCurrencyOverride. - /// enableRateOverride. - /// enableWriteOffs. - /// fOBPoint. - /// lastModifiedDateTime. - /// leadTimedays. - /// locationName. - /// mainContact. - /// multiCurrencyStatements. - /// orderPriority. - /// parentRecord. - /// paymentInstructions. - /// priceClassID. - /// printDunningLetters. - /// printInvoices. - /// printStatements. - /// residentialDelivery. - /// salespersons. - /// saturdayDelivery. - /// sendDunningLettersbyEmail. - /// sendInvoicesbyEmail. - /// sendStatementsbyEmail. - /// shippingAddressSameAsMain. - /// shippingBranch. - /// shippingContact. - /// shippingContactSameAsMain. - /// shippingRule. - /// shippingTerms. - /// shippingZoneID. - /// shipVia. - /// statementCycleID. - /// statementType. - /// status. - /// taxRegistrationID. - /// taxZone. - /// terms. - /// warehouseID. - /// writeOffLimit. - public Customer(StringValue accountRef = default(StringValue), BooleanValue applyOverdueCharges = default(BooleanValue), List attributes = default(List), BooleanValue autoApplyPayments = default(BooleanValue), BooleanValue billingAddressSameAsMain = default(BooleanValue), Contact billingContact = default(Contact), BooleanValue billingContactSameAsMain = default(BooleanValue), List contacts = default(List), DateTimeValue createdDateTime = default(DateTimeValue), CreditVerificationRules creditVerificationRules = default(CreditVerificationRules), StringValue currencyID = default(StringValue), StringValue currencyRateType = default(StringValue), StringValue customerClass = default(StringValue), StringValue customerID = default(StringValue), StringValue customerName = default(StringValue), BooleanValue enableCurrencyOverride = default(BooleanValue), BooleanValue enableRateOverride = default(BooleanValue), BooleanValue enableWriteOffs = default(BooleanValue), StringValue fOBPoint = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ShortValue leadTimedays = default(ShortValue), StringValue locationName = default(StringValue), Contact mainContact = default(Contact), BooleanValue multiCurrencyStatements = default(BooleanValue), ShortValue orderPriority = default(ShortValue), StringValue parentRecord = default(StringValue), List paymentInstructions = default(List), StringValue priceClassID = default(StringValue), BooleanValue printDunningLetters = default(BooleanValue), BooleanValue printInvoices = default(BooleanValue), BooleanValue printStatements = default(BooleanValue), BooleanValue residentialDelivery = default(BooleanValue), List salespersons = default(List), BooleanValue saturdayDelivery = default(BooleanValue), BooleanValue sendDunningLettersbyEmail = default(BooleanValue), BooleanValue sendInvoicesbyEmail = default(BooleanValue), BooleanValue sendStatementsbyEmail = default(BooleanValue), BooleanValue shippingAddressSameAsMain = default(BooleanValue), StringValue shippingBranch = default(StringValue), Contact shippingContact = default(Contact), BooleanValue shippingContactSameAsMain = default(BooleanValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shippingZoneID = default(StringValue), StringValue shipVia = default(StringValue), StringValue statementCycleID = default(StringValue), StringValue statementType = default(StringValue), StringValue status = default(StringValue), StringValue taxRegistrationID = default(StringValue), StringValue taxZone = default(StringValue), StringValue terms = default(StringValue), StringValue warehouseID = default(StringValue), DecimalValue writeOffLimit = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountRef = accountRef; - this.ApplyOverdueCharges = applyOverdueCharges; - this.Attributes = attributes; - this.AutoApplyPayments = autoApplyPayments; - this.BillingAddressSameAsMain = billingAddressSameAsMain; - this.BillingContact = billingContact; - this.BillingContactSameAsMain = billingContactSameAsMain; - this.Contacts = contacts; - this.CreatedDateTime = createdDateTime; - this.CreditVerificationRules = creditVerificationRules; - this.CurrencyID = currencyID; - this.CurrencyRateType = currencyRateType; - this.CustomerClass = customerClass; - this.CustomerID = customerID; - this.CustomerName = customerName; - this.EnableCurrencyOverride = enableCurrencyOverride; - this.EnableRateOverride = enableRateOverride; - this.EnableWriteOffs = enableWriteOffs; - this.FOBPoint = fOBPoint; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LeadTimedays = leadTimedays; - this.LocationName = locationName; - this.MainContact = mainContact; - this.MultiCurrencyStatements = multiCurrencyStatements; - this.OrderPriority = orderPriority; - this.ParentRecord = parentRecord; - this.PaymentInstructions = paymentInstructions; - this.PriceClassID = priceClassID; - this.PrintDunningLetters = printDunningLetters; - this.PrintInvoices = printInvoices; - this.PrintStatements = printStatements; - this.ResidentialDelivery = residentialDelivery; - this.Salespersons = salespersons; - this.SaturdayDelivery = saturdayDelivery; - this.SendDunningLettersbyEmail = sendDunningLettersbyEmail; - this.SendInvoicesbyEmail = sendInvoicesbyEmail; - this.SendStatementsbyEmail = sendStatementsbyEmail; - this.ShippingAddressSameAsMain = shippingAddressSameAsMain; - this.ShippingBranch = shippingBranch; - this.ShippingContact = shippingContact; - this.ShippingContactSameAsMain = shippingContactSameAsMain; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShippingZoneID = shippingZoneID; - this.ShipVia = shipVia; - this.StatementCycleID = statementCycleID; - this.StatementType = statementType; - this.Status = status; - this.TaxRegistrationID = taxRegistrationID; - this.TaxZone = taxZone; - this.Terms = terms; - this.WarehouseID = warehouseID; - this.WriteOffLimit = writeOffLimit; - } - - /// - /// Gets or Sets AccountRef - /// - [DataMember(Name="AccountRef", EmitDefaultValue=false)] - public StringValue AccountRef { get; set; } - - /// - /// Gets or Sets ApplyOverdueCharges - /// - [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] - public BooleanValue ApplyOverdueCharges { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets AutoApplyPayments - /// - [DataMember(Name="AutoApplyPayments", EmitDefaultValue=false)] - public BooleanValue AutoApplyPayments { get; set; } - - /// - /// Gets or Sets BillingAddressSameAsMain - /// - [DataMember(Name="BillingAddressSameAsMain", EmitDefaultValue=false)] - public BooleanValue BillingAddressSameAsMain { get; set; } - - /// - /// Gets or Sets BillingContact - /// - [DataMember(Name="BillingContact", EmitDefaultValue=false)] - public Contact BillingContact { get; set; } - - /// - /// Gets or Sets BillingContactSameAsMain - /// - [DataMember(Name="BillingContactSameAsMain", EmitDefaultValue=false)] - public BooleanValue BillingContactSameAsMain { get; set; } - - /// - /// Gets or Sets Contacts - /// - [DataMember(Name="Contacts", EmitDefaultValue=false)] - public List Contacts { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CreditVerificationRules - /// - [DataMember(Name="CreditVerificationRules", EmitDefaultValue=false)] - public CreditVerificationRules CreditVerificationRules { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRateType - /// - [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] - public StringValue CurrencyRateType { get; set; } - - /// - /// Gets or Sets CustomerClass - /// - [DataMember(Name="CustomerClass", EmitDefaultValue=false)] - public StringValue CustomerClass { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerName - /// - [DataMember(Name="CustomerName", EmitDefaultValue=false)] - public StringValue CustomerName { get; set; } - - /// - /// Gets or Sets EnableCurrencyOverride - /// - [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] - public BooleanValue EnableCurrencyOverride { get; set; } - - /// - /// Gets or Sets EnableRateOverride - /// - [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] - public BooleanValue EnableRateOverride { get; set; } - - /// - /// Gets or Sets EnableWriteOffs - /// - [DataMember(Name="EnableWriteOffs", EmitDefaultValue=false)] - public BooleanValue EnableWriteOffs { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LeadTimedays - /// - [DataMember(Name="LeadTimedays", EmitDefaultValue=false)] - public ShortValue LeadTimedays { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets MainContact - /// - [DataMember(Name="MainContact", EmitDefaultValue=false)] - public Contact MainContact { get; set; } - - /// - /// Gets or Sets MultiCurrencyStatements - /// - [DataMember(Name="MultiCurrencyStatements", EmitDefaultValue=false)] - public BooleanValue MultiCurrencyStatements { get; set; } - - /// - /// Gets or Sets OrderPriority - /// - [DataMember(Name="OrderPriority", EmitDefaultValue=false)] - public ShortValue OrderPriority { get; set; } - - /// - /// Gets or Sets ParentRecord - /// - [DataMember(Name="ParentRecord", EmitDefaultValue=false)] - public StringValue ParentRecord { get; set; } - - /// - /// Gets or Sets PaymentInstructions - /// - [DataMember(Name="PaymentInstructions", EmitDefaultValue=false)] - public List PaymentInstructions { get; set; } - - /// - /// Gets or Sets PriceClassID - /// - [DataMember(Name="PriceClassID", EmitDefaultValue=false)] - public StringValue PriceClassID { get; set; } - - /// - /// Gets or Sets PrintDunningLetters - /// - [DataMember(Name="PrintDunningLetters", EmitDefaultValue=false)] - public BooleanValue PrintDunningLetters { get; set; } - - /// - /// Gets or Sets PrintInvoices - /// - [DataMember(Name="PrintInvoices", EmitDefaultValue=false)] - public BooleanValue PrintInvoices { get; set; } - - /// - /// Gets or Sets PrintStatements - /// - [DataMember(Name="PrintStatements", EmitDefaultValue=false)] - public BooleanValue PrintStatements { get; set; } - - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } - - /// - /// Gets or Sets Salespersons - /// - [DataMember(Name="Salespersons", EmitDefaultValue=false)] - public List Salespersons { get; set; } - - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } - - /// - /// Gets or Sets SendDunningLettersbyEmail - /// - [DataMember(Name="SendDunningLettersbyEmail", EmitDefaultValue=false)] - public BooleanValue SendDunningLettersbyEmail { get; set; } - - /// - /// Gets or Sets SendInvoicesbyEmail - /// - [DataMember(Name="SendInvoicesbyEmail", EmitDefaultValue=false)] - public BooleanValue SendInvoicesbyEmail { get; set; } - - /// - /// Gets or Sets SendStatementsbyEmail - /// - [DataMember(Name="SendStatementsbyEmail", EmitDefaultValue=false)] - public BooleanValue SendStatementsbyEmail { get; set; } - - /// - /// Gets or Sets ShippingAddressSameAsMain - /// - [DataMember(Name="ShippingAddressSameAsMain", EmitDefaultValue=false)] - public BooleanValue ShippingAddressSameAsMain { get; set; } - - /// - /// Gets or Sets ShippingBranch - /// - [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] - public StringValue ShippingBranch { get; set; } - - /// - /// Gets or Sets ShippingContact - /// - [DataMember(Name="ShippingContact", EmitDefaultValue=false)] - public Contact ShippingContact { get; set; } - - /// - /// Gets or Sets ShippingContactSameAsMain - /// - [DataMember(Name="ShippingContactSameAsMain", EmitDefaultValue=false)] - public BooleanValue ShippingContactSameAsMain { get; set; } - - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShippingZoneID - /// - [DataMember(Name="ShippingZoneID", EmitDefaultValue=false)] - public StringValue ShippingZoneID { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets StatementCycleID - /// - [DataMember(Name="StatementCycleID", EmitDefaultValue=false)] - public StringValue StatementCycleID { get; set; } - - /// - /// Gets or Sets StatementType - /// - [DataMember(Name="StatementType", EmitDefaultValue=false)] - public StringValue StatementType { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxRegistrationID - /// - [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] - public StringValue TaxRegistrationID { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Gets or Sets WriteOffLimit - /// - [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] - public DecimalValue WriteOffLimit { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Customer {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountRef: ").Append(AccountRef).Append("\n"); - sb.Append(" ApplyOverdueCharges: ").Append(ApplyOverdueCharges).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" AutoApplyPayments: ").Append(AutoApplyPayments).Append("\n"); - sb.Append(" BillingAddressSameAsMain: ").Append(BillingAddressSameAsMain).Append("\n"); - sb.Append(" BillingContact: ").Append(BillingContact).Append("\n"); - sb.Append(" BillingContactSameAsMain: ").Append(BillingContactSameAsMain).Append("\n"); - sb.Append(" Contacts: ").Append(Contacts).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CreditVerificationRules: ").Append(CreditVerificationRules).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRateType: ").Append(CurrencyRateType).Append("\n"); - sb.Append(" CustomerClass: ").Append(CustomerClass).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); - sb.Append(" EnableCurrencyOverride: ").Append(EnableCurrencyOverride).Append("\n"); - sb.Append(" EnableRateOverride: ").Append(EnableRateOverride).Append("\n"); - sb.Append(" EnableWriteOffs: ").Append(EnableWriteOffs).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LeadTimedays: ").Append(LeadTimedays).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" MainContact: ").Append(MainContact).Append("\n"); - sb.Append(" MultiCurrencyStatements: ").Append(MultiCurrencyStatements).Append("\n"); - sb.Append(" OrderPriority: ").Append(OrderPriority).Append("\n"); - sb.Append(" ParentRecord: ").Append(ParentRecord).Append("\n"); - sb.Append(" PaymentInstructions: ").Append(PaymentInstructions).Append("\n"); - sb.Append(" PriceClassID: ").Append(PriceClassID).Append("\n"); - sb.Append(" PrintDunningLetters: ").Append(PrintDunningLetters).Append("\n"); - sb.Append(" PrintInvoices: ").Append(PrintInvoices).Append("\n"); - sb.Append(" PrintStatements: ").Append(PrintStatements).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" Salespersons: ").Append(Salespersons).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" SendDunningLettersbyEmail: ").Append(SendDunningLettersbyEmail).Append("\n"); - sb.Append(" SendInvoicesbyEmail: ").Append(SendInvoicesbyEmail).Append("\n"); - sb.Append(" SendStatementsbyEmail: ").Append(SendStatementsbyEmail).Append("\n"); - sb.Append(" ShippingAddressSameAsMain: ").Append(ShippingAddressSameAsMain).Append("\n"); - sb.Append(" ShippingBranch: ").Append(ShippingBranch).Append("\n"); - sb.Append(" ShippingContact: ").Append(ShippingContact).Append("\n"); - sb.Append(" ShippingContactSameAsMain: ").Append(ShippingContactSameAsMain).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZoneID: ").Append(ShippingZoneID).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" StatementCycleID: ").Append(StatementCycleID).Append("\n"); - sb.Append(" StatementType: ").Append(StatementType).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxRegistrationID: ").Append(TaxRegistrationID).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append(" WriteOffLimit: ").Append(WriteOffLimit).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Customer); - } - - /// - /// Returns true if Customer instances are equal - /// - /// Instance of Customer to be compared - /// Boolean - public bool Equals(Customer input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountRef == input.AccountRef || - (this.AccountRef != null && - this.AccountRef.Equals(input.AccountRef)) - ) && base.Equals(input) && - ( - this.ApplyOverdueCharges == input.ApplyOverdueCharges || - (this.ApplyOverdueCharges != null && - this.ApplyOverdueCharges.Equals(input.ApplyOverdueCharges)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.AutoApplyPayments == input.AutoApplyPayments || - (this.AutoApplyPayments != null && - this.AutoApplyPayments.Equals(input.AutoApplyPayments)) - ) && base.Equals(input) && - ( - this.BillingAddressSameAsMain == input.BillingAddressSameAsMain || - (this.BillingAddressSameAsMain != null && - this.BillingAddressSameAsMain.Equals(input.BillingAddressSameAsMain)) - ) && base.Equals(input) && - ( - this.BillingContact == input.BillingContact || - (this.BillingContact != null && - this.BillingContact.Equals(input.BillingContact)) - ) && base.Equals(input) && - ( - this.BillingContactSameAsMain == input.BillingContactSameAsMain || - (this.BillingContactSameAsMain != null && - this.BillingContactSameAsMain.Equals(input.BillingContactSameAsMain)) - ) && base.Equals(input) && - ( - this.Contacts == input.Contacts || - this.Contacts != null && - this.Contacts.SequenceEqual(input.Contacts) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CreditVerificationRules == input.CreditVerificationRules || - (this.CreditVerificationRules != null && - this.CreditVerificationRules.Equals(input.CreditVerificationRules)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRateType == input.CurrencyRateType || - (this.CurrencyRateType != null && - this.CurrencyRateType.Equals(input.CurrencyRateType)) - ) && base.Equals(input) && - ( - this.CustomerClass == input.CustomerClass || - (this.CustomerClass != null && - this.CustomerClass.Equals(input.CustomerClass)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerName == input.CustomerName || - (this.CustomerName != null && - this.CustomerName.Equals(input.CustomerName)) - ) && base.Equals(input) && - ( - this.EnableCurrencyOverride == input.EnableCurrencyOverride || - (this.EnableCurrencyOverride != null && - this.EnableCurrencyOverride.Equals(input.EnableCurrencyOverride)) - ) && base.Equals(input) && - ( - this.EnableRateOverride == input.EnableRateOverride || - (this.EnableRateOverride != null && - this.EnableRateOverride.Equals(input.EnableRateOverride)) - ) && base.Equals(input) && - ( - this.EnableWriteOffs == input.EnableWriteOffs || - (this.EnableWriteOffs != null && - this.EnableWriteOffs.Equals(input.EnableWriteOffs)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LeadTimedays == input.LeadTimedays || - (this.LeadTimedays != null && - this.LeadTimedays.Equals(input.LeadTimedays)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.MainContact == input.MainContact || - (this.MainContact != null && - this.MainContact.Equals(input.MainContact)) - ) && base.Equals(input) && - ( - this.MultiCurrencyStatements == input.MultiCurrencyStatements || - (this.MultiCurrencyStatements != null && - this.MultiCurrencyStatements.Equals(input.MultiCurrencyStatements)) - ) && base.Equals(input) && - ( - this.OrderPriority == input.OrderPriority || - (this.OrderPriority != null && - this.OrderPriority.Equals(input.OrderPriority)) - ) && base.Equals(input) && - ( - this.ParentRecord == input.ParentRecord || - (this.ParentRecord != null && - this.ParentRecord.Equals(input.ParentRecord)) - ) && base.Equals(input) && - ( - this.PaymentInstructions == input.PaymentInstructions || - this.PaymentInstructions != null && - this.PaymentInstructions.SequenceEqual(input.PaymentInstructions) - ) && base.Equals(input) && - ( - this.PriceClassID == input.PriceClassID || - (this.PriceClassID != null && - this.PriceClassID.Equals(input.PriceClassID)) - ) && base.Equals(input) && - ( - this.PrintDunningLetters == input.PrintDunningLetters || - (this.PrintDunningLetters != null && - this.PrintDunningLetters.Equals(input.PrintDunningLetters)) - ) && base.Equals(input) && - ( - this.PrintInvoices == input.PrintInvoices || - (this.PrintInvoices != null && - this.PrintInvoices.Equals(input.PrintInvoices)) - ) && base.Equals(input) && - ( - this.PrintStatements == input.PrintStatements || - (this.PrintStatements != null && - this.PrintStatements.Equals(input.PrintStatements)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.Salespersons == input.Salespersons || - this.Salespersons != null && - this.Salespersons.SequenceEqual(input.Salespersons) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.SendDunningLettersbyEmail == input.SendDunningLettersbyEmail || - (this.SendDunningLettersbyEmail != null && - this.SendDunningLettersbyEmail.Equals(input.SendDunningLettersbyEmail)) - ) && base.Equals(input) && - ( - this.SendInvoicesbyEmail == input.SendInvoicesbyEmail || - (this.SendInvoicesbyEmail != null && - this.SendInvoicesbyEmail.Equals(input.SendInvoicesbyEmail)) - ) && base.Equals(input) && - ( - this.SendStatementsbyEmail == input.SendStatementsbyEmail || - (this.SendStatementsbyEmail != null && - this.SendStatementsbyEmail.Equals(input.SendStatementsbyEmail)) - ) && base.Equals(input) && - ( - this.ShippingAddressSameAsMain == input.ShippingAddressSameAsMain || - (this.ShippingAddressSameAsMain != null && - this.ShippingAddressSameAsMain.Equals(input.ShippingAddressSameAsMain)) - ) && base.Equals(input) && - ( - this.ShippingBranch == input.ShippingBranch || - (this.ShippingBranch != null && - this.ShippingBranch.Equals(input.ShippingBranch)) - ) && base.Equals(input) && - ( - this.ShippingContact == input.ShippingContact || - (this.ShippingContact != null && - this.ShippingContact.Equals(input.ShippingContact)) - ) && base.Equals(input) && - ( - this.ShippingContactSameAsMain == input.ShippingContactSameAsMain || - (this.ShippingContactSameAsMain != null && - this.ShippingContactSameAsMain.Equals(input.ShippingContactSameAsMain)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZoneID == input.ShippingZoneID || - (this.ShippingZoneID != null && - this.ShippingZoneID.Equals(input.ShippingZoneID)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.StatementCycleID == input.StatementCycleID || - (this.StatementCycleID != null && - this.StatementCycleID.Equals(input.StatementCycleID)) - ) && base.Equals(input) && - ( - this.StatementType == input.StatementType || - (this.StatementType != null && - this.StatementType.Equals(input.StatementType)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxRegistrationID == input.TaxRegistrationID || - (this.TaxRegistrationID != null && - this.TaxRegistrationID.Equals(input.TaxRegistrationID)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ) && base.Equals(input) && - ( - this.WriteOffLimit == input.WriteOffLimit || - (this.WriteOffLimit != null && - this.WriteOffLimit.Equals(input.WriteOffLimit)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountRef != null) - hashCode = hashCode * 59 + this.AccountRef.GetHashCode(); - if (this.ApplyOverdueCharges != null) - hashCode = hashCode * 59 + this.ApplyOverdueCharges.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.AutoApplyPayments != null) - hashCode = hashCode * 59 + this.AutoApplyPayments.GetHashCode(); - if (this.BillingAddressSameAsMain != null) - hashCode = hashCode * 59 + this.BillingAddressSameAsMain.GetHashCode(); - if (this.BillingContact != null) - hashCode = hashCode * 59 + this.BillingContact.GetHashCode(); - if (this.BillingContactSameAsMain != null) - hashCode = hashCode * 59 + this.BillingContactSameAsMain.GetHashCode(); - if (this.Contacts != null) - hashCode = hashCode * 59 + this.Contacts.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CreditVerificationRules != null) - hashCode = hashCode * 59 + this.CreditVerificationRules.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRateType != null) - hashCode = hashCode * 59 + this.CurrencyRateType.GetHashCode(); - if (this.CustomerClass != null) - hashCode = hashCode * 59 + this.CustomerClass.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerName != null) - hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); - if (this.EnableCurrencyOverride != null) - hashCode = hashCode * 59 + this.EnableCurrencyOverride.GetHashCode(); - if (this.EnableRateOverride != null) - hashCode = hashCode * 59 + this.EnableRateOverride.GetHashCode(); - if (this.EnableWriteOffs != null) - hashCode = hashCode * 59 + this.EnableWriteOffs.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LeadTimedays != null) - hashCode = hashCode * 59 + this.LeadTimedays.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.MainContact != null) - hashCode = hashCode * 59 + this.MainContact.GetHashCode(); - if (this.MultiCurrencyStatements != null) - hashCode = hashCode * 59 + this.MultiCurrencyStatements.GetHashCode(); - if (this.OrderPriority != null) - hashCode = hashCode * 59 + this.OrderPriority.GetHashCode(); - if (this.ParentRecord != null) - hashCode = hashCode * 59 + this.ParentRecord.GetHashCode(); - if (this.PaymentInstructions != null) - hashCode = hashCode * 59 + this.PaymentInstructions.GetHashCode(); - if (this.PriceClassID != null) - hashCode = hashCode * 59 + this.PriceClassID.GetHashCode(); - if (this.PrintDunningLetters != null) - hashCode = hashCode * 59 + this.PrintDunningLetters.GetHashCode(); - if (this.PrintInvoices != null) - hashCode = hashCode * 59 + this.PrintInvoices.GetHashCode(); - if (this.PrintStatements != null) - hashCode = hashCode * 59 + this.PrintStatements.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.Salespersons != null) - hashCode = hashCode * 59 + this.Salespersons.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.SendDunningLettersbyEmail != null) - hashCode = hashCode * 59 + this.SendDunningLettersbyEmail.GetHashCode(); - if (this.SendInvoicesbyEmail != null) - hashCode = hashCode * 59 + this.SendInvoicesbyEmail.GetHashCode(); - if (this.SendStatementsbyEmail != null) - hashCode = hashCode * 59 + this.SendStatementsbyEmail.GetHashCode(); - if (this.ShippingAddressSameAsMain != null) - hashCode = hashCode * 59 + this.ShippingAddressSameAsMain.GetHashCode(); - if (this.ShippingBranch != null) - hashCode = hashCode * 59 + this.ShippingBranch.GetHashCode(); - if (this.ShippingContact != null) - hashCode = hashCode * 59 + this.ShippingContact.GetHashCode(); - if (this.ShippingContactSameAsMain != null) - hashCode = hashCode * 59 + this.ShippingContactSameAsMain.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZoneID != null) - hashCode = hashCode * 59 + this.ShippingZoneID.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.StatementCycleID != null) - hashCode = hashCode * 59 + this.StatementCycleID.GetHashCode(); - if (this.StatementType != null) - hashCode = hashCode * 59 + this.StatementType.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxRegistrationID != null) - hashCode = hashCode * 59 + this.TaxRegistrationID.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - if (this.WriteOffLimit != null) - hashCode = hashCode * 59 + this.WriteOffLimit.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class Customer : Entity + { + + [DataMember(Name="AccountRef", EmitDefaultValue=false)] + public StringValue AccountRef { get; set; } + + [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] + public BooleanValue ApplyOverdueCharges { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="AutoApplyPayments", EmitDefaultValue=false)] + public BooleanValue AutoApplyPayments { get; set; } + + [DataMember(Name="BillingAddressSameAsMain", EmitDefaultValue=false)] + public BooleanValue BillingAddressSameAsMain { get; set; } + + [DataMember(Name="BillingContact", EmitDefaultValue=false)] + public Contact BillingContact { get; set; } + + [DataMember(Name="BillingContactSameAsMain", EmitDefaultValue=false)] + public BooleanValue BillingContactSameAsMain { get; set; } + + [DataMember(Name="Contacts", EmitDefaultValue=false)] + public List Contacts { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CreditVerificationRules", EmitDefaultValue=false)] + public CreditVerificationRules CreditVerificationRules { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] + public StringValue CurrencyRateType { get; set; } + + [DataMember(Name="CustomerClass", EmitDefaultValue=false)] + public StringValue CustomerClass { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public StringValue CustomerName { get; set; } + + [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] + public BooleanValue EnableCurrencyOverride { get; set; } + + [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] + public BooleanValue EnableRateOverride { get; set; } + + [DataMember(Name="EnableWriteOffs", EmitDefaultValue=false)] + public BooleanValue EnableWriteOffs { get; set; } + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LeadTimedays", EmitDefaultValue=false)] + public ShortValue LeadTimedays { get; set; } + + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } + + [DataMember(Name="MainContact", EmitDefaultValue=false)] + public Contact MainContact { get; set; } + + [DataMember(Name="MultiCurrencyStatements", EmitDefaultValue=false)] + public BooleanValue MultiCurrencyStatements { get; set; } + + [DataMember(Name="OrderPriority", EmitDefaultValue=false)] + public ShortValue OrderPriority { get; set; } + + [DataMember(Name="ParentRecord", EmitDefaultValue=false)] + public StringValue ParentRecord { get; set; } + + [DataMember(Name="PaymentInstructions", EmitDefaultValue=false)] + public List PaymentInstructions { get; set; } + + [DataMember(Name="PriceClassID", EmitDefaultValue=false)] + public StringValue PriceClassID { get; set; } + + [DataMember(Name="PrintDunningLetters", EmitDefaultValue=false)] + public BooleanValue PrintDunningLetters { get; set; } + + [DataMember(Name="PrintInvoices", EmitDefaultValue=false)] + public BooleanValue PrintInvoices { get; set; } + + [DataMember(Name="PrintStatements", EmitDefaultValue=false)] + public BooleanValue PrintStatements { get; set; } + + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } + + [DataMember(Name="Salespersons", EmitDefaultValue=false)] + public List Salespersons { get; set; } + + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } + + [DataMember(Name="SendDunningLettersbyEmail", EmitDefaultValue=false)] + public BooleanValue SendDunningLettersbyEmail { get; set; } + + [DataMember(Name="SendInvoicesbyEmail", EmitDefaultValue=false)] + public BooleanValue SendInvoicesbyEmail { get; set; } + + [DataMember(Name="SendStatementsbyEmail", EmitDefaultValue=false)] + public BooleanValue SendStatementsbyEmail { get; set; } + + [DataMember(Name="ShippingAddressSameAsMain", EmitDefaultValue=false)] + public BooleanValue ShippingAddressSameAsMain { get; set; } + + [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] + public StringValue ShippingBranch { get; set; } + + [DataMember(Name="ShippingContact", EmitDefaultValue=false)] + public Contact ShippingContact { get; set; } + + [DataMember(Name="ShippingContactSameAsMain", EmitDefaultValue=false)] + public BooleanValue ShippingContactSameAsMain { get; set; } + + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShippingZoneID", EmitDefaultValue=false)] + public StringValue ShippingZoneID { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="StatementCycleID", EmitDefaultValue=false)] + public StringValue StatementCycleID { get; set; } + + [DataMember(Name="StatementType", EmitDefaultValue=false)] + public StringValue StatementType { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] + public StringValue TaxRegistrationID { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] + public DecimalValue WriteOffLimit { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CustomerClass.cs b/Acumatica.Default_17.200.001/Model/CustomerClass.cs index d3ecfc5f..53f5e249 100644 --- a/Acumatica.Default_17.200.001/Model/CustomerClass.cs +++ b/Acumatica.Default_17.200.001/Model/CustomerClass.cs @@ -1,1086 +1,195 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CustomerClass - /// - [DataContract] - public partial class CustomerClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// applyOverdueCharges. - /// aRAccount. - /// aRSubaccount. - /// attributes. - /// autoApplyPayments. - /// cashDiscountAccount. - /// cashDiscountSubaccount. - /// classID. - /// cOGSAccount. - /// cOGSSubaccount. - /// country. - /// createdDateTime. - /// creditDaysPastDue. - /// creditLimit. - /// creditVerification. - /// currencyID. - /// currencyRateType. - /// defaultLocationIDfromBranch. - /// defaultRestrictionGroup. - /// description. - /// discountAccount. - /// discountSubaccount. - /// enableCurrencyOverride. - /// enableRateOverride. - /// enableWriteOffs. - /// entityUsageType. - /// freightAccount. - /// freightSubaccount. - /// groupDocumentDiscountLimit. - /// lastModifiedDateTime. - /// miscAccount. - /// miscSubaccount. - /// multiCurrencyStatements. - /// overdueChargeID. - /// overLimitAmount. - /// paymentMethod. - /// prepaymentAccount. - /// prepaymentSubaccount. - /// printDunningLetters. - /// printInvoices. - /// printStatements. - /// requireEntityUsageType. - /// requireTaxZone. - /// salesAccount. - /// salespersonID. - /// salesSubaccount. - /// sendDunningLettersbyEmail. - /// sendInvoicesbyEmail. - /// sendStatementsByEmail. - /// shippingRule. - /// shippingTerms. - /// shipVia. - /// statementCycleID. - /// statementType. - /// taxZoneID. - /// terms. - /// unrealizedGainAccount. - /// unrealizedGainSubaccount. - /// unrealizedLossAccount. - /// unrealizedLossSubaccount. - /// writeOffLimit. - public CustomerClass(BooleanValue applyOverdueCharges = default(BooleanValue), StringValue aRAccount = default(StringValue), StringValue aRSubaccount = default(StringValue), List attributes = default(List), BooleanValue autoApplyPayments = default(BooleanValue), StringValue cashDiscountAccount = default(StringValue), StringValue cashDiscountSubaccount = default(StringValue), StringValue classID = default(StringValue), StringValue cOGSAccount = default(StringValue), StringValue cOGSSubaccount = default(StringValue), StringValue country = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), ShortValue creditDaysPastDue = default(ShortValue), DecimalValue creditLimit = default(DecimalValue), StringValue creditVerification = default(StringValue), StringValue currencyID = default(StringValue), StringValue currencyRateType = default(StringValue), BooleanValue defaultLocationIDfromBranch = default(BooleanValue), StringValue defaultRestrictionGroup = default(StringValue), StringValue description = default(StringValue), StringValue discountAccount = default(StringValue), StringValue discountSubaccount = default(StringValue), BooleanValue enableCurrencyOverride = default(BooleanValue), BooleanValue enableRateOverride = default(BooleanValue), BooleanValue enableWriteOffs = default(BooleanValue), StringValue entityUsageType = default(StringValue), StringValue freightAccount = default(StringValue), StringValue freightSubaccount = default(StringValue), DecimalValue groupDocumentDiscountLimit = default(DecimalValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue miscAccount = default(StringValue), StringValue miscSubaccount = default(StringValue), BooleanValue multiCurrencyStatements = default(BooleanValue), StringValue overdueChargeID = default(StringValue), DecimalValue overLimitAmount = default(DecimalValue), StringValue paymentMethod = default(StringValue), StringValue prepaymentAccount = default(StringValue), StringValue prepaymentSubaccount = default(StringValue), BooleanValue printDunningLetters = default(BooleanValue), BooleanValue printInvoices = default(BooleanValue), BooleanValue printStatements = default(BooleanValue), BooleanValue requireEntityUsageType = default(BooleanValue), BooleanValue requireTaxZone = default(BooleanValue), StringValue salesAccount = default(StringValue), StringValue salespersonID = default(StringValue), StringValue salesSubaccount = default(StringValue), BooleanValue sendDunningLettersbyEmail = default(BooleanValue), BooleanValue sendInvoicesbyEmail = default(BooleanValue), BooleanValue sendStatementsByEmail = default(BooleanValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shipVia = default(StringValue), StringValue statementCycleID = default(StringValue), StringValue statementType = default(StringValue), StringValue taxZoneID = default(StringValue), StringValue terms = default(StringValue), StringValue unrealizedGainAccount = default(StringValue), StringValue unrealizedGainSubaccount = default(StringValue), StringValue unrealizedLossAccount = default(StringValue), StringValue unrealizedLossSubaccount = default(StringValue), DecimalValue writeOffLimit = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApplyOverdueCharges = applyOverdueCharges; - this.ARAccount = aRAccount; - this.ARSubaccount = aRSubaccount; - this.Attributes = attributes; - this.AutoApplyPayments = autoApplyPayments; - this.CashDiscountAccount = cashDiscountAccount; - this.CashDiscountSubaccount = cashDiscountSubaccount; - this.ClassID = classID; - this.COGSAccount = cOGSAccount; - this.COGSSubaccount = cOGSSubaccount; - this.Country = country; - this.CreatedDateTime = createdDateTime; - this.CreditDaysPastDue = creditDaysPastDue; - this.CreditLimit = creditLimit; - this.CreditVerification = creditVerification; - this.CurrencyID = currencyID; - this.CurrencyRateType = currencyRateType; - this.DefaultLocationIDfromBranch = defaultLocationIDfromBranch; - this.DefaultRestrictionGroup = defaultRestrictionGroup; - this.Description = description; - this.DiscountAccount = discountAccount; - this.DiscountSubaccount = discountSubaccount; - this.EnableCurrencyOverride = enableCurrencyOverride; - this.EnableRateOverride = enableRateOverride; - this.EnableWriteOffs = enableWriteOffs; - this.EntityUsageType = entityUsageType; - this.FreightAccount = freightAccount; - this.FreightSubaccount = freightSubaccount; - this.GroupDocumentDiscountLimit = groupDocumentDiscountLimit; - this.LastModifiedDateTime = lastModifiedDateTime; - this.MiscAccount = miscAccount; - this.MiscSubaccount = miscSubaccount; - this.MultiCurrencyStatements = multiCurrencyStatements; - this.OverdueChargeID = overdueChargeID; - this.OverLimitAmount = overLimitAmount; - this.PaymentMethod = paymentMethod; - this.PrepaymentAccount = prepaymentAccount; - this.PrepaymentSubaccount = prepaymentSubaccount; - this.PrintDunningLetters = printDunningLetters; - this.PrintInvoices = printInvoices; - this.PrintStatements = printStatements; - this.RequireEntityUsageType = requireEntityUsageType; - this.RequireTaxZone = requireTaxZone; - this.SalesAccount = salesAccount; - this.SalespersonID = salespersonID; - this.SalesSubaccount = salesSubaccount; - this.SendDunningLettersbyEmail = sendDunningLettersbyEmail; - this.SendInvoicesbyEmail = sendInvoicesbyEmail; - this.SendStatementsByEmail = sendStatementsByEmail; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShipVia = shipVia; - this.StatementCycleID = statementCycleID; - this.StatementType = statementType; - this.TaxZoneID = taxZoneID; - this.Terms = terms; - this.UnrealizedGainAccount = unrealizedGainAccount; - this.UnrealizedGainSubaccount = unrealizedGainSubaccount; - this.UnrealizedLossAccount = unrealizedLossAccount; - this.UnrealizedLossSubaccount = unrealizedLossSubaccount; - this.WriteOffLimit = writeOffLimit; - } - - /// - /// Gets or Sets ApplyOverdueCharges - /// - [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] - public BooleanValue ApplyOverdueCharges { get; set; } - - /// - /// Gets or Sets ARAccount - /// - [DataMember(Name="ARAccount", EmitDefaultValue=false)] - public StringValue ARAccount { get; set; } - - /// - /// Gets or Sets ARSubaccount - /// - [DataMember(Name="ARSubaccount", EmitDefaultValue=false)] - public StringValue ARSubaccount { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets AutoApplyPayments - /// - [DataMember(Name="AutoApplyPayments", EmitDefaultValue=false)] - public BooleanValue AutoApplyPayments { get; set; } - - /// - /// Gets or Sets CashDiscountAccount - /// - [DataMember(Name="CashDiscountAccount", EmitDefaultValue=false)] - public StringValue CashDiscountAccount { get; set; } + [DataContract] + public partial class CustomerClass : Entity + { - /// - /// Gets or Sets CashDiscountSubaccount - /// - [DataMember(Name="CashDiscountSubaccount", EmitDefaultValue=false)] - public StringValue CashDiscountSubaccount { get; set; } + [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] + public BooleanValue ApplyOverdueCharges { get; set; } - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } + [DataMember(Name="ARAccount", EmitDefaultValue=false)] + public StringValue ARAccount { get; set; } - /// - /// Gets or Sets COGSAccount - /// - [DataMember(Name="COGSAccount", EmitDefaultValue=false)] - public StringValue COGSAccount { get; set; } + [DataMember(Name="ARSubaccount", EmitDefaultValue=false)] + public StringValue ARSubaccount { get; set; } - /// - /// Gets or Sets COGSSubaccount - /// - [DataMember(Name="COGSSubaccount", EmitDefaultValue=false)] - public StringValue COGSSubaccount { get; set; } + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } - /// - /// Gets or Sets Country - /// - [DataMember(Name="Country", EmitDefaultValue=false)] - public StringValue Country { get; set; } + [DataMember(Name="AutoApplyPayments", EmitDefaultValue=false)] + public BooleanValue AutoApplyPayments { get; set; } - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } + [DataMember(Name="CashDiscountAccount", EmitDefaultValue=false)] + public StringValue CashDiscountAccount { get; set; } - /// - /// Gets or Sets CreditDaysPastDue - /// - [DataMember(Name="CreditDaysPastDue", EmitDefaultValue=false)] - public ShortValue CreditDaysPastDue { get; set; } + [DataMember(Name="CashDiscountSubaccount", EmitDefaultValue=false)] + public StringValue CashDiscountSubaccount { get; set; } - /// - /// Gets or Sets CreditLimit - /// - [DataMember(Name="CreditLimit", EmitDefaultValue=false)] - public DecimalValue CreditLimit { get; set; } + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } - /// - /// Gets or Sets CreditVerification - /// - [DataMember(Name="CreditVerification", EmitDefaultValue=false)] - public StringValue CreditVerification { get; set; } + [DataMember(Name="COGSAccount", EmitDefaultValue=false)] + public StringValue COGSAccount { get; set; } - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } + [DataMember(Name="COGSSubaccount", EmitDefaultValue=false)] + public StringValue COGSSubaccount { get; set; } - /// - /// Gets or Sets CurrencyRateType - /// - [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] - public StringValue CurrencyRateType { get; set; } + [DataMember(Name="Country", EmitDefaultValue=false)] + public StringValue Country { get; set; } - /// - /// Gets or Sets DefaultLocationIDfromBranch - /// - [DataMember(Name="DefaultLocationIDfromBranch", EmitDefaultValue=false)] - public BooleanValue DefaultLocationIDfromBranch { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets DefaultRestrictionGroup - /// - [DataMember(Name="DefaultRestrictionGroup", EmitDefaultValue=false)] - public StringValue DefaultRestrictionGroup { get; set; } + [DataMember(Name="CreditDaysPastDue", EmitDefaultValue=false)] + public ShortValue CreditDaysPastDue { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="CreditLimit", EmitDefaultValue=false)] + public DecimalValue CreditLimit { get; set; } - /// - /// Gets or Sets DiscountAccount - /// - [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] - public StringValue DiscountAccount { get; set; } + [DataMember(Name="CreditVerification", EmitDefaultValue=false)] + public StringValue CreditVerification { get; set; } - /// - /// Gets or Sets DiscountSubaccount - /// - [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] - public StringValue DiscountSubaccount { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets EnableCurrencyOverride - /// - [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] - public BooleanValue EnableCurrencyOverride { get; set; } + [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] + public StringValue CurrencyRateType { get; set; } - /// - /// Gets or Sets EnableRateOverride - /// - [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] - public BooleanValue EnableRateOverride { get; set; } + [DataMember(Name="DefaultLocationIDfromBranch", EmitDefaultValue=false)] + public BooleanValue DefaultLocationIDfromBranch { get; set; } - /// - /// Gets or Sets EnableWriteOffs - /// - [DataMember(Name="EnableWriteOffs", EmitDefaultValue=false)] - public BooleanValue EnableWriteOffs { get; set; } + [DataMember(Name="DefaultRestrictionGroup", EmitDefaultValue=false)] + public StringValue DefaultRestrictionGroup { get; set; } - /// - /// Gets or Sets EntityUsageType - /// - [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] - public StringValue EntityUsageType { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets FreightAccount - /// - [DataMember(Name="FreightAccount", EmitDefaultValue=false)] - public StringValue FreightAccount { get; set; } + [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] + public StringValue DiscountAccount { get; set; } - /// - /// Gets or Sets FreightSubaccount - /// - [DataMember(Name="FreightSubaccount", EmitDefaultValue=false)] - public StringValue FreightSubaccount { get; set; } + [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] + public StringValue DiscountSubaccount { get; set; } - /// - /// Gets or Sets GroupDocumentDiscountLimit - /// - [DataMember(Name="GroupDocumentDiscountLimit", EmitDefaultValue=false)] - public DecimalValue GroupDocumentDiscountLimit { get; set; } + [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] + public BooleanValue EnableCurrencyOverride { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] + public BooleanValue EnableRateOverride { get; set; } - /// - /// Gets or Sets MiscAccount - /// - [DataMember(Name="MiscAccount", EmitDefaultValue=false)] - public StringValue MiscAccount { get; set; } + [DataMember(Name="EnableWriteOffs", EmitDefaultValue=false)] + public BooleanValue EnableWriteOffs { get; set; } - /// - /// Gets or Sets MiscSubaccount - /// - [DataMember(Name="MiscSubaccount", EmitDefaultValue=false)] - public StringValue MiscSubaccount { get; set; } + [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] + public StringValue EntityUsageType { get; set; } - /// - /// Gets or Sets MultiCurrencyStatements - /// - [DataMember(Name="MultiCurrencyStatements", EmitDefaultValue=false)] - public BooleanValue MultiCurrencyStatements { get; set; } + [DataMember(Name="FreightAccount", EmitDefaultValue=false)] + public StringValue FreightAccount { get; set; } - /// - /// Gets or Sets OverdueChargeID - /// - [DataMember(Name="OverdueChargeID", EmitDefaultValue=false)] - public StringValue OverdueChargeID { get; set; } + [DataMember(Name="FreightSubaccount", EmitDefaultValue=false)] + public StringValue FreightSubaccount { get; set; } - /// - /// Gets or Sets OverLimitAmount - /// - [DataMember(Name="OverLimitAmount", EmitDefaultValue=false)] - public DecimalValue OverLimitAmount { get; set; } + [DataMember(Name="GroupDocumentDiscountLimit", EmitDefaultValue=false)] + public DecimalValue GroupDocumentDiscountLimit { get; set; } - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets or Sets PrepaymentAccount - /// - [DataMember(Name="PrepaymentAccount", EmitDefaultValue=false)] - public StringValue PrepaymentAccount { get; set; } + [DataMember(Name="MiscAccount", EmitDefaultValue=false)] + public StringValue MiscAccount { get; set; } - /// - /// Gets or Sets PrepaymentSubaccount - /// - [DataMember(Name="PrepaymentSubaccount", EmitDefaultValue=false)] - public StringValue PrepaymentSubaccount { get; set; } + [DataMember(Name="MiscSubaccount", EmitDefaultValue=false)] + public StringValue MiscSubaccount { get; set; } - /// - /// Gets or Sets PrintDunningLetters - /// - [DataMember(Name="PrintDunningLetters", EmitDefaultValue=false)] - public BooleanValue PrintDunningLetters { get; set; } + [DataMember(Name="MultiCurrencyStatements", EmitDefaultValue=false)] + public BooleanValue MultiCurrencyStatements { get; set; } - /// - /// Gets or Sets PrintInvoices - /// - [DataMember(Name="PrintInvoices", EmitDefaultValue=false)] - public BooleanValue PrintInvoices { get; set; } + [DataMember(Name="OverdueChargeID", EmitDefaultValue=false)] + public StringValue OverdueChargeID { get; set; } - /// - /// Gets or Sets PrintStatements - /// - [DataMember(Name="PrintStatements", EmitDefaultValue=false)] - public BooleanValue PrintStatements { get; set; } + [DataMember(Name="OverLimitAmount", EmitDefaultValue=false)] + public DecimalValue OverLimitAmount { get; set; } - /// - /// Gets or Sets RequireEntityUsageType - /// - [DataMember(Name="RequireEntityUsageType", EmitDefaultValue=false)] - public BooleanValue RequireEntityUsageType { get; set; } + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } - /// - /// Gets or Sets RequireTaxZone - /// - [DataMember(Name="RequireTaxZone", EmitDefaultValue=false)] - public BooleanValue RequireTaxZone { get; set; } + [DataMember(Name="PrepaymentAccount", EmitDefaultValue=false)] + public StringValue PrepaymentAccount { get; set; } - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } + [DataMember(Name="PrepaymentSubaccount", EmitDefaultValue=false)] + public StringValue PrepaymentSubaccount { get; set; } - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } + [DataMember(Name="PrintDunningLetters", EmitDefaultValue=false)] + public BooleanValue PrintDunningLetters { get; set; } - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } + [DataMember(Name="PrintInvoices", EmitDefaultValue=false)] + public BooleanValue PrintInvoices { get; set; } - /// - /// Gets or Sets SendDunningLettersbyEmail - /// - [DataMember(Name="SendDunningLettersbyEmail", EmitDefaultValue=false)] - public BooleanValue SendDunningLettersbyEmail { get; set; } + [DataMember(Name="PrintStatements", EmitDefaultValue=false)] + public BooleanValue PrintStatements { get; set; } - /// - /// Gets or Sets SendInvoicesbyEmail - /// - [DataMember(Name="SendInvoicesbyEmail", EmitDefaultValue=false)] - public BooleanValue SendInvoicesbyEmail { get; set; } + [DataMember(Name="RequireEntityUsageType", EmitDefaultValue=false)] + public BooleanValue RequireEntityUsageType { get; set; } - /// - /// Gets or Sets SendStatementsByEmail - /// - [DataMember(Name="SendStatementsByEmail", EmitDefaultValue=false)] - public BooleanValue SendStatementsByEmail { get; set; } + [DataMember(Name="RequireTaxZone", EmitDefaultValue=false)] + public BooleanValue RequireTaxZone { get; set; } - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } - /// - /// Gets or Sets StatementCycleID - /// - [DataMember(Name="StatementCycleID", EmitDefaultValue=false)] - public StringValue StatementCycleID { get; set; } + [DataMember(Name="SendDunningLettersbyEmail", EmitDefaultValue=false)] + public BooleanValue SendDunningLettersbyEmail { get; set; } - /// - /// Gets or Sets StatementType - /// - [DataMember(Name="StatementType", EmitDefaultValue=false)] - public StringValue StatementType { get; set; } + [DataMember(Name="SendInvoicesbyEmail", EmitDefaultValue=false)] + public BooleanValue SendInvoicesbyEmail { get; set; } - /// - /// Gets or Sets TaxZoneID - /// - [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] - public StringValue TaxZoneID { get; set; } + [DataMember(Name="SendStatementsByEmail", EmitDefaultValue=false)] + public BooleanValue SendStatementsByEmail { get; set; } - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } - /// - /// Gets or Sets UnrealizedGainAccount - /// - [DataMember(Name="UnrealizedGainAccount", EmitDefaultValue=false)] - public StringValue UnrealizedGainAccount { get; set; } + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } - /// - /// Gets or Sets UnrealizedGainSubaccount - /// - [DataMember(Name="UnrealizedGainSubaccount", EmitDefaultValue=false)] - public StringValue UnrealizedGainSubaccount { get; set; } + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } - /// - /// Gets or Sets UnrealizedLossAccount - /// - [DataMember(Name="UnrealizedLossAccount", EmitDefaultValue=false)] - public StringValue UnrealizedLossAccount { get; set; } + [DataMember(Name="StatementCycleID", EmitDefaultValue=false)] + public StringValue StatementCycleID { get; set; } - /// - /// Gets or Sets UnrealizedLossSubaccount - /// - [DataMember(Name="UnrealizedLossSubaccount", EmitDefaultValue=false)] - public StringValue UnrealizedLossSubaccount { get; set; } + [DataMember(Name="StatementType", EmitDefaultValue=false)] + public StringValue StatementType { get; set; } - /// - /// Gets or Sets WriteOffLimit - /// - [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] - public DecimalValue WriteOffLimit { get; set; } + [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] + public StringValue TaxZoneID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApplyOverdueCharges: ").Append(ApplyOverdueCharges).Append("\n"); - sb.Append(" ARAccount: ").Append(ARAccount).Append("\n"); - sb.Append(" ARSubaccount: ").Append(ARSubaccount).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" AutoApplyPayments: ").Append(AutoApplyPayments).Append("\n"); - sb.Append(" CashDiscountAccount: ").Append(CashDiscountAccount).Append("\n"); - sb.Append(" CashDiscountSubaccount: ").Append(CashDiscountSubaccount).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" COGSAccount: ").Append(COGSAccount).Append("\n"); - sb.Append(" COGSSubaccount: ").Append(COGSSubaccount).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CreditDaysPastDue: ").Append(CreditDaysPastDue).Append("\n"); - sb.Append(" CreditLimit: ").Append(CreditLimit).Append("\n"); - sb.Append(" CreditVerification: ").Append(CreditVerification).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRateType: ").Append(CurrencyRateType).Append("\n"); - sb.Append(" DefaultLocationIDfromBranch: ").Append(DefaultLocationIDfromBranch).Append("\n"); - sb.Append(" DefaultRestrictionGroup: ").Append(DefaultRestrictionGroup).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountAccount: ").Append(DiscountAccount).Append("\n"); - sb.Append(" DiscountSubaccount: ").Append(DiscountSubaccount).Append("\n"); - sb.Append(" EnableCurrencyOverride: ").Append(EnableCurrencyOverride).Append("\n"); - sb.Append(" EnableRateOverride: ").Append(EnableRateOverride).Append("\n"); - sb.Append(" EnableWriteOffs: ").Append(EnableWriteOffs).Append("\n"); - sb.Append(" EntityUsageType: ").Append(EntityUsageType).Append("\n"); - sb.Append(" FreightAccount: ").Append(FreightAccount).Append("\n"); - sb.Append(" FreightSubaccount: ").Append(FreightSubaccount).Append("\n"); - sb.Append(" GroupDocumentDiscountLimit: ").Append(GroupDocumentDiscountLimit).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" MiscAccount: ").Append(MiscAccount).Append("\n"); - sb.Append(" MiscSubaccount: ").Append(MiscSubaccount).Append("\n"); - sb.Append(" MultiCurrencyStatements: ").Append(MultiCurrencyStatements).Append("\n"); - sb.Append(" OverdueChargeID: ").Append(OverdueChargeID).Append("\n"); - sb.Append(" OverLimitAmount: ").Append(OverLimitAmount).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PrepaymentAccount: ").Append(PrepaymentAccount).Append("\n"); - sb.Append(" PrepaymentSubaccount: ").Append(PrepaymentSubaccount).Append("\n"); - sb.Append(" PrintDunningLetters: ").Append(PrintDunningLetters).Append("\n"); - sb.Append(" PrintInvoices: ").Append(PrintInvoices).Append("\n"); - sb.Append(" PrintStatements: ").Append(PrintStatements).Append("\n"); - sb.Append(" RequireEntityUsageType: ").Append(RequireEntityUsageType).Append("\n"); - sb.Append(" RequireTaxZone: ").Append(RequireTaxZone).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" SendDunningLettersbyEmail: ").Append(SendDunningLettersbyEmail).Append("\n"); - sb.Append(" SendInvoicesbyEmail: ").Append(SendInvoicesbyEmail).Append("\n"); - sb.Append(" SendStatementsByEmail: ").Append(SendStatementsByEmail).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" StatementCycleID: ").Append(StatementCycleID).Append("\n"); - sb.Append(" StatementType: ").Append(StatementType).Append("\n"); - sb.Append(" TaxZoneID: ").Append(TaxZoneID).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" UnrealizedGainAccount: ").Append(UnrealizedGainAccount).Append("\n"); - sb.Append(" UnrealizedGainSubaccount: ").Append(UnrealizedGainSubaccount).Append("\n"); - sb.Append(" UnrealizedLossAccount: ").Append(UnrealizedLossAccount).Append("\n"); - sb.Append(" UnrealizedLossSubaccount: ").Append(UnrealizedLossSubaccount).Append("\n"); - sb.Append(" WriteOffLimit: ").Append(WriteOffLimit).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerClass); - } + [DataMember(Name="UnrealizedGainAccount", EmitDefaultValue=false)] + public StringValue UnrealizedGainAccount { get; set; } - /// - /// Returns true if CustomerClass instances are equal - /// - /// Instance of CustomerClass to be compared - /// Boolean - public bool Equals(CustomerClass input) - { - if (input == null) - return false; + [DataMember(Name="UnrealizedGainSubaccount", EmitDefaultValue=false)] + public StringValue UnrealizedGainSubaccount { get; set; } - return base.Equals(input) && - ( - this.ApplyOverdueCharges == input.ApplyOverdueCharges || - (this.ApplyOverdueCharges != null && - this.ApplyOverdueCharges.Equals(input.ApplyOverdueCharges)) - ) && base.Equals(input) && - ( - this.ARAccount == input.ARAccount || - (this.ARAccount != null && - this.ARAccount.Equals(input.ARAccount)) - ) && base.Equals(input) && - ( - this.ARSubaccount == input.ARSubaccount || - (this.ARSubaccount != null && - this.ARSubaccount.Equals(input.ARSubaccount)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.AutoApplyPayments == input.AutoApplyPayments || - (this.AutoApplyPayments != null && - this.AutoApplyPayments.Equals(input.AutoApplyPayments)) - ) && base.Equals(input) && - ( - this.CashDiscountAccount == input.CashDiscountAccount || - (this.CashDiscountAccount != null && - this.CashDiscountAccount.Equals(input.CashDiscountAccount)) - ) && base.Equals(input) && - ( - this.CashDiscountSubaccount == input.CashDiscountSubaccount || - (this.CashDiscountSubaccount != null && - this.CashDiscountSubaccount.Equals(input.CashDiscountSubaccount)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.COGSAccount == input.COGSAccount || - (this.COGSAccount != null && - this.COGSAccount.Equals(input.COGSAccount)) - ) && base.Equals(input) && - ( - this.COGSSubaccount == input.COGSSubaccount || - (this.COGSSubaccount != null && - this.COGSSubaccount.Equals(input.COGSSubaccount)) - ) && base.Equals(input) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CreditDaysPastDue == input.CreditDaysPastDue || - (this.CreditDaysPastDue != null && - this.CreditDaysPastDue.Equals(input.CreditDaysPastDue)) - ) && base.Equals(input) && - ( - this.CreditLimit == input.CreditLimit || - (this.CreditLimit != null && - this.CreditLimit.Equals(input.CreditLimit)) - ) && base.Equals(input) && - ( - this.CreditVerification == input.CreditVerification || - (this.CreditVerification != null && - this.CreditVerification.Equals(input.CreditVerification)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRateType == input.CurrencyRateType || - (this.CurrencyRateType != null && - this.CurrencyRateType.Equals(input.CurrencyRateType)) - ) && base.Equals(input) && - ( - this.DefaultLocationIDfromBranch == input.DefaultLocationIDfromBranch || - (this.DefaultLocationIDfromBranch != null && - this.DefaultLocationIDfromBranch.Equals(input.DefaultLocationIDfromBranch)) - ) && base.Equals(input) && - ( - this.DefaultRestrictionGroup == input.DefaultRestrictionGroup || - (this.DefaultRestrictionGroup != null && - this.DefaultRestrictionGroup.Equals(input.DefaultRestrictionGroup)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountAccount == input.DiscountAccount || - (this.DiscountAccount != null && - this.DiscountAccount.Equals(input.DiscountAccount)) - ) && base.Equals(input) && - ( - this.DiscountSubaccount == input.DiscountSubaccount || - (this.DiscountSubaccount != null && - this.DiscountSubaccount.Equals(input.DiscountSubaccount)) - ) && base.Equals(input) && - ( - this.EnableCurrencyOverride == input.EnableCurrencyOverride || - (this.EnableCurrencyOverride != null && - this.EnableCurrencyOverride.Equals(input.EnableCurrencyOverride)) - ) && base.Equals(input) && - ( - this.EnableRateOverride == input.EnableRateOverride || - (this.EnableRateOverride != null && - this.EnableRateOverride.Equals(input.EnableRateOverride)) - ) && base.Equals(input) && - ( - this.EnableWriteOffs == input.EnableWriteOffs || - (this.EnableWriteOffs != null && - this.EnableWriteOffs.Equals(input.EnableWriteOffs)) - ) && base.Equals(input) && - ( - this.EntityUsageType == input.EntityUsageType || - (this.EntityUsageType != null && - this.EntityUsageType.Equals(input.EntityUsageType)) - ) && base.Equals(input) && - ( - this.FreightAccount == input.FreightAccount || - (this.FreightAccount != null && - this.FreightAccount.Equals(input.FreightAccount)) - ) && base.Equals(input) && - ( - this.FreightSubaccount == input.FreightSubaccount || - (this.FreightSubaccount != null && - this.FreightSubaccount.Equals(input.FreightSubaccount)) - ) && base.Equals(input) && - ( - this.GroupDocumentDiscountLimit == input.GroupDocumentDiscountLimit || - (this.GroupDocumentDiscountLimit != null && - this.GroupDocumentDiscountLimit.Equals(input.GroupDocumentDiscountLimit)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.MiscAccount == input.MiscAccount || - (this.MiscAccount != null && - this.MiscAccount.Equals(input.MiscAccount)) - ) && base.Equals(input) && - ( - this.MiscSubaccount == input.MiscSubaccount || - (this.MiscSubaccount != null && - this.MiscSubaccount.Equals(input.MiscSubaccount)) - ) && base.Equals(input) && - ( - this.MultiCurrencyStatements == input.MultiCurrencyStatements || - (this.MultiCurrencyStatements != null && - this.MultiCurrencyStatements.Equals(input.MultiCurrencyStatements)) - ) && base.Equals(input) && - ( - this.OverdueChargeID == input.OverdueChargeID || - (this.OverdueChargeID != null && - this.OverdueChargeID.Equals(input.OverdueChargeID)) - ) && base.Equals(input) && - ( - this.OverLimitAmount == input.OverLimitAmount || - (this.OverLimitAmount != null && - this.OverLimitAmount.Equals(input.OverLimitAmount)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PrepaymentAccount == input.PrepaymentAccount || - (this.PrepaymentAccount != null && - this.PrepaymentAccount.Equals(input.PrepaymentAccount)) - ) && base.Equals(input) && - ( - this.PrepaymentSubaccount == input.PrepaymentSubaccount || - (this.PrepaymentSubaccount != null && - this.PrepaymentSubaccount.Equals(input.PrepaymentSubaccount)) - ) && base.Equals(input) && - ( - this.PrintDunningLetters == input.PrintDunningLetters || - (this.PrintDunningLetters != null && - this.PrintDunningLetters.Equals(input.PrintDunningLetters)) - ) && base.Equals(input) && - ( - this.PrintInvoices == input.PrintInvoices || - (this.PrintInvoices != null && - this.PrintInvoices.Equals(input.PrintInvoices)) - ) && base.Equals(input) && - ( - this.PrintStatements == input.PrintStatements || - (this.PrintStatements != null && - this.PrintStatements.Equals(input.PrintStatements)) - ) && base.Equals(input) && - ( - this.RequireEntityUsageType == input.RequireEntityUsageType || - (this.RequireEntityUsageType != null && - this.RequireEntityUsageType.Equals(input.RequireEntityUsageType)) - ) && base.Equals(input) && - ( - this.RequireTaxZone == input.RequireTaxZone || - (this.RequireTaxZone != null && - this.RequireTaxZone.Equals(input.RequireTaxZone)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.SendDunningLettersbyEmail == input.SendDunningLettersbyEmail || - (this.SendDunningLettersbyEmail != null && - this.SendDunningLettersbyEmail.Equals(input.SendDunningLettersbyEmail)) - ) && base.Equals(input) && - ( - this.SendInvoicesbyEmail == input.SendInvoicesbyEmail || - (this.SendInvoicesbyEmail != null && - this.SendInvoicesbyEmail.Equals(input.SendInvoicesbyEmail)) - ) && base.Equals(input) && - ( - this.SendStatementsByEmail == input.SendStatementsByEmail || - (this.SendStatementsByEmail != null && - this.SendStatementsByEmail.Equals(input.SendStatementsByEmail)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.StatementCycleID == input.StatementCycleID || - (this.StatementCycleID != null && - this.StatementCycleID.Equals(input.StatementCycleID)) - ) && base.Equals(input) && - ( - this.StatementType == input.StatementType || - (this.StatementType != null && - this.StatementType.Equals(input.StatementType)) - ) && base.Equals(input) && - ( - this.TaxZoneID == input.TaxZoneID || - (this.TaxZoneID != null && - this.TaxZoneID.Equals(input.TaxZoneID)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.UnrealizedGainAccount == input.UnrealizedGainAccount || - (this.UnrealizedGainAccount != null && - this.UnrealizedGainAccount.Equals(input.UnrealizedGainAccount)) - ) && base.Equals(input) && - ( - this.UnrealizedGainSubaccount == input.UnrealizedGainSubaccount || - (this.UnrealizedGainSubaccount != null && - this.UnrealizedGainSubaccount.Equals(input.UnrealizedGainSubaccount)) - ) && base.Equals(input) && - ( - this.UnrealizedLossAccount == input.UnrealizedLossAccount || - (this.UnrealizedLossAccount != null && - this.UnrealizedLossAccount.Equals(input.UnrealizedLossAccount)) - ) && base.Equals(input) && - ( - this.UnrealizedLossSubaccount == input.UnrealizedLossSubaccount || - (this.UnrealizedLossSubaccount != null && - this.UnrealizedLossSubaccount.Equals(input.UnrealizedLossSubaccount)) - ) && base.Equals(input) && - ( - this.WriteOffLimit == input.WriteOffLimit || - (this.WriteOffLimit != null && - this.WriteOffLimit.Equals(input.WriteOffLimit)) - ); - } + [DataMember(Name="UnrealizedLossAccount", EmitDefaultValue=false)] + public StringValue UnrealizedLossAccount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApplyOverdueCharges != null) - hashCode = hashCode * 59 + this.ApplyOverdueCharges.GetHashCode(); - if (this.ARAccount != null) - hashCode = hashCode * 59 + this.ARAccount.GetHashCode(); - if (this.ARSubaccount != null) - hashCode = hashCode * 59 + this.ARSubaccount.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.AutoApplyPayments != null) - hashCode = hashCode * 59 + this.AutoApplyPayments.GetHashCode(); - if (this.CashDiscountAccount != null) - hashCode = hashCode * 59 + this.CashDiscountAccount.GetHashCode(); - if (this.CashDiscountSubaccount != null) - hashCode = hashCode * 59 + this.CashDiscountSubaccount.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.COGSAccount != null) - hashCode = hashCode * 59 + this.COGSAccount.GetHashCode(); - if (this.COGSSubaccount != null) - hashCode = hashCode * 59 + this.COGSSubaccount.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CreditDaysPastDue != null) - hashCode = hashCode * 59 + this.CreditDaysPastDue.GetHashCode(); - if (this.CreditLimit != null) - hashCode = hashCode * 59 + this.CreditLimit.GetHashCode(); - if (this.CreditVerification != null) - hashCode = hashCode * 59 + this.CreditVerification.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRateType != null) - hashCode = hashCode * 59 + this.CurrencyRateType.GetHashCode(); - if (this.DefaultLocationIDfromBranch != null) - hashCode = hashCode * 59 + this.DefaultLocationIDfromBranch.GetHashCode(); - if (this.DefaultRestrictionGroup != null) - hashCode = hashCode * 59 + this.DefaultRestrictionGroup.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountAccount != null) - hashCode = hashCode * 59 + this.DiscountAccount.GetHashCode(); - if (this.DiscountSubaccount != null) - hashCode = hashCode * 59 + this.DiscountSubaccount.GetHashCode(); - if (this.EnableCurrencyOverride != null) - hashCode = hashCode * 59 + this.EnableCurrencyOverride.GetHashCode(); - if (this.EnableRateOverride != null) - hashCode = hashCode * 59 + this.EnableRateOverride.GetHashCode(); - if (this.EnableWriteOffs != null) - hashCode = hashCode * 59 + this.EnableWriteOffs.GetHashCode(); - if (this.EntityUsageType != null) - hashCode = hashCode * 59 + this.EntityUsageType.GetHashCode(); - if (this.FreightAccount != null) - hashCode = hashCode * 59 + this.FreightAccount.GetHashCode(); - if (this.FreightSubaccount != null) - hashCode = hashCode * 59 + this.FreightSubaccount.GetHashCode(); - if (this.GroupDocumentDiscountLimit != null) - hashCode = hashCode * 59 + this.GroupDocumentDiscountLimit.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.MiscAccount != null) - hashCode = hashCode * 59 + this.MiscAccount.GetHashCode(); - if (this.MiscSubaccount != null) - hashCode = hashCode * 59 + this.MiscSubaccount.GetHashCode(); - if (this.MultiCurrencyStatements != null) - hashCode = hashCode * 59 + this.MultiCurrencyStatements.GetHashCode(); - if (this.OverdueChargeID != null) - hashCode = hashCode * 59 + this.OverdueChargeID.GetHashCode(); - if (this.OverLimitAmount != null) - hashCode = hashCode * 59 + this.OverLimitAmount.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PrepaymentAccount != null) - hashCode = hashCode * 59 + this.PrepaymentAccount.GetHashCode(); - if (this.PrepaymentSubaccount != null) - hashCode = hashCode * 59 + this.PrepaymentSubaccount.GetHashCode(); - if (this.PrintDunningLetters != null) - hashCode = hashCode * 59 + this.PrintDunningLetters.GetHashCode(); - if (this.PrintInvoices != null) - hashCode = hashCode * 59 + this.PrintInvoices.GetHashCode(); - if (this.PrintStatements != null) - hashCode = hashCode * 59 + this.PrintStatements.GetHashCode(); - if (this.RequireEntityUsageType != null) - hashCode = hashCode * 59 + this.RequireEntityUsageType.GetHashCode(); - if (this.RequireTaxZone != null) - hashCode = hashCode * 59 + this.RequireTaxZone.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.SendDunningLettersbyEmail != null) - hashCode = hashCode * 59 + this.SendDunningLettersbyEmail.GetHashCode(); - if (this.SendInvoicesbyEmail != null) - hashCode = hashCode * 59 + this.SendInvoicesbyEmail.GetHashCode(); - if (this.SendStatementsByEmail != null) - hashCode = hashCode * 59 + this.SendStatementsByEmail.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.StatementCycleID != null) - hashCode = hashCode * 59 + this.StatementCycleID.GetHashCode(); - if (this.StatementType != null) - hashCode = hashCode * 59 + this.StatementType.GetHashCode(); - if (this.TaxZoneID != null) - hashCode = hashCode * 59 + this.TaxZoneID.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.UnrealizedGainAccount != null) - hashCode = hashCode * 59 + this.UnrealizedGainAccount.GetHashCode(); - if (this.UnrealizedGainSubaccount != null) - hashCode = hashCode * 59 + this.UnrealizedGainSubaccount.GetHashCode(); - if (this.UnrealizedLossAccount != null) - hashCode = hashCode * 59 + this.UnrealizedLossAccount.GetHashCode(); - if (this.UnrealizedLossSubaccount != null) - hashCode = hashCode * 59 + this.UnrealizedLossSubaccount.GetHashCode(); - if (this.WriteOffLimit != null) - hashCode = hashCode * 59 + this.WriteOffLimit.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UnrealizedLossSubaccount", EmitDefaultValue=false)] + public StringValue UnrealizedLossSubaccount { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] + public DecimalValue WriteOffLimit { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CustomerContact.cs b/Acumatica.Default_17.200.001/Model/CustomerContact.cs index ef917050..8914dcd9 100644 --- a/Acumatica.Default_17.200.001/Model/CustomerContact.cs +++ b/Acumatica.Default_17.200.001/Model/CustomerContact.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CustomerContact - /// - [DataContract] - public partial class CustomerContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// contact. - /// contactID. - public CustomerContact(Contact contact = default(Contact), IntValue contactID = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Contact = contact; - this.ContactID = contactID; - } - - /// - /// Gets or Sets Contact - /// - [DataMember(Name="Contact", EmitDefaultValue=false)] - public Contact Contact { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Contact: ").Append(Contact).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerContact); - } - - /// - /// Returns true if CustomerContact instances are equal - /// - /// Instance of CustomerContact to be compared - /// Boolean - public bool Equals(CustomerContact input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Contact == input.Contact || - (this.Contact != null && - this.Contact.Equals(input.Contact)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ); - } + [DataContract] + public partial class CustomerContact : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Contact != null) - hashCode = hashCode * 59 + this.Contact.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Contact", EmitDefaultValue=false)] + public Contact Contact { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CustomerLocation.cs b/Acumatica.Default_17.200.001/Model/CustomerLocation.cs index 80323ba5..24bd9a6d 100644 --- a/Acumatica.Default_17.200.001/Model/CustomerLocation.cs +++ b/Acumatica.Default_17.200.001/Model/CustomerLocation.cs @@ -1,574 +1,99 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CustomerLocation - /// - [DataContract] - public partial class CustomerLocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// addressSameAsMain. - /// calendar. - /// contactSameAsMain. - /// createdDateTime. - /// customer. - /// defaultProject. - /// entityUsageType. - /// fedExGroundCollect. - /// fOBPoint. - /// insurance. - /// lastModifiedDateTime. - /// leadTimeDays. - /// locationContact. - /// locationID. - /// locationName. - /// orderPriority. - /// priceClass. - /// residentialDelivery. - /// saturdayDelivery. - /// shippingBranch. - /// shippingRule. - /// shippingTerms. - /// shippingZone. - /// shipVia. - /// taxExemptionNbr. - /// taxRegistrationID. - /// taxZone. - /// warehouse. - public CustomerLocation(BooleanValue active = default(BooleanValue), BooleanValue addressSameAsMain = default(BooleanValue), StringValue calendar = default(StringValue), BooleanValue contactSameAsMain = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue customer = default(StringValue), StringValue defaultProject = default(StringValue), StringValue entityUsageType = default(StringValue), BooleanValue fedExGroundCollect = default(BooleanValue), StringValue fOBPoint = default(StringValue), BooleanValue insurance = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ShortValue leadTimeDays = default(ShortValue), Contact locationContact = default(Contact), StringValue locationID = default(StringValue), StringValue locationName = default(StringValue), ShortValue orderPriority = default(ShortValue), StringValue priceClass = default(StringValue), BooleanValue residentialDelivery = default(BooleanValue), BooleanValue saturdayDelivery = default(BooleanValue), StringValue shippingBranch = default(StringValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shippingZone = default(StringValue), StringValue shipVia = default(StringValue), StringValue taxExemptionNbr = default(StringValue), StringValue taxRegistrationID = default(StringValue), StringValue taxZone = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AddressSameAsMain = addressSameAsMain; - this.Calendar = calendar; - this.ContactSameAsMain = contactSameAsMain; - this.CreatedDateTime = createdDateTime; - this.Customer = customer; - this.DefaultProject = defaultProject; - this.EntityUsageType = entityUsageType; - this.FedExGroundCollect = fedExGroundCollect; - this.FOBPoint = fOBPoint; - this.Insurance = insurance; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LeadTimeDays = leadTimeDays; - this.LocationContact = locationContact; - this.LocationID = locationID; - this.LocationName = locationName; - this.OrderPriority = orderPriority; - this.PriceClass = priceClass; - this.ResidentialDelivery = residentialDelivery; - this.SaturdayDelivery = saturdayDelivery; - this.ShippingBranch = shippingBranch; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShippingZone = shippingZone; - this.ShipVia = shipVia; - this.TaxExemptionNbr = taxExemptionNbr; - this.TaxRegistrationID = taxRegistrationID; - this.TaxZone = taxZone; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AddressSameAsMain - /// - [DataMember(Name="AddressSameAsMain", EmitDefaultValue=false)] - public BooleanValue AddressSameAsMain { get; set; } - - /// - /// Gets or Sets Calendar - /// - [DataMember(Name="Calendar", EmitDefaultValue=false)] - public StringValue Calendar { get; set; } - - /// - /// Gets or Sets ContactSameAsMain - /// - [DataMember(Name="ContactSameAsMain", EmitDefaultValue=false)] - public BooleanValue ContactSameAsMain { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } + [DataContract] + public partial class CustomerLocation : Entity + { - /// - /// Gets or Sets DefaultProject - /// - [DataMember(Name="DefaultProject", EmitDefaultValue=false)] - public StringValue DefaultProject { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets EntityUsageType - /// - [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] - public StringValue EntityUsageType { get; set; } + [DataMember(Name="AddressSameAsMain", EmitDefaultValue=false)] + public BooleanValue AddressSameAsMain { get; set; } - /// - /// Gets or Sets FedExGroundCollect - /// - [DataMember(Name="FedExGroundCollect", EmitDefaultValue=false)] - public BooleanValue FedExGroundCollect { get; set; } + [DataMember(Name="Calendar", EmitDefaultValue=false)] + public StringValue Calendar { get; set; } - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } + [DataMember(Name="ContactSameAsMain", EmitDefaultValue=false)] + public BooleanValue ContactSameAsMain { get; set; } - /// - /// Gets or Sets Insurance - /// - [DataMember(Name="Insurance", EmitDefaultValue=false)] - public BooleanValue Insurance { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } - /// - /// Gets or Sets LeadTimeDays - /// - [DataMember(Name="LeadTimeDays", EmitDefaultValue=false)] - public ShortValue LeadTimeDays { get; set; } + [DataMember(Name="DefaultProject", EmitDefaultValue=false)] + public StringValue DefaultProject { get; set; } - /// - /// Gets or Sets LocationContact - /// - [DataMember(Name="LocationContact", EmitDefaultValue=false)] - public Contact LocationContact { get; set; } + [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] + public StringValue EntityUsageType { get; set; } - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } + [DataMember(Name="FedExGroundCollect", EmitDefaultValue=false)] + public BooleanValue FedExGroundCollect { get; set; } - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } - /// - /// Gets or Sets OrderPriority - /// - [DataMember(Name="OrderPriority", EmitDefaultValue=false)] - public ShortValue OrderPriority { get; set; } + [DataMember(Name="Insurance", EmitDefaultValue=false)] + public BooleanValue Insurance { get; set; } - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } + [DataMember(Name="LeadTimeDays", EmitDefaultValue=false)] + public ShortValue LeadTimeDays { get; set; } - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } + [DataMember(Name="LocationContact", EmitDefaultValue=false)] + public Contact LocationContact { get; set; } - /// - /// Gets or Sets ShippingBranch - /// - [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] - public StringValue ShippingBranch { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } + [DataMember(Name="OrderPriority", EmitDefaultValue=false)] + public ShortValue OrderPriority { get; set; } - /// - /// Gets or Sets ShippingZone - /// - [DataMember(Name="ShippingZone", EmitDefaultValue=false)] - public StringValue ShippingZone { get; set; } + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } - /// - /// Gets or Sets TaxExemptionNbr - /// - [DataMember(Name="TaxExemptionNbr", EmitDefaultValue=false)] - public StringValue TaxExemptionNbr { get; set; } + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } - /// - /// Gets or Sets TaxRegistrationID - /// - [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] - public StringValue TaxRegistrationID { get; set; } + [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] + public StringValue ShippingBranch { get; set; } - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerLocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AddressSameAsMain: ").Append(AddressSameAsMain).Append("\n"); - sb.Append(" Calendar: ").Append(Calendar).Append("\n"); - sb.Append(" ContactSameAsMain: ").Append(ContactSameAsMain).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" DefaultProject: ").Append(DefaultProject).Append("\n"); - sb.Append(" EntityUsageType: ").Append(EntityUsageType).Append("\n"); - sb.Append(" FedExGroundCollect: ").Append(FedExGroundCollect).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" Insurance: ").Append(Insurance).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LeadTimeDays: ").Append(LeadTimeDays).Append("\n"); - sb.Append(" LocationContact: ").Append(LocationContact).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" OrderPriority: ").Append(OrderPriority).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" ShippingBranch: ").Append(ShippingBranch).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZone: ").Append(ShippingZone).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" TaxExemptionNbr: ").Append(TaxExemptionNbr).Append("\n"); - sb.Append(" TaxRegistrationID: ").Append(TaxRegistrationID).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ShippingZone", EmitDefaultValue=false)] + public StringValue ShippingZone { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerLocation); - } + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } - /// - /// Returns true if CustomerLocation instances are equal - /// - /// Instance of CustomerLocation to be compared - /// Boolean - public bool Equals(CustomerLocation input) - { - if (input == null) - return false; + [DataMember(Name="TaxExemptionNbr", EmitDefaultValue=false)] + public StringValue TaxExemptionNbr { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AddressSameAsMain == input.AddressSameAsMain || - (this.AddressSameAsMain != null && - this.AddressSameAsMain.Equals(input.AddressSameAsMain)) - ) && base.Equals(input) && - ( - this.Calendar == input.Calendar || - (this.Calendar != null && - this.Calendar.Equals(input.Calendar)) - ) && base.Equals(input) && - ( - this.ContactSameAsMain == input.ContactSameAsMain || - (this.ContactSameAsMain != null && - this.ContactSameAsMain.Equals(input.ContactSameAsMain)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.DefaultProject == input.DefaultProject || - (this.DefaultProject != null && - this.DefaultProject.Equals(input.DefaultProject)) - ) && base.Equals(input) && - ( - this.EntityUsageType == input.EntityUsageType || - (this.EntityUsageType != null && - this.EntityUsageType.Equals(input.EntityUsageType)) - ) && base.Equals(input) && - ( - this.FedExGroundCollect == input.FedExGroundCollect || - (this.FedExGroundCollect != null && - this.FedExGroundCollect.Equals(input.FedExGroundCollect)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.Insurance == input.Insurance || - (this.Insurance != null && - this.Insurance.Equals(input.Insurance)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LeadTimeDays == input.LeadTimeDays || - (this.LeadTimeDays != null && - this.LeadTimeDays.Equals(input.LeadTimeDays)) - ) && base.Equals(input) && - ( - this.LocationContact == input.LocationContact || - (this.LocationContact != null && - this.LocationContact.Equals(input.LocationContact)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.OrderPriority == input.OrderPriority || - (this.OrderPriority != null && - this.OrderPriority.Equals(input.OrderPriority)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.ShippingBranch == input.ShippingBranch || - (this.ShippingBranch != null && - this.ShippingBranch.Equals(input.ShippingBranch)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZone == input.ShippingZone || - (this.ShippingZone != null && - this.ShippingZone.Equals(input.ShippingZone)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.TaxExemptionNbr == input.TaxExemptionNbr || - (this.TaxExemptionNbr != null && - this.TaxExemptionNbr.Equals(input.TaxExemptionNbr)) - ) && base.Equals(input) && - ( - this.TaxRegistrationID == input.TaxRegistrationID || - (this.TaxRegistrationID != null && - this.TaxRegistrationID.Equals(input.TaxRegistrationID)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } + [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] + public StringValue TaxRegistrationID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AddressSameAsMain != null) - hashCode = hashCode * 59 + this.AddressSameAsMain.GetHashCode(); - if (this.Calendar != null) - hashCode = hashCode * 59 + this.Calendar.GetHashCode(); - if (this.ContactSameAsMain != null) - hashCode = hashCode * 59 + this.ContactSameAsMain.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.DefaultProject != null) - hashCode = hashCode * 59 + this.DefaultProject.GetHashCode(); - if (this.EntityUsageType != null) - hashCode = hashCode * 59 + this.EntityUsageType.GetHashCode(); - if (this.FedExGroundCollect != null) - hashCode = hashCode * 59 + this.FedExGroundCollect.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.Insurance != null) - hashCode = hashCode * 59 + this.Insurance.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LeadTimeDays != null) - hashCode = hashCode * 59 + this.LeadTimeDays.GetHashCode(); - if (this.LocationContact != null) - hashCode = hashCode * 59 + this.LocationContact.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.OrderPriority != null) - hashCode = hashCode * 59 + this.OrderPriority.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.ShippingBranch != null) - hashCode = hashCode * 59 + this.ShippingBranch.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZone != null) - hashCode = hashCode * 59 + this.ShippingZone.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.TaxExemptionNbr != null) - hashCode = hashCode * 59 + this.TaxExemptionNbr.GetHashCode(); - if (this.TaxRegistrationID != null) - hashCode = hashCode * 59 + this.TaxRegistrationID.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CustomerPaymentMethod.cs b/Acumatica.Default_17.200.001/Model/CustomerPaymentMethod.cs index fe690965..9d19c3b1 100644 --- a/Acumatica.Default_17.200.001/Model/CustomerPaymentMethod.cs +++ b/Acumatica.Default_17.200.001/Model/CustomerPaymentMethod.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CustomerPaymentMethod - /// - [DataContract] - public partial class CustomerPaymentMethod : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// cardAccountNbr. - /// cashAccount. - /// createdDateTime. - /// customerID. - /// customerProfileID. - /// details. - /// instanceID. - /// lastModifiedDateTime. - /// paymentMethod. - /// procCenterID. - public CustomerPaymentMethod(BooleanValue active = default(BooleanValue), StringValue cardAccountNbr = default(StringValue), StringValue cashAccount = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue customerID = default(StringValue), StringValue customerProfileID = default(StringValue), List details = default(List), IntValue instanceID = default(IntValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue paymentMethod = default(StringValue), StringValue procCenterID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.CardAccountNbr = cardAccountNbr; - this.CashAccount = cashAccount; - this.CreatedDateTime = createdDateTime; - this.CustomerID = customerID; - this.CustomerProfileID = customerProfileID; - this.Details = details; - this.InstanceID = instanceID; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PaymentMethod = paymentMethod; - this.ProcCenterID = procCenterID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CardAccountNbr - /// - [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] - public StringValue CardAccountNbr { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerProfileID - /// - [DataMember(Name="CustomerProfileID", EmitDefaultValue=false)] - public StringValue CustomerProfileID { get; set; } + [DataContract] + public partial class CustomerPaymentMethod : Entity + { - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets InstanceID - /// - [DataMember(Name="InstanceID", EmitDefaultValue=false)] - public IntValue InstanceID { get; set; } + [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] + public StringValue CardAccountNbr { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets ProcCenterID - /// - [DataMember(Name="ProcCenterID", EmitDefaultValue=false)] - public StringValue ProcCenterID { get; set; } + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerPaymentMethod {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CardAccountNbr: ").Append(CardAccountNbr).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerProfileID: ").Append(CustomerProfileID).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" InstanceID: ").Append(InstanceID).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" ProcCenterID: ").Append(ProcCenterID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CustomerProfileID", EmitDefaultValue=false)] + public StringValue CustomerProfileID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerPaymentMethod); - } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Returns true if CustomerPaymentMethod instances are equal - /// - /// Instance of CustomerPaymentMethod to be compared - /// Boolean - public bool Equals(CustomerPaymentMethod input) - { - if (input == null) - return false; + [DataMember(Name="InstanceID", EmitDefaultValue=false)] + public IntValue InstanceID { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CardAccountNbr == input.CardAccountNbr || - (this.CardAccountNbr != null && - this.CardAccountNbr.Equals(input.CardAccountNbr)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerProfileID == input.CustomerProfileID || - (this.CustomerProfileID != null && - this.CustomerProfileID.Equals(input.CustomerProfileID)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.InstanceID == input.InstanceID || - (this.InstanceID != null && - this.InstanceID.Equals(input.InstanceID)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.ProcCenterID == input.ProcCenterID || - (this.ProcCenterID != null && - this.ProcCenterID.Equals(input.ProcCenterID)) - ); - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CardAccountNbr != null) - hashCode = hashCode * 59 + this.CardAccountNbr.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerProfileID != null) - hashCode = hashCode * 59 + this.CustomerProfileID.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.InstanceID != null) - hashCode = hashCode * 59 + this.InstanceID.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.ProcCenterID != null) - hashCode = hashCode * 59 + this.ProcCenterID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ProcCenterID", EmitDefaultValue=false)] + public StringValue ProcCenterID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CustomerPaymentMethodDetail.cs b/Acumatica.Default_17.200.001/Model/CustomerPaymentMethodDetail.cs index d0687f0d..66a15dda 100644 --- a/Acumatica.Default_17.200.001/Model/CustomerPaymentMethodDetail.cs +++ b/Acumatica.Default_17.200.001/Model/CustomerPaymentMethodDetail.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CustomerPaymentMethodDetail - /// - [DataContract] - public partial class CustomerPaymentMethodDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - /// value. - public CustomerPaymentMethodDetail(StringValue name = default(StringValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Name = name; - this.Value = value; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerPaymentMethodDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerPaymentMethodDetail); - } - - /// - /// Returns true if CustomerPaymentMethodDetail instances are equal - /// - /// Instance of CustomerPaymentMethodDetail to be compared - /// Boolean - public bool Equals(CustomerPaymentMethodDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } + [DataContract] + public partial class CustomerPaymentMethodDetail : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CustomerPriceClass.cs b/Acumatica.Default_17.200.001/Model/CustomerPriceClass.cs index 4404bbe6..e13f17a8 100644 --- a/Acumatica.Default_17.200.001/Model/CustomerPriceClass.cs +++ b/Acumatica.Default_17.200.001/Model/CustomerPriceClass.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CustomerPriceClass - /// - [DataContract] - public partial class CustomerPriceClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// description. - /// lastModifiedDateTime. - /// priceClassID. - public CustomerPriceClass(DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue priceClassID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PriceClassID = priceClassID; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets PriceClassID - /// - [DataMember(Name="PriceClassID", EmitDefaultValue=false)] - public StringValue PriceClassID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerPriceClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PriceClassID: ").Append(PriceClassID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerPriceClass); - } + [DataContract] + public partial class CustomerPriceClass : Entity + { - /// - /// Returns true if CustomerPriceClass instances are equal - /// - /// Instance of CustomerPriceClass to be compared - /// Boolean - public bool Equals(CustomerPriceClass input) - { - if (input == null) - return false; + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PriceClassID == input.PriceClassID || - (this.PriceClassID != null && - this.PriceClassID.Equals(input.PriceClassID)) - ); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PriceClassID != null) - hashCode = hashCode * 59 + this.PriceClassID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="PriceClassID", EmitDefaultValue=false)] + public StringValue PriceClassID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/CustomerSalesPerson.cs b/Acumatica.Default_17.200.001/Model/CustomerSalesPerson.cs index fda331c1..17a0edc1 100644 --- a/Acumatica.Default_17.200.001/Model/CustomerSalesPerson.cs +++ b/Acumatica.Default_17.200.001/Model/CustomerSalesPerson.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// CustomerSalesPerson - /// - [DataContract] - public partial class CustomerSalesPerson : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// commission. - /// _default. - /// locationID. - /// locationName. - /// name. - /// salespersonID. - public CustomerSalesPerson(DecimalValue commission = default(DecimalValue), BooleanValue _default = default(BooleanValue), StringValue locationID = default(StringValue), StringValue locationName = default(StringValue), StringValue name = default(StringValue), StringValue salespersonID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Commission = commission; - this.Default = _default; - this.LocationID = locationID; - this.LocationName = locationName; - this.Name = name; - this.SalespersonID = salespersonID; - } - - /// - /// Gets or Sets Commission - /// - [DataMember(Name="Commission", EmitDefaultValue=false)] - public DecimalValue Commission { get; set; } - - /// - /// Gets or Sets Default - /// - [DataMember(Name="Default", EmitDefaultValue=false)] - public BooleanValue Default { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } + [DataContract] + public partial class CustomerSalesPerson : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerSalesPerson {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Commission: ").Append(Commission).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Commission", EmitDefaultValue=false)] + public DecimalValue Commission { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerSalesPerson); - } + [DataMember(Name="Default", EmitDefaultValue=false)] + public BooleanValue Default { get; set; } - /// - /// Returns true if CustomerSalesPerson instances are equal - /// - /// Instance of CustomerSalesPerson to be compared - /// Boolean - public bool Equals(CustomerSalesPerson input) - { - if (input == null) - return false; + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - return base.Equals(input) && - ( - this.Commission == input.Commission || - (this.Commission != null && - this.Commission.Equals(input.Commission)) - ) && base.Equals(input) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ); - } + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Commission != null) - hashCode = hashCode * 59 + this.Commission.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Discount.cs b/Acumatica.Default_17.200.001/Model/Discount.cs index 178bb697..0acc689f 100644 --- a/Acumatica.Default_17.200.001/Model/Discount.cs +++ b/Acumatica.Default_17.200.001/Model/Discount.cs @@ -1,414 +1,69 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Discount - /// - [DataContract] - public partial class Discount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// breakBy. - /// createdDateTime. - /// customerPriceClasses. - /// customers. - /// description. - /// discountBreakpoints. - /// discountBy. - /// discountCode. - /// effectiveDate. - /// expirationDate. - /// itemPriceClasses. - /// items. - /// lastModifiedDateTime. - /// promotional. - /// prorateDiscount. - /// sequence. - /// showFreeItem. - /// warehouses. - public Discount(BooleanValue active = default(BooleanValue), StringValue breakBy = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), List customerPriceClasses = default(List), List customers = default(List), StringValue description = default(StringValue), List discountBreakpoints = default(List), StringValue discountBy = default(StringValue), StringValue discountCode = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), DateTimeValue expirationDate = default(DateTimeValue), List itemPriceClasses = default(List), List items = default(List), DateTimeValue lastModifiedDateTime = default(DateTimeValue), BooleanValue promotional = default(BooleanValue), BooleanValue prorateDiscount = default(BooleanValue), StringValue sequence = default(StringValue), BooleanValue showFreeItem = default(BooleanValue), List warehouses = default(List), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.BreakBy = breakBy; - this.CreatedDateTime = createdDateTime; - this.CustomerPriceClasses = customerPriceClasses; - this.Customers = customers; - this.Description = description; - this.DiscountBreakpoints = discountBreakpoints; - this.DiscountBy = discountBy; - this.DiscountCode = discountCode; - this.EffectiveDate = effectiveDate; - this.ExpirationDate = expirationDate; - this.ItemPriceClasses = itemPriceClasses; - this.Items = items; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Promotional = promotional; - this.ProrateDiscount = prorateDiscount; - this.Sequence = sequence; - this.ShowFreeItem = showFreeItem; - this.Warehouses = warehouses; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets BreakBy - /// - [DataMember(Name="BreakBy", EmitDefaultValue=false)] - public StringValue BreakBy { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CustomerPriceClasses - /// - [DataMember(Name="CustomerPriceClasses", EmitDefaultValue=false)] - public List CustomerPriceClasses { get; set; } - - /// - /// Gets or Sets Customers - /// - [DataMember(Name="Customers", EmitDefaultValue=false)] - public List Customers { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataContract] + public partial class Discount : Entity + { - /// - /// Gets or Sets DiscountBreakpoints - /// - [DataMember(Name="DiscountBreakpoints", EmitDefaultValue=false)] - public List DiscountBreakpoints { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets DiscountBy - /// - [DataMember(Name="DiscountBy", EmitDefaultValue=false)] - public StringValue DiscountBy { get; set; } + [DataMember(Name="BreakBy", EmitDefaultValue=false)] + public StringValue BreakBy { get; set; } - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } + [DataMember(Name="CustomerPriceClasses", EmitDefaultValue=false)] + public List CustomerPriceClasses { get; set; } - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } + [DataMember(Name="Customers", EmitDefaultValue=false)] + public List Customers { get; set; } - /// - /// Gets or Sets ItemPriceClasses - /// - [DataMember(Name="ItemPriceClasses", EmitDefaultValue=false)] - public List ItemPriceClasses { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Items - /// - [DataMember(Name="Items", EmitDefaultValue=false)] - public List Items { get; set; } + [DataMember(Name="DiscountBreakpoints", EmitDefaultValue=false)] + public List DiscountBreakpoints { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="DiscountBy", EmitDefaultValue=false)] + public StringValue DiscountBy { get; set; } - /// - /// Gets or Sets Promotional - /// - [DataMember(Name="Promotional", EmitDefaultValue=false)] - public BooleanValue Promotional { get; set; } + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } - /// - /// Gets or Sets ProrateDiscount - /// - [DataMember(Name="ProrateDiscount", EmitDefaultValue=false)] - public BooleanValue ProrateDiscount { get; set; } + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } - /// - /// Gets or Sets Sequence - /// - [DataMember(Name="Sequence", EmitDefaultValue=false)] - public StringValue Sequence { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets ShowFreeItem - /// - [DataMember(Name="ShowFreeItem", EmitDefaultValue=false)] - public BooleanValue ShowFreeItem { get; set; } + [DataMember(Name="ItemPriceClasses", EmitDefaultValue=false)] + public List ItemPriceClasses { get; set; } - /// - /// Gets or Sets Warehouses - /// - [DataMember(Name="Warehouses", EmitDefaultValue=false)] - public List Warehouses { get; set; } + [DataMember(Name="Items", EmitDefaultValue=false)] + public List Items { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Discount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" BreakBy: ").Append(BreakBy).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CustomerPriceClasses: ").Append(CustomerPriceClasses).Append("\n"); - sb.Append(" Customers: ").Append(Customers).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountBreakpoints: ").Append(DiscountBreakpoints).Append("\n"); - sb.Append(" DiscountBy: ").Append(DiscountBy).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" ItemPriceClasses: ").Append(ItemPriceClasses).Append("\n"); - sb.Append(" Items: ").Append(Items).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Promotional: ").Append(Promotional).Append("\n"); - sb.Append(" ProrateDiscount: ").Append(ProrateDiscount).Append("\n"); - sb.Append(" Sequence: ").Append(Sequence).Append("\n"); - sb.Append(" ShowFreeItem: ").Append(ShowFreeItem).Append("\n"); - sb.Append(" Warehouses: ").Append(Warehouses).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Discount); - } + [DataMember(Name="Promotional", EmitDefaultValue=false)] + public BooleanValue Promotional { get; set; } - /// - /// Returns true if Discount instances are equal - /// - /// Instance of Discount to be compared - /// Boolean - public bool Equals(Discount input) - { - if (input == null) - return false; + [DataMember(Name="ProrateDiscount", EmitDefaultValue=false)] + public BooleanValue ProrateDiscount { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.BreakBy == input.BreakBy || - (this.BreakBy != null && - this.BreakBy.Equals(input.BreakBy)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CustomerPriceClasses == input.CustomerPriceClasses || - this.CustomerPriceClasses != null && - this.CustomerPriceClasses.SequenceEqual(input.CustomerPriceClasses) - ) && base.Equals(input) && - ( - this.Customers == input.Customers || - this.Customers != null && - this.Customers.SequenceEqual(input.Customers) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountBreakpoints == input.DiscountBreakpoints || - this.DiscountBreakpoints != null && - this.DiscountBreakpoints.SequenceEqual(input.DiscountBreakpoints) - ) && base.Equals(input) && - ( - this.DiscountBy == input.DiscountBy || - (this.DiscountBy != null && - this.DiscountBy.Equals(input.DiscountBy)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.ItemPriceClasses == input.ItemPriceClasses || - this.ItemPriceClasses != null && - this.ItemPriceClasses.SequenceEqual(input.ItemPriceClasses) - ) && base.Equals(input) && - ( - this.Items == input.Items || - this.Items != null && - this.Items.SequenceEqual(input.Items) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Promotional == input.Promotional || - (this.Promotional != null && - this.Promotional.Equals(input.Promotional)) - ) && base.Equals(input) && - ( - this.ProrateDiscount == input.ProrateDiscount || - (this.ProrateDiscount != null && - this.ProrateDiscount.Equals(input.ProrateDiscount)) - ) && base.Equals(input) && - ( - this.Sequence == input.Sequence || - (this.Sequence != null && - this.Sequence.Equals(input.Sequence)) - ) && base.Equals(input) && - ( - this.ShowFreeItem == input.ShowFreeItem || - (this.ShowFreeItem != null && - this.ShowFreeItem.Equals(input.ShowFreeItem)) - ) && base.Equals(input) && - ( - this.Warehouses == input.Warehouses || - this.Warehouses != null && - this.Warehouses.SequenceEqual(input.Warehouses) - ); - } + [DataMember(Name="Sequence", EmitDefaultValue=false)] + public StringValue Sequence { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.BreakBy != null) - hashCode = hashCode * 59 + this.BreakBy.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CustomerPriceClasses != null) - hashCode = hashCode * 59 + this.CustomerPriceClasses.GetHashCode(); - if (this.Customers != null) - hashCode = hashCode * 59 + this.Customers.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountBreakpoints != null) - hashCode = hashCode * 59 + this.DiscountBreakpoints.GetHashCode(); - if (this.DiscountBy != null) - hashCode = hashCode * 59 + this.DiscountBy.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.ItemPriceClasses != null) - hashCode = hashCode * 59 + this.ItemPriceClasses.GetHashCode(); - if (this.Items != null) - hashCode = hashCode * 59 + this.Items.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Promotional != null) - hashCode = hashCode * 59 + this.Promotional.GetHashCode(); - if (this.ProrateDiscount != null) - hashCode = hashCode * 59 + this.ProrateDiscount.GetHashCode(); - if (this.Sequence != null) - hashCode = hashCode * 59 + this.Sequence.GetHashCode(); - if (this.ShowFreeItem != null) - hashCode = hashCode * 59 + this.ShowFreeItem.GetHashCode(); - if (this.Warehouses != null) - hashCode = hashCode * 59 + this.Warehouses.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ShowFreeItem", EmitDefaultValue=false)] + public BooleanValue ShowFreeItem { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Warehouses", EmitDefaultValue=false)] + public List Warehouses { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/DiscountBreakpointDetail.cs b/Acumatica.Default_17.200.001/Model/DiscountBreakpointDetail.cs index c2f03b3b..8cb2f9fb 100644 --- a/Acumatica.Default_17.200.001/Model/DiscountBreakpointDetail.cs +++ b/Acumatica.Default_17.200.001/Model/DiscountBreakpointDetail.cs @@ -1,398 +1,66 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// DiscountBreakpointDetail - /// - [DataContract] - public partial class DiscountBreakpointDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakAmount. - /// breakQty. - /// discountAmount. - /// discountDetailID. - /// discountPercent. - /// effectiveDate. - /// freeItemQty. - /// lastBreakAmount. - /// lastBreakQty. - /// lastDiscountAmount. - /// lastDiscountPercent. - /// lastFreeItemQty. - /// pendingBreakAmount. - /// pendingBreakQty. - /// pendingDate. - /// pendingDiscountAmount. - /// pendingDiscountPercent. - /// pendingFreeItemQty. - public DiscountBreakpointDetail(DecimalValue breakAmount = default(DecimalValue), DecimalValue breakQty = default(DecimalValue), DecimalValue discountAmount = default(DecimalValue), IntValue discountDetailID = default(IntValue), DecimalValue discountPercent = default(DecimalValue), DateTimeValue effectiveDate = default(DateTimeValue), DecimalValue freeItemQty = default(DecimalValue), DecimalValue lastBreakAmount = default(DecimalValue), DecimalValue lastBreakQty = default(DecimalValue), DecimalValue lastDiscountAmount = default(DecimalValue), DecimalValue lastDiscountPercent = default(DecimalValue), DecimalValue lastFreeItemQty = default(DecimalValue), DecimalValue pendingBreakAmount = default(DecimalValue), DecimalValue pendingBreakQty = default(DecimalValue), DateTimeValue pendingDate = default(DateTimeValue), DecimalValue pendingDiscountAmount = default(DecimalValue), DecimalValue pendingDiscountPercent = default(DecimalValue), DecimalValue pendingFreeItemQty = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakAmount = breakAmount; - this.BreakQty = breakQty; - this.DiscountAmount = discountAmount; - this.DiscountDetailID = discountDetailID; - this.DiscountPercent = discountPercent; - this.EffectiveDate = effectiveDate; - this.FreeItemQty = freeItemQty; - this.LastBreakAmount = lastBreakAmount; - this.LastBreakQty = lastBreakQty; - this.LastDiscountAmount = lastDiscountAmount; - this.LastDiscountPercent = lastDiscountPercent; - this.LastFreeItemQty = lastFreeItemQty; - this.PendingBreakAmount = pendingBreakAmount; - this.PendingBreakQty = pendingBreakQty; - this.PendingDate = pendingDate; - this.PendingDiscountAmount = pendingDiscountAmount; - this.PendingDiscountPercent = pendingDiscountPercent; - this.PendingFreeItemQty = pendingFreeItemQty; - } - - /// - /// Gets or Sets BreakAmount - /// - [DataMember(Name="BreakAmount", EmitDefaultValue=false)] - public DecimalValue BreakAmount { get; set; } - - /// - /// Gets or Sets BreakQty - /// - [DataMember(Name="BreakQty", EmitDefaultValue=false)] - public DecimalValue BreakQty { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountDetailID - /// - [DataMember(Name="DiscountDetailID", EmitDefaultValue=false)] - public IntValue DiscountDetailID { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } + [DataContract] + public partial class DiscountBreakpointDetail : Entity + { - /// - /// Gets or Sets FreeItemQty - /// - [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] - public DecimalValue FreeItemQty { get; set; } + [DataMember(Name="BreakAmount", EmitDefaultValue=false)] + public DecimalValue BreakAmount { get; set; } - /// - /// Gets or Sets LastBreakAmount - /// - [DataMember(Name="LastBreakAmount", EmitDefaultValue=false)] - public DecimalValue LastBreakAmount { get; set; } + [DataMember(Name="BreakQty", EmitDefaultValue=false)] + public DecimalValue BreakQty { get; set; } - /// - /// Gets or Sets LastBreakQty - /// - [DataMember(Name="LastBreakQty", EmitDefaultValue=false)] - public DecimalValue LastBreakQty { get; set; } + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } - /// - /// Gets or Sets LastDiscountAmount - /// - [DataMember(Name="LastDiscountAmount", EmitDefaultValue=false)] - public DecimalValue LastDiscountAmount { get; set; } + [DataMember(Name="DiscountDetailID", EmitDefaultValue=false)] + public IntValue DiscountDetailID { get; set; } - /// - /// Gets or Sets LastDiscountPercent - /// - [DataMember(Name="LastDiscountPercent", EmitDefaultValue=false)] - public DecimalValue LastDiscountPercent { get; set; } + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } - /// - /// Gets or Sets LastFreeItemQty - /// - [DataMember(Name="LastFreeItemQty", EmitDefaultValue=false)] - public DecimalValue LastFreeItemQty { get; set; } + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } - /// - /// Gets or Sets PendingBreakAmount - /// - [DataMember(Name="PendingBreakAmount", EmitDefaultValue=false)] - public DecimalValue PendingBreakAmount { get; set; } + [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] + public DecimalValue FreeItemQty { get; set; } - /// - /// Gets or Sets PendingBreakQty - /// - [DataMember(Name="PendingBreakQty", EmitDefaultValue=false)] - public DecimalValue PendingBreakQty { get; set; } + [DataMember(Name="LastBreakAmount", EmitDefaultValue=false)] + public DecimalValue LastBreakAmount { get; set; } - /// - /// Gets or Sets PendingDate - /// - [DataMember(Name="PendingDate", EmitDefaultValue=false)] - public DateTimeValue PendingDate { get; set; } + [DataMember(Name="LastBreakQty", EmitDefaultValue=false)] + public DecimalValue LastBreakQty { get; set; } - /// - /// Gets or Sets PendingDiscountAmount - /// - [DataMember(Name="PendingDiscountAmount", EmitDefaultValue=false)] - public DecimalValue PendingDiscountAmount { get; set; } + [DataMember(Name="LastDiscountAmount", EmitDefaultValue=false)] + public DecimalValue LastDiscountAmount { get; set; } - /// - /// Gets or Sets PendingDiscountPercent - /// - [DataMember(Name="PendingDiscountPercent", EmitDefaultValue=false)] - public DecimalValue PendingDiscountPercent { get; set; } + [DataMember(Name="LastDiscountPercent", EmitDefaultValue=false)] + public DecimalValue LastDiscountPercent { get; set; } - /// - /// Gets or Sets PendingFreeItemQty - /// - [DataMember(Name="PendingFreeItemQty", EmitDefaultValue=false)] - public DecimalValue PendingFreeItemQty { get; set; } + [DataMember(Name="LastFreeItemQty", EmitDefaultValue=false)] + public DecimalValue LastFreeItemQty { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountBreakpointDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakAmount: ").Append(BreakAmount).Append("\n"); - sb.Append(" BreakQty: ").Append(BreakQty).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountDetailID: ").Append(DiscountDetailID).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" FreeItemQty: ").Append(FreeItemQty).Append("\n"); - sb.Append(" LastBreakAmount: ").Append(LastBreakAmount).Append("\n"); - sb.Append(" LastBreakQty: ").Append(LastBreakQty).Append("\n"); - sb.Append(" LastDiscountAmount: ").Append(LastDiscountAmount).Append("\n"); - sb.Append(" LastDiscountPercent: ").Append(LastDiscountPercent).Append("\n"); - sb.Append(" LastFreeItemQty: ").Append(LastFreeItemQty).Append("\n"); - sb.Append(" PendingBreakAmount: ").Append(PendingBreakAmount).Append("\n"); - sb.Append(" PendingBreakQty: ").Append(PendingBreakQty).Append("\n"); - sb.Append(" PendingDate: ").Append(PendingDate).Append("\n"); - sb.Append(" PendingDiscountAmount: ").Append(PendingDiscountAmount).Append("\n"); - sb.Append(" PendingDiscountPercent: ").Append(PendingDiscountPercent).Append("\n"); - sb.Append(" PendingFreeItemQty: ").Append(PendingFreeItemQty).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PendingBreakAmount", EmitDefaultValue=false)] + public DecimalValue PendingBreakAmount { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountBreakpointDetail); - } + [DataMember(Name="PendingBreakQty", EmitDefaultValue=false)] + public DecimalValue PendingBreakQty { get; set; } - /// - /// Returns true if DiscountBreakpointDetail instances are equal - /// - /// Instance of DiscountBreakpointDetail to be compared - /// Boolean - public bool Equals(DiscountBreakpointDetail input) - { - if (input == null) - return false; + [DataMember(Name="PendingDate", EmitDefaultValue=false)] + public DateTimeValue PendingDate { get; set; } - return base.Equals(input) && - ( - this.BreakAmount == input.BreakAmount || - (this.BreakAmount != null && - this.BreakAmount.Equals(input.BreakAmount)) - ) && base.Equals(input) && - ( - this.BreakQty == input.BreakQty || - (this.BreakQty != null && - this.BreakQty.Equals(input.BreakQty)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountDetailID == input.DiscountDetailID || - (this.DiscountDetailID != null && - this.DiscountDetailID.Equals(input.DiscountDetailID)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.FreeItemQty == input.FreeItemQty || - (this.FreeItemQty != null && - this.FreeItemQty.Equals(input.FreeItemQty)) - ) && base.Equals(input) && - ( - this.LastBreakAmount == input.LastBreakAmount || - (this.LastBreakAmount != null && - this.LastBreakAmount.Equals(input.LastBreakAmount)) - ) && base.Equals(input) && - ( - this.LastBreakQty == input.LastBreakQty || - (this.LastBreakQty != null && - this.LastBreakQty.Equals(input.LastBreakQty)) - ) && base.Equals(input) && - ( - this.LastDiscountAmount == input.LastDiscountAmount || - (this.LastDiscountAmount != null && - this.LastDiscountAmount.Equals(input.LastDiscountAmount)) - ) && base.Equals(input) && - ( - this.LastDiscountPercent == input.LastDiscountPercent || - (this.LastDiscountPercent != null && - this.LastDiscountPercent.Equals(input.LastDiscountPercent)) - ) && base.Equals(input) && - ( - this.LastFreeItemQty == input.LastFreeItemQty || - (this.LastFreeItemQty != null && - this.LastFreeItemQty.Equals(input.LastFreeItemQty)) - ) && base.Equals(input) && - ( - this.PendingBreakAmount == input.PendingBreakAmount || - (this.PendingBreakAmount != null && - this.PendingBreakAmount.Equals(input.PendingBreakAmount)) - ) && base.Equals(input) && - ( - this.PendingBreakQty == input.PendingBreakQty || - (this.PendingBreakQty != null && - this.PendingBreakQty.Equals(input.PendingBreakQty)) - ) && base.Equals(input) && - ( - this.PendingDate == input.PendingDate || - (this.PendingDate != null && - this.PendingDate.Equals(input.PendingDate)) - ) && base.Equals(input) && - ( - this.PendingDiscountAmount == input.PendingDiscountAmount || - (this.PendingDiscountAmount != null && - this.PendingDiscountAmount.Equals(input.PendingDiscountAmount)) - ) && base.Equals(input) && - ( - this.PendingDiscountPercent == input.PendingDiscountPercent || - (this.PendingDiscountPercent != null && - this.PendingDiscountPercent.Equals(input.PendingDiscountPercent)) - ) && base.Equals(input) && - ( - this.PendingFreeItemQty == input.PendingFreeItemQty || - (this.PendingFreeItemQty != null && - this.PendingFreeItemQty.Equals(input.PendingFreeItemQty)) - ); - } + [DataMember(Name="PendingDiscountAmount", EmitDefaultValue=false)] + public DecimalValue PendingDiscountAmount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakAmount != null) - hashCode = hashCode * 59 + this.BreakAmount.GetHashCode(); - if (this.BreakQty != null) - hashCode = hashCode * 59 + this.BreakQty.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountDetailID != null) - hashCode = hashCode * 59 + this.DiscountDetailID.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.FreeItemQty != null) - hashCode = hashCode * 59 + this.FreeItemQty.GetHashCode(); - if (this.LastBreakAmount != null) - hashCode = hashCode * 59 + this.LastBreakAmount.GetHashCode(); - if (this.LastBreakQty != null) - hashCode = hashCode * 59 + this.LastBreakQty.GetHashCode(); - if (this.LastDiscountAmount != null) - hashCode = hashCode * 59 + this.LastDiscountAmount.GetHashCode(); - if (this.LastDiscountPercent != null) - hashCode = hashCode * 59 + this.LastDiscountPercent.GetHashCode(); - if (this.LastFreeItemQty != null) - hashCode = hashCode * 59 + this.LastFreeItemQty.GetHashCode(); - if (this.PendingBreakAmount != null) - hashCode = hashCode * 59 + this.PendingBreakAmount.GetHashCode(); - if (this.PendingBreakQty != null) - hashCode = hashCode * 59 + this.PendingBreakQty.GetHashCode(); - if (this.PendingDate != null) - hashCode = hashCode * 59 + this.PendingDate.GetHashCode(); - if (this.PendingDiscountAmount != null) - hashCode = hashCode * 59 + this.PendingDiscountAmount.GetHashCode(); - if (this.PendingDiscountPercent != null) - hashCode = hashCode * 59 + this.PendingDiscountPercent.GetHashCode(); - if (this.PendingFreeItemQty != null) - hashCode = hashCode * 59 + this.PendingFreeItemQty.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PendingDiscountPercent", EmitDefaultValue=false)] + public DecimalValue PendingDiscountPercent { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="PendingFreeItemQty", EmitDefaultValue=false)] + public DecimalValue PendingFreeItemQty { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/DiscountCode.cs b/Acumatica.Default_17.200.001/Model/DiscountCode.cs index 8920aa1e..108b25a9 100644 --- a/Acumatica.Default_17.200.001/Model/DiscountCode.cs +++ b/Acumatica.Default_17.200.001/Model/DiscountCode.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// DiscountCode - /// - [DataContract] - public partial class DiscountCode : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// applicableTo. - /// createdDateTime. - /// description. - /// discountCodeID. - /// discountType. - /// lastModifiedDateTime. - public DiscountCode(StringValue applicableTo = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), StringValue discountCodeID = default(StringValue), StringValue discountType = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApplicableTo = applicableTo; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.DiscountCodeID = discountCodeID; - this.DiscountType = discountType; - this.LastModifiedDateTime = lastModifiedDateTime; - } - - /// - /// Gets or Sets ApplicableTo - /// - [DataMember(Name="ApplicableTo", EmitDefaultValue=false)] - public StringValue ApplicableTo { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DiscountCodeID - /// - [DataMember(Name="DiscountCodeID", EmitDefaultValue=false)] - public StringValue DiscountCodeID { get; set; } - - /// - /// Gets or Sets DiscountType - /// - [DataMember(Name="DiscountType", EmitDefaultValue=false)] - public StringValue DiscountType { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataContract] + public partial class DiscountCode : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountCode {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApplicableTo: ").Append(ApplicableTo).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountCodeID: ").Append(DiscountCodeID).Append("\n"); - sb.Append(" DiscountType: ").Append(DiscountType).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ApplicableTo", EmitDefaultValue=false)] + public StringValue ApplicableTo { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountCode); - } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Returns true if DiscountCode instances are equal - /// - /// Instance of DiscountCode to be compared - /// Boolean - public bool Equals(DiscountCode input) - { - if (input == null) - return false; + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - return base.Equals(input) && - ( - this.ApplicableTo == input.ApplicableTo || - (this.ApplicableTo != null && - this.ApplicableTo.Equals(input.ApplicableTo)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountCodeID == input.DiscountCodeID || - (this.DiscountCodeID != null && - this.DiscountCodeID.Equals(input.DiscountCodeID)) - ) && base.Equals(input) && - ( - this.DiscountType == input.DiscountType || - (this.DiscountType != null && - this.DiscountType.Equals(input.DiscountType)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ); - } + [DataMember(Name="DiscountCodeID", EmitDefaultValue=false)] + public StringValue DiscountCodeID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApplicableTo != null) - hashCode = hashCode * 59 + this.ApplicableTo.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountCodeID != null) - hashCode = hashCode * 59 + this.DiscountCodeID.GetHashCode(); - if (this.DiscountType != null) - hashCode = hashCode * 59 + this.DiscountType.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="DiscountType", EmitDefaultValue=false)] + public StringValue DiscountType { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/DiscountCustomerDetail.cs b/Acumatica.Default_17.200.001/Model/DiscountCustomerDetail.cs index a34ebd5a..1319afca 100644 --- a/Acumatica.Default_17.200.001/Model/DiscountCustomerDetail.cs +++ b/Acumatica.Default_17.200.001/Model/DiscountCustomerDetail.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// DiscountCustomerDetail - /// - [DataContract] - public partial class DiscountCustomerDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// customerID. - /// customerName. - public DiscountCustomerDetail(StringValue customerID = default(StringValue), StringValue customerName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CustomerID = customerID; - this.CustomerName = customerName; - } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerName - /// - [DataMember(Name="CustomerName", EmitDefaultValue=false)] - public StringValue CustomerName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountCustomerDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountCustomerDetail); - } - - /// - /// Returns true if DiscountCustomerDetail instances are equal - /// - /// Instance of DiscountCustomerDetail to be compared - /// Boolean - public bool Equals(DiscountCustomerDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerName == input.CustomerName || - (this.CustomerName != null && - this.CustomerName.Equals(input.CustomerName)) - ); - } + [DataContract] + public partial class DiscountCustomerDetail : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerName != null) - hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public StringValue CustomerName { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/DiscountCustomerPriceClassesDetail.cs b/Acumatica.Default_17.200.001/Model/DiscountCustomerPriceClassesDetail.cs index cd20680c..9ca2d26b 100644 --- a/Acumatica.Default_17.200.001/Model/DiscountCustomerPriceClassesDetail.cs +++ b/Acumatica.Default_17.200.001/Model/DiscountCustomerPriceClassesDetail.cs @@ -1,126 +1,15 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// DiscountCustomerPriceClassesDetail - /// - [DataContract] - public partial class DiscountCustomerPriceClassesDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// priceClassID. - public DiscountCustomerPriceClassesDetail(StringValue priceClassID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.PriceClassID = priceClassID; - } - - /// - /// Gets or Sets PriceClassID - /// - [DataMember(Name="PriceClassID", EmitDefaultValue=false)] - public StringValue PriceClassID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountCustomerPriceClassesDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" PriceClassID: ").Append(PriceClassID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountCustomerPriceClassesDetail); - } - - /// - /// Returns true if DiscountCustomerPriceClassesDetail instances are equal - /// - /// Instance of DiscountCustomerPriceClassesDetail to be compared - /// Boolean - public bool Equals(DiscountCustomerPriceClassesDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.PriceClassID == input.PriceClassID || - (this.PriceClassID != null && - this.PriceClassID.Equals(input.PriceClassID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.PriceClassID != null) - hashCode = hashCode * 59 + this.PriceClassID.GetHashCode(); - return hashCode; - } - } + [DataContract] + public partial class DiscountCustomerPriceClassesDetail : Entity + { - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="PriceClassID", EmitDefaultValue=false)] + public StringValue PriceClassID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/DiscountItemDetail.cs b/Acumatica.Default_17.200.001/Model/DiscountItemDetail.cs index 4f9ede7e..c1779381 100644 --- a/Acumatica.Default_17.200.001/Model/DiscountItemDetail.cs +++ b/Acumatica.Default_17.200.001/Model/DiscountItemDetail.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// DiscountItemDetail - /// - [DataContract] - public partial class DiscountItemDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// inventoryID. - public DiscountItemDetail(StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.InventoryID = inventoryID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountItemDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountItemDetail); - } - - /// - /// Returns true if DiscountItemDetail instances are equal - /// - /// Instance of DiscountItemDetail to be compared - /// Boolean - public bool Equals(DiscountItemDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ); - } + [DataContract] + public partial class DiscountItemDetail : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/DiscountItemPriceClassesDetail.cs b/Acumatica.Default_17.200.001/Model/DiscountItemPriceClassesDetail.cs index b1e1401f..615d7a8d 100644 --- a/Acumatica.Default_17.200.001/Model/DiscountItemPriceClassesDetail.cs +++ b/Acumatica.Default_17.200.001/Model/DiscountItemPriceClassesDetail.cs @@ -1,126 +1,15 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// DiscountItemPriceClassesDetail - /// - [DataContract] - public partial class DiscountItemPriceClassesDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// priceClassID. - public DiscountItemPriceClassesDetail(StringValue priceClassID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.PriceClassID = priceClassID; - } - - /// - /// Gets or Sets PriceClassID - /// - [DataMember(Name="PriceClassID", EmitDefaultValue=false)] - public StringValue PriceClassID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountItemPriceClassesDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" PriceClassID: ").Append(PriceClassID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountItemPriceClassesDetail); - } - - /// - /// Returns true if DiscountItemPriceClassesDetail instances are equal - /// - /// Instance of DiscountItemPriceClassesDetail to be compared - /// Boolean - public bool Equals(DiscountItemPriceClassesDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.PriceClassID == input.PriceClassID || - (this.PriceClassID != null && - this.PriceClassID.Equals(input.PriceClassID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.PriceClassID != null) - hashCode = hashCode * 59 + this.PriceClassID.GetHashCode(); - return hashCode; - } - } + [DataContract] + public partial class DiscountItemPriceClassesDetail : Entity + { - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="PriceClassID", EmitDefaultValue=false)] + public StringValue PriceClassID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/DiscountWarehouseDetail.cs b/Acumatica.Default_17.200.001/Model/DiscountWarehouseDetail.cs index 027cfe88..a0952a30 100644 --- a/Acumatica.Default_17.200.001/Model/DiscountWarehouseDetail.cs +++ b/Acumatica.Default_17.200.001/Model/DiscountWarehouseDetail.cs @@ -1,126 +1,15 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// DiscountWarehouseDetail - /// - [DataContract] - public partial class DiscountWarehouseDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// warehouse. - public DiscountWarehouseDetail(StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountWarehouseDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountWarehouseDetail); - } - - /// - /// Returns true if DiscountWarehouseDetail instances are equal - /// - /// Instance of DiscountWarehouseDetail to be compared - /// Boolean - public bool Equals(DiscountWarehouseDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } + [DataContract] + public partial class DiscountWarehouseDetail : Entity + { - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/DocContact.cs b/Acumatica.Default_17.200.001/Model/DocContact.cs index b978cead..a047747f 100644 --- a/Acumatica.Default_17.200.001/Model/DocContact.cs +++ b/Acumatica.Default_17.200.001/Model/DocContact.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// DocContact - /// - [DataContract] - public partial class DocContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attention. - /// businessName. - /// email. - /// phone1. - public DocContact(StringValue attention = default(StringValue), StringValue businessName = default(StringValue), StringValue email = default(StringValue), StringValue phone1 = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attention = attention; - this.BusinessName = businessName; - this.Email = email; - this.Phone1 = phone1; - } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets BusinessName - /// - [DataMember(Name="BusinessName", EmitDefaultValue=false)] - public StringValue BusinessName { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" BusinessName: ").Append(BusinessName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocContact); - } + [DataContract] + public partial class DocContact : Entity + { - /// - /// Returns true if DocContact instances are equal - /// - /// Instance of DocContact to be compared - /// Boolean - public bool Equals(DocContact input) - { - if (input == null) - return false; + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } - return base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.BusinessName == input.BusinessName || - (this.BusinessName != null && - this.BusinessName.Equals(input.BusinessName)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ); - } + [DataMember(Name="BusinessName", EmitDefaultValue=false)] + public StringValue BusinessName { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.BusinessName != null) - hashCode = hashCode * 59 + this.BusinessName.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/DuplicateDetail.cs b/Acumatica.Default_17.200.001/Model/DuplicateDetail.cs index 3fef6d58..1a4db582 100644 --- a/Acumatica.Default_17.200.001/Model/DuplicateDetail.cs +++ b/Acumatica.Default_17.200.001/Model/DuplicateDetail.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// DuplicateDetail - /// - [DataContract] - public partial class DuplicateDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountName. - /// businessAccount. - /// businessAccountType. - /// contactID. - /// displayName. - /// duplicate. - /// duplicateContactID. - /// email. - /// entityType. - /// lastModifiedDate. - /// type. - public DuplicateDetail(StringValue accountName = default(StringValue), StringValue businessAccount = default(StringValue), StringValue businessAccountType = default(StringValue), IntValue contactID = default(IntValue), StringValue displayName = default(StringValue), StringValue duplicate = default(StringValue), IntValue duplicateContactID = default(IntValue), StringValue email = default(StringValue), StringValue entityType = default(StringValue), DateTimeValue lastModifiedDate = default(DateTimeValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountName = accountName; - this.BusinessAccount = businessAccount; - this.BusinessAccountType = businessAccountType; - this.ContactID = contactID; - this.DisplayName = displayName; - this.Duplicate = duplicate; - this.DuplicateContactID = duplicateContactID; - this.Email = email; - this.EntityType = entityType; - this.LastModifiedDate = lastModifiedDate; - this.Type = type; - } - - /// - /// Gets or Sets AccountName - /// - [DataMember(Name="AccountName", EmitDefaultValue=false)] - public StringValue AccountName { get; set; } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets BusinessAccountType - /// - [DataMember(Name="BusinessAccountType", EmitDefaultValue=false)] - public StringValue BusinessAccountType { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets Duplicate - /// - [DataMember(Name="Duplicate", EmitDefaultValue=false)] - public StringValue Duplicate { get; set; } + [DataContract] + public partial class DuplicateDetail : Entity + { - /// - /// Gets or Sets DuplicateContactID - /// - [DataMember(Name="DuplicateContactID", EmitDefaultValue=false)] - public IntValue DuplicateContactID { get; set; } + [DataMember(Name="AccountName", EmitDefaultValue=false)] + public StringValue AccountName { get; set; } - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } - /// - /// Gets or Sets EntityType - /// - [DataMember(Name="EntityType", EmitDefaultValue=false)] - public StringValue EntityType { get; set; } + [DataMember(Name="BusinessAccountType", EmitDefaultValue=false)] + public StringValue BusinessAccountType { get; set; } - /// - /// Gets or Sets LastModifiedDate - /// - [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDate { get; set; } + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DuplicateDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountName: ").Append(AccountName).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" BusinessAccountType: ").Append(BusinessAccountType).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Duplicate: ").Append(Duplicate).Append("\n"); - sb.Append(" DuplicateContactID: ").Append(DuplicateContactID).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" EntityType: ").Append(EntityType).Append("\n"); - sb.Append(" LastModifiedDate: ").Append(LastModifiedDate).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Duplicate", EmitDefaultValue=false)] + public StringValue Duplicate { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DuplicateDetail); - } + [DataMember(Name="DuplicateContactID", EmitDefaultValue=false)] + public IntValue DuplicateContactID { get; set; } - /// - /// Returns true if DuplicateDetail instances are equal - /// - /// Instance of DuplicateDetail to be compared - /// Boolean - public bool Equals(DuplicateDetail input) - { - if (input == null) - return false; + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - return base.Equals(input) && - ( - this.AccountName == input.AccountName || - (this.AccountName != null && - this.AccountName.Equals(input.AccountName)) - ) && base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.BusinessAccountType == input.BusinessAccountType || - (this.BusinessAccountType != null && - this.BusinessAccountType.Equals(input.BusinessAccountType)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.Duplicate == input.Duplicate || - (this.Duplicate != null && - this.Duplicate.Equals(input.Duplicate)) - ) && base.Equals(input) && - ( - this.DuplicateContactID == input.DuplicateContactID || - (this.DuplicateContactID != null && - this.DuplicateContactID.Equals(input.DuplicateContactID)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.EntityType == input.EntityType || - (this.EntityType != null && - this.EntityType.Equals(input.EntityType)) - ) && base.Equals(input) && - ( - this.LastModifiedDate == input.LastModifiedDate || - (this.LastModifiedDate != null && - this.LastModifiedDate.Equals(input.LastModifiedDate)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="EntityType", EmitDefaultValue=false)] + public StringValue EntityType { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountName != null) - hashCode = hashCode * 59 + this.AccountName.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.BusinessAccountType != null) - hashCode = hashCode * 59 + this.BusinessAccountType.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Duplicate != null) - hashCode = hashCode * 59 + this.Duplicate.GetHashCode(); - if (this.DuplicateContactID != null) - hashCode = hashCode * 59 + this.DuplicateContactID.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.EntityType != null) - hashCode = hashCode * 59 + this.EntityType.GetHashCode(); - if (this.LastModifiedDate != null) - hashCode = hashCode * 59 + this.LastModifiedDate.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDate { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Email.cs b/Acumatica.Default_17.200.001/Model/Email.cs index 10974d81..65c127e9 100644 --- a/Acumatica.Default_17.200.001/Model/Email.cs +++ b/Acumatica.Default_17.200.001/Model/Email.cs @@ -1,430 +1,72 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Email - /// - [DataContract] - public partial class Email : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// bcc. - /// body. - /// cc. - /// date. - /// description. - /// from. - /// fromEmailAccountDisplayName. - /// fromEmailAccountID. - /// incoming. - /// _internal. - /// mailStatus. - /// owner. - /// parent. - /// parentSummary. - /// relatedEntityDescription. - /// startTime. - /// subject. - /// timeActivity. - /// to. - /// workgroup. - public Email(StringValue bcc = default(StringValue), StringValue body = default(StringValue), StringValue cc = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), StringValue from = default(StringValue), StringValue fromEmailAccountDisplayName = default(StringValue), IntValue fromEmailAccountID = default(IntValue), BooleanValue incoming = default(BooleanValue), BooleanValue _internal = default(BooleanValue), StringValue mailStatus = default(StringValue), StringValue owner = default(StringValue), GuidValue parent = default(GuidValue), StringValue parentSummary = default(StringValue), StringValue relatedEntityDescription = default(StringValue), DateTimeValue startTime = default(DateTimeValue), StringValue subject = default(StringValue), EmailTimeActivity timeActivity = default(EmailTimeActivity), StringValue to = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Bcc = bcc; - this.Body = body; - this.Cc = cc; - this.Date = date; - this.Description = description; - this.From = from; - this.FromEmailAccountDisplayName = fromEmailAccountDisplayName; - this.FromEmailAccountID = fromEmailAccountID; - this.Incoming = incoming; - this.Internal = _internal; - this.MailStatus = mailStatus; - this.Owner = owner; - this.Parent = parent; - this.ParentSummary = parentSummary; - this.RelatedEntityDescription = relatedEntityDescription; - this.StartTime = startTime; - this.Subject = subject; - this.TimeActivity = timeActivity; - this.To = to; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Bcc - /// - [DataMember(Name="Bcc", EmitDefaultValue=false)] - public StringValue Bcc { get; set; } - - /// - /// Gets or Sets Body - /// - [DataMember(Name="Body", EmitDefaultValue=false)] - public StringValue Body { get; set; } - - /// - /// Gets or Sets Cc - /// - [DataMember(Name="Cc", EmitDefaultValue=false)] - public StringValue Cc { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets From - /// - [DataMember(Name="From", EmitDefaultValue=false)] - public StringValue From { get; set; } + [DataContract] + public partial class Email : Entity + { - /// - /// Gets or Sets FromEmailAccountDisplayName - /// - [DataMember(Name="FromEmailAccountDisplayName", EmitDefaultValue=false)] - public StringValue FromEmailAccountDisplayName { get; set; } + [DataMember(Name="Bcc", EmitDefaultValue=false)] + public StringValue Bcc { get; set; } - /// - /// Gets or Sets FromEmailAccountID - /// - [DataMember(Name="FromEmailAccountID", EmitDefaultValue=false)] - public IntValue FromEmailAccountID { get; set; } + [DataMember(Name="Body", EmitDefaultValue=false)] + public StringValue Body { get; set; } - /// - /// Gets or Sets Incoming - /// - [DataMember(Name="Incoming", EmitDefaultValue=false)] - public BooleanValue Incoming { get; set; } + [DataMember(Name="Cc", EmitDefaultValue=false)] + public StringValue Cc { get; set; } - /// - /// Gets or Sets Internal - /// - [DataMember(Name="Internal", EmitDefaultValue=false)] - public BooleanValue Internal { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets MailStatus - /// - [DataMember(Name="MailStatus", EmitDefaultValue=false)] - public StringValue MailStatus { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataMember(Name="From", EmitDefaultValue=false)] + public StringValue From { get; set; } - /// - /// Gets or Sets Parent - /// - [DataMember(Name="Parent", EmitDefaultValue=false)] - public GuidValue Parent { get; set; } + [DataMember(Name="FromEmailAccountDisplayName", EmitDefaultValue=false)] + public StringValue FromEmailAccountDisplayName { get; set; } - /// - /// Gets or Sets ParentSummary - /// - [DataMember(Name="ParentSummary", EmitDefaultValue=false)] - public StringValue ParentSummary { get; set; } + [DataMember(Name="FromEmailAccountID", EmitDefaultValue=false)] + public IntValue FromEmailAccountID { get; set; } - /// - /// Gets or Sets RelatedEntityDescription - /// - [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] - public StringValue RelatedEntityDescription { get; set; } + [DataMember(Name="Incoming", EmitDefaultValue=false)] + public BooleanValue Incoming { get; set; } - /// - /// Gets or Sets StartTime - /// - [DataMember(Name="StartTime", EmitDefaultValue=false)] - public DateTimeValue StartTime { get; set; } + [DataMember(Name="Internal", EmitDefaultValue=false)] + public BooleanValue Internal { get; set; } - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } + [DataMember(Name="MailStatus", EmitDefaultValue=false)] + public StringValue MailStatus { get; set; } - /// - /// Gets or Sets TimeActivity - /// - [DataMember(Name="TimeActivity", EmitDefaultValue=false)] - public EmailTimeActivity TimeActivity { get; set; } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Gets or Sets To - /// - [DataMember(Name="To", EmitDefaultValue=false)] - public StringValue To { get; set; } + [DataMember(Name="Parent", EmitDefaultValue=false)] + public GuidValue Parent { get; set; } - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } + [DataMember(Name="ParentSummary", EmitDefaultValue=false)] + public StringValue ParentSummary { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Email {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Bcc: ").Append(Bcc).Append("\n"); - sb.Append(" Body: ").Append(Body).Append("\n"); - sb.Append(" Cc: ").Append(Cc).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" FromEmailAccountDisplayName: ").Append(FromEmailAccountDisplayName).Append("\n"); - sb.Append(" FromEmailAccountID: ").Append(FromEmailAccountID).Append("\n"); - sb.Append(" Incoming: ").Append(Incoming).Append("\n"); - sb.Append(" Internal: ").Append(Internal).Append("\n"); - sb.Append(" MailStatus: ").Append(MailStatus).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Parent: ").Append(Parent).Append("\n"); - sb.Append(" ParentSummary: ").Append(ParentSummary).Append("\n"); - sb.Append(" RelatedEntityDescription: ").Append(RelatedEntityDescription).Append("\n"); - sb.Append(" StartTime: ").Append(StartTime).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" TimeActivity: ").Append(TimeActivity).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] + public StringValue RelatedEntityDescription { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Email); - } + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public DateTimeValue StartTime { get; set; } - /// - /// Returns true if Email instances are equal - /// - /// Instance of Email to be compared - /// Boolean - public bool Equals(Email input) - { - if (input == null) - return false; + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } - return base.Equals(input) && - ( - this.Bcc == input.Bcc || - (this.Bcc != null && - this.Bcc.Equals(input.Bcc)) - ) && base.Equals(input) && - ( - this.Body == input.Body || - (this.Body != null && - this.Body.Equals(input.Body)) - ) && base.Equals(input) && - ( - this.Cc == input.Cc || - (this.Cc != null && - this.Cc.Equals(input.Cc)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && base.Equals(input) && - ( - this.FromEmailAccountDisplayName == input.FromEmailAccountDisplayName || - (this.FromEmailAccountDisplayName != null && - this.FromEmailAccountDisplayName.Equals(input.FromEmailAccountDisplayName)) - ) && base.Equals(input) && - ( - this.FromEmailAccountID == input.FromEmailAccountID || - (this.FromEmailAccountID != null && - this.FromEmailAccountID.Equals(input.FromEmailAccountID)) - ) && base.Equals(input) && - ( - this.Incoming == input.Incoming || - (this.Incoming != null && - this.Incoming.Equals(input.Incoming)) - ) && base.Equals(input) && - ( - this.Internal == input.Internal || - (this.Internal != null && - this.Internal.Equals(input.Internal)) - ) && base.Equals(input) && - ( - this.MailStatus == input.MailStatus || - (this.MailStatus != null && - this.MailStatus.Equals(input.MailStatus)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Parent == input.Parent || - (this.Parent != null && - this.Parent.Equals(input.Parent)) - ) && base.Equals(input) && - ( - this.ParentSummary == input.ParentSummary || - (this.ParentSummary != null && - this.ParentSummary.Equals(input.ParentSummary)) - ) && base.Equals(input) && - ( - this.RelatedEntityDescription == input.RelatedEntityDescription || - (this.RelatedEntityDescription != null && - this.RelatedEntityDescription.Equals(input.RelatedEntityDescription)) - ) && base.Equals(input) && - ( - this.StartTime == input.StartTime || - (this.StartTime != null && - this.StartTime.Equals(input.StartTime)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.TimeActivity == input.TimeActivity || - (this.TimeActivity != null && - this.TimeActivity.Equals(input.TimeActivity)) - ) && base.Equals(input) && - ( - this.To == input.To || - (this.To != null && - this.To.Equals(input.To)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } + [DataMember(Name="TimeActivity", EmitDefaultValue=false)] + public EmailTimeActivity TimeActivity { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Bcc != null) - hashCode = hashCode * 59 + this.Bcc.GetHashCode(); - if (this.Body != null) - hashCode = hashCode * 59 + this.Body.GetHashCode(); - if (this.Cc != null) - hashCode = hashCode * 59 + this.Cc.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.FromEmailAccountDisplayName != null) - hashCode = hashCode * 59 + this.FromEmailAccountDisplayName.GetHashCode(); - if (this.FromEmailAccountID != null) - hashCode = hashCode * 59 + this.FromEmailAccountID.GetHashCode(); - if (this.Incoming != null) - hashCode = hashCode * 59 + this.Incoming.GetHashCode(); - if (this.Internal != null) - hashCode = hashCode * 59 + this.Internal.GetHashCode(); - if (this.MailStatus != null) - hashCode = hashCode * 59 + this.MailStatus.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Parent != null) - hashCode = hashCode * 59 + this.Parent.GetHashCode(); - if (this.ParentSummary != null) - hashCode = hashCode * 59 + this.ParentSummary.GetHashCode(); - if (this.RelatedEntityDescription != null) - hashCode = hashCode * 59 + this.RelatedEntityDescription.GetHashCode(); - if (this.StartTime != null) - hashCode = hashCode * 59 + this.StartTime.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.TimeActivity != null) - hashCode = hashCode * 59 + this.TimeActivity.GetHashCode(); - if (this.To != null) - hashCode = hashCode * 59 + this.To.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="To", EmitDefaultValue=false)] + public StringValue To { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/EmailProcessing.cs b/Acumatica.Default_17.200.001/Model/EmailProcessing.cs index 249056f2..06d10e3b 100644 --- a/Acumatica.Default_17.200.001/Model/EmailProcessing.cs +++ b/Acumatica.Default_17.200.001/Model/EmailProcessing.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// EmailProcessing - /// - [DataContract] - public partial class EmailProcessing : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// accountEmailAccountID. - /// assignedToMe. - /// assignedToOwner. - /// includeFailed. - /// result. - /// type. - public EmailProcessing(IntValue account = default(IntValue), StringValue accountEmailAccountID = default(StringValue), BooleanValue assignedToMe = default(BooleanValue), StringValue assignedToOwner = default(StringValue), BooleanValue includeFailed = default(BooleanValue), List result = default(List), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.AccountEmailAccountID = accountEmailAccountID; - this.AssignedToMe = assignedToMe; - this.AssignedToOwner = assignedToOwner; - this.IncludeFailed = includeFailed; - this.Result = result; - this.Type = type; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public IntValue Account { get; set; } - - /// - /// Gets or Sets AccountEmailAccountID - /// - [DataMember(Name="AccountEmailAccountID", EmitDefaultValue=false)] - public StringValue AccountEmailAccountID { get; set; } - - /// - /// Gets or Sets AssignedToMe - /// - [DataMember(Name="AssignedToMe", EmitDefaultValue=false)] - public BooleanValue AssignedToMe { get; set; } - - /// - /// Gets or Sets AssignedToOwner - /// - [DataMember(Name="AssignedToOwner", EmitDefaultValue=false)] - public StringValue AssignedToOwner { get; set; } - - /// - /// Gets or Sets IncludeFailed - /// - [DataMember(Name="IncludeFailed", EmitDefaultValue=false)] - public BooleanValue IncludeFailed { get; set; } - - /// - /// Gets or Sets Result - /// - [DataMember(Name="Result", EmitDefaultValue=false)] - public List Result { get; set; } + [DataContract] + public partial class EmailProcessing : Entity + { - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public IntValue Account { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmailProcessing {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" AccountEmailAccountID: ").Append(AccountEmailAccountID).Append("\n"); - sb.Append(" AssignedToMe: ").Append(AssignedToMe).Append("\n"); - sb.Append(" AssignedToOwner: ").Append(AssignedToOwner).Append("\n"); - sb.Append(" IncludeFailed: ").Append(IncludeFailed).Append("\n"); - sb.Append(" Result: ").Append(Result).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="AccountEmailAccountID", EmitDefaultValue=false)] + public StringValue AccountEmailAccountID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmailProcessing); - } + [DataMember(Name="AssignedToMe", EmitDefaultValue=false)] + public BooleanValue AssignedToMe { get; set; } - /// - /// Returns true if EmailProcessing instances are equal - /// - /// Instance of EmailProcessing to be compared - /// Boolean - public bool Equals(EmailProcessing input) - { - if (input == null) - return false; + [DataMember(Name="AssignedToOwner", EmitDefaultValue=false)] + public StringValue AssignedToOwner { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.AccountEmailAccountID == input.AccountEmailAccountID || - (this.AccountEmailAccountID != null && - this.AccountEmailAccountID.Equals(input.AccountEmailAccountID)) - ) && base.Equals(input) && - ( - this.AssignedToMe == input.AssignedToMe || - (this.AssignedToMe != null && - this.AssignedToMe.Equals(input.AssignedToMe)) - ) && base.Equals(input) && - ( - this.AssignedToOwner == input.AssignedToOwner || - (this.AssignedToOwner != null && - this.AssignedToOwner.Equals(input.AssignedToOwner)) - ) && base.Equals(input) && - ( - this.IncludeFailed == input.IncludeFailed || - (this.IncludeFailed != null && - this.IncludeFailed.Equals(input.IncludeFailed)) - ) && base.Equals(input) && - ( - this.Result == input.Result || - this.Result != null && - this.Result.SequenceEqual(input.Result) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="IncludeFailed", EmitDefaultValue=false)] + public BooleanValue IncludeFailed { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.AccountEmailAccountID != null) - hashCode = hashCode * 59 + this.AccountEmailAccountID.GetHashCode(); - if (this.AssignedToMe != null) - hashCode = hashCode * 59 + this.AssignedToMe.GetHashCode(); - if (this.AssignedToOwner != null) - hashCode = hashCode * 59 + this.AssignedToOwner.GetHashCode(); - if (this.IncludeFailed != null) - hashCode = hashCode * 59 + this.IncludeFailed.GetHashCode(); - if (this.Result != null) - hashCode = hashCode * 59 + this.Result.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Result", EmitDefaultValue=false)] + public List Result { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/EmailProcessingRow.cs b/Acumatica.Default_17.200.001/Model/EmailProcessingRow.cs index 8592729b..a4fc0fca 100644 --- a/Acumatica.Default_17.200.001/Model/EmailProcessingRow.cs +++ b/Acumatica.Default_17.200.001/Model/EmailProcessingRow.cs @@ -1,238 +1,36 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// EmailProcessingRow - /// - [DataContract] - public partial class EmailProcessingRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// emailAccount. - /// from. - /// mailStatus. - /// owner. - /// selected. - /// startDate. - /// subject. - /// to. - public EmailProcessingRow(StringValue emailAccount = default(StringValue), StringValue from = default(StringValue), StringValue mailStatus = default(StringValue), StringValue owner = default(StringValue), BooleanValue selected = default(BooleanValue), DateTimeValue startDate = default(DateTimeValue), StringValue subject = default(StringValue), StringValue to = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.EmailAccount = emailAccount; - this.From = from; - this.MailStatus = mailStatus; - this.Owner = owner; - this.Selected = selected; - this.StartDate = startDate; - this.Subject = subject; - this.To = to; - } - - /// - /// Gets or Sets EmailAccount - /// - [DataMember(Name="EmailAccount", EmitDefaultValue=false)] - public StringValue EmailAccount { get; set; } - - /// - /// Gets or Sets From - /// - [DataMember(Name="From", EmitDefaultValue=false)] - public StringValue From { get; set; } - - /// - /// Gets or Sets MailStatus - /// - [DataMember(Name="MailStatus", EmitDefaultValue=false)] - public StringValue MailStatus { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataContract] + public partial class EmailProcessingRow : Entity + { - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } + [DataMember(Name="EmailAccount", EmitDefaultValue=false)] + public StringValue EmailAccount { get; set; } - /// - /// Gets or Sets To - /// - [DataMember(Name="To", EmitDefaultValue=false)] - public StringValue To { get; set; } + [DataMember(Name="From", EmitDefaultValue=false)] + public StringValue From { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmailProcessingRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" EmailAccount: ").Append(EmailAccount).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" MailStatus: ").Append(MailStatus).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="MailStatus", EmitDefaultValue=false)] + public StringValue MailStatus { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmailProcessingRow); - } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Returns true if EmailProcessingRow instances are equal - /// - /// Instance of EmailProcessingRow to be compared - /// Boolean - public bool Equals(EmailProcessingRow input) - { - if (input == null) - return false; + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } - return base.Equals(input) && - ( - this.EmailAccount == input.EmailAccount || - (this.EmailAccount != null && - this.EmailAccount.Equals(input.EmailAccount)) - ) && base.Equals(input) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && base.Equals(input) && - ( - this.MailStatus == input.MailStatus || - (this.MailStatus != null && - this.MailStatus.Equals(input.MailStatus)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.To == input.To || - (this.To != null && - this.To.Equals(input.To)) - ); - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.EmailAccount != null) - hashCode = hashCode * 59 + this.EmailAccount.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.MailStatus != null) - hashCode = hashCode * 59 + this.MailStatus.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.To != null) - hashCode = hashCode * 59 + this.To.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="To", EmitDefaultValue=false)] + public StringValue To { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/EmailTimeActivity.cs b/Acumatica.Default_17.200.001/Model/EmailTimeActivity.cs index d9d514ec..e3b91dd8 100644 --- a/Acumatica.Default_17.200.001/Model/EmailTimeActivity.cs +++ b/Acumatica.Default_17.200.001/Model/EmailTimeActivity.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// EmailTimeActivity - /// - [DataContract] - public partial class EmailTimeActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// approver. - /// billable. - /// billableOvertime. - /// billableTime. - /// earningType. - /// overtime. - /// project. - /// projectTask. - /// released. - /// status. - /// timeSpent. - /// trackTime. - public EmailTimeActivity(StringValue approver = default(StringValue), BooleanValue billable = default(BooleanValue), StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue earningType = default(StringValue), StringValue overtime = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), BooleanValue released = default(BooleanValue), StringValue status = default(StringValue), StringValue timeSpent = default(StringValue), BooleanValue trackTime = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Approver = approver; - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.EarningType = earningType; - this.Overtime = overtime; - this.Project = project; - this.ProjectTask = projectTask; - this.Released = released; - this.Status = status; - this.TimeSpent = timeSpent; - this.TrackTime = trackTime; - } - - /// - /// Gets or Sets Approver - /// - [DataMember(Name="Approver", EmitDefaultValue=false)] - public StringValue Approver { get; set; } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets EarningType - /// - [DataMember(Name="EarningType", EmitDefaultValue=false)] - public StringValue EarningType { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } + [DataContract] + public partial class EmailTimeActivity : Entity + { - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } + [DataMember(Name="Approver", EmitDefaultValue=false)] + public StringValue Approver { get; set; } - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } + [DataMember(Name="EarningType", EmitDefaultValue=false)] + public StringValue EarningType { get; set; } - /// - /// Gets or Sets TrackTime - /// - [DataMember(Name="TrackTime", EmitDefaultValue=false)] - public BooleanValue TrackTime { get; set; } + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmailTimeActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Approver: ").Append(Approver).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" EarningType: ").Append(EarningType).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" TrackTime: ").Append(TrackTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmailTimeActivity); - } + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } - /// - /// Returns true if EmailTimeActivity instances are equal - /// - /// Instance of EmailTimeActivity to be compared - /// Boolean - public bool Equals(EmailTimeActivity input) - { - if (input == null) - return false; + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } - return base.Equals(input) && - ( - this.Approver == input.Approver || - (this.Approver != null && - this.Approver.Equals(input.Approver)) - ) && base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.EarningType == input.EarningType || - (this.EarningType != null && - this.EarningType.Equals(input.EarningType)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.TrackTime == input.TrackTime || - (this.TrackTime != null && - this.TrackTime.Equals(input.TrackTime)) - ); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Approver != null) - hashCode = hashCode * 59 + this.Approver.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.EarningType != null) - hashCode = hashCode * 59 + this.EarningType.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.TrackTime != null) - hashCode = hashCode * 59 + this.TrackTime.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TrackTime", EmitDefaultValue=false)] + public BooleanValue TrackTime { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Employee.cs b/Acumatica.Default_17.200.001/Model/Employee.cs index 8a2a8216..b4749bfe 100644 --- a/Acumatica.Default_17.200.001/Model/Employee.cs +++ b/Acumatica.Default_17.200.001/Model/Employee.cs @@ -1,318 +1,51 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Employee - /// - [DataContract] - public partial class Employee : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// branchID. - /// contact. - /// currencyID. - /// dateOfBirth. - /// departmentID. - /// employeeClassID. - /// employeeCost. - /// employeeID. - /// employmentHistory. - /// name. - /// paymentMethod. - /// reportsToID. - /// status. - public Employee(StringValue branchID = default(StringValue), Contact contact = default(Contact), StringValue currencyID = default(StringValue), DateTimeValue dateOfBirth = default(DateTimeValue), StringValue departmentID = default(StringValue), StringValue employeeClassID = default(StringValue), List employeeCost = default(List), StringValue employeeID = default(StringValue), List employmentHistory = default(List), StringValue name = default(StringValue), StringValue paymentMethod = default(StringValue), StringValue reportsToID = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BranchID = branchID; - this.Contact = contact; - this.CurrencyID = currencyID; - this.DateOfBirth = dateOfBirth; - this.DepartmentID = departmentID; - this.EmployeeClassID = employeeClassID; - this.EmployeeCost = employeeCost; - this.EmployeeID = employeeID; - this.EmploymentHistory = employmentHistory; - this.Name = name; - this.PaymentMethod = paymentMethod; - this.ReportsToID = reportsToID; - this.Status = status; - } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets Contact - /// - [DataMember(Name="Contact", EmitDefaultValue=false)] - public Contact Contact { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets DateOfBirth - /// - [DataMember(Name="DateOfBirth", EmitDefaultValue=false)] - public DateTimeValue DateOfBirth { get; set; } - - /// - /// Gets or Sets DepartmentID - /// - [DataMember(Name="DepartmentID", EmitDefaultValue=false)] - public StringValue DepartmentID { get; set; } - - /// - /// Gets or Sets EmployeeClassID - /// - [DataMember(Name="EmployeeClassID", EmitDefaultValue=false)] - public StringValue EmployeeClassID { get; set; } + [DataContract] + public partial class Employee : Entity + { - /// - /// Gets or Sets EmployeeCost - /// - [DataMember(Name="EmployeeCost", EmitDefaultValue=false)] - public List EmployeeCost { get; set; } + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } - /// - /// Gets or Sets EmployeeID - /// - [DataMember(Name="EmployeeID", EmitDefaultValue=false)] - public StringValue EmployeeID { get; set; } + [DataMember(Name="Contact", EmitDefaultValue=false)] + public Contact Contact { get; set; } - /// - /// Gets or Sets EmploymentHistory - /// - [DataMember(Name="EmploymentHistory", EmitDefaultValue=false)] - public List EmploymentHistory { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } + [DataMember(Name="DateOfBirth", EmitDefaultValue=false)] + public DateTimeValue DateOfBirth { get; set; } - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } + [DataMember(Name="DepartmentID", EmitDefaultValue=false)] + public StringValue DepartmentID { get; set; } - /// - /// Gets or Sets ReportsToID - /// - [DataMember(Name="ReportsToID", EmitDefaultValue=false)] - public StringValue ReportsToID { get; set; } + [DataMember(Name="EmployeeClassID", EmitDefaultValue=false)] + public StringValue EmployeeClassID { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="EmployeeCost", EmitDefaultValue=false)] + public List EmployeeCost { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Employee {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" Contact: ").Append(Contact).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" DateOfBirth: ").Append(DateOfBirth).Append("\n"); - sb.Append(" DepartmentID: ").Append(DepartmentID).Append("\n"); - sb.Append(" EmployeeClassID: ").Append(EmployeeClassID).Append("\n"); - sb.Append(" EmployeeCost: ").Append(EmployeeCost).Append("\n"); - sb.Append(" EmployeeID: ").Append(EmployeeID).Append("\n"); - sb.Append(" EmploymentHistory: ").Append(EmploymentHistory).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" ReportsToID: ").Append(ReportsToID).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="EmployeeID", EmitDefaultValue=false)] + public StringValue EmployeeID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Employee); - } + [DataMember(Name="EmploymentHistory", EmitDefaultValue=false)] + public List EmploymentHistory { get; set; } - /// - /// Returns true if Employee instances are equal - /// - /// Instance of Employee to be compared - /// Boolean - public bool Equals(Employee input) - { - if (input == null) - return false; + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } - return base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.Contact == input.Contact || - (this.Contact != null && - this.Contact.Equals(input.Contact)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.DateOfBirth == input.DateOfBirth || - (this.DateOfBirth != null && - this.DateOfBirth.Equals(input.DateOfBirth)) - ) && base.Equals(input) && - ( - this.DepartmentID == input.DepartmentID || - (this.DepartmentID != null && - this.DepartmentID.Equals(input.DepartmentID)) - ) && base.Equals(input) && - ( - this.EmployeeClassID == input.EmployeeClassID || - (this.EmployeeClassID != null && - this.EmployeeClassID.Equals(input.EmployeeClassID)) - ) && base.Equals(input) && - ( - this.EmployeeCost == input.EmployeeCost || - this.EmployeeCost != null && - this.EmployeeCost.SequenceEqual(input.EmployeeCost) - ) && base.Equals(input) && - ( - this.EmployeeID == input.EmployeeID || - (this.EmployeeID != null && - this.EmployeeID.Equals(input.EmployeeID)) - ) && base.Equals(input) && - ( - this.EmploymentHistory == input.EmploymentHistory || - this.EmploymentHistory != null && - this.EmploymentHistory.SequenceEqual(input.EmploymentHistory) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.ReportsToID == input.ReportsToID || - (this.ReportsToID != null && - this.ReportsToID.Equals(input.ReportsToID)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.Contact != null) - hashCode = hashCode * 59 + this.Contact.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.DateOfBirth != null) - hashCode = hashCode * 59 + this.DateOfBirth.GetHashCode(); - if (this.DepartmentID != null) - hashCode = hashCode * 59 + this.DepartmentID.GetHashCode(); - if (this.EmployeeClassID != null) - hashCode = hashCode * 59 + this.EmployeeClassID.GetHashCode(); - if (this.EmployeeCost != null) - hashCode = hashCode * 59 + this.EmployeeCost.GetHashCode(); - if (this.EmployeeID != null) - hashCode = hashCode * 59 + this.EmployeeID.GetHashCode(); - if (this.EmploymentHistory != null) - hashCode = hashCode * 59 + this.EmploymentHistory.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.ReportsToID != null) - hashCode = hashCode * 59 + this.ReportsToID.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ReportsToID", EmitDefaultValue=false)] + public StringValue ReportsToID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/EmployeeCostRecord.cs b/Acumatica.Default_17.200.001/Model/EmployeeCostRecord.cs index 27cbc116..5f0217ce 100644 --- a/Acumatica.Default_17.200.001/Model/EmployeeCostRecord.cs +++ b/Acumatica.Default_17.200.001/Model/EmployeeCostRecord.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// EmployeeCostRecord - /// - [DataContract] - public partial class EmployeeCostRecord : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// annualSalaryAmount. - /// effectiveDate. - /// hourlyRate. - /// regularHoursPerWeek. - /// typeOfEmployment. - public EmployeeCostRecord(DecimalValue annualSalaryAmount = default(DecimalValue), DateTimeValue effectiveDate = default(DateTimeValue), DecimalValue hourlyRate = default(DecimalValue), DecimalValue regularHoursPerWeek = default(DecimalValue), StringValue typeOfEmployment = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AnnualSalaryAmount = annualSalaryAmount; - this.EffectiveDate = effectiveDate; - this.HourlyRate = hourlyRate; - this.RegularHoursPerWeek = regularHoursPerWeek; - this.TypeOfEmployment = typeOfEmployment; - } - - /// - /// Gets or Sets AnnualSalaryAmount - /// - [DataMember(Name="AnnualSalaryAmount", EmitDefaultValue=false)] - public DecimalValue AnnualSalaryAmount { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets HourlyRate - /// - [DataMember(Name="HourlyRate", EmitDefaultValue=false)] - public DecimalValue HourlyRate { get; set; } - - /// - /// Gets or Sets RegularHoursPerWeek - /// - [DataMember(Name="RegularHoursPerWeek", EmitDefaultValue=false)] - public DecimalValue RegularHoursPerWeek { get; set; } - - /// - /// Gets or Sets TypeOfEmployment - /// - [DataMember(Name="TypeOfEmployment", EmitDefaultValue=false)] - public StringValue TypeOfEmployment { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmployeeCostRecord {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AnnualSalaryAmount: ").Append(AnnualSalaryAmount).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" HourlyRate: ").Append(HourlyRate).Append("\n"); - sb.Append(" RegularHoursPerWeek: ").Append(RegularHoursPerWeek).Append("\n"); - sb.Append(" TypeOfEmployment: ").Append(TypeOfEmployment).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class EmployeeCostRecord : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmployeeCostRecord); - } + [DataMember(Name="AnnualSalaryAmount", EmitDefaultValue=false)] + public DecimalValue AnnualSalaryAmount { get; set; } - /// - /// Returns true if EmployeeCostRecord instances are equal - /// - /// Instance of EmployeeCostRecord to be compared - /// Boolean - public bool Equals(EmployeeCostRecord input) - { - if (input == null) - return false; + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } - return base.Equals(input) && - ( - this.AnnualSalaryAmount == input.AnnualSalaryAmount || - (this.AnnualSalaryAmount != null && - this.AnnualSalaryAmount.Equals(input.AnnualSalaryAmount)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.HourlyRate == input.HourlyRate || - (this.HourlyRate != null && - this.HourlyRate.Equals(input.HourlyRate)) - ) && base.Equals(input) && - ( - this.RegularHoursPerWeek == input.RegularHoursPerWeek || - (this.RegularHoursPerWeek != null && - this.RegularHoursPerWeek.Equals(input.RegularHoursPerWeek)) - ) && base.Equals(input) && - ( - this.TypeOfEmployment == input.TypeOfEmployment || - (this.TypeOfEmployment != null && - this.TypeOfEmployment.Equals(input.TypeOfEmployment)) - ); - } + [DataMember(Name="HourlyRate", EmitDefaultValue=false)] + public DecimalValue HourlyRate { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AnnualSalaryAmount != null) - hashCode = hashCode * 59 + this.AnnualSalaryAmount.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.HourlyRate != null) - hashCode = hashCode * 59 + this.HourlyRate.GetHashCode(); - if (this.RegularHoursPerWeek != null) - hashCode = hashCode * 59 + this.RegularHoursPerWeek.GetHashCode(); - if (this.TypeOfEmployment != null) - hashCode = hashCode * 59 + this.TypeOfEmployment.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="RegularHoursPerWeek", EmitDefaultValue=false)] + public DecimalValue RegularHoursPerWeek { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TypeOfEmployment", EmitDefaultValue=false)] + public StringValue TypeOfEmployment { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/EmploymentHistoryRecord.cs b/Acumatica.Default_17.200.001/Model/EmploymentHistoryRecord.cs index 6fe7a878..ff4a906b 100644 --- a/Acumatica.Default_17.200.001/Model/EmploymentHistoryRecord.cs +++ b/Acumatica.Default_17.200.001/Model/EmploymentHistoryRecord.cs @@ -1,254 +1,39 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// EmploymentHistoryRecord - /// - [DataContract] - public partial class EmploymentHistoryRecord : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// endDate. - /// lineNbr. - /// positionID. - /// rehireEligible. - /// startDate. - /// startReason. - /// terminated. - /// terminationReason. - public EmploymentHistoryRecord(BooleanValue active = default(BooleanValue), DateTimeValue endDate = default(DateTimeValue), IntValue lineNbr = default(IntValue), StringValue positionID = default(StringValue), BooleanValue rehireEligible = default(BooleanValue), DateTimeValue startDate = default(DateTimeValue), StringValue startReason = default(StringValue), BooleanValue terminated = default(BooleanValue), StringValue terminationReason = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.EndDate = endDate; - this.LineNbr = lineNbr; - this.PositionID = positionID; - this.RehireEligible = rehireEligible; - this.StartDate = startDate; - this.StartReason = startReason; - this.Terminated = terminated; - this.TerminationReason = terminationReason; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets PositionID - /// - [DataMember(Name="PositionID", EmitDefaultValue=false)] - public StringValue PositionID { get; set; } - - /// - /// Gets or Sets RehireEligible - /// - [DataMember(Name="RehireEligible", EmitDefaultValue=false)] - public BooleanValue RehireEligible { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataContract] + public partial class EmploymentHistoryRecord : Entity + { - /// - /// Gets or Sets StartReason - /// - [DataMember(Name="StartReason", EmitDefaultValue=false)] - public StringValue StartReason { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets Terminated - /// - [DataMember(Name="Terminated", EmitDefaultValue=false)] - public BooleanValue Terminated { get; set; } + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } - /// - /// Gets or Sets TerminationReason - /// - [DataMember(Name="TerminationReason", EmitDefaultValue=false)] - public StringValue TerminationReason { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmploymentHistoryRecord {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" PositionID: ").Append(PositionID).Append("\n"); - sb.Append(" RehireEligible: ").Append(RehireEligible).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" StartReason: ").Append(StartReason).Append("\n"); - sb.Append(" Terminated: ").Append(Terminated).Append("\n"); - sb.Append(" TerminationReason: ").Append(TerminationReason).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PositionID", EmitDefaultValue=false)] + public StringValue PositionID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmploymentHistoryRecord); - } + [DataMember(Name="RehireEligible", EmitDefaultValue=false)] + public BooleanValue RehireEligible { get; set; } - /// - /// Returns true if EmploymentHistoryRecord instances are equal - /// - /// Instance of EmploymentHistoryRecord to be compared - /// Boolean - public bool Equals(EmploymentHistoryRecord input) - { - if (input == null) - return false; + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.PositionID == input.PositionID || - (this.PositionID != null && - this.PositionID.Equals(input.PositionID)) - ) && base.Equals(input) && - ( - this.RehireEligible == input.RehireEligible || - (this.RehireEligible != null && - this.RehireEligible.Equals(input.RehireEligible)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.StartReason == input.StartReason || - (this.StartReason != null && - this.StartReason.Equals(input.StartReason)) - ) && base.Equals(input) && - ( - this.Terminated == input.Terminated || - (this.Terminated != null && - this.Terminated.Equals(input.Terminated)) - ) && base.Equals(input) && - ( - this.TerminationReason == input.TerminationReason || - (this.TerminationReason != null && - this.TerminationReason.Equals(input.TerminationReason)) - ); - } + [DataMember(Name="StartReason", EmitDefaultValue=false)] + public StringValue StartReason { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.PositionID != null) - hashCode = hashCode * 59 + this.PositionID.GetHashCode(); - if (this.RehireEligible != null) - hashCode = hashCode * 59 + this.RehireEligible.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.StartReason != null) - hashCode = hashCode * 59 + this.StartReason.GetHashCode(); - if (this.Terminated != null) - hashCode = hashCode * 59 + this.Terminated.GetHashCode(); - if (this.TerminationReason != null) - hashCode = hashCode * 59 + this.TerminationReason.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Terminated", EmitDefaultValue=false)] + public BooleanValue Terminated { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TerminationReason", EmitDefaultValue=false)] + public StringValue TerminationReason { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Event.cs b/Acumatica.Default_17.200.001/Model/Event.cs index 9fe3c80e..c3fa0fcb 100644 --- a/Acumatica.Default_17.200.001/Model/Event.cs +++ b/Acumatica.Default_17.200.001/Model/Event.cs @@ -1,414 +1,69 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Event - /// - [DataContract] - public partial class Event : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allDay. - /// attendees. - /// body. - /// category. - /// endDate. - /// endTime. - /// _internal. - /// location. - /// noteID. - /// priority. - /// relatedActivities. - /// relatedEntityDescription. - /// reminder. - /// showAs. - /// startDate. - /// startTime. - /// status. - /// summary. - /// timeActivity. - public Event(BooleanValue allDay = default(BooleanValue), List attendees = default(List), StringValue body = default(StringValue), StringValue category = default(StringValue), DateTimeValue endDate = default(DateTimeValue), DateTimeValue endTime = default(DateTimeValue), BooleanValue _internal = default(BooleanValue), StringValue location = default(StringValue), GuidValue noteID = default(GuidValue), StringValue priority = default(StringValue), List relatedActivities = default(List), StringValue relatedEntityDescription = default(StringValue), ReminderDetail reminder = default(ReminderDetail), StringValue showAs = default(StringValue), DateTimeValue startDate = default(DateTimeValue), DateTimeValue startTime = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), EventTimeActivity timeActivity = default(EventTimeActivity), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllDay = allDay; - this.Attendees = attendees; - this.Body = body; - this.Category = category; - this.EndDate = endDate; - this.EndTime = endTime; - this.Internal = _internal; - this.Location = location; - this.NoteID = noteID; - this.Priority = priority; - this.RelatedActivities = relatedActivities; - this.RelatedEntityDescription = relatedEntityDescription; - this.Reminder = reminder; - this.ShowAs = showAs; - this.StartDate = startDate; - this.StartTime = startTime; - this.Status = status; - this.Summary = summary; - this.TimeActivity = timeActivity; - } - - /// - /// Gets or Sets AllDay - /// - [DataMember(Name="AllDay", EmitDefaultValue=false)] - public BooleanValue AllDay { get; set; } - - /// - /// Gets or Sets Attendees - /// - [DataMember(Name="Attendees", EmitDefaultValue=false)] - public List Attendees { get; set; } - - /// - /// Gets or Sets Body - /// - [DataMember(Name="Body", EmitDefaultValue=false)] - public StringValue Body { get; set; } - - /// - /// Gets or Sets Category - /// - [DataMember(Name="Category", EmitDefaultValue=false)] - public StringValue Category { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets EndTime - /// - [DataMember(Name="EndTime", EmitDefaultValue=false)] - public DateTimeValue EndTime { get; set; } + [DataContract] + public partial class Event : Entity + { - /// - /// Gets or Sets Internal - /// - [DataMember(Name="Internal", EmitDefaultValue=false)] - public BooleanValue Internal { get; set; } + [DataMember(Name="AllDay", EmitDefaultValue=false)] + public BooleanValue AllDay { get; set; } - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } + [DataMember(Name="Attendees", EmitDefaultValue=false)] + public List Attendees { get; set; } - /// - /// Gets or Sets NoteID - /// - [DataMember(Name="NoteID", EmitDefaultValue=false)] - public GuidValue NoteID { get; set; } + [DataMember(Name="Body", EmitDefaultValue=false)] + public StringValue Body { get; set; } - /// - /// Gets or Sets Priority - /// - [DataMember(Name="Priority", EmitDefaultValue=false)] - public StringValue Priority { get; set; } + [DataMember(Name="Category", EmitDefaultValue=false)] + public StringValue Category { get; set; } - /// - /// Gets or Sets RelatedActivities - /// - [DataMember(Name="RelatedActivities", EmitDefaultValue=false)] - public List RelatedActivities { get; set; } + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } - /// - /// Gets or Sets RelatedEntityDescription - /// - [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] - public StringValue RelatedEntityDescription { get; set; } + [DataMember(Name="EndTime", EmitDefaultValue=false)] + public DateTimeValue EndTime { get; set; } - /// - /// Gets or Sets Reminder - /// - [DataMember(Name="Reminder", EmitDefaultValue=false)] - public ReminderDetail Reminder { get; set; } + [DataMember(Name="Internal", EmitDefaultValue=false)] + public BooleanValue Internal { get; set; } - /// - /// Gets or Sets ShowAs - /// - [DataMember(Name="ShowAs", EmitDefaultValue=false)] - public StringValue ShowAs { get; set; } + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataMember(Name="NoteID", EmitDefaultValue=false)] + public GuidValue NoteID { get; set; } - /// - /// Gets or Sets StartTime - /// - [DataMember(Name="StartTime", EmitDefaultValue=false)] - public DateTimeValue StartTime { get; set; } + [DataMember(Name="Priority", EmitDefaultValue=false)] + public StringValue Priority { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="RelatedActivities", EmitDefaultValue=false)] + public List RelatedActivities { get; set; } - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } + [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] + public StringValue RelatedEntityDescription { get; set; } - /// - /// Gets or Sets TimeActivity - /// - [DataMember(Name="TimeActivity", EmitDefaultValue=false)] - public EventTimeActivity TimeActivity { get; set; } + [DataMember(Name="Reminder", EmitDefaultValue=false)] + public ReminderDetail Reminder { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Event {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllDay: ").Append(AllDay).Append("\n"); - sb.Append(" Attendees: ").Append(Attendees).Append("\n"); - sb.Append(" Body: ").Append(Body).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" EndTime: ").Append(EndTime).Append("\n"); - sb.Append(" Internal: ").Append(Internal).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" NoteID: ").Append(NoteID).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" RelatedActivities: ").Append(RelatedActivities).Append("\n"); - sb.Append(" RelatedEntityDescription: ").Append(RelatedEntityDescription).Append("\n"); - sb.Append(" Reminder: ").Append(Reminder).Append("\n"); - sb.Append(" ShowAs: ").Append(ShowAs).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" StartTime: ").Append(StartTime).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeActivity: ").Append(TimeActivity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ShowAs", EmitDefaultValue=false)] + public StringValue ShowAs { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Event); - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// Returns true if Event instances are equal - /// - /// Instance of Event to be compared - /// Boolean - public bool Equals(Event input) - { - if (input == null) - return false; + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public DateTimeValue StartTime { get; set; } - return base.Equals(input) && - ( - this.AllDay == input.AllDay || - (this.AllDay != null && - this.AllDay.Equals(input.AllDay)) - ) && base.Equals(input) && - ( - this.Attendees == input.Attendees || - this.Attendees != null && - this.Attendees.SequenceEqual(input.Attendees) - ) && base.Equals(input) && - ( - this.Body == input.Body || - (this.Body != null && - this.Body.Equals(input.Body)) - ) && base.Equals(input) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.EndTime == input.EndTime || - (this.EndTime != null && - this.EndTime.Equals(input.EndTime)) - ) && base.Equals(input) && - ( - this.Internal == input.Internal || - (this.Internal != null && - this.Internal.Equals(input.Internal)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.NoteID == input.NoteID || - (this.NoteID != null && - this.NoteID.Equals(input.NoteID)) - ) && base.Equals(input) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && base.Equals(input) && - ( - this.RelatedActivities == input.RelatedActivities || - this.RelatedActivities != null && - this.RelatedActivities.SequenceEqual(input.RelatedActivities) - ) && base.Equals(input) && - ( - this.RelatedEntityDescription == input.RelatedEntityDescription || - (this.RelatedEntityDescription != null && - this.RelatedEntityDescription.Equals(input.RelatedEntityDescription)) - ) && base.Equals(input) && - ( - this.Reminder == input.Reminder || - (this.Reminder != null && - this.Reminder.Equals(input.Reminder)) - ) && base.Equals(input) && - ( - this.ShowAs == input.ShowAs || - (this.ShowAs != null && - this.ShowAs.Equals(input.ShowAs)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.StartTime == input.StartTime || - (this.StartTime != null && - this.StartTime.Equals(input.StartTime)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeActivity == input.TimeActivity || - (this.TimeActivity != null && - this.TimeActivity.Equals(input.TimeActivity)) - ); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllDay != null) - hashCode = hashCode * 59 + this.AllDay.GetHashCode(); - if (this.Attendees != null) - hashCode = hashCode * 59 + this.Attendees.GetHashCode(); - if (this.Body != null) - hashCode = hashCode * 59 + this.Body.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.EndTime != null) - hashCode = hashCode * 59 + this.EndTime.GetHashCode(); - if (this.Internal != null) - hashCode = hashCode * 59 + this.Internal.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.NoteID != null) - hashCode = hashCode * 59 + this.NoteID.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.RelatedActivities != null) - hashCode = hashCode * 59 + this.RelatedActivities.GetHashCode(); - if (this.RelatedEntityDescription != null) - hashCode = hashCode * 59 + this.RelatedEntityDescription.GetHashCode(); - if (this.Reminder != null) - hashCode = hashCode * 59 + this.Reminder.GetHashCode(); - if (this.ShowAs != null) - hashCode = hashCode * 59 + this.ShowAs.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.StartTime != null) - hashCode = hashCode * 59 + this.StartTime.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeActivity != null) - hashCode = hashCode * 59 + this.TimeActivity.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TimeActivity", EmitDefaultValue=false)] + public EventTimeActivity TimeActivity { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/EventAttendee.cs b/Acumatica.Default_17.200.001/Model/EventAttendee.cs index 552a7579..e12c4e70 100644 --- a/Acumatica.Default_17.200.001/Model/EventAttendee.cs +++ b/Acumatica.Default_17.200.001/Model/EventAttendee.cs @@ -1,238 +1,36 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// EventAttendee - /// - [DataContract] - public partial class EventAttendee : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// comment. - /// email. - /// eventNoteID. - /// invitationStatus. - /// key. - /// name. - /// nameAttendeeName. - /// type. - public EventAttendee(StringValue comment = default(StringValue), StringValue email = default(StringValue), GuidValue eventNoteID = default(GuidValue), StringValue invitationStatus = default(StringValue), StringValue key = default(StringValue), StringValue name = default(StringValue), StringValue nameAttendeeName = default(StringValue), IntValue type = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Comment = comment; - this.Email = email; - this.EventNoteID = eventNoteID; - this.InvitationStatus = invitationStatus; - this.Key = key; - this.Name = name; - this.NameAttendeeName = nameAttendeeName; - this.Type = type; - } - - /// - /// Gets or Sets Comment - /// - [DataMember(Name="Comment", EmitDefaultValue=false)] - public StringValue Comment { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets EventNoteID - /// - [DataMember(Name="EventNoteID", EmitDefaultValue=false)] - public GuidValue EventNoteID { get; set; } - - /// - /// Gets or Sets InvitationStatus - /// - [DataMember(Name="InvitationStatus", EmitDefaultValue=false)] - public StringValue InvitationStatus { get; set; } - - /// - /// Gets or Sets Key - /// - [DataMember(Name="Key", EmitDefaultValue=false)] - public StringValue Key { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } + [DataContract] + public partial class EventAttendee : Entity + { - /// - /// Gets or Sets NameAttendeeName - /// - [DataMember(Name="NameAttendeeName", EmitDefaultValue=false)] - public StringValue NameAttendeeName { get; set; } + [DataMember(Name="Comment", EmitDefaultValue=false)] + public StringValue Comment { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public IntValue Type { get; set; } + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EventAttendee {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Comment: ").Append(Comment).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" EventNoteID: ").Append(EventNoteID).Append("\n"); - sb.Append(" InvitationStatus: ").Append(InvitationStatus).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" NameAttendeeName: ").Append(NameAttendeeName).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="EventNoteID", EmitDefaultValue=false)] + public GuidValue EventNoteID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EventAttendee); - } + [DataMember(Name="InvitationStatus", EmitDefaultValue=false)] + public StringValue InvitationStatus { get; set; } - /// - /// Returns true if EventAttendee instances are equal - /// - /// Instance of EventAttendee to be compared - /// Boolean - public bool Equals(EventAttendee input) - { - if (input == null) - return false; + [DataMember(Name="Key", EmitDefaultValue=false)] + public StringValue Key { get; set; } - return base.Equals(input) && - ( - this.Comment == input.Comment || - (this.Comment != null && - this.Comment.Equals(input.Comment)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.EventNoteID == input.EventNoteID || - (this.EventNoteID != null && - this.EventNoteID.Equals(input.EventNoteID)) - ) && base.Equals(input) && - ( - this.InvitationStatus == input.InvitationStatus || - (this.InvitationStatus != null && - this.InvitationStatus.Equals(input.InvitationStatus)) - ) && base.Equals(input) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.NameAttendeeName == input.NameAttendeeName || - (this.NameAttendeeName != null && - this.NameAttendeeName.Equals(input.NameAttendeeName)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Comment != null) - hashCode = hashCode * 59 + this.Comment.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.EventNoteID != null) - hashCode = hashCode * 59 + this.EventNoteID.GetHashCode(); - if (this.InvitationStatus != null) - hashCode = hashCode * 59 + this.InvitationStatus.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.NameAttendeeName != null) - hashCode = hashCode * 59 + this.NameAttendeeName.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="NameAttendeeName", EmitDefaultValue=false)] + public StringValue NameAttendeeName { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public IntValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/EventRelatedActivity.cs b/Acumatica.Default_17.200.001/Model/EventRelatedActivity.cs index 44e061f1..48540ed0 100644 --- a/Acumatica.Default_17.200.001/Model/EventRelatedActivity.cs +++ b/Acumatica.Default_17.200.001/Model/EventRelatedActivity.cs @@ -1,254 +1,39 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// EventRelatedActivity - /// - [DataContract] - public partial class EventRelatedActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billable. - /// billableOvertime. - /// billableTime. - /// overtime. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - public EventRelatedActivity(BooleanValue billable = default(BooleanValue), StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue overtime = default(StringValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.Overtime = overtime; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataContract] + public partial class EventRelatedActivity : Entity + { - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EventRelatedActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EventRelatedActivity); - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// Returns true if EventRelatedActivity instances are equal - /// - /// Instance of EventRelatedActivity to be compared - /// Boolean - public bool Equals(EventRelatedActivity input) - { - if (input == null) - return false; + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - return base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/EventTimeActivity.cs b/Acumatica.Default_17.200.001/Model/EventTimeActivity.cs index bc3a88c2..54f41e66 100644 --- a/Acumatica.Default_17.200.001/Model/EventTimeActivity.cs +++ b/Acumatica.Default_17.200.001/Model/EventTimeActivity.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// EventTimeActivity - /// - [DataContract] - public partial class EventTimeActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billableOvertime. - /// billableTime. - /// overtime. - /// timeSpent. - public EventTimeActivity(StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue overtime = default(StringValue), StringValue timeSpent = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.Overtime = overtime; - this.TimeSpent = timeSpent; - } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EventTimeActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EventTimeActivity); - } + [DataContract] + public partial class EventTimeActivity : Entity + { - /// - /// Returns true if EventTimeActivity instances are equal - /// - /// Instance of EventTimeActivity to be compared - /// Boolean - public bool Equals(EventTimeActivity input) - { - if (input == null) - return false; + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } - return base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ); - } + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/FOBPoint.cs b/Acumatica.Default_17.200.001/Model/FOBPoint.cs index d1c9c0a1..345b2e70 100644 --- a/Acumatica.Default_17.200.001/Model/FOBPoint.cs +++ b/Acumatica.Default_17.200.001/Model/FOBPoint.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// FOBPoint - /// - [DataContract] - public partial class FOBPoint : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// fOBPointID. - public FOBPoint(StringValue description = default(StringValue), StringValue fOBPointID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.FOBPointID = fOBPointID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets FOBPointID - /// - [DataMember(Name="FOBPointID", EmitDefaultValue=false)] - public StringValue FOBPointID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FOBPoint {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" FOBPointID: ").Append(FOBPointID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FOBPoint); - } - - /// - /// Returns true if FOBPoint instances are equal - /// - /// Instance of FOBPoint to be compared - /// Boolean - public bool Equals(FOBPoint input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.FOBPointID == input.FOBPointID || - (this.FOBPointID != null && - this.FOBPointID.Equals(input.FOBPointID)) - ); - } + [DataContract] + public partial class FOBPoint : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.FOBPointID != null) - hashCode = hashCode * 59 + this.FOBPointID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="FOBPointID", EmitDefaultValue=false)] + public StringValue FOBPointID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/FinancialPeriod.cs b/Acumatica.Default_17.200.001/Model/FinancialPeriod.cs index e3ebddee..f3f76d71 100644 --- a/Acumatica.Default_17.200.001/Model/FinancialPeriod.cs +++ b/Acumatica.Default_17.200.001/Model/FinancialPeriod.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// FinancialPeriod - /// - [DataContract] - public partial class FinancialPeriod : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// details. - /// financialYear. - /// lastModifiedDateTime. - /// nbrOfPeriods. - /// startDate. - /// userDefinedPeriods. - public FinancialPeriod(DateTimeValue createdDateTime = default(DateTimeValue), List details = default(List), StringValue financialYear = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ShortValue nbrOfPeriods = default(ShortValue), DateTimeValue startDate = default(DateTimeValue), BooleanValue userDefinedPeriods = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Details = details; - this.FinancialYear = financialYear; - this.LastModifiedDateTime = lastModifiedDateTime; - this.NbrOfPeriods = nbrOfPeriods; - this.StartDate = startDate; - this.UserDefinedPeriods = userDefinedPeriods; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets FinancialYear - /// - [DataMember(Name="FinancialYear", EmitDefaultValue=false)] - public StringValue FinancialYear { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets NbrOfPeriods - /// - [DataMember(Name="NbrOfPeriods", EmitDefaultValue=false)] - public ShortValue NbrOfPeriods { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataContract] + public partial class FinancialPeriod : Entity + { - /// - /// Gets or Sets UserDefinedPeriods - /// - [DataMember(Name="UserDefinedPeriods", EmitDefaultValue=false)] - public BooleanValue UserDefinedPeriods { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FinancialPeriod {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" FinancialYear: ").Append(FinancialYear).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" NbrOfPeriods: ").Append(NbrOfPeriods).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" UserDefinedPeriods: ").Append(UserDefinedPeriods).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FinancialPeriod); - } + [DataMember(Name="FinancialYear", EmitDefaultValue=false)] + public StringValue FinancialYear { get; set; } - /// - /// Returns true if FinancialPeriod instances are equal - /// - /// Instance of FinancialPeriod to be compared - /// Boolean - public bool Equals(FinancialPeriod input) - { - if (input == null) - return false; + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.FinancialYear == input.FinancialYear || - (this.FinancialYear != null && - this.FinancialYear.Equals(input.FinancialYear)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.NbrOfPeriods == input.NbrOfPeriods || - (this.NbrOfPeriods != null && - this.NbrOfPeriods.Equals(input.NbrOfPeriods)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.UserDefinedPeriods == input.UserDefinedPeriods || - (this.UserDefinedPeriods != null && - this.UserDefinedPeriods.Equals(input.UserDefinedPeriods)) - ); - } + [DataMember(Name="NbrOfPeriods", EmitDefaultValue=false)] + public ShortValue NbrOfPeriods { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.FinancialYear != null) - hashCode = hashCode * 59 + this.FinancialYear.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.NbrOfPeriods != null) - hashCode = hashCode * 59 + this.NbrOfPeriods.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.UserDefinedPeriods != null) - hashCode = hashCode * 59 + this.UserDefinedPeriods.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UserDefinedPeriods", EmitDefaultValue=false)] + public BooleanValue UserDefinedPeriods { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/FinancialPeriodDetail.cs b/Acumatica.Default_17.200.001/Model/FinancialPeriodDetail.cs index f0232d81..31dd9281 100644 --- a/Acumatica.Default_17.200.001/Model/FinancialPeriodDetail.cs +++ b/Acumatica.Default_17.200.001/Model/FinancialPeriodDetail.cs @@ -1,350 +1,57 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// FinancialPeriodDetail - /// - [DataContract] - public partial class FinancialPeriodDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// adjustmentPeriod. - /// closedInAP. - /// closedInAR. - /// closedInCA. - /// closedInFA. - /// closedInGL. - /// closedInIN. - /// closedInPR. - /// description. - /// endDate. - /// financialPeriodID. - /// lengthInDays. - /// periodNbr. - /// startDate. - public FinancialPeriodDetail(BooleanValue active = default(BooleanValue), BooleanValue adjustmentPeriod = default(BooleanValue), BooleanValue closedInAP = default(BooleanValue), BooleanValue closedInAR = default(BooleanValue), BooleanValue closedInCA = default(BooleanValue), BooleanValue closedInFA = default(BooleanValue), BooleanValue closedInGL = default(BooleanValue), BooleanValue closedInIN = default(BooleanValue), BooleanValue closedInPR = default(BooleanValue), StringValue description = default(StringValue), DateTimeValue endDate = default(DateTimeValue), StringValue financialPeriodID = default(StringValue), IntValue lengthInDays = default(IntValue), StringValue periodNbr = default(StringValue), DateTimeValue startDate = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AdjustmentPeriod = adjustmentPeriod; - this.ClosedInAP = closedInAP; - this.ClosedInAR = closedInAR; - this.ClosedInCA = closedInCA; - this.ClosedInFA = closedInFA; - this.ClosedInGL = closedInGL; - this.ClosedInIN = closedInIN; - this.ClosedInPR = closedInPR; - this.Description = description; - this.EndDate = endDate; - this.FinancialPeriodID = financialPeriodID; - this.LengthInDays = lengthInDays; - this.PeriodNbr = periodNbr; - this.StartDate = startDate; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AdjustmentPeriod - /// - [DataMember(Name="AdjustmentPeriod", EmitDefaultValue=false)] - public BooleanValue AdjustmentPeriod { get; set; } - - /// - /// Gets or Sets ClosedInAP - /// - [DataMember(Name="ClosedInAP", EmitDefaultValue=false)] - public BooleanValue ClosedInAP { get; set; } - - /// - /// Gets or Sets ClosedInAR - /// - [DataMember(Name="ClosedInAR", EmitDefaultValue=false)] - public BooleanValue ClosedInAR { get; set; } - - /// - /// Gets or Sets ClosedInCA - /// - [DataMember(Name="ClosedInCA", EmitDefaultValue=false)] - public BooleanValue ClosedInCA { get; set; } - - /// - /// Gets or Sets ClosedInFA - /// - [DataMember(Name="ClosedInFA", EmitDefaultValue=false)] - public BooleanValue ClosedInFA { get; set; } + [DataContract] + public partial class FinancialPeriodDetail : Entity + { - /// - /// Gets or Sets ClosedInGL - /// - [DataMember(Name="ClosedInGL", EmitDefaultValue=false)] - public BooleanValue ClosedInGL { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets ClosedInIN - /// - [DataMember(Name="ClosedInIN", EmitDefaultValue=false)] - public BooleanValue ClosedInIN { get; set; } + [DataMember(Name="AdjustmentPeriod", EmitDefaultValue=false)] + public BooleanValue AdjustmentPeriod { get; set; } - /// - /// Gets or Sets ClosedInPR - /// - [DataMember(Name="ClosedInPR", EmitDefaultValue=false)] - public BooleanValue ClosedInPR { get; set; } + [DataMember(Name="ClosedInAP", EmitDefaultValue=false)] + public BooleanValue ClosedInAP { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="ClosedInAR", EmitDefaultValue=false)] + public BooleanValue ClosedInAR { get; set; } - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } + [DataMember(Name="ClosedInCA", EmitDefaultValue=false)] + public BooleanValue ClosedInCA { get; set; } - /// - /// Gets or Sets FinancialPeriodID - /// - [DataMember(Name="FinancialPeriodID", EmitDefaultValue=false)] - public StringValue FinancialPeriodID { get; set; } + [DataMember(Name="ClosedInFA", EmitDefaultValue=false)] + public BooleanValue ClosedInFA { get; set; } - /// - /// Gets or Sets LengthInDays - /// - [DataMember(Name="LengthInDays", EmitDefaultValue=false)] - public IntValue LengthInDays { get; set; } + [DataMember(Name="ClosedInGL", EmitDefaultValue=false)] + public BooleanValue ClosedInGL { get; set; } - /// - /// Gets or Sets PeriodNbr - /// - [DataMember(Name="PeriodNbr", EmitDefaultValue=false)] - public StringValue PeriodNbr { get; set; } + [DataMember(Name="ClosedInIN", EmitDefaultValue=false)] + public BooleanValue ClosedInIN { get; set; } - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataMember(Name="ClosedInPR", EmitDefaultValue=false)] + public BooleanValue ClosedInPR { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FinancialPeriodDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AdjustmentPeriod: ").Append(AdjustmentPeriod).Append("\n"); - sb.Append(" ClosedInAP: ").Append(ClosedInAP).Append("\n"); - sb.Append(" ClosedInAR: ").Append(ClosedInAR).Append("\n"); - sb.Append(" ClosedInCA: ").Append(ClosedInCA).Append("\n"); - sb.Append(" ClosedInFA: ").Append(ClosedInFA).Append("\n"); - sb.Append(" ClosedInGL: ").Append(ClosedInGL).Append("\n"); - sb.Append(" ClosedInIN: ").Append(ClosedInIN).Append("\n"); - sb.Append(" ClosedInPR: ").Append(ClosedInPR).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" FinancialPeriodID: ").Append(FinancialPeriodID).Append("\n"); - sb.Append(" LengthInDays: ").Append(LengthInDays).Append("\n"); - sb.Append(" PeriodNbr: ").Append(PeriodNbr).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FinancialPeriodDetail); - } + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } - /// - /// Returns true if FinancialPeriodDetail instances are equal - /// - /// Instance of FinancialPeriodDetail to be compared - /// Boolean - public bool Equals(FinancialPeriodDetail input) - { - if (input == null) - return false; + [DataMember(Name="FinancialPeriodID", EmitDefaultValue=false)] + public StringValue FinancialPeriodID { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AdjustmentPeriod == input.AdjustmentPeriod || - (this.AdjustmentPeriod != null && - this.AdjustmentPeriod.Equals(input.AdjustmentPeriod)) - ) && base.Equals(input) && - ( - this.ClosedInAP == input.ClosedInAP || - (this.ClosedInAP != null && - this.ClosedInAP.Equals(input.ClosedInAP)) - ) && base.Equals(input) && - ( - this.ClosedInAR == input.ClosedInAR || - (this.ClosedInAR != null && - this.ClosedInAR.Equals(input.ClosedInAR)) - ) && base.Equals(input) && - ( - this.ClosedInCA == input.ClosedInCA || - (this.ClosedInCA != null && - this.ClosedInCA.Equals(input.ClosedInCA)) - ) && base.Equals(input) && - ( - this.ClosedInFA == input.ClosedInFA || - (this.ClosedInFA != null && - this.ClosedInFA.Equals(input.ClosedInFA)) - ) && base.Equals(input) && - ( - this.ClosedInGL == input.ClosedInGL || - (this.ClosedInGL != null && - this.ClosedInGL.Equals(input.ClosedInGL)) - ) && base.Equals(input) && - ( - this.ClosedInIN == input.ClosedInIN || - (this.ClosedInIN != null && - this.ClosedInIN.Equals(input.ClosedInIN)) - ) && base.Equals(input) && - ( - this.ClosedInPR == input.ClosedInPR || - (this.ClosedInPR != null && - this.ClosedInPR.Equals(input.ClosedInPR)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.FinancialPeriodID == input.FinancialPeriodID || - (this.FinancialPeriodID != null && - this.FinancialPeriodID.Equals(input.FinancialPeriodID)) - ) && base.Equals(input) && - ( - this.LengthInDays == input.LengthInDays || - (this.LengthInDays != null && - this.LengthInDays.Equals(input.LengthInDays)) - ) && base.Equals(input) && - ( - this.PeriodNbr == input.PeriodNbr || - (this.PeriodNbr != null && - this.PeriodNbr.Equals(input.PeriodNbr)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ); - } + [DataMember(Name="LengthInDays", EmitDefaultValue=false)] + public IntValue LengthInDays { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AdjustmentPeriod != null) - hashCode = hashCode * 59 + this.AdjustmentPeriod.GetHashCode(); - if (this.ClosedInAP != null) - hashCode = hashCode * 59 + this.ClosedInAP.GetHashCode(); - if (this.ClosedInAR != null) - hashCode = hashCode * 59 + this.ClosedInAR.GetHashCode(); - if (this.ClosedInCA != null) - hashCode = hashCode * 59 + this.ClosedInCA.GetHashCode(); - if (this.ClosedInFA != null) - hashCode = hashCode * 59 + this.ClosedInFA.GetHashCode(); - if (this.ClosedInGL != null) - hashCode = hashCode * 59 + this.ClosedInGL.GetHashCode(); - if (this.ClosedInIN != null) - hashCode = hashCode * 59 + this.ClosedInIN.GetHashCode(); - if (this.ClosedInPR != null) - hashCode = hashCode * 59 + this.ClosedInPR.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.FinancialPeriodID != null) - hashCode = hashCode * 59 + this.FinancialPeriodID.GetHashCode(); - if (this.LengthInDays != null) - hashCode = hashCode * 59 + this.LengthInDays.GetHashCode(); - if (this.PeriodNbr != null) - hashCode = hashCode * 59 + this.PeriodNbr.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PeriodNbr", EmitDefaultValue=false)] + public StringValue PeriodNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/FinancialSettings.cs b/Acumatica.Default_17.200.001/Model/FinancialSettings.cs index f94d8402..1a7d4e54 100644 --- a/Acumatica.Default_17.200.001/Model/FinancialSettings.cs +++ b/Acumatica.Default_17.200.001/Model/FinancialSettings.cs @@ -1,334 +1,54 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// FinancialSettings - /// - [DataContract] - public partial class FinancialSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billSeparately. - /// branch. - /// cashDiscountDate. - /// customerTaxZone. - /// dueDate. - /// entityUsageType. - /// invoiceDate. - /// invoiceNbr. - /// originalOrderNbr. - /// originalOrderType. - /// overrideTaxZone. - /// owner. - /// postPeriod. - /// terms. - public FinancialSettings(BooleanValue billSeparately = default(BooleanValue), StringValue branch = default(StringValue), DateTimeValue cashDiscountDate = default(DateTimeValue), StringValue customerTaxZone = default(StringValue), DateTimeValue dueDate = default(DateTimeValue), StringValue entityUsageType = default(StringValue), DateTimeValue invoiceDate = default(DateTimeValue), StringValue invoiceNbr = default(StringValue), StringValue originalOrderNbr = default(StringValue), StringValue originalOrderType = default(StringValue), BooleanValue overrideTaxZone = default(BooleanValue), StringValue owner = default(StringValue), StringValue postPeriod = default(StringValue), StringValue terms = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillSeparately = billSeparately; - this.Branch = branch; - this.CashDiscountDate = cashDiscountDate; - this.CustomerTaxZone = customerTaxZone; - this.DueDate = dueDate; - this.EntityUsageType = entityUsageType; - this.InvoiceDate = invoiceDate; - this.InvoiceNbr = invoiceNbr; - this.OriginalOrderNbr = originalOrderNbr; - this.OriginalOrderType = originalOrderType; - this.OverrideTaxZone = overrideTaxZone; - this.Owner = owner; - this.PostPeriod = postPeriod; - this.Terms = terms; - } - - /// - /// Gets or Sets BillSeparately - /// - [DataMember(Name="BillSeparately", EmitDefaultValue=false)] - public BooleanValue BillSeparately { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CashDiscountDate - /// - [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] - public DateTimeValue CashDiscountDate { get; set; } - - /// - /// Gets or Sets CustomerTaxZone - /// - [DataMember(Name="CustomerTaxZone", EmitDefaultValue=false)] - public StringValue CustomerTaxZone { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets EntityUsageType - /// - [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] - public StringValue EntityUsageType { get; set; } + [DataContract] + public partial class FinancialSettings : Entity + { - /// - /// Gets or Sets InvoiceDate - /// - [DataMember(Name="InvoiceDate", EmitDefaultValue=false)] - public DateTimeValue InvoiceDate { get; set; } + [DataMember(Name="BillSeparately", EmitDefaultValue=false)] + public BooleanValue BillSeparately { get; set; } - /// - /// Gets or Sets InvoiceNbr - /// - [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] - public StringValue InvoiceNbr { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets OriginalOrderNbr - /// - [DataMember(Name="OriginalOrderNbr", EmitDefaultValue=false)] - public StringValue OriginalOrderNbr { get; set; } + [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] + public DateTimeValue CashDiscountDate { get; set; } - /// - /// Gets or Sets OriginalOrderType - /// - [DataMember(Name="OriginalOrderType", EmitDefaultValue=false)] - public StringValue OriginalOrderType { get; set; } + [DataMember(Name="CustomerTaxZone", EmitDefaultValue=false)] + public StringValue CustomerTaxZone { get; set; } - /// - /// Gets or Sets OverrideTaxZone - /// - [DataMember(Name="OverrideTaxZone", EmitDefaultValue=false)] - public BooleanValue OverrideTaxZone { get; set; } + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] + public StringValue EntityUsageType { get; set; } - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="InvoiceDate", EmitDefaultValue=false)] + public DateTimeValue InvoiceDate { get; set; } - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } + [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] + public StringValue InvoiceNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FinancialSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillSeparately: ").Append(BillSeparately).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CashDiscountDate: ").Append(CashDiscountDate).Append("\n"); - sb.Append(" CustomerTaxZone: ").Append(CustomerTaxZone).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" EntityUsageType: ").Append(EntityUsageType).Append("\n"); - sb.Append(" InvoiceDate: ").Append(InvoiceDate).Append("\n"); - sb.Append(" InvoiceNbr: ").Append(InvoiceNbr).Append("\n"); - sb.Append(" OriginalOrderNbr: ").Append(OriginalOrderNbr).Append("\n"); - sb.Append(" OriginalOrderType: ").Append(OriginalOrderType).Append("\n"); - sb.Append(" OverrideTaxZone: ").Append(OverrideTaxZone).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="OriginalOrderNbr", EmitDefaultValue=false)] + public StringValue OriginalOrderNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FinancialSettings); - } + [DataMember(Name="OriginalOrderType", EmitDefaultValue=false)] + public StringValue OriginalOrderType { get; set; } - /// - /// Returns true if FinancialSettings instances are equal - /// - /// Instance of FinancialSettings to be compared - /// Boolean - public bool Equals(FinancialSettings input) - { - if (input == null) - return false; + [DataMember(Name="OverrideTaxZone", EmitDefaultValue=false)] + public BooleanValue OverrideTaxZone { get; set; } - return base.Equals(input) && - ( - this.BillSeparately == input.BillSeparately || - (this.BillSeparately != null && - this.BillSeparately.Equals(input.BillSeparately)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CashDiscountDate == input.CashDiscountDate || - (this.CashDiscountDate != null && - this.CashDiscountDate.Equals(input.CashDiscountDate)) - ) && base.Equals(input) && - ( - this.CustomerTaxZone == input.CustomerTaxZone || - (this.CustomerTaxZone != null && - this.CustomerTaxZone.Equals(input.CustomerTaxZone)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.EntityUsageType == input.EntityUsageType || - (this.EntityUsageType != null && - this.EntityUsageType.Equals(input.EntityUsageType)) - ) && base.Equals(input) && - ( - this.InvoiceDate == input.InvoiceDate || - (this.InvoiceDate != null && - this.InvoiceDate.Equals(input.InvoiceDate)) - ) && base.Equals(input) && - ( - this.InvoiceNbr == input.InvoiceNbr || - (this.InvoiceNbr != null && - this.InvoiceNbr.Equals(input.InvoiceNbr)) - ) && base.Equals(input) && - ( - this.OriginalOrderNbr == input.OriginalOrderNbr || - (this.OriginalOrderNbr != null && - this.OriginalOrderNbr.Equals(input.OriginalOrderNbr)) - ) && base.Equals(input) && - ( - this.OriginalOrderType == input.OriginalOrderType || - (this.OriginalOrderType != null && - this.OriginalOrderType.Equals(input.OriginalOrderType)) - ) && base.Equals(input) && - ( - this.OverrideTaxZone == input.OverrideTaxZone || - (this.OverrideTaxZone != null && - this.OverrideTaxZone.Equals(input.OverrideTaxZone)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ); - } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillSeparately != null) - hashCode = hashCode * 59 + this.BillSeparately.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CashDiscountDate != null) - hashCode = hashCode * 59 + this.CashDiscountDate.GetHashCode(); - if (this.CustomerTaxZone != null) - hashCode = hashCode * 59 + this.CustomerTaxZone.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.EntityUsageType != null) - hashCode = hashCode * 59 + this.EntityUsageType.GetHashCode(); - if (this.InvoiceDate != null) - hashCode = hashCode * 59 + this.InvoiceDate.GetHashCode(); - if (this.InvoiceNbr != null) - hashCode = hashCode * 59 + this.InvoiceNbr.GetHashCode(); - if (this.OriginalOrderNbr != null) - hashCode = hashCode * 59 + this.OriginalOrderNbr.GetHashCode(); - if (this.OriginalOrderType != null) - hashCode = hashCode * 59 + this.OriginalOrderType.GetHashCode(); - if (this.OverrideTaxZone != null) - hashCode = hashCode * 59 + this.OverrideTaxZone.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/FinancialYear.cs b/Acumatica.Default_17.200.001/Model/FinancialYear.cs index 1d273270..207d4ed6 100644 --- a/Acumatica.Default_17.200.001/Model/FinancialYear.cs +++ b/Acumatica.Default_17.200.001/Model/FinancialYear.cs @@ -1,366 +1,60 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// FinancialYear - /// - [DataContract] - public partial class FinancialYear : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// adjustToPeriodStart. - /// belongsToNextYear. - /// createdDateTime. - /// dayOfWeek. - /// details. - /// financialYearStartsOn. - /// firstFinancialYear. - /// firstPeriodStartDate. - /// hasAdjustmentPeriod. - /// lastModifiedDateTime. - /// lengthOfFinancialPeriodInDays. - /// nbrOfFinancialPeriods. - /// periodsStartDayOfWeek. - /// periodType. - /// userDefinedPeriods. - /// yearEndCalculationMethod. - public FinancialYear(BooleanValue adjustToPeriodStart = default(BooleanValue), BooleanValue belongsToNextYear = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue dayOfWeek = default(StringValue), List details = default(List), DateTimeValue financialYearStartsOn = default(DateTimeValue), StringValue firstFinancialYear = default(StringValue), DateTimeValue firstPeriodStartDate = default(DateTimeValue), BooleanValue hasAdjustmentPeriod = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ShortValue lengthOfFinancialPeriodInDays = default(ShortValue), ShortValue nbrOfFinancialPeriods = default(ShortValue), StringValue periodsStartDayOfWeek = default(StringValue), StringValue periodType = default(StringValue), BooleanValue userDefinedPeriods = default(BooleanValue), StringValue yearEndCalculationMethod = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AdjustToPeriodStart = adjustToPeriodStart; - this.BelongsToNextYear = belongsToNextYear; - this.CreatedDateTime = createdDateTime; - this.DayOfWeek = dayOfWeek; - this.Details = details; - this.FinancialYearStartsOn = financialYearStartsOn; - this.FirstFinancialYear = firstFinancialYear; - this.FirstPeriodStartDate = firstPeriodStartDate; - this.HasAdjustmentPeriod = hasAdjustmentPeriod; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LengthOfFinancialPeriodInDays = lengthOfFinancialPeriodInDays; - this.NbrOfFinancialPeriods = nbrOfFinancialPeriods; - this.PeriodsStartDayOfWeek = periodsStartDayOfWeek; - this.PeriodType = periodType; - this.UserDefinedPeriods = userDefinedPeriods; - this.YearEndCalculationMethod = yearEndCalculationMethod; - } - - /// - /// Gets or Sets AdjustToPeriodStart - /// - [DataMember(Name="AdjustToPeriodStart", EmitDefaultValue=false)] - public BooleanValue AdjustToPeriodStart { get; set; } - - /// - /// Gets or Sets BelongsToNextYear - /// - [DataMember(Name="BelongsToNextYear", EmitDefaultValue=false)] - public BooleanValue BelongsToNextYear { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets DayOfWeek - /// - [DataMember(Name="DayOfWeek", EmitDefaultValue=false)] - public StringValue DayOfWeek { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets FinancialYearStartsOn - /// - [DataMember(Name="FinancialYearStartsOn", EmitDefaultValue=false)] - public DateTimeValue FinancialYearStartsOn { get; set; } + [DataContract] + public partial class FinancialYear : Entity + { - /// - /// Gets or Sets FirstFinancialYear - /// - [DataMember(Name="FirstFinancialYear", EmitDefaultValue=false)] - public StringValue FirstFinancialYear { get; set; } + [DataMember(Name="AdjustToPeriodStart", EmitDefaultValue=false)] + public BooleanValue AdjustToPeriodStart { get; set; } - /// - /// Gets or Sets FirstPeriodStartDate - /// - [DataMember(Name="FirstPeriodStartDate", EmitDefaultValue=false)] - public DateTimeValue FirstPeriodStartDate { get; set; } + [DataMember(Name="BelongsToNextYear", EmitDefaultValue=false)] + public BooleanValue BelongsToNextYear { get; set; } - /// - /// Gets or Sets HasAdjustmentPeriod - /// - [DataMember(Name="HasAdjustmentPeriod", EmitDefaultValue=false)] - public BooleanValue HasAdjustmentPeriod { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="DayOfWeek", EmitDefaultValue=false)] + public StringValue DayOfWeek { get; set; } - /// - /// Gets or Sets LengthOfFinancialPeriodInDays - /// - [DataMember(Name="LengthOfFinancialPeriodInDays", EmitDefaultValue=false)] - public ShortValue LengthOfFinancialPeriodInDays { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets NbrOfFinancialPeriods - /// - [DataMember(Name="NbrOfFinancialPeriods", EmitDefaultValue=false)] - public ShortValue NbrOfFinancialPeriods { get; set; } + [DataMember(Name="FinancialYearStartsOn", EmitDefaultValue=false)] + public DateTimeValue FinancialYearStartsOn { get; set; } - /// - /// Gets or Sets PeriodsStartDayOfWeek - /// - [DataMember(Name="PeriodsStartDayOfWeek", EmitDefaultValue=false)] - public StringValue PeriodsStartDayOfWeek { get; set; } + [DataMember(Name="FirstFinancialYear", EmitDefaultValue=false)] + public StringValue FirstFinancialYear { get; set; } - /// - /// Gets or Sets PeriodType - /// - [DataMember(Name="PeriodType", EmitDefaultValue=false)] - public StringValue PeriodType { get; set; } + [DataMember(Name="FirstPeriodStartDate", EmitDefaultValue=false)] + public DateTimeValue FirstPeriodStartDate { get; set; } - /// - /// Gets or Sets UserDefinedPeriods - /// - [DataMember(Name="UserDefinedPeriods", EmitDefaultValue=false)] - public BooleanValue UserDefinedPeriods { get; set; } + [DataMember(Name="HasAdjustmentPeriod", EmitDefaultValue=false)] + public BooleanValue HasAdjustmentPeriod { get; set; } - /// - /// Gets or Sets YearEndCalculationMethod - /// - [DataMember(Name="YearEndCalculationMethod", EmitDefaultValue=false)] - public StringValue YearEndCalculationMethod { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FinancialYear {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AdjustToPeriodStart: ").Append(AdjustToPeriodStart).Append("\n"); - sb.Append(" BelongsToNextYear: ").Append(BelongsToNextYear).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" DayOfWeek: ").Append(DayOfWeek).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" FinancialYearStartsOn: ").Append(FinancialYearStartsOn).Append("\n"); - sb.Append(" FirstFinancialYear: ").Append(FirstFinancialYear).Append("\n"); - sb.Append(" FirstPeriodStartDate: ").Append(FirstPeriodStartDate).Append("\n"); - sb.Append(" HasAdjustmentPeriod: ").Append(HasAdjustmentPeriod).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LengthOfFinancialPeriodInDays: ").Append(LengthOfFinancialPeriodInDays).Append("\n"); - sb.Append(" NbrOfFinancialPeriods: ").Append(NbrOfFinancialPeriods).Append("\n"); - sb.Append(" PeriodsStartDayOfWeek: ").Append(PeriodsStartDayOfWeek).Append("\n"); - sb.Append(" PeriodType: ").Append(PeriodType).Append("\n"); - sb.Append(" UserDefinedPeriods: ").Append(UserDefinedPeriods).Append("\n"); - sb.Append(" YearEndCalculationMethod: ").Append(YearEndCalculationMethod).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LengthOfFinancialPeriodInDays", EmitDefaultValue=false)] + public ShortValue LengthOfFinancialPeriodInDays { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FinancialYear); - } + [DataMember(Name="NbrOfFinancialPeriods", EmitDefaultValue=false)] + public ShortValue NbrOfFinancialPeriods { get; set; } - /// - /// Returns true if FinancialYear instances are equal - /// - /// Instance of FinancialYear to be compared - /// Boolean - public bool Equals(FinancialYear input) - { - if (input == null) - return false; + [DataMember(Name="PeriodsStartDayOfWeek", EmitDefaultValue=false)] + public StringValue PeriodsStartDayOfWeek { get; set; } - return base.Equals(input) && - ( - this.AdjustToPeriodStart == input.AdjustToPeriodStart || - (this.AdjustToPeriodStart != null && - this.AdjustToPeriodStart.Equals(input.AdjustToPeriodStart)) - ) && base.Equals(input) && - ( - this.BelongsToNextYear == input.BelongsToNextYear || - (this.BelongsToNextYear != null && - this.BelongsToNextYear.Equals(input.BelongsToNextYear)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.DayOfWeek == input.DayOfWeek || - (this.DayOfWeek != null && - this.DayOfWeek.Equals(input.DayOfWeek)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.FinancialYearStartsOn == input.FinancialYearStartsOn || - (this.FinancialYearStartsOn != null && - this.FinancialYearStartsOn.Equals(input.FinancialYearStartsOn)) - ) && base.Equals(input) && - ( - this.FirstFinancialYear == input.FirstFinancialYear || - (this.FirstFinancialYear != null && - this.FirstFinancialYear.Equals(input.FirstFinancialYear)) - ) && base.Equals(input) && - ( - this.FirstPeriodStartDate == input.FirstPeriodStartDate || - (this.FirstPeriodStartDate != null && - this.FirstPeriodStartDate.Equals(input.FirstPeriodStartDate)) - ) && base.Equals(input) && - ( - this.HasAdjustmentPeriod == input.HasAdjustmentPeriod || - (this.HasAdjustmentPeriod != null && - this.HasAdjustmentPeriod.Equals(input.HasAdjustmentPeriod)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LengthOfFinancialPeriodInDays == input.LengthOfFinancialPeriodInDays || - (this.LengthOfFinancialPeriodInDays != null && - this.LengthOfFinancialPeriodInDays.Equals(input.LengthOfFinancialPeriodInDays)) - ) && base.Equals(input) && - ( - this.NbrOfFinancialPeriods == input.NbrOfFinancialPeriods || - (this.NbrOfFinancialPeriods != null && - this.NbrOfFinancialPeriods.Equals(input.NbrOfFinancialPeriods)) - ) && base.Equals(input) && - ( - this.PeriodsStartDayOfWeek == input.PeriodsStartDayOfWeek || - (this.PeriodsStartDayOfWeek != null && - this.PeriodsStartDayOfWeek.Equals(input.PeriodsStartDayOfWeek)) - ) && base.Equals(input) && - ( - this.PeriodType == input.PeriodType || - (this.PeriodType != null && - this.PeriodType.Equals(input.PeriodType)) - ) && base.Equals(input) && - ( - this.UserDefinedPeriods == input.UserDefinedPeriods || - (this.UserDefinedPeriods != null && - this.UserDefinedPeriods.Equals(input.UserDefinedPeriods)) - ) && base.Equals(input) && - ( - this.YearEndCalculationMethod == input.YearEndCalculationMethod || - (this.YearEndCalculationMethod != null && - this.YearEndCalculationMethod.Equals(input.YearEndCalculationMethod)) - ); - } + [DataMember(Name="PeriodType", EmitDefaultValue=false)] + public StringValue PeriodType { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AdjustToPeriodStart != null) - hashCode = hashCode * 59 + this.AdjustToPeriodStart.GetHashCode(); - if (this.BelongsToNextYear != null) - hashCode = hashCode * 59 + this.BelongsToNextYear.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.DayOfWeek != null) - hashCode = hashCode * 59 + this.DayOfWeek.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.FinancialYearStartsOn != null) - hashCode = hashCode * 59 + this.FinancialYearStartsOn.GetHashCode(); - if (this.FirstFinancialYear != null) - hashCode = hashCode * 59 + this.FirstFinancialYear.GetHashCode(); - if (this.FirstPeriodStartDate != null) - hashCode = hashCode * 59 + this.FirstPeriodStartDate.GetHashCode(); - if (this.HasAdjustmentPeriod != null) - hashCode = hashCode * 59 + this.HasAdjustmentPeriod.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LengthOfFinancialPeriodInDays != null) - hashCode = hashCode * 59 + this.LengthOfFinancialPeriodInDays.GetHashCode(); - if (this.NbrOfFinancialPeriods != null) - hashCode = hashCode * 59 + this.NbrOfFinancialPeriods.GetHashCode(); - if (this.PeriodsStartDayOfWeek != null) - hashCode = hashCode * 59 + this.PeriodsStartDayOfWeek.GetHashCode(); - if (this.PeriodType != null) - hashCode = hashCode * 59 + this.PeriodType.GetHashCode(); - if (this.UserDefinedPeriods != null) - hashCode = hashCode * 59 + this.UserDefinedPeriods.GetHashCode(); - if (this.YearEndCalculationMethod != null) - hashCode = hashCode * 59 + this.YearEndCalculationMethod.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UserDefinedPeriods", EmitDefaultValue=false)] + public BooleanValue UserDefinedPeriods { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="YearEndCalculationMethod", EmitDefaultValue=false)] + public StringValue YearEndCalculationMethod { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/FinancialYearPeriodDetail.cs b/Acumatica.Default_17.200.001/Model/FinancialYearPeriodDetail.cs index 600e7057..9bbaf0a0 100644 --- a/Acumatica.Default_17.200.001/Model/FinancialYearPeriodDetail.cs +++ b/Acumatica.Default_17.200.001/Model/FinancialYearPeriodDetail.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// FinancialYearPeriodDetail - /// - [DataContract] - public partial class FinancialYearPeriodDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// endDate. - /// periodNbr. - /// startDate. - public FinancialYearPeriodDetail(StringValue description = default(StringValue), DateTimeValue endDate = default(DateTimeValue), StringValue periodNbr = default(StringValue), DateTimeValue startDate = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.EndDate = endDate; - this.PeriodNbr = periodNbr; - this.StartDate = startDate; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets PeriodNbr - /// - [DataMember(Name="PeriodNbr", EmitDefaultValue=false)] - public StringValue PeriodNbr { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FinancialYearPeriodDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" PeriodNbr: ").Append(PeriodNbr).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FinancialYearPeriodDetail); - } + [DataContract] + public partial class FinancialYearPeriodDetail : Entity + { - /// - /// Returns true if FinancialYearPeriodDetail instances are equal - /// - /// Instance of FinancialYearPeriodDetail to be compared - /// Boolean - public bool Equals(FinancialYearPeriodDetail input) - { - if (input == null) - return false; + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.PeriodNbr == input.PeriodNbr || - (this.PeriodNbr != null && - this.PeriodNbr.Equals(input.PeriodNbr)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ); - } + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.PeriodNbr != null) - hashCode = hashCode * 59 + this.PeriodNbr.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PeriodNbr", EmitDefaultValue=false)] + public StringValue PeriodNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InterBranchAccountMapping.cs b/Acumatica.Default_17.200.001/Model/InterBranchAccountMapping.cs index 0e99bfdd..0a8c62e6 100644 --- a/Acumatica.Default_17.200.001/Model/InterBranchAccountMapping.cs +++ b/Acumatica.Default_17.200.001/Model/InterBranchAccountMapping.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InterBranchAccountMapping - /// - [DataContract] - public partial class InterBranchAccountMapping : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// originatingBranch. - /// postingLedger. - /// transactionsInDestinationBranch. - /// transactionsInSourceBranch. - public InterBranchAccountMapping(StringValue originatingBranch = default(StringValue), StringValue postingLedger = default(StringValue), List transactionsInDestinationBranch = default(List), List transactionsInSourceBranch = default(List), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.OriginatingBranch = originatingBranch; - this.PostingLedger = postingLedger; - this.TransactionsInDestinationBranch = transactionsInDestinationBranch; - this.TransactionsInSourceBranch = transactionsInSourceBranch; - } - - /// - /// Gets or Sets OriginatingBranch - /// - [DataMember(Name="OriginatingBranch", EmitDefaultValue=false)] - public StringValue OriginatingBranch { get; set; } - - /// - /// Gets or Sets PostingLedger - /// - [DataMember(Name="PostingLedger", EmitDefaultValue=false)] - public StringValue PostingLedger { get; set; } - - /// - /// Gets or Sets TransactionsInDestinationBranch - /// - [DataMember(Name="TransactionsInDestinationBranch", EmitDefaultValue=false)] - public List TransactionsInDestinationBranch { get; set; } - - /// - /// Gets or Sets TransactionsInSourceBranch - /// - [DataMember(Name="TransactionsInSourceBranch", EmitDefaultValue=false)] - public List TransactionsInSourceBranch { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InterBranchAccountMapping {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" OriginatingBranch: ").Append(OriginatingBranch).Append("\n"); - sb.Append(" PostingLedger: ").Append(PostingLedger).Append("\n"); - sb.Append(" TransactionsInDestinationBranch: ").Append(TransactionsInDestinationBranch).Append("\n"); - sb.Append(" TransactionsInSourceBranch: ").Append(TransactionsInSourceBranch).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InterBranchAccountMapping); - } + [DataContract] + public partial class InterBranchAccountMapping : Entity + { - /// - /// Returns true if InterBranchAccountMapping instances are equal - /// - /// Instance of InterBranchAccountMapping to be compared - /// Boolean - public bool Equals(InterBranchAccountMapping input) - { - if (input == null) - return false; + [DataMember(Name="OriginatingBranch", EmitDefaultValue=false)] + public StringValue OriginatingBranch { get; set; } - return base.Equals(input) && - ( - this.OriginatingBranch == input.OriginatingBranch || - (this.OriginatingBranch != null && - this.OriginatingBranch.Equals(input.OriginatingBranch)) - ) && base.Equals(input) && - ( - this.PostingLedger == input.PostingLedger || - (this.PostingLedger != null && - this.PostingLedger.Equals(input.PostingLedger)) - ) && base.Equals(input) && - ( - this.TransactionsInDestinationBranch == input.TransactionsInDestinationBranch || - this.TransactionsInDestinationBranch != null && - this.TransactionsInDestinationBranch.SequenceEqual(input.TransactionsInDestinationBranch) - ) && base.Equals(input) && - ( - this.TransactionsInSourceBranch == input.TransactionsInSourceBranch || - this.TransactionsInSourceBranch != null && - this.TransactionsInSourceBranch.SequenceEqual(input.TransactionsInSourceBranch) - ); - } + [DataMember(Name="PostingLedger", EmitDefaultValue=false)] + public StringValue PostingLedger { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.OriginatingBranch != null) - hashCode = hashCode * 59 + this.OriginatingBranch.GetHashCode(); - if (this.PostingLedger != null) - hashCode = hashCode * 59 + this.PostingLedger.GetHashCode(); - if (this.TransactionsInDestinationBranch != null) - hashCode = hashCode * 59 + this.TransactionsInDestinationBranch.GetHashCode(); - if (this.TransactionsInSourceBranch != null) - hashCode = hashCode * 59 + this.TransactionsInSourceBranch.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TransactionsInDestinationBranch", EmitDefaultValue=false)] + public List TransactionsInDestinationBranch { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TransactionsInSourceBranch", EmitDefaultValue=false)] + public List TransactionsInSourceBranch { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs b/Acumatica.Default_17.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs index 64744162..fdac5ef4 100644 --- a/Acumatica.Default_17.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs +++ b/Acumatica.Default_17.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InterBranchAccountMappingTransactionInDestinationBranchDetail - /// - [DataContract] - public partial class InterBranchAccountMappingTransactionInDestinationBranchDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountFrom. - /// accountTo. - /// branchID. - /// destinationBranch. - /// lineNbr. - /// offsetAccount. - /// offsetSubaccount. - public InterBranchAccountMappingTransactionInDestinationBranchDetail(StringValue accountFrom = default(StringValue), StringValue accountTo = default(StringValue), IntValue branchID = default(IntValue), StringValue destinationBranch = default(StringValue), IntValue lineNbr = default(IntValue), StringValue offsetAccount = default(StringValue), StringValue offsetSubaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountFrom = accountFrom; - this.AccountTo = accountTo; - this.BranchID = branchID; - this.DestinationBranch = destinationBranch; - this.LineNbr = lineNbr; - this.OffsetAccount = offsetAccount; - this.OffsetSubaccount = offsetSubaccount; - } - - /// - /// Gets or Sets AccountFrom - /// - [DataMember(Name="AccountFrom", EmitDefaultValue=false)] - public StringValue AccountFrom { get; set; } - - /// - /// Gets or Sets AccountTo - /// - [DataMember(Name="AccountTo", EmitDefaultValue=false)] - public StringValue AccountTo { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public IntValue BranchID { get; set; } - - /// - /// Gets or Sets DestinationBranch - /// - [DataMember(Name="DestinationBranch", EmitDefaultValue=false)] - public StringValue DestinationBranch { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets OffsetAccount - /// - [DataMember(Name="OffsetAccount", EmitDefaultValue=false)] - public StringValue OffsetAccount { get; set; } + [DataContract] + public partial class InterBranchAccountMappingTransactionInDestinationBranchDetail : Entity + { - /// - /// Gets or Sets OffsetSubaccount - /// - [DataMember(Name="OffsetSubaccount", EmitDefaultValue=false)] - public StringValue OffsetSubaccount { get; set; } + [DataMember(Name="AccountFrom", EmitDefaultValue=false)] + public StringValue AccountFrom { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InterBranchAccountMappingTransactionInDestinationBranchDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountFrom: ").Append(AccountFrom).Append("\n"); - sb.Append(" AccountTo: ").Append(AccountTo).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" DestinationBranch: ").Append(DestinationBranch).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" OffsetAccount: ").Append(OffsetAccount).Append("\n"); - sb.Append(" OffsetSubaccount: ").Append(OffsetSubaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="AccountTo", EmitDefaultValue=false)] + public StringValue AccountTo { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InterBranchAccountMappingTransactionInDestinationBranchDetail); - } + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public IntValue BranchID { get; set; } - /// - /// Returns true if InterBranchAccountMappingTransactionInDestinationBranchDetail instances are equal - /// - /// Instance of InterBranchAccountMappingTransactionInDestinationBranchDetail to be compared - /// Boolean - public bool Equals(InterBranchAccountMappingTransactionInDestinationBranchDetail input) - { - if (input == null) - return false; + [DataMember(Name="DestinationBranch", EmitDefaultValue=false)] + public StringValue DestinationBranch { get; set; } - return base.Equals(input) && - ( - this.AccountFrom == input.AccountFrom || - (this.AccountFrom != null && - this.AccountFrom.Equals(input.AccountFrom)) - ) && base.Equals(input) && - ( - this.AccountTo == input.AccountTo || - (this.AccountTo != null && - this.AccountTo.Equals(input.AccountTo)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.DestinationBranch == input.DestinationBranch || - (this.DestinationBranch != null && - this.DestinationBranch.Equals(input.DestinationBranch)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.OffsetAccount == input.OffsetAccount || - (this.OffsetAccount != null && - this.OffsetAccount.Equals(input.OffsetAccount)) - ) && base.Equals(input) && - ( - this.OffsetSubaccount == input.OffsetSubaccount || - (this.OffsetSubaccount != null && - this.OffsetSubaccount.Equals(input.OffsetSubaccount)) - ); - } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountFrom != null) - hashCode = hashCode * 59 + this.AccountFrom.GetHashCode(); - if (this.AccountTo != null) - hashCode = hashCode * 59 + this.AccountTo.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.DestinationBranch != null) - hashCode = hashCode * 59 + this.DestinationBranch.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.OffsetAccount != null) - hashCode = hashCode * 59 + this.OffsetAccount.GetHashCode(); - if (this.OffsetSubaccount != null) - hashCode = hashCode * 59 + this.OffsetSubaccount.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="OffsetAccount", EmitDefaultValue=false)] + public StringValue OffsetAccount { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="OffsetSubaccount", EmitDefaultValue=false)] + public StringValue OffsetSubaccount { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs b/Acumatica.Default_17.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs index db6606db..aceeaa32 100644 --- a/Acumatica.Default_17.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs +++ b/Acumatica.Default_17.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InterBranchAccountMappingTransactionInSourceBranchDetail - /// - [DataContract] - public partial class InterBranchAccountMappingTransactionInSourceBranchDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountFrom. - /// accountTo. - /// branchID. - /// destinationBranch. - /// lineNbr. - /// offsetAccount. - /// offsetSubaccount. - public InterBranchAccountMappingTransactionInSourceBranchDetail(StringValue accountFrom = default(StringValue), StringValue accountTo = default(StringValue), IntValue branchID = default(IntValue), StringValue destinationBranch = default(StringValue), IntValue lineNbr = default(IntValue), StringValue offsetAccount = default(StringValue), StringValue offsetSubaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountFrom = accountFrom; - this.AccountTo = accountTo; - this.BranchID = branchID; - this.DestinationBranch = destinationBranch; - this.LineNbr = lineNbr; - this.OffsetAccount = offsetAccount; - this.OffsetSubaccount = offsetSubaccount; - } - - /// - /// Gets or Sets AccountFrom - /// - [DataMember(Name="AccountFrom", EmitDefaultValue=false)] - public StringValue AccountFrom { get; set; } - - /// - /// Gets or Sets AccountTo - /// - [DataMember(Name="AccountTo", EmitDefaultValue=false)] - public StringValue AccountTo { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public IntValue BranchID { get; set; } - - /// - /// Gets or Sets DestinationBranch - /// - [DataMember(Name="DestinationBranch", EmitDefaultValue=false)] - public StringValue DestinationBranch { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets OffsetAccount - /// - [DataMember(Name="OffsetAccount", EmitDefaultValue=false)] - public StringValue OffsetAccount { get; set; } + [DataContract] + public partial class InterBranchAccountMappingTransactionInSourceBranchDetail : Entity + { - /// - /// Gets or Sets OffsetSubaccount - /// - [DataMember(Name="OffsetSubaccount", EmitDefaultValue=false)] - public StringValue OffsetSubaccount { get; set; } + [DataMember(Name="AccountFrom", EmitDefaultValue=false)] + public StringValue AccountFrom { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InterBranchAccountMappingTransactionInSourceBranchDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountFrom: ").Append(AccountFrom).Append("\n"); - sb.Append(" AccountTo: ").Append(AccountTo).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" DestinationBranch: ").Append(DestinationBranch).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" OffsetAccount: ").Append(OffsetAccount).Append("\n"); - sb.Append(" OffsetSubaccount: ").Append(OffsetSubaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="AccountTo", EmitDefaultValue=false)] + public StringValue AccountTo { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InterBranchAccountMappingTransactionInSourceBranchDetail); - } + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public IntValue BranchID { get; set; } - /// - /// Returns true if InterBranchAccountMappingTransactionInSourceBranchDetail instances are equal - /// - /// Instance of InterBranchAccountMappingTransactionInSourceBranchDetail to be compared - /// Boolean - public bool Equals(InterBranchAccountMappingTransactionInSourceBranchDetail input) - { - if (input == null) - return false; + [DataMember(Name="DestinationBranch", EmitDefaultValue=false)] + public StringValue DestinationBranch { get; set; } - return base.Equals(input) && - ( - this.AccountFrom == input.AccountFrom || - (this.AccountFrom != null && - this.AccountFrom.Equals(input.AccountFrom)) - ) && base.Equals(input) && - ( - this.AccountTo == input.AccountTo || - (this.AccountTo != null && - this.AccountTo.Equals(input.AccountTo)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.DestinationBranch == input.DestinationBranch || - (this.DestinationBranch != null && - this.DestinationBranch.Equals(input.DestinationBranch)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.OffsetAccount == input.OffsetAccount || - (this.OffsetAccount != null && - this.OffsetAccount.Equals(input.OffsetAccount)) - ) && base.Equals(input) && - ( - this.OffsetSubaccount == input.OffsetSubaccount || - (this.OffsetSubaccount != null && - this.OffsetSubaccount.Equals(input.OffsetSubaccount)) - ); - } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountFrom != null) - hashCode = hashCode * 59 + this.AccountFrom.GetHashCode(); - if (this.AccountTo != null) - hashCode = hashCode * 59 + this.AccountTo.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.DestinationBranch != null) - hashCode = hashCode * 59 + this.DestinationBranch.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.OffsetAccount != null) - hashCode = hashCode * 59 + this.OffsetAccount.GetHashCode(); - if (this.OffsetSubaccount != null) - hashCode = hashCode * 59 + this.OffsetSubaccount.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="OffsetAccount", EmitDefaultValue=false)] + public StringValue OffsetAccount { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="OffsetSubaccount", EmitDefaultValue=false)] + public StringValue OffsetSubaccount { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InventoryAllocationInquiry.cs b/Acumatica.Default_17.200.001/Model/InventoryAllocationInquiry.cs index bab5d6ba..c0ec0289 100644 --- a/Acumatica.Default_17.200.001/Model/InventoryAllocationInquiry.cs +++ b/Acumatica.Default_17.200.001/Model/InventoryAllocationInquiry.cs @@ -1,590 +1,102 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InventoryAllocationInquiry - /// - [DataContract] - public partial class InventoryAllocationInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// available. - /// availableForIssue. - /// availableForShipping. - /// baseUnit. - /// inTransit. - /// inTransitToSO. - /// inventoryID. - /// inventoryIssues. - /// inventoryReceipts. - /// kitAssemblyDemand. - /// kitAssemblySupply. - /// location. - /// onHand. - /// onLocationNotAvailable. - /// purchaseForSO. - /// purchaseForSOPrepared. - /// purchaseOrders. - /// purchasePrepared. - /// purchaseReceipts. - /// receiptsForSO. - /// results. - /// sOAllocated. - /// sOBackOrdered. - /// sOBooked. - /// sOPrepared. - /// sOShipped. - /// sOToPurchase. - /// totalAddition. - /// totalDeduction. - /// warehouseID. - public InventoryAllocationInquiry(DecimalValue available = default(DecimalValue), DecimalValue availableForIssue = default(DecimalValue), DecimalValue availableForShipping = default(DecimalValue), StringValue baseUnit = default(StringValue), DecimalValue inTransit = default(DecimalValue), DecimalValue inTransitToSO = default(DecimalValue), StringValue inventoryID = default(StringValue), DecimalValue inventoryIssues = default(DecimalValue), DecimalValue inventoryReceipts = default(DecimalValue), DecimalValue kitAssemblyDemand = default(DecimalValue), DecimalValue kitAssemblySupply = default(DecimalValue), StringValue location = default(StringValue), DecimalValue onHand = default(DecimalValue), DecimalValue onLocationNotAvailable = default(DecimalValue), DecimalValue purchaseForSO = default(DecimalValue), DecimalValue purchaseForSOPrepared = default(DecimalValue), DecimalValue purchaseOrders = default(DecimalValue), DecimalValue purchasePrepared = default(DecimalValue), DecimalValue purchaseReceipts = default(DecimalValue), DecimalValue receiptsForSO = default(DecimalValue), List results = default(List), DecimalValue sOAllocated = default(DecimalValue), DecimalValue sOBackOrdered = default(DecimalValue), DecimalValue sOBooked = default(DecimalValue), DecimalValue sOPrepared = default(DecimalValue), DecimalValue sOShipped = default(DecimalValue), DecimalValue sOToPurchase = default(DecimalValue), DecimalValue totalAddition = default(DecimalValue), DecimalValue totalDeduction = default(DecimalValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Available = available; - this.AvailableForIssue = availableForIssue; - this.AvailableForShipping = availableForShipping; - this.BaseUnit = baseUnit; - this.InTransit = inTransit; - this.InTransitToSO = inTransitToSO; - this.InventoryID = inventoryID; - this.InventoryIssues = inventoryIssues; - this.InventoryReceipts = inventoryReceipts; - this.KitAssemblyDemand = kitAssemblyDemand; - this.KitAssemblySupply = kitAssemblySupply; - this.Location = location; - this.OnHand = onHand; - this.OnLocationNotAvailable = onLocationNotAvailable; - this.PurchaseForSO = purchaseForSO; - this.PurchaseForSOPrepared = purchaseForSOPrepared; - this.PurchaseOrders = purchaseOrders; - this.PurchasePrepared = purchasePrepared; - this.PurchaseReceipts = purchaseReceipts; - this.ReceiptsForSO = receiptsForSO; - this.Results = results; - this.SOAllocated = sOAllocated; - this.SOBackOrdered = sOBackOrdered; - this.SOBooked = sOBooked; - this.SOPrepared = sOPrepared; - this.SOShipped = sOShipped; - this.SOToPurchase = sOToPurchase; - this.TotalAddition = totalAddition; - this.TotalDeduction = totalDeduction; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Available - /// - [DataMember(Name="Available", EmitDefaultValue=false)] - public DecimalValue Available { get; set; } - - /// - /// Gets or Sets AvailableForIssue - /// - [DataMember(Name="AvailableForIssue", EmitDefaultValue=false)] - public DecimalValue AvailableForIssue { get; set; } - - /// - /// Gets or Sets AvailableForShipping - /// - [DataMember(Name="AvailableForShipping", EmitDefaultValue=false)] - public DecimalValue AvailableForShipping { get; set; } - - /// - /// Gets or Sets BaseUnit - /// - [DataMember(Name="BaseUnit", EmitDefaultValue=false)] - public StringValue BaseUnit { get; set; } - - /// - /// Gets or Sets InTransit - /// - [DataMember(Name="InTransit", EmitDefaultValue=false)] - public DecimalValue InTransit { get; set; } - - /// - /// Gets or Sets InTransitToSO - /// - [DataMember(Name="InTransitToSO", EmitDefaultValue=false)] - public DecimalValue InTransitToSO { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets InventoryIssues - /// - [DataMember(Name="InventoryIssues", EmitDefaultValue=false)] - public DecimalValue InventoryIssues { get; set; } - - /// - /// Gets or Sets InventoryReceipts - /// - [DataMember(Name="InventoryReceipts", EmitDefaultValue=false)] - public DecimalValue InventoryReceipts { get; set; } - - /// - /// Gets or Sets KitAssemblyDemand - /// - [DataMember(Name="KitAssemblyDemand", EmitDefaultValue=false)] - public DecimalValue KitAssemblyDemand { get; set; } - - /// - /// Gets or Sets KitAssemblySupply - /// - [DataMember(Name="KitAssemblySupply", EmitDefaultValue=false)] - public DecimalValue KitAssemblySupply { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets OnHand - /// - [DataMember(Name="OnHand", EmitDefaultValue=false)] - public DecimalValue OnHand { get; set; } - - /// - /// Gets or Sets OnLocationNotAvailable - /// - [DataMember(Name="OnLocationNotAvailable", EmitDefaultValue=false)] - public DecimalValue OnLocationNotAvailable { get; set; } - - /// - /// Gets or Sets PurchaseForSO - /// - [DataMember(Name="PurchaseForSO", EmitDefaultValue=false)] - public DecimalValue PurchaseForSO { get; set; } - - /// - /// Gets or Sets PurchaseForSOPrepared - /// - [DataMember(Name="PurchaseForSOPrepared", EmitDefaultValue=false)] - public DecimalValue PurchaseForSOPrepared { get; set; } - - /// - /// Gets or Sets PurchaseOrders - /// - [DataMember(Name="PurchaseOrders", EmitDefaultValue=false)] - public DecimalValue PurchaseOrders { get; set; } - - /// - /// Gets or Sets PurchasePrepared - /// - [DataMember(Name="PurchasePrepared", EmitDefaultValue=false)] - public DecimalValue PurchasePrepared { get; set; } - - /// - /// Gets or Sets PurchaseReceipts - /// - [DataMember(Name="PurchaseReceipts", EmitDefaultValue=false)] - public DecimalValue PurchaseReceipts { get; set; } - - /// - /// Gets or Sets ReceiptsForSO - /// - [DataMember(Name="ReceiptsForSO", EmitDefaultValue=false)] - public DecimalValue ReceiptsForSO { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public List Results { get; set; } - - /// - /// Gets or Sets SOAllocated - /// - [DataMember(Name="SOAllocated", EmitDefaultValue=false)] - public DecimalValue SOAllocated { get; set; } - - /// - /// Gets or Sets SOBackOrdered - /// - [DataMember(Name="SOBackOrdered", EmitDefaultValue=false)] - public DecimalValue SOBackOrdered { get; set; } - - /// - /// Gets or Sets SOBooked - /// - [DataMember(Name="SOBooked", EmitDefaultValue=false)] - public DecimalValue SOBooked { get; set; } - - /// - /// Gets or Sets SOPrepared - /// - [DataMember(Name="SOPrepared", EmitDefaultValue=false)] - public DecimalValue SOPrepared { get; set; } - - /// - /// Gets or Sets SOShipped - /// - [DataMember(Name="SOShipped", EmitDefaultValue=false)] - public DecimalValue SOShipped { get; set; } - - /// - /// Gets or Sets SOToPurchase - /// - [DataMember(Name="SOToPurchase", EmitDefaultValue=false)] - public DecimalValue SOToPurchase { get; set; } - - /// - /// Gets or Sets TotalAddition - /// - [DataMember(Name="TotalAddition", EmitDefaultValue=false)] - public DecimalValue TotalAddition { get; set; } - - /// - /// Gets or Sets TotalDeduction - /// - [DataMember(Name="TotalDeduction", EmitDefaultValue=false)] - public DecimalValue TotalDeduction { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryAllocationInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Available: ").Append(Available).Append("\n"); - sb.Append(" AvailableForIssue: ").Append(AvailableForIssue).Append("\n"); - sb.Append(" AvailableForShipping: ").Append(AvailableForShipping).Append("\n"); - sb.Append(" BaseUnit: ").Append(BaseUnit).Append("\n"); - sb.Append(" InTransit: ").Append(InTransit).Append("\n"); - sb.Append(" InTransitToSO: ").Append(InTransitToSO).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" InventoryIssues: ").Append(InventoryIssues).Append("\n"); - sb.Append(" InventoryReceipts: ").Append(InventoryReceipts).Append("\n"); - sb.Append(" KitAssemblyDemand: ").Append(KitAssemblyDemand).Append("\n"); - sb.Append(" KitAssemblySupply: ").Append(KitAssemblySupply).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" OnHand: ").Append(OnHand).Append("\n"); - sb.Append(" OnLocationNotAvailable: ").Append(OnLocationNotAvailable).Append("\n"); - sb.Append(" PurchaseForSO: ").Append(PurchaseForSO).Append("\n"); - sb.Append(" PurchaseForSOPrepared: ").Append(PurchaseForSOPrepared).Append("\n"); - sb.Append(" PurchaseOrders: ").Append(PurchaseOrders).Append("\n"); - sb.Append(" PurchasePrepared: ").Append(PurchasePrepared).Append("\n"); - sb.Append(" PurchaseReceipts: ").Append(PurchaseReceipts).Append("\n"); - sb.Append(" ReceiptsForSO: ").Append(ReceiptsForSO).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" SOAllocated: ").Append(SOAllocated).Append("\n"); - sb.Append(" SOBackOrdered: ").Append(SOBackOrdered).Append("\n"); - sb.Append(" SOBooked: ").Append(SOBooked).Append("\n"); - sb.Append(" SOPrepared: ").Append(SOPrepared).Append("\n"); - sb.Append(" SOShipped: ").Append(SOShipped).Append("\n"); - sb.Append(" SOToPurchase: ").Append(SOToPurchase).Append("\n"); - sb.Append(" TotalAddition: ").Append(TotalAddition).Append("\n"); - sb.Append(" TotalDeduction: ").Append(TotalDeduction).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryAllocationInquiry); - } - - /// - /// Returns true if InventoryAllocationInquiry instances are equal - /// - /// Instance of InventoryAllocationInquiry to be compared - /// Boolean - public bool Equals(InventoryAllocationInquiry input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Available == input.Available || - (this.Available != null && - this.Available.Equals(input.Available)) - ) && base.Equals(input) && - ( - this.AvailableForIssue == input.AvailableForIssue || - (this.AvailableForIssue != null && - this.AvailableForIssue.Equals(input.AvailableForIssue)) - ) && base.Equals(input) && - ( - this.AvailableForShipping == input.AvailableForShipping || - (this.AvailableForShipping != null && - this.AvailableForShipping.Equals(input.AvailableForShipping)) - ) && base.Equals(input) && - ( - this.BaseUnit == input.BaseUnit || - (this.BaseUnit != null && - this.BaseUnit.Equals(input.BaseUnit)) - ) && base.Equals(input) && - ( - this.InTransit == input.InTransit || - (this.InTransit != null && - this.InTransit.Equals(input.InTransit)) - ) && base.Equals(input) && - ( - this.InTransitToSO == input.InTransitToSO || - (this.InTransitToSO != null && - this.InTransitToSO.Equals(input.InTransitToSO)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.InventoryIssues == input.InventoryIssues || - (this.InventoryIssues != null && - this.InventoryIssues.Equals(input.InventoryIssues)) - ) && base.Equals(input) && - ( - this.InventoryReceipts == input.InventoryReceipts || - (this.InventoryReceipts != null && - this.InventoryReceipts.Equals(input.InventoryReceipts)) - ) && base.Equals(input) && - ( - this.KitAssemblyDemand == input.KitAssemblyDemand || - (this.KitAssemblyDemand != null && - this.KitAssemblyDemand.Equals(input.KitAssemblyDemand)) - ) && base.Equals(input) && - ( - this.KitAssemblySupply == input.KitAssemblySupply || - (this.KitAssemblySupply != null && - this.KitAssemblySupply.Equals(input.KitAssemblySupply)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.OnHand == input.OnHand || - (this.OnHand != null && - this.OnHand.Equals(input.OnHand)) - ) && base.Equals(input) && - ( - this.OnLocationNotAvailable == input.OnLocationNotAvailable || - (this.OnLocationNotAvailable != null && - this.OnLocationNotAvailable.Equals(input.OnLocationNotAvailable)) - ) && base.Equals(input) && - ( - this.PurchaseForSO == input.PurchaseForSO || - (this.PurchaseForSO != null && - this.PurchaseForSO.Equals(input.PurchaseForSO)) - ) && base.Equals(input) && - ( - this.PurchaseForSOPrepared == input.PurchaseForSOPrepared || - (this.PurchaseForSOPrepared != null && - this.PurchaseForSOPrepared.Equals(input.PurchaseForSOPrepared)) - ) && base.Equals(input) && - ( - this.PurchaseOrders == input.PurchaseOrders || - (this.PurchaseOrders != null && - this.PurchaseOrders.Equals(input.PurchaseOrders)) - ) && base.Equals(input) && - ( - this.PurchasePrepared == input.PurchasePrepared || - (this.PurchasePrepared != null && - this.PurchasePrepared.Equals(input.PurchasePrepared)) - ) && base.Equals(input) && - ( - this.PurchaseReceipts == input.PurchaseReceipts || - (this.PurchaseReceipts != null && - this.PurchaseReceipts.Equals(input.PurchaseReceipts)) - ) && base.Equals(input) && - ( - this.ReceiptsForSO == input.ReceiptsForSO || - (this.ReceiptsForSO != null && - this.ReceiptsForSO.Equals(input.ReceiptsForSO)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.SOAllocated == input.SOAllocated || - (this.SOAllocated != null && - this.SOAllocated.Equals(input.SOAllocated)) - ) && base.Equals(input) && - ( - this.SOBackOrdered == input.SOBackOrdered || - (this.SOBackOrdered != null && - this.SOBackOrdered.Equals(input.SOBackOrdered)) - ) && base.Equals(input) && - ( - this.SOBooked == input.SOBooked || - (this.SOBooked != null && - this.SOBooked.Equals(input.SOBooked)) - ) && base.Equals(input) && - ( - this.SOPrepared == input.SOPrepared || - (this.SOPrepared != null && - this.SOPrepared.Equals(input.SOPrepared)) - ) && base.Equals(input) && - ( - this.SOShipped == input.SOShipped || - (this.SOShipped != null && - this.SOShipped.Equals(input.SOShipped)) - ) && base.Equals(input) && - ( - this.SOToPurchase == input.SOToPurchase || - (this.SOToPurchase != null && - this.SOToPurchase.Equals(input.SOToPurchase)) - ) && base.Equals(input) && - ( - this.TotalAddition == input.TotalAddition || - (this.TotalAddition != null && - this.TotalAddition.Equals(input.TotalAddition)) - ) && base.Equals(input) && - ( - this.TotalDeduction == input.TotalDeduction || - (this.TotalDeduction != null && - this.TotalDeduction.Equals(input.TotalDeduction)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Available != null) - hashCode = hashCode * 59 + this.Available.GetHashCode(); - if (this.AvailableForIssue != null) - hashCode = hashCode * 59 + this.AvailableForIssue.GetHashCode(); - if (this.AvailableForShipping != null) - hashCode = hashCode * 59 + this.AvailableForShipping.GetHashCode(); - if (this.BaseUnit != null) - hashCode = hashCode * 59 + this.BaseUnit.GetHashCode(); - if (this.InTransit != null) - hashCode = hashCode * 59 + this.InTransit.GetHashCode(); - if (this.InTransitToSO != null) - hashCode = hashCode * 59 + this.InTransitToSO.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.InventoryIssues != null) - hashCode = hashCode * 59 + this.InventoryIssues.GetHashCode(); - if (this.InventoryReceipts != null) - hashCode = hashCode * 59 + this.InventoryReceipts.GetHashCode(); - if (this.KitAssemblyDemand != null) - hashCode = hashCode * 59 + this.KitAssemblyDemand.GetHashCode(); - if (this.KitAssemblySupply != null) - hashCode = hashCode * 59 + this.KitAssemblySupply.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.OnHand != null) - hashCode = hashCode * 59 + this.OnHand.GetHashCode(); - if (this.OnLocationNotAvailable != null) - hashCode = hashCode * 59 + this.OnLocationNotAvailable.GetHashCode(); - if (this.PurchaseForSO != null) - hashCode = hashCode * 59 + this.PurchaseForSO.GetHashCode(); - if (this.PurchaseForSOPrepared != null) - hashCode = hashCode * 59 + this.PurchaseForSOPrepared.GetHashCode(); - if (this.PurchaseOrders != null) - hashCode = hashCode * 59 + this.PurchaseOrders.GetHashCode(); - if (this.PurchasePrepared != null) - hashCode = hashCode * 59 + this.PurchasePrepared.GetHashCode(); - if (this.PurchaseReceipts != null) - hashCode = hashCode * 59 + this.PurchaseReceipts.GetHashCode(); - if (this.ReceiptsForSO != null) - hashCode = hashCode * 59 + this.ReceiptsForSO.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.SOAllocated != null) - hashCode = hashCode * 59 + this.SOAllocated.GetHashCode(); - if (this.SOBackOrdered != null) - hashCode = hashCode * 59 + this.SOBackOrdered.GetHashCode(); - if (this.SOBooked != null) - hashCode = hashCode * 59 + this.SOBooked.GetHashCode(); - if (this.SOPrepared != null) - hashCode = hashCode * 59 + this.SOPrepared.GetHashCode(); - if (this.SOShipped != null) - hashCode = hashCode * 59 + this.SOShipped.GetHashCode(); - if (this.SOToPurchase != null) - hashCode = hashCode * 59 + this.SOToPurchase.GetHashCode(); - if (this.TotalAddition != null) - hashCode = hashCode * 59 + this.TotalAddition.GetHashCode(); - if (this.TotalDeduction != null) - hashCode = hashCode * 59 + this.TotalDeduction.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class InventoryAllocationInquiry : Entity + { + + [DataMember(Name="Available", EmitDefaultValue=false)] + public DecimalValue Available { get; set; } + + [DataMember(Name="AvailableForIssue", EmitDefaultValue=false)] + public DecimalValue AvailableForIssue { get; set; } + + [DataMember(Name="AvailableForShipping", EmitDefaultValue=false)] + public DecimalValue AvailableForShipping { get; set; } + + [DataMember(Name="BaseUnit", EmitDefaultValue=false)] + public StringValue BaseUnit { get; set; } + + [DataMember(Name="InTransit", EmitDefaultValue=false)] + public DecimalValue InTransit { get; set; } + + [DataMember(Name="InTransitToSO", EmitDefaultValue=false)] + public DecimalValue InTransitToSO { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="InventoryIssues", EmitDefaultValue=false)] + public DecimalValue InventoryIssues { get; set; } + + [DataMember(Name="InventoryReceipts", EmitDefaultValue=false)] + public DecimalValue InventoryReceipts { get; set; } + + [DataMember(Name="KitAssemblyDemand", EmitDefaultValue=false)] + public DecimalValue KitAssemblyDemand { get; set; } + + [DataMember(Name="KitAssemblySupply", EmitDefaultValue=false)] + public DecimalValue KitAssemblySupply { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="OnHand", EmitDefaultValue=false)] + public DecimalValue OnHand { get; set; } + + [DataMember(Name="OnLocationNotAvailable", EmitDefaultValue=false)] + public DecimalValue OnLocationNotAvailable { get; set; } + + [DataMember(Name="PurchaseForSO", EmitDefaultValue=false)] + public DecimalValue PurchaseForSO { get; set; } + + [DataMember(Name="PurchaseForSOPrepared", EmitDefaultValue=false)] + public DecimalValue PurchaseForSOPrepared { get; set; } + + [DataMember(Name="PurchaseOrders", EmitDefaultValue=false)] + public DecimalValue PurchaseOrders { get; set; } + + [DataMember(Name="PurchasePrepared", EmitDefaultValue=false)] + public DecimalValue PurchasePrepared { get; set; } + + [DataMember(Name="PurchaseReceipts", EmitDefaultValue=false)] + public DecimalValue PurchaseReceipts { get; set; } + + [DataMember(Name="ReceiptsForSO", EmitDefaultValue=false)] + public DecimalValue ReceiptsForSO { get; set; } + + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } + + [DataMember(Name="SOAllocated", EmitDefaultValue=false)] + public DecimalValue SOAllocated { get; set; } + + [DataMember(Name="SOBackOrdered", EmitDefaultValue=false)] + public DecimalValue SOBackOrdered { get; set; } + + [DataMember(Name="SOBooked", EmitDefaultValue=false)] + public DecimalValue SOBooked { get; set; } + + [DataMember(Name="SOPrepared", EmitDefaultValue=false)] + public DecimalValue SOPrepared { get; set; } + + [DataMember(Name="SOShipped", EmitDefaultValue=false)] + public DecimalValue SOShipped { get; set; } + + [DataMember(Name="SOToPurchase", EmitDefaultValue=false)] + public DecimalValue SOToPurchase { get; set; } + + [DataMember(Name="TotalAddition", EmitDefaultValue=false)] + public DecimalValue TotalAddition { get; set; } + + [DataMember(Name="TotalDeduction", EmitDefaultValue=false)] + public DecimalValue TotalDeduction { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InventoryAllocationRow.cs b/Acumatica.Default_17.200.001/Model/InventoryAllocationRow.cs index 317090ac..cfb5fc76 100644 --- a/Acumatica.Default_17.200.001/Model/InventoryAllocationRow.cs +++ b/Acumatica.Default_17.200.001/Model/InventoryAllocationRow.cs @@ -1,238 +1,36 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InventoryAllocationRow - /// - [DataContract] - public partial class InventoryAllocationRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocationDate. - /// allocationType. - /// docType. - /// expired. - /// location. - /// lotSerialNbr. - /// module. - /// qty. - public InventoryAllocationRow(DateTimeValue allocationDate = default(DateTimeValue), StringValue allocationType = default(StringValue), StringValue docType = default(StringValue), BooleanValue expired = default(BooleanValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), StringValue module = default(StringValue), DecimalValue qty = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllocationDate = allocationDate; - this.AllocationType = allocationType; - this.DocType = docType; - this.Expired = expired; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.Module = module; - this.Qty = qty; - } - - /// - /// Gets or Sets AllocationDate - /// - [DataMember(Name="AllocationDate", EmitDefaultValue=false)] - public DateTimeValue AllocationDate { get; set; } - - /// - /// Gets or Sets AllocationType - /// - [DataMember(Name="AllocationType", EmitDefaultValue=false)] - public StringValue AllocationType { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets Expired - /// - [DataMember(Name="Expired", EmitDefaultValue=false)] - public BooleanValue Expired { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataContract] + public partial class InventoryAllocationRow : Entity + { - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } + [DataMember(Name="AllocationDate", EmitDefaultValue=false)] + public DateTimeValue AllocationDate { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="AllocationType", EmitDefaultValue=false)] + public StringValue AllocationType { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryAllocationRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllocationDate: ").Append(AllocationDate).Append("\n"); - sb.Append(" AllocationType: ").Append(AllocationType).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" Expired: ").Append(Expired).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryAllocationRow); - } + [DataMember(Name="Expired", EmitDefaultValue=false)] + public BooleanValue Expired { get; set; } - /// - /// Returns true if InventoryAllocationRow instances are equal - /// - /// Instance of InventoryAllocationRow to be compared - /// Boolean - public bool Equals(InventoryAllocationRow input) - { - if (input == null) - return false; + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - return base.Equals(input) && - ( - this.AllocationDate == input.AllocationDate || - (this.AllocationDate != null && - this.AllocationDate.Equals(input.AllocationDate)) - ) && base.Equals(input) && - ( - this.AllocationType == input.AllocationType || - (this.AllocationType != null && - this.AllocationType.Equals(input.AllocationType)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.Expired == input.Expired || - (this.Expired != null && - this.Expired.Equals(input.Expired)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ); - } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllocationDate != null) - hashCode = hashCode * 59 + this.AllocationDate.GetHashCode(); - if (this.AllocationType != null) - hashCode = hashCode * 59 + this.AllocationType.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.Expired != null) - hashCode = hashCode * 59 + this.Expired.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InventoryItemCrossReference.cs b/Acumatica.Default_17.200.001/Model/InventoryItemCrossReference.cs index 0851ffd3..bf9fa9ba 100644 --- a/Acumatica.Default_17.200.001/Model/InventoryItemCrossReference.cs +++ b/Acumatica.Default_17.200.001/Model/InventoryItemCrossReference.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InventoryItemCrossReference - /// - [DataContract] - public partial class InventoryItemCrossReference : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// alternateID. - /// alternateType. - /// description. - /// subitem. - /// vendorOrCustomer. - public InventoryItemCrossReference(StringValue alternateID = default(StringValue), StringValue alternateType = default(StringValue), StringValue description = default(StringValue), StringValue subitem = default(StringValue), StringValue vendorOrCustomer = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AlternateID = alternateID; - this.AlternateType = alternateType; - this.Description = description; - this.Subitem = subitem; - this.VendorOrCustomer = vendorOrCustomer; - } - - /// - /// Gets or Sets AlternateID - /// - [DataMember(Name="AlternateID", EmitDefaultValue=false)] - public StringValue AlternateID { get; set; } - - /// - /// Gets or Sets AlternateType - /// - [DataMember(Name="AlternateType", EmitDefaultValue=false)] - public StringValue AlternateType { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets VendorOrCustomer - /// - [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] - public StringValue VendorOrCustomer { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryItemCrossReference {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AlternateID: ").Append(AlternateID).Append("\n"); - sb.Append(" AlternateType: ").Append(AlternateType).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" VendorOrCustomer: ").Append(VendorOrCustomer).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class InventoryItemCrossReference : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryItemCrossReference); - } + [DataMember(Name="AlternateID", EmitDefaultValue=false)] + public StringValue AlternateID { get; set; } - /// - /// Returns true if InventoryItemCrossReference instances are equal - /// - /// Instance of InventoryItemCrossReference to be compared - /// Boolean - public bool Equals(InventoryItemCrossReference input) - { - if (input == null) - return false; + [DataMember(Name="AlternateType", EmitDefaultValue=false)] + public StringValue AlternateType { get; set; } - return base.Equals(input) && - ( - this.AlternateID == input.AlternateID || - (this.AlternateID != null && - this.AlternateID.Equals(input.AlternateID)) - ) && base.Equals(input) && - ( - this.AlternateType == input.AlternateType || - (this.AlternateType != null && - this.AlternateType.Equals(input.AlternateType)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.VendorOrCustomer == input.VendorOrCustomer || - (this.VendorOrCustomer != null && - this.VendorOrCustomer.Equals(input.VendorOrCustomer)) - ); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AlternateID != null) - hashCode = hashCode * 59 + this.AlternateID.GetHashCode(); - if (this.AlternateType != null) - hashCode = hashCode * 59 + this.AlternateType.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.VendorOrCustomer != null) - hashCode = hashCode * 59 + this.VendorOrCustomer.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] + public StringValue VendorOrCustomer { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InventoryItemUOMConversion.cs b/Acumatica.Default_17.200.001/Model/InventoryItemUOMConversion.cs index ee8668d3..400e7837 100644 --- a/Acumatica.Default_17.200.001/Model/InventoryItemUOMConversion.cs +++ b/Acumatica.Default_17.200.001/Model/InventoryItemUOMConversion.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InventoryItemUOMConversion - /// - [DataContract] - public partial class InventoryItemUOMConversion : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// conversionFactor. - /// fromUOM. - /// multiplyOrDivide. - /// toUOM. - public InventoryItemUOMConversion(DecimalValue conversionFactor = default(DecimalValue), StringValue fromUOM = default(StringValue), StringValue multiplyOrDivide = default(StringValue), StringValue toUOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ConversionFactor = conversionFactor; - this.FromUOM = fromUOM; - this.MultiplyOrDivide = multiplyOrDivide; - this.ToUOM = toUOM; - } - - /// - /// Gets or Sets ConversionFactor - /// - [DataMember(Name="ConversionFactor", EmitDefaultValue=false)] - public DecimalValue ConversionFactor { get; set; } - - /// - /// Gets or Sets FromUOM - /// - [DataMember(Name="FromUOM", EmitDefaultValue=false)] - public StringValue FromUOM { get; set; } - - /// - /// Gets or Sets MultiplyOrDivide - /// - [DataMember(Name="MultiplyOrDivide", EmitDefaultValue=false)] - public StringValue MultiplyOrDivide { get; set; } - - /// - /// Gets or Sets ToUOM - /// - [DataMember(Name="ToUOM", EmitDefaultValue=false)] - public StringValue ToUOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryItemUOMConversion {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ConversionFactor: ").Append(ConversionFactor).Append("\n"); - sb.Append(" FromUOM: ").Append(FromUOM).Append("\n"); - sb.Append(" MultiplyOrDivide: ").Append(MultiplyOrDivide).Append("\n"); - sb.Append(" ToUOM: ").Append(ToUOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryItemUOMConversion); - } + [DataContract] + public partial class InventoryItemUOMConversion : Entity + { - /// - /// Returns true if InventoryItemUOMConversion instances are equal - /// - /// Instance of InventoryItemUOMConversion to be compared - /// Boolean - public bool Equals(InventoryItemUOMConversion input) - { - if (input == null) - return false; + [DataMember(Name="ConversionFactor", EmitDefaultValue=false)] + public DecimalValue ConversionFactor { get; set; } - return base.Equals(input) && - ( - this.ConversionFactor == input.ConversionFactor || - (this.ConversionFactor != null && - this.ConversionFactor.Equals(input.ConversionFactor)) - ) && base.Equals(input) && - ( - this.FromUOM == input.FromUOM || - (this.FromUOM != null && - this.FromUOM.Equals(input.FromUOM)) - ) && base.Equals(input) && - ( - this.MultiplyOrDivide == input.MultiplyOrDivide || - (this.MultiplyOrDivide != null && - this.MultiplyOrDivide.Equals(input.MultiplyOrDivide)) - ) && base.Equals(input) && - ( - this.ToUOM == input.ToUOM || - (this.ToUOM != null && - this.ToUOM.Equals(input.ToUOM)) - ); - } + [DataMember(Name="FromUOM", EmitDefaultValue=false)] + public StringValue FromUOM { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ConversionFactor != null) - hashCode = hashCode * 59 + this.ConversionFactor.GetHashCode(); - if (this.FromUOM != null) - hashCode = hashCode * 59 + this.FromUOM.GetHashCode(); - if (this.MultiplyOrDivide != null) - hashCode = hashCode * 59 + this.MultiplyOrDivide.GetHashCode(); - if (this.ToUOM != null) - hashCode = hashCode * 59 + this.ToUOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="MultiplyOrDivide", EmitDefaultValue=false)] + public StringValue MultiplyOrDivide { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ToUOM", EmitDefaultValue=false)] + public StringValue ToUOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InventoryReceipt.cs b/Acumatica.Default_17.200.001/Model/InventoryReceipt.cs index 350dbb30..381c5f24 100644 --- a/Acumatica.Default_17.200.001/Model/InventoryReceipt.cs +++ b/Acumatica.Default_17.200.001/Model/InventoryReceipt.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InventoryReceipt - /// - [DataContract] - public partial class InventoryReceipt : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// controlCost. - /// controlQty. - /// date. - /// description. - /// details. - /// hold. - /// postPeriod. - /// referenceNbr. - /// status. - /// totalCost. - /// totalQty. - /// transferNbr. - public InventoryReceipt(DecimalValue controlCost = default(DecimalValue), DecimalValue controlQty = default(DecimalValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), List details = default(List), BooleanValue hold = default(BooleanValue), StringValue postPeriod = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalCost = default(DecimalValue), DecimalValue totalQty = default(DecimalValue), StringValue transferNbr = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ControlCost = controlCost; - this.ControlQty = controlQty; - this.Date = date; - this.Description = description; - this.Details = details; - this.Hold = hold; - this.PostPeriod = postPeriod; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TotalCost = totalCost; - this.TotalQty = totalQty; - this.TransferNbr = transferNbr; - } - - /// - /// Gets or Sets ControlCost - /// - [DataMember(Name="ControlCost", EmitDefaultValue=false)] - public DecimalValue ControlCost { get; set; } - - /// - /// Gets or Sets ControlQty - /// - [DataMember(Name="ControlQty", EmitDefaultValue=false)] - public DecimalValue ControlQty { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataContract] + public partial class InventoryReceipt : Entity + { - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="ControlCost", EmitDefaultValue=false)] + public DecimalValue ControlCost { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="ControlQty", EmitDefaultValue=false)] + public DecimalValue ControlQty { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets TotalCost - /// - [DataMember(Name="TotalCost", EmitDefaultValue=false)] - public DecimalValue TotalCost { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets TotalQty - /// - [DataMember(Name="TotalQty", EmitDefaultValue=false)] - public DecimalValue TotalQty { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets TransferNbr - /// - [DataMember(Name="TransferNbr", EmitDefaultValue=false)] - public StringValue TransferNbr { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryReceipt {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ControlCost: ").Append(ControlCost).Append("\n"); - sb.Append(" ControlQty: ").Append(ControlQty).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalCost: ").Append(TotalCost).Append("\n"); - sb.Append(" TotalQty: ").Append(TotalQty).Append("\n"); - sb.Append(" TransferNbr: ").Append(TransferNbr).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryReceipt); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Returns true if InventoryReceipt instances are equal - /// - /// Instance of InventoryReceipt to be compared - /// Boolean - public bool Equals(InventoryReceipt input) - { - if (input == null) - return false; + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - return base.Equals(input) && - ( - this.ControlCost == input.ControlCost || - (this.ControlCost != null && - this.ControlCost.Equals(input.ControlCost)) - ) && base.Equals(input) && - ( - this.ControlQty == input.ControlQty || - (this.ControlQty != null && - this.ControlQty.Equals(input.ControlQty)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalCost == input.TotalCost || - (this.TotalCost != null && - this.TotalCost.Equals(input.TotalCost)) - ) && base.Equals(input) && - ( - this.TotalQty == input.TotalQty || - (this.TotalQty != null && - this.TotalQty.Equals(input.TotalQty)) - ) && base.Equals(input) && - ( - this.TransferNbr == input.TransferNbr || - (this.TransferNbr != null && - this.TransferNbr.Equals(input.TransferNbr)) - ); - } + [DataMember(Name="TotalCost", EmitDefaultValue=false)] + public DecimalValue TotalCost { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ControlCost != null) - hashCode = hashCode * 59 + this.ControlCost.GetHashCode(); - if (this.ControlQty != null) - hashCode = hashCode * 59 + this.ControlQty.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalCost != null) - hashCode = hashCode * 59 + this.TotalCost.GetHashCode(); - if (this.TotalQty != null) - hashCode = hashCode * 59 + this.TotalQty.GetHashCode(); - if (this.TransferNbr != null) - hashCode = hashCode * 59 + this.TransferNbr.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TotalQty", EmitDefaultValue=false)] + public DecimalValue TotalQty { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TransferNbr", EmitDefaultValue=false)] + public StringValue TransferNbr { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InventoryReceiptDetail.cs b/Acumatica.Default_17.200.001/Model/InventoryReceiptDetail.cs index e1a0d590..f998aa5b 100644 --- a/Acumatica.Default_17.200.001/Model/InventoryReceiptDetail.cs +++ b/Acumatica.Default_17.200.001/Model/InventoryReceiptDetail.cs @@ -1,318 +1,51 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InventoryReceiptDetail - /// - [DataContract] - public partial class InventoryReceiptDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocations. - /// description. - /// expirationDate. - /// extCost. - /// inventoryID. - /// lineNumber. - /// location. - /// lotSerialNbr. - /// qty. - /// subitem. - /// unitCost. - /// uOM. - /// warehouseID. - public InventoryReceiptDetail(List allocations = default(List), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), DecimalValue extCost = default(DecimalValue), StringValue inventoryID = default(StringValue), IntValue lineNumber = default(IntValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subitem = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocations = allocations; - this.Description = description; - this.ExpirationDate = expirationDate; - this.ExtCost = extCost; - this.InventoryID = inventoryID; - this.LineNumber = lineNumber; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.Subitem = subitem; - this.UnitCost = unitCost; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public List Allocations { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets ExtCost - /// - [DataMember(Name="ExtCost", EmitDefaultValue=false)] - public DecimalValue ExtCost { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNumber - /// - [DataMember(Name="LineNumber", EmitDefaultValue=false)] - public IntValue LineNumber { get; set; } + [DataContract] + public partial class InventoryReceiptDetail : Entity + { - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="ExtCost", EmitDefaultValue=false)] + public DecimalValue ExtCost { get; set; } - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="LineNumber", EmitDefaultValue=false)] + public IntValue LineNumber { get; set; } - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryReceiptDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" ExtCost: ").Append(ExtCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNumber: ").Append(LineNumber).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryReceiptDetail); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if InventoryReceiptDetail instances are equal - /// - /// Instance of InventoryReceiptDetail to be compared - /// Boolean - public bool Equals(InventoryReceiptDetail input) - { - if (input == null) - return false; + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - return base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.ExtCost == input.ExtCost || - (this.ExtCost != null && - this.ExtCost.Equals(input.ExtCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNumber == input.LineNumber || - (this.LineNumber != null && - this.LineNumber.Equals(input.LineNumber)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.ExtCost != null) - hashCode = hashCode * 59 + this.ExtCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNumber != null) - hashCode = hashCode * 59 + this.LineNumber.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InventoryReceiptDetailAllocation.cs b/Acumatica.Default_17.200.001/Model/InventoryReceiptDetailAllocation.cs index 3dcfbefe..3f6caf68 100644 --- a/Acumatica.Default_17.200.001/Model/InventoryReceiptDetailAllocation.cs +++ b/Acumatica.Default_17.200.001/Model/InventoryReceiptDetailAllocation.cs @@ -1,238 +1,36 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InventoryReceiptDetailAllocation - /// - [DataContract] - public partial class InventoryReceiptDetailAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// expirationDate. - /// inventoryID. - /// location. - /// lotSerialNbr. - /// qty. - /// splitLineNumber. - /// subitem. - /// uOM. - public InventoryReceiptDetailAllocation(DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), IntValue splitLineNumber = default(IntValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.SplitLineNumber = splitLineNumber; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets SplitLineNumber - /// - [DataMember(Name="SplitLineNumber", EmitDefaultValue=false)] - public IntValue SplitLineNumber { get; set; } + [DataContract] + public partial class InventoryReceiptDetailAllocation : Entity + { - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryReceiptDetailAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" SplitLineNumber: ").Append(SplitLineNumber).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryReceiptDetailAllocation); - } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Returns true if InventoryReceiptDetailAllocation instances are equal - /// - /// Instance of InventoryReceiptDetailAllocation to be compared - /// Boolean - public bool Equals(InventoryReceiptDetailAllocation input) - { - if (input == null) - return false; + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - return base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.SplitLineNumber == input.SplitLineNumber || - (this.SplitLineNumber != null && - this.SplitLineNumber.Equals(input.SplitLineNumber)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="SplitLineNumber", EmitDefaultValue=false)] + public IntValue SplitLineNumber { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.SplitLineNumber != null) - hashCode = hashCode * 59 + this.SplitLineNumber.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InventorySummaryInquiry.cs b/Acumatica.Default_17.200.001/Model/InventorySummaryInquiry.cs index 90e80f91..fc833437 100644 --- a/Acumatica.Default_17.200.001/Model/InventorySummaryInquiry.cs +++ b/Acumatica.Default_17.200.001/Model/InventorySummaryInquiry.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InventorySummaryInquiry - /// - [DataContract] - public partial class InventorySummaryInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// expandByLotSerialNbr. - /// inventoryID. - /// locationID. - /// results. - /// subitem. - /// warehouseID. - public InventorySummaryInquiry(BooleanValue expandByLotSerialNbr = default(BooleanValue), StringValue inventoryID = default(StringValue), StringValue locationID = default(StringValue), List results = default(List), StringValue subitem = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ExpandByLotSerialNbr = expandByLotSerialNbr; - this.InventoryID = inventoryID; - this.LocationID = locationID; - this.Results = results; - this.Subitem = subitem; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets ExpandByLotSerialNbr - /// - [DataMember(Name="ExpandByLotSerialNbr", EmitDefaultValue=false)] - public BooleanValue ExpandByLotSerialNbr { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public List Results { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } + [DataContract] + public partial class InventorySummaryInquiry : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventorySummaryInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ExpandByLotSerialNbr: ").Append(ExpandByLotSerialNbr).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ExpandByLotSerialNbr", EmitDefaultValue=false)] + public BooleanValue ExpandByLotSerialNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventorySummaryInquiry); - } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Returns true if InventorySummaryInquiry instances are equal - /// - /// Instance of InventorySummaryInquiry to be compared - /// Boolean - public bool Equals(InventorySummaryInquiry input) - { - if (input == null) - return false; + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - return base.Equals(input) && - ( - this.ExpandByLotSerialNbr == input.ExpandByLotSerialNbr || - (this.ExpandByLotSerialNbr != null && - this.ExpandByLotSerialNbr.Equals(input.ExpandByLotSerialNbr)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ExpandByLotSerialNbr != null) - hashCode = hashCode * 59 + this.ExpandByLotSerialNbr.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InventorySummaryRow.cs b/Acumatica.Default_17.200.001/Model/InventorySummaryRow.cs index 86141a8d..3c03eb0e 100644 --- a/Acumatica.Default_17.200.001/Model/InventorySummaryRow.cs +++ b/Acumatica.Default_17.200.001/Model/InventorySummaryRow.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InventorySummaryRow - /// - [DataContract] - public partial class InventorySummaryRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// baseUOM. - /// estimatedTotalCost. - /// estimatedUnitCost. - /// expirationDate. - /// locationID. - /// lotSerialNbr. - /// qtyAvailable. - /// qtyAvailableForShipment. - /// qtyNotAvailable. - /// qtyOnHand. - /// subitem. - /// warehouseID. - public InventorySummaryRow(StringValue baseUOM = default(StringValue), DecimalValue estimatedTotalCost = default(DecimalValue), DecimalValue estimatedUnitCost = default(DecimalValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qtyAvailable = default(DecimalValue), DecimalValue qtyAvailableForShipment = default(DecimalValue), DecimalValue qtyNotAvailable = default(DecimalValue), DecimalValue qtyOnHand = default(DecimalValue), StringValue subitem = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BaseUOM = baseUOM; - this.EstimatedTotalCost = estimatedTotalCost; - this.EstimatedUnitCost = estimatedUnitCost; - this.ExpirationDate = expirationDate; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.QtyAvailable = qtyAvailable; - this.QtyAvailableForShipment = qtyAvailableForShipment; - this.QtyNotAvailable = qtyNotAvailable; - this.QtyOnHand = qtyOnHand; - this.Subitem = subitem; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets BaseUOM - /// - [DataMember(Name="BaseUOM", EmitDefaultValue=false)] - public StringValue BaseUOM { get; set; } - - /// - /// Gets or Sets EstimatedTotalCost - /// - [DataMember(Name="EstimatedTotalCost", EmitDefaultValue=false)] - public DecimalValue EstimatedTotalCost { get; set; } - - /// - /// Gets or Sets EstimatedUnitCost - /// - [DataMember(Name="EstimatedUnitCost", EmitDefaultValue=false)] - public DecimalValue EstimatedUnitCost { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataContract] + public partial class InventorySummaryRow : Entity + { - /// - /// Gets or Sets QtyAvailable - /// - [DataMember(Name="QtyAvailable", EmitDefaultValue=false)] - public DecimalValue QtyAvailable { get; set; } + [DataMember(Name="BaseUOM", EmitDefaultValue=false)] + public StringValue BaseUOM { get; set; } - /// - /// Gets or Sets QtyAvailableForShipment - /// - [DataMember(Name="QtyAvailableForShipment", EmitDefaultValue=false)] - public DecimalValue QtyAvailableForShipment { get; set; } + [DataMember(Name="EstimatedTotalCost", EmitDefaultValue=false)] + public DecimalValue EstimatedTotalCost { get; set; } - /// - /// Gets or Sets QtyNotAvailable - /// - [DataMember(Name="QtyNotAvailable", EmitDefaultValue=false)] - public DecimalValue QtyNotAvailable { get; set; } + [DataMember(Name="EstimatedUnitCost", EmitDefaultValue=false)] + public DecimalValue EstimatedUnitCost { get; set; } - /// - /// Gets or Sets QtyOnHand - /// - [DataMember(Name="QtyOnHand", EmitDefaultValue=false)] - public DecimalValue QtyOnHand { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventorySummaryRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BaseUOM: ").Append(BaseUOM).Append("\n"); - sb.Append(" EstimatedTotalCost: ").Append(EstimatedTotalCost).Append("\n"); - sb.Append(" EstimatedUnitCost: ").Append(EstimatedUnitCost).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" QtyAvailable: ").Append(QtyAvailable).Append("\n"); - sb.Append(" QtyAvailableForShipment: ").Append(QtyAvailableForShipment).Append("\n"); - sb.Append(" QtyNotAvailable: ").Append(QtyNotAvailable).Append("\n"); - sb.Append(" QtyOnHand: ").Append(QtyOnHand).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="QtyAvailable", EmitDefaultValue=false)] + public DecimalValue QtyAvailable { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventorySummaryRow); - } + [DataMember(Name="QtyAvailableForShipment", EmitDefaultValue=false)] + public DecimalValue QtyAvailableForShipment { get; set; } - /// - /// Returns true if InventorySummaryRow instances are equal - /// - /// Instance of InventorySummaryRow to be compared - /// Boolean - public bool Equals(InventorySummaryRow input) - { - if (input == null) - return false; + [DataMember(Name="QtyNotAvailable", EmitDefaultValue=false)] + public DecimalValue QtyNotAvailable { get; set; } - return base.Equals(input) && - ( - this.BaseUOM == input.BaseUOM || - (this.BaseUOM != null && - this.BaseUOM.Equals(input.BaseUOM)) - ) && base.Equals(input) && - ( - this.EstimatedTotalCost == input.EstimatedTotalCost || - (this.EstimatedTotalCost != null && - this.EstimatedTotalCost.Equals(input.EstimatedTotalCost)) - ) && base.Equals(input) && - ( - this.EstimatedUnitCost == input.EstimatedUnitCost || - (this.EstimatedUnitCost != null && - this.EstimatedUnitCost.Equals(input.EstimatedUnitCost)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.QtyAvailable == input.QtyAvailable || - (this.QtyAvailable != null && - this.QtyAvailable.Equals(input.QtyAvailable)) - ) && base.Equals(input) && - ( - this.QtyAvailableForShipment == input.QtyAvailableForShipment || - (this.QtyAvailableForShipment != null && - this.QtyAvailableForShipment.Equals(input.QtyAvailableForShipment)) - ) && base.Equals(input) && - ( - this.QtyNotAvailable == input.QtyNotAvailable || - (this.QtyNotAvailable != null && - this.QtyNotAvailable.Equals(input.QtyNotAvailable)) - ) && base.Equals(input) && - ( - this.QtyOnHand == input.QtyOnHand || - (this.QtyOnHand != null && - this.QtyOnHand.Equals(input.QtyOnHand)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } + [DataMember(Name="QtyOnHand", EmitDefaultValue=false)] + public DecimalValue QtyOnHand { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BaseUOM != null) - hashCode = hashCode * 59 + this.BaseUOM.GetHashCode(); - if (this.EstimatedTotalCost != null) - hashCode = hashCode * 59 + this.EstimatedTotalCost.GetHashCode(); - if (this.EstimatedUnitCost != null) - hashCode = hashCode * 59 + this.EstimatedUnitCost.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.QtyAvailable != null) - hashCode = hashCode * 59 + this.QtyAvailable.GetHashCode(); - if (this.QtyAvailableForShipment != null) - hashCode = hashCode * 59 + this.QtyAvailableForShipment.GetHashCode(); - if (this.QtyNotAvailable != null) - hashCode = hashCode * 59 + this.QtyNotAvailable.GetHashCode(); - if (this.QtyOnHand != null) - hashCode = hashCode * 59 + this.QtyOnHand.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Invoice.cs b/Acumatica.Default_17.200.001/Model/Invoice.cs index 9a914d22..132f8903 100644 --- a/Acumatica.Default_17.200.001/Model/Invoice.cs +++ b/Acumatica.Default_17.200.001/Model/Invoice.cs @@ -1,510 +1,87 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Invoice - /// - [DataContract] - public partial class Invoice : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// applicationsCreditMemo. - /// applicationsDefault. - /// balance. - /// billingPrinted. - /// createdDateTime. - /// customer. - /// customerOrder. - /// date. - /// description. - /// details. - /// dueDate. - /// hold. - /// lastModifiedDateTime. - /// linkARAccount. - /// linkBranch. - /// locationID. - /// postPeriod. - /// project. - /// referenceNbr. - /// status. - /// taxDetails. - /// taxTotal. - /// terms. - /// type. - public Invoice(DecimalValue amount = default(DecimalValue), List applicationsCreditMemo = default(List), List applicationsDefault = default(List), DecimalValue balance = default(DecimalValue), BooleanValue billingPrinted = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue customer = default(StringValue), StringValue customerOrder = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), List details = default(List), DateTimeValue dueDate = default(DateTimeValue), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue linkARAccount = default(StringValue), StringValue linkBranch = default(StringValue), StringValue locationID = default(StringValue), StringValue postPeriod = default(StringValue), StringValue project = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), List taxDetails = default(List), DecimalValue taxTotal = default(DecimalValue), StringValue terms = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.ApplicationsCreditMemo = applicationsCreditMemo; - this.ApplicationsDefault = applicationsDefault; - this.Balance = balance; - this.BillingPrinted = billingPrinted; - this.CreatedDateTime = createdDateTime; - this.Customer = customer; - this.CustomerOrder = customerOrder; - this.Date = date; - this.Description = description; - this.Details = details; - this.DueDate = dueDate; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LinkARAccount = linkARAccount; - this.LinkBranch = linkBranch; - this.LocationID = locationID; - this.PostPeriod = postPeriod; - this.Project = project; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TaxDetails = taxDetails; - this.TaxTotal = taxTotal; - this.Terms = terms; - this.Type = type; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets ApplicationsCreditMemo - /// - [DataMember(Name="ApplicationsCreditMemo", EmitDefaultValue=false)] - public List ApplicationsCreditMemo { get; set; } - - /// - /// Gets or Sets ApplicationsDefault - /// - [DataMember(Name="ApplicationsDefault", EmitDefaultValue=false)] - public List ApplicationsDefault { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets BillingPrinted - /// - [DataMember(Name="BillingPrinted", EmitDefaultValue=false)] - public BooleanValue BillingPrinted { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } + [DataContract] + public partial class Invoice : Entity + { - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } + [DataMember(Name="ApplicationsCreditMemo", EmitDefaultValue=false)] + public List ApplicationsCreditMemo { get; set; } - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } + [DataMember(Name="ApplicationsDefault", EmitDefaultValue=false)] + public List ApplicationsDefault { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } + [DataMember(Name="BillingPrinted", EmitDefaultValue=false)] + public BooleanValue BillingPrinted { get; set; } - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } - /// - /// Gets or Sets LinkARAccount - /// - [DataMember(Name="LinkARAccount", EmitDefaultValue=false)] - public StringValue LinkARAccount { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets LinkBranch - /// - [DataMember(Name="LinkBranch", EmitDefaultValue=false)] - public StringValue LinkBranch { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="LinkARAccount", EmitDefaultValue=false)] + public StringValue LinkARAccount { get; set; } - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public List TaxDetails { get; set; } + [DataMember(Name="LinkBranch", EmitDefaultValue=false)] + public StringValue LinkBranch { get; set; } - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Invoice {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" ApplicationsCreditMemo: ").Append(ApplicationsCreditMemo).Append("\n"); - sb.Append(" ApplicationsDefault: ").Append(ApplicationsDefault).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" BillingPrinted: ").Append(BillingPrinted).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LinkARAccount: ").Append(LinkARAccount).Append("\n"); - sb.Append(" LinkBranch: ").Append(LinkBranch).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Invoice); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns true if Invoice instances are equal - /// - /// Instance of Invoice to be compared - /// Boolean - public bool Equals(Invoice input) - { - if (input == null) - return false; + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.ApplicationsCreditMemo == input.ApplicationsCreditMemo || - this.ApplicationsCreditMemo != null && - this.ApplicationsCreditMemo.SequenceEqual(input.ApplicationsCreditMemo) - ) && base.Equals(input) && - ( - this.ApplicationsDefault == input.ApplicationsDefault || - this.ApplicationsDefault != null && - this.ApplicationsDefault.SequenceEqual(input.ApplicationsDefault) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.BillingPrinted == input.BillingPrinted || - (this.BillingPrinted != null && - this.BillingPrinted.Equals(input.BillingPrinted)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LinkARAccount == input.LinkARAccount || - (this.LinkARAccount != null && - this.LinkARAccount.Equals(input.LinkARAccount)) - ) && base.Equals(input) && - ( - this.LinkBranch == input.LinkBranch || - (this.LinkBranch != null && - this.LinkBranch.Equals(input.LinkBranch)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.ApplicationsCreditMemo != null) - hashCode = hashCode * 59 + this.ApplicationsCreditMemo.GetHashCode(); - if (this.ApplicationsDefault != null) - hashCode = hashCode * 59 + this.ApplicationsDefault.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.BillingPrinted != null) - hashCode = hashCode * 59 + this.BillingPrinted.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LinkARAccount != null) - hashCode = hashCode * 59 + this.LinkARAccount.GetHashCode(); - if (this.LinkBranch != null) - hashCode = hashCode * 59 + this.LinkBranch.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InvoiceApplicationsCreditMemo.cs b/Acumatica.Default_17.200.001/Model/InvoiceApplicationsCreditMemo.cs index 6399bffd..16f0f1eb 100644 --- a/Acumatica.Default_17.200.001/Model/InvoiceApplicationsCreditMemo.cs +++ b/Acumatica.Default_17.200.001/Model/InvoiceApplicationsCreditMemo.cs @@ -1,254 +1,39 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InvoiceApplicationsCreditMemo - /// - [DataContract] - public partial class InvoiceApplicationsCreditMemo : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// customer. - /// customerOrder. - /// description. - /// docType. - /// postPeriod. - /// referenceNbr. - /// status. - public InvoiceApplicationsCreditMemo(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), StringValue customer = default(StringValue), StringValue customerOrder = default(StringValue), StringValue description = default(StringValue), StringValue docType = default(StringValue), StringValue postPeriod = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.Customer = customer; - this.CustomerOrder = customerOrder; - this.Description = description; - this.DocType = docType; - this.PostPeriod = postPeriod; - this.ReferenceNbr = referenceNbr; - this.Status = status; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } + [DataContract] + public partial class InvoiceApplicationsCreditMemo : Entity + { - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InvoiceApplicationsCreditMemo {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InvoiceApplicationsCreditMemo); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if InvoiceApplicationsCreditMemo instances are equal - /// - /// Instance of InvoiceApplicationsCreditMemo to be compared - /// Boolean - public bool Equals(InvoiceApplicationsCreditMemo input) - { - if (input == null) - return false; + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InvoiceApplicationsDefault.cs b/Acumatica.Default_17.200.001/Model/InvoiceApplicationsDefault.cs index 61a9fd57..6e55b981 100644 --- a/Acumatica.Default_17.200.001/Model/InvoiceApplicationsDefault.cs +++ b/Acumatica.Default_17.200.001/Model/InvoiceApplicationsDefault.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InvoiceApplicationsDefault - /// - [DataContract] - public partial class InvoiceApplicationsDefault : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// cashDiscountTaken. - /// docType. - /// paymentDate. - /// referenceNbr. - /// status. - public InvoiceApplicationsDefault(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), DecimalValue cashDiscountTaken = default(DecimalValue), StringValue docType = default(StringValue), DateTimeValue paymentDate = default(DateTimeValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.CashDiscountTaken = cashDiscountTaken; - this.DocType = docType; - this.PaymentDate = paymentDate; - this.ReferenceNbr = referenceNbr; - this.Status = status; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashDiscountTaken - /// - [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] - public DecimalValue CashDiscountTaken { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets PaymentDate - /// - [DataMember(Name="PaymentDate", EmitDefaultValue=false)] - public DateTimeValue PaymentDate { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataContract] + public partial class InvoiceApplicationsDefault : Entity + { - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InvoiceApplicationsDefault {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashDiscountTaken: ").Append(CashDiscountTaken).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" PaymentDate: ").Append(PaymentDate).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InvoiceApplicationsDefault); - } + [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] + public DecimalValue CashDiscountTaken { get; set; } - /// - /// Returns true if InvoiceApplicationsDefault instances are equal - /// - /// Instance of InvoiceApplicationsDefault to be compared - /// Boolean - public bool Equals(InvoiceApplicationsDefault input) - { - if (input == null) - return false; + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashDiscountTaken == input.CashDiscountTaken || - (this.CashDiscountTaken != null && - this.CashDiscountTaken.Equals(input.CashDiscountTaken)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.PaymentDate == input.PaymentDate || - (this.PaymentDate != null && - this.PaymentDate.Equals(input.PaymentDate)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } + [DataMember(Name="PaymentDate", EmitDefaultValue=false)] + public DateTimeValue PaymentDate { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashDiscountTaken != null) - hashCode = hashCode * 59 + this.CashDiscountTaken.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.PaymentDate != null) - hashCode = hashCode * 59 + this.PaymentDate.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InvoiceDetail.cs b/Acumatica.Default_17.200.001/Model/InvoiceDetail.cs index a422efc8..90295a77 100644 --- a/Acumatica.Default_17.200.001/Model/InvoiceDetail.cs +++ b/Acumatica.Default_17.200.001/Model/InvoiceDetail.cs @@ -1,350 +1,57 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InvoiceDetail - /// - [DataContract] - public partial class InvoiceDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// amount. - /// branch. - /// discountAmount. - /// extendedPrice. - /// inventoryID. - /// lastModifiedDateTime. - /// lineNbr. - /// projectTask. - /// qty. - /// subaccount. - /// subitem. - /// transactionDescription. - /// unitPrice. - /// uOM. - public InvoiceDetail(StringValue account = default(StringValue), DecimalValue amount = default(DecimalValue), StringValue branch = default(StringValue), DecimalValue discountAmount = default(DecimalValue), DecimalValue extendedPrice = default(DecimalValue), StringValue inventoryID = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), IntValue lineNbr = default(IntValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subaccount = default(StringValue), StringValue subitem = default(StringValue), StringValue transactionDescription = default(StringValue), DecimalValue unitPrice = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Amount = amount; - this.Branch = branch; - this.DiscountAmount = discountAmount; - this.ExtendedPrice = extendedPrice; - this.InventoryID = inventoryID; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LineNbr = lineNbr; - this.ProjectTask = projectTask; - this.Qty = qty; - this.Subaccount = subaccount; - this.Subitem = subitem; - this.TransactionDescription = transactionDescription; - this.UnitPrice = unitPrice; - this.UOM = uOM; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets ExtendedPrice - /// - [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] - public DecimalValue ExtendedPrice { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } + [DataContract] + public partial class InvoiceDetail : Entity + { - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] + public DecimalValue ExtendedPrice { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InvoiceDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" ExtendedPrice: ").Append(ExtendedPrice).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InvoiceDetail); - } + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } - /// - /// Returns true if InvoiceDetail instances are equal - /// - /// Instance of InvoiceDetail to be compared - /// Boolean - public bool Equals(InvoiceDetail input) - { - if (input == null) - return false; + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.ExtendedPrice == input.ExtendedPrice || - (this.ExtendedPrice != null && - this.ExtendedPrice.Equals(input.ExtendedPrice)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.ExtendedPrice != null) - hashCode = hashCode * 59 + this.ExtendedPrice.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/InvoiceTaxDetail.cs b/Acumatica.Default_17.200.001/Model/InvoiceTaxDetail.cs index 6bd125be..23d70cb2 100644 --- a/Acumatica.Default_17.200.001/Model/InvoiceTaxDetail.cs +++ b/Acumatica.Default_17.200.001/Model/InvoiceTaxDetail.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// InvoiceTaxDetail - /// - [DataContract] - public partial class InvoiceTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - public InvoiceTaxDetail(DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InvoiceTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InvoiceTaxDetail); - } + [DataContract] + public partial class InvoiceTaxDetail : Entity + { - /// - /// Returns true if InvoiceTaxDetail instances are equal - /// - /// Instance of InvoiceTaxDetail to be compared - /// Boolean - public bool Equals(InvoiceTaxDetail input) - { - if (input == null) - return false; + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } - return base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ); - } + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ItemClass.cs b/Acumatica.Default_17.200.001/Model/ItemClass.cs index 73193ba8..86293e56 100644 --- a/Acumatica.Default_17.200.001/Model/ItemClass.cs +++ b/Acumatica.Default_17.200.001/Model/ItemClass.cs @@ -1,366 +1,60 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ItemClass - /// - [DataContract] - public partial class ItemClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributes. - /// availabilityCalculationRule. - /// baseUOM. - /// classID. - /// defaultWarehouseID. - /// description. - /// itemType. - /// lastModifiedDateTime. - /// lotSerialClass. - /// postingClass. - /// priceClass. - /// purchaseUOM. - /// salesUOM. - /// stockItem. - /// taxCategoryID. - /// valuationMethod. - public ItemClass(List attributes = default(List), StringValue availabilityCalculationRule = default(StringValue), StringValue baseUOM = default(StringValue), StringValue classID = default(StringValue), StringValue defaultWarehouseID = default(StringValue), StringValue description = default(StringValue), StringValue itemType = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue lotSerialClass = default(StringValue), StringValue postingClass = default(StringValue), StringValue priceClass = default(StringValue), StringValue purchaseUOM = default(StringValue), StringValue salesUOM = default(StringValue), BooleanValue stockItem = default(BooleanValue), StringValue taxCategoryID = default(StringValue), StringValue valuationMethod = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attributes = attributes; - this.AvailabilityCalculationRule = availabilityCalculationRule; - this.BaseUOM = baseUOM; - this.ClassID = classID; - this.DefaultWarehouseID = defaultWarehouseID; - this.Description = description; - this.ItemType = itemType; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LotSerialClass = lotSerialClass; - this.PostingClass = postingClass; - this.PriceClass = priceClass; - this.PurchaseUOM = purchaseUOM; - this.SalesUOM = salesUOM; - this.StockItem = stockItem; - this.TaxCategoryID = taxCategoryID; - this.ValuationMethod = valuationMethod; - } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets AvailabilityCalculationRule - /// - [DataMember(Name="AvailabilityCalculationRule", EmitDefaultValue=false)] - public StringValue AvailabilityCalculationRule { get; set; } - - /// - /// Gets or Sets BaseUOM - /// - [DataMember(Name="BaseUOM", EmitDefaultValue=false)] - public StringValue BaseUOM { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets DefaultWarehouseID - /// - [DataMember(Name="DefaultWarehouseID", EmitDefaultValue=false)] - public StringValue DefaultWarehouseID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataContract] + public partial class ItemClass : Entity + { - /// - /// Gets or Sets ItemType - /// - [DataMember(Name="ItemType", EmitDefaultValue=false)] - public StringValue ItemType { get; set; } + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="AvailabilityCalculationRule", EmitDefaultValue=false)] + public StringValue AvailabilityCalculationRule { get; set; } - /// - /// Gets or Sets LotSerialClass - /// - [DataMember(Name="LotSerialClass", EmitDefaultValue=false)] - public StringValue LotSerialClass { get; set; } + [DataMember(Name="BaseUOM", EmitDefaultValue=false)] + public StringValue BaseUOM { get; set; } - /// - /// Gets or Sets PostingClass - /// - [DataMember(Name="PostingClass", EmitDefaultValue=false)] - public StringValue PostingClass { get; set; } + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } + [DataMember(Name="DefaultWarehouseID", EmitDefaultValue=false)] + public StringValue DefaultWarehouseID { get; set; } - /// - /// Gets or Sets PurchaseUOM - /// - [DataMember(Name="PurchaseUOM", EmitDefaultValue=false)] - public StringValue PurchaseUOM { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets SalesUOM - /// - [DataMember(Name="SalesUOM", EmitDefaultValue=false)] - public StringValue SalesUOM { get; set; } + [DataMember(Name="ItemType", EmitDefaultValue=false)] + public StringValue ItemType { get; set; } - /// - /// Gets or Sets StockItem - /// - [DataMember(Name="StockItem", EmitDefaultValue=false)] - public BooleanValue StockItem { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets or Sets TaxCategoryID - /// - [DataMember(Name="TaxCategoryID", EmitDefaultValue=false)] - public StringValue TaxCategoryID { get; set; } + [DataMember(Name="LotSerialClass", EmitDefaultValue=false)] + public StringValue LotSerialClass { get; set; } - /// - /// Gets or Sets ValuationMethod - /// - [DataMember(Name="ValuationMethod", EmitDefaultValue=false)] - public StringValue ValuationMethod { get; set; } + [DataMember(Name="PostingClass", EmitDefaultValue=false)] + public StringValue PostingClass { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" AvailabilityCalculationRule: ").Append(AvailabilityCalculationRule).Append("\n"); - sb.Append(" BaseUOM: ").Append(BaseUOM).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" DefaultWarehouseID: ").Append(DefaultWarehouseID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LotSerialClass: ").Append(LotSerialClass).Append("\n"); - sb.Append(" PostingClass: ").Append(PostingClass).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" PurchaseUOM: ").Append(PurchaseUOM).Append("\n"); - sb.Append(" SalesUOM: ").Append(SalesUOM).Append("\n"); - sb.Append(" StockItem: ").Append(StockItem).Append("\n"); - sb.Append(" TaxCategoryID: ").Append(TaxCategoryID).Append("\n"); - sb.Append(" ValuationMethod: ").Append(ValuationMethod).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemClass); - } + [DataMember(Name="PurchaseUOM", EmitDefaultValue=false)] + public StringValue PurchaseUOM { get; set; } - /// - /// Returns true if ItemClass instances are equal - /// - /// Instance of ItemClass to be compared - /// Boolean - public bool Equals(ItemClass input) - { - if (input == null) - return false; + [DataMember(Name="SalesUOM", EmitDefaultValue=false)] + public StringValue SalesUOM { get; set; } - return base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.AvailabilityCalculationRule == input.AvailabilityCalculationRule || - (this.AvailabilityCalculationRule != null && - this.AvailabilityCalculationRule.Equals(input.AvailabilityCalculationRule)) - ) && base.Equals(input) && - ( - this.BaseUOM == input.BaseUOM || - (this.BaseUOM != null && - this.BaseUOM.Equals(input.BaseUOM)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.DefaultWarehouseID == input.DefaultWarehouseID || - (this.DefaultWarehouseID != null && - this.DefaultWarehouseID.Equals(input.DefaultWarehouseID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ItemType == input.ItemType || - (this.ItemType != null && - this.ItemType.Equals(input.ItemType)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LotSerialClass == input.LotSerialClass || - (this.LotSerialClass != null && - this.LotSerialClass.Equals(input.LotSerialClass)) - ) && base.Equals(input) && - ( - this.PostingClass == input.PostingClass || - (this.PostingClass != null && - this.PostingClass.Equals(input.PostingClass)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.PurchaseUOM == input.PurchaseUOM || - (this.PurchaseUOM != null && - this.PurchaseUOM.Equals(input.PurchaseUOM)) - ) && base.Equals(input) && - ( - this.SalesUOM == input.SalesUOM || - (this.SalesUOM != null && - this.SalesUOM.Equals(input.SalesUOM)) - ) && base.Equals(input) && - ( - this.StockItem == input.StockItem || - (this.StockItem != null && - this.StockItem.Equals(input.StockItem)) - ) && base.Equals(input) && - ( - this.TaxCategoryID == input.TaxCategoryID || - (this.TaxCategoryID != null && - this.TaxCategoryID.Equals(input.TaxCategoryID)) - ) && base.Equals(input) && - ( - this.ValuationMethod == input.ValuationMethod || - (this.ValuationMethod != null && - this.ValuationMethod.Equals(input.ValuationMethod)) - ); - } + [DataMember(Name="StockItem", EmitDefaultValue=false)] + public BooleanValue StockItem { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.AvailabilityCalculationRule != null) - hashCode = hashCode * 59 + this.AvailabilityCalculationRule.GetHashCode(); - if (this.BaseUOM != null) - hashCode = hashCode * 59 + this.BaseUOM.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.DefaultWarehouseID != null) - hashCode = hashCode * 59 + this.DefaultWarehouseID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ItemType != null) - hashCode = hashCode * 59 + this.ItemType.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LotSerialClass != null) - hashCode = hashCode * 59 + this.LotSerialClass.GetHashCode(); - if (this.PostingClass != null) - hashCode = hashCode * 59 + this.PostingClass.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.PurchaseUOM != null) - hashCode = hashCode * 59 + this.PurchaseUOM.GetHashCode(); - if (this.SalesUOM != null) - hashCode = hashCode * 59 + this.SalesUOM.GetHashCode(); - if (this.StockItem != null) - hashCode = hashCode * 59 + this.StockItem.GetHashCode(); - if (this.TaxCategoryID != null) - hashCode = hashCode * 59 + this.TaxCategoryID.GetHashCode(); - if (this.ValuationMethod != null) - hashCode = hashCode * 59 + this.ValuationMethod.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxCategoryID", EmitDefaultValue=false)] + public StringValue TaxCategoryID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ValuationMethod", EmitDefaultValue=false)] + public StringValue ValuationMethod { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ItemClassAtrribute.cs b/Acumatica.Default_17.200.001/Model/ItemClassAtrribute.cs index f5045b89..6ba2a0df 100644 --- a/Acumatica.Default_17.200.001/Model/ItemClassAtrribute.cs +++ b/Acumatica.Default_17.200.001/Model/ItemClassAtrribute.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ItemClassAtrribute - /// - [DataContract] - public partial class ItemClassAtrribute : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributeID. - /// required. - /// sortOrder. - public ItemClassAtrribute(StringValue attributeID = default(StringValue), BooleanValue required = default(BooleanValue), ShortValue sortOrder = default(ShortValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AttributeID = attributeID; - this.Required = required; - this.SortOrder = sortOrder; - } - - /// - /// Gets or Sets AttributeID - /// - [DataMember(Name="AttributeID", EmitDefaultValue=false)] - public StringValue AttributeID { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="Required", EmitDefaultValue=false)] - public BooleanValue Required { get; set; } - - /// - /// Gets or Sets SortOrder - /// - [DataMember(Name="SortOrder", EmitDefaultValue=false)] - public ShortValue SortOrder { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemClassAtrribute {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AttributeID: ").Append(AttributeID).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" SortOrder: ").Append(SortOrder).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemClassAtrribute); - } - - /// - /// Returns true if ItemClassAtrribute instances are equal - /// - /// Instance of ItemClassAtrribute to be compared - /// Boolean - public bool Equals(ItemClassAtrribute input) - { - if (input == null) - return false; + [DataContract] + public partial class ItemClassAtrribute : Entity + { - return base.Equals(input) && - ( - this.AttributeID == input.AttributeID || - (this.AttributeID != null && - this.AttributeID.Equals(input.AttributeID)) - ) && base.Equals(input) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && base.Equals(input) && - ( - this.SortOrder == input.SortOrder || - (this.SortOrder != null && - this.SortOrder.Equals(input.SortOrder)) - ); - } + [DataMember(Name="AttributeID", EmitDefaultValue=false)] + public StringValue AttributeID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AttributeID != null) - hashCode = hashCode * 59 + this.AttributeID.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.SortOrder != null) - hashCode = hashCode * 59 + this.SortOrder.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Required", EmitDefaultValue=false)] + public BooleanValue Required { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="SortOrder", EmitDefaultValue=false)] + public ShortValue SortOrder { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ItemPriceClassesDetails.cs b/Acumatica.Default_17.200.001/Model/ItemPriceClassesDetails.cs index 5d010ea2..1c7d6312 100644 --- a/Acumatica.Default_17.200.001/Model/ItemPriceClassesDetails.cs +++ b/Acumatica.Default_17.200.001/Model/ItemPriceClassesDetails.cs @@ -1,126 +1,15 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ItemPriceClassesDetails - /// - [DataContract] - public partial class ItemPriceClassesDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// priceClassID. - public ItemPriceClassesDetails(StringValue priceClassID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.PriceClassID = priceClassID; - } - - /// - /// Gets or Sets PriceClassID - /// - [DataMember(Name="PriceClassID", EmitDefaultValue=false)] - public StringValue PriceClassID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemPriceClassesDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" PriceClassID: ").Append(PriceClassID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemPriceClassesDetails); - } - - /// - /// Returns true if ItemPriceClassesDetails instances are equal - /// - /// Instance of ItemPriceClassesDetails to be compared - /// Boolean - public bool Equals(ItemPriceClassesDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.PriceClassID == input.PriceClassID || - (this.PriceClassID != null && - this.PriceClassID.Equals(input.PriceClassID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.PriceClassID != null) - hashCode = hashCode * 59 + this.PriceClassID.GetHashCode(); - return hashCode; - } - } + [DataContract] + public partial class ItemPriceClassesDetails : Entity + { - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="PriceClassID", EmitDefaultValue=false)] + public StringValue PriceClassID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ItemSalesCategory.cs b/Acumatica.Default_17.200.001/Model/ItemSalesCategory.cs index e0c23616..a6d0a048 100644 --- a/Acumatica.Default_17.200.001/Model/ItemSalesCategory.cs +++ b/Acumatica.Default_17.200.001/Model/ItemSalesCategory.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ItemSalesCategory - /// - [DataContract] - public partial class ItemSalesCategory : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// categoryID. - /// description. - /// lastModifiedDateTime. - /// members. - /// parentCategoryID. - /// path. - public ItemSalesCategory(IntValue categoryID = default(IntValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), List members = default(List), IntValue parentCategoryID = default(IntValue), StringValue path = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CategoryID = categoryID; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Members = members; - this.ParentCategoryID = parentCategoryID; - this.Path = path; - } - - /// - /// Gets or Sets CategoryID - /// - [DataMember(Name="CategoryID", EmitDefaultValue=false)] - public IntValue CategoryID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Members - /// - [DataMember(Name="Members", EmitDefaultValue=false)] - public List Members { get; set; } - - /// - /// Gets or Sets ParentCategoryID - /// - [DataMember(Name="ParentCategoryID", EmitDefaultValue=false)] - public IntValue ParentCategoryID { get; set; } - - /// - /// Gets or Sets Path - /// - [DataMember(Name="Path", EmitDefaultValue=false)] - public StringValue Path { get; set; } + [DataContract] + public partial class ItemSalesCategory : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemSalesCategory {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CategoryID: ").Append(CategoryID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Members: ").Append(Members).Append("\n"); - sb.Append(" ParentCategoryID: ").Append(ParentCategoryID).Append("\n"); - sb.Append(" Path: ").Append(Path).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CategoryID", EmitDefaultValue=false)] + public IntValue CategoryID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemSalesCategory); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if ItemSalesCategory instances are equal - /// - /// Instance of ItemSalesCategory to be compared - /// Boolean - public bool Equals(ItemSalesCategory input) - { - if (input == null) - return false; + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - return base.Equals(input) && - ( - this.CategoryID == input.CategoryID || - (this.CategoryID != null && - this.CategoryID.Equals(input.CategoryID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Members == input.Members || - this.Members != null && - this.Members.SequenceEqual(input.Members) - ) && base.Equals(input) && - ( - this.ParentCategoryID == input.ParentCategoryID || - (this.ParentCategoryID != null && - this.ParentCategoryID.Equals(input.ParentCategoryID)) - ) && base.Equals(input) && - ( - this.Path == input.Path || - (this.Path != null && - this.Path.Equals(input.Path)) - ); - } + [DataMember(Name="Members", EmitDefaultValue=false)] + public List Members { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CategoryID != null) - hashCode = hashCode * 59 + this.CategoryID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Members != null) - hashCode = hashCode * 59 + this.Members.GetHashCode(); - if (this.ParentCategoryID != null) - hashCode = hashCode * 59 + this.ParentCategoryID.GetHashCode(); - if (this.Path != null) - hashCode = hashCode * 59 + this.Path.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ParentCategoryID", EmitDefaultValue=false)] + public IntValue ParentCategoryID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Path", EmitDefaultValue=false)] + public StringValue Path { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ItemSalesCategoryMember.cs b/Acumatica.Default_17.200.001/Model/ItemSalesCategoryMember.cs index 220dd910..a36b2153 100644 --- a/Acumatica.Default_17.200.001/Model/ItemSalesCategoryMember.cs +++ b/Acumatica.Default_17.200.001/Model/ItemSalesCategoryMember.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ItemSalesCategoryMember - /// - [DataContract] - public partial class ItemSalesCategoryMember : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// inventoryID. - /// itemClass. - /// itemStatus. - public ItemSalesCategoryMember(StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), StringValue itemClass = default(StringValue), StringValue itemStatus = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.InventoryID = inventoryID; - this.ItemClass = itemClass; - this.ItemStatus = itemStatus; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets ItemClass - /// - [DataMember(Name="ItemClass", EmitDefaultValue=false)] - public StringValue ItemClass { get; set; } - - /// - /// Gets or Sets ItemStatus - /// - [DataMember(Name="ItemStatus", EmitDefaultValue=false)] - public StringValue ItemStatus { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemSalesCategoryMember {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" ItemClass: ").Append(ItemClass).Append("\n"); - sb.Append(" ItemStatus: ").Append(ItemStatus).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemSalesCategoryMember); - } + [DataContract] + public partial class ItemSalesCategoryMember : Entity + { - /// - /// Returns true if ItemSalesCategoryMember instances are equal - /// - /// Instance of ItemSalesCategoryMember to be compared - /// Boolean - public bool Equals(ItemSalesCategoryMember input) - { - if (input == null) - return false; + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.ItemClass == input.ItemClass || - (this.ItemClass != null && - this.ItemClass.Equals(input.ItemClass)) - ) && base.Equals(input) && - ( - this.ItemStatus == input.ItemStatus || - (this.ItemStatus != null && - this.ItemStatus.Equals(input.ItemStatus)) - ); - } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.ItemClass != null) - hashCode = hashCode * 59 + this.ItemClass.GetHashCode(); - if (this.ItemStatus != null) - hashCode = hashCode * 59 + this.ItemStatus.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ItemClass", EmitDefaultValue=false)] + public StringValue ItemClass { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ItemStatus", EmitDefaultValue=false)] + public StringValue ItemStatus { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ItemWarehouse.cs b/Acumatica.Default_17.200.001/Model/ItemWarehouse.cs index afb4154a..0b50a86b 100644 --- a/Acumatica.Default_17.200.001/Model/ItemWarehouse.cs +++ b/Acumatica.Default_17.200.001/Model/ItemWarehouse.cs @@ -1,542 +1,93 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ItemWarehouse - /// - [DataContract] - public partial class ItemWarehouse : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// defaultIssueFrom. - /// defaultReceiptTo. - /// defaultSubitem. - /// inventoryAccount. - /// inventoryID. - /// inventorySubaccount. - /// lastModifiedDateTime. - /// mSRP. - /// overrideInventoryAccountSubaccount. - /// overridePreferredVendor. - /// overridePrice. - /// overrideReplenishmentSettings. - /// overrideServiceLevelOverride. - /// overrideStandardCost. - /// preferredLocation. - /// preferredVendor. - /// productManager. - /// productWorkgroup. - /// replenishmentClass. - /// replenishmentMethod. - /// replenishmentSource. - /// replenishmentWarehouse. - /// seasonality. - /// serviceLevel. - /// status. - /// warehouseID. - public ItemWarehouse(DateTimeValue createdDateTime = default(DateTimeValue), StringValue defaultIssueFrom = default(StringValue), StringValue defaultReceiptTo = default(StringValue), StringValue defaultSubitem = default(StringValue), StringValue inventoryAccount = default(StringValue), StringValue inventoryID = default(StringValue), StringValue inventorySubaccount = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue mSRP = default(DecimalValue), BooleanValue overrideInventoryAccountSubaccount = default(BooleanValue), BooleanValue overridePreferredVendor = default(BooleanValue), BooleanValue overridePrice = default(BooleanValue), BooleanValue overrideReplenishmentSettings = default(BooleanValue), BooleanValue overrideServiceLevelOverride = default(BooleanValue), BooleanValue overrideStandardCost = default(BooleanValue), StringValue preferredLocation = default(StringValue), StringValue preferredVendor = default(StringValue), StringValue productManager = default(StringValue), StringValue productWorkgroup = default(StringValue), StringValue replenishmentClass = default(StringValue), StringValue replenishmentMethod = default(StringValue), StringValue replenishmentSource = default(StringValue), StringValue replenishmentWarehouse = default(StringValue), StringValue seasonality = default(StringValue), DecimalValue serviceLevel = default(DecimalValue), StringValue status = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.DefaultIssueFrom = defaultIssueFrom; - this.DefaultReceiptTo = defaultReceiptTo; - this.DefaultSubitem = defaultSubitem; - this.InventoryAccount = inventoryAccount; - this.InventoryID = inventoryID; - this.InventorySubaccount = inventorySubaccount; - this.LastModifiedDateTime = lastModifiedDateTime; - this.MSRP = mSRP; - this.OverrideInventoryAccountSubaccount = overrideInventoryAccountSubaccount; - this.OverridePreferredVendor = overridePreferredVendor; - this.OverridePrice = overridePrice; - this.OverrideReplenishmentSettings = overrideReplenishmentSettings; - this.OverrideServiceLevelOverride = overrideServiceLevelOverride; - this.OverrideStandardCost = overrideStandardCost; - this.PreferredLocation = preferredLocation; - this.PreferredVendor = preferredVendor; - this.ProductManager = productManager; - this.ProductWorkgroup = productWorkgroup; - this.ReplenishmentClass = replenishmentClass; - this.ReplenishmentMethod = replenishmentMethod; - this.ReplenishmentSource = replenishmentSource; - this.ReplenishmentWarehouse = replenishmentWarehouse; - this.Seasonality = seasonality; - this.ServiceLevel = serviceLevel; - this.Status = status; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets DefaultIssueFrom - /// - [DataMember(Name="DefaultIssueFrom", EmitDefaultValue=false)] - public StringValue DefaultIssueFrom { get; set; } - - /// - /// Gets or Sets DefaultReceiptTo - /// - [DataMember(Name="DefaultReceiptTo", EmitDefaultValue=false)] - public StringValue DefaultReceiptTo { get; set; } - - /// - /// Gets or Sets DefaultSubitem - /// - [DataMember(Name="DefaultSubitem", EmitDefaultValue=false)] - public StringValue DefaultSubitem { get; set; } - - /// - /// Gets or Sets InventoryAccount - /// - [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] - public StringValue InventoryAccount { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } + [DataContract] + public partial class ItemWarehouse : Entity + { - /// - /// Gets or Sets InventorySubaccount - /// - [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] - public StringValue InventorySubaccount { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="DefaultIssueFrom", EmitDefaultValue=false)] + public StringValue DefaultIssueFrom { get; set; } - /// - /// Gets or Sets MSRP - /// - [DataMember(Name="MSRP", EmitDefaultValue=false)] - public DecimalValue MSRP { get; set; } + [DataMember(Name="DefaultReceiptTo", EmitDefaultValue=false)] + public StringValue DefaultReceiptTo { get; set; } - /// - /// Gets or Sets OverrideInventoryAccountSubaccount - /// - [DataMember(Name="OverrideInventoryAccountSubaccount", EmitDefaultValue=false)] - public BooleanValue OverrideInventoryAccountSubaccount { get; set; } + [DataMember(Name="DefaultSubitem", EmitDefaultValue=false)] + public StringValue DefaultSubitem { get; set; } - /// - /// Gets or Sets OverridePreferredVendor - /// - [DataMember(Name="OverridePreferredVendor", EmitDefaultValue=false)] - public BooleanValue OverridePreferredVendor { get; set; } + [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] + public StringValue InventoryAccount { get; set; } - /// - /// Gets or Sets OverridePrice - /// - [DataMember(Name="OverridePrice", EmitDefaultValue=false)] - public BooleanValue OverridePrice { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets OverrideReplenishmentSettings - /// - [DataMember(Name="OverrideReplenishmentSettings", EmitDefaultValue=false)] - public BooleanValue OverrideReplenishmentSettings { get; set; } + [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] + public StringValue InventorySubaccount { get; set; } - /// - /// Gets or Sets OverrideServiceLevelOverride - /// - [DataMember(Name="OverrideServiceLevelOverride", EmitDefaultValue=false)] - public BooleanValue OverrideServiceLevelOverride { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets or Sets OverrideStandardCost - /// - [DataMember(Name="OverrideStandardCost", EmitDefaultValue=false)] - public BooleanValue OverrideStandardCost { get; set; } + [DataMember(Name="MSRP", EmitDefaultValue=false)] + public DecimalValue MSRP { get; set; } - /// - /// Gets or Sets PreferredLocation - /// - [DataMember(Name="PreferredLocation", EmitDefaultValue=false)] - public StringValue PreferredLocation { get; set; } + [DataMember(Name="OverrideInventoryAccountSubaccount", EmitDefaultValue=false)] + public BooleanValue OverrideInventoryAccountSubaccount { get; set; } - /// - /// Gets or Sets PreferredVendor - /// - [DataMember(Name="PreferredVendor", EmitDefaultValue=false)] - public StringValue PreferredVendor { get; set; } + [DataMember(Name="OverridePreferredVendor", EmitDefaultValue=false)] + public BooleanValue OverridePreferredVendor { get; set; } - /// - /// Gets or Sets ProductManager - /// - [DataMember(Name="ProductManager", EmitDefaultValue=false)] - public StringValue ProductManager { get; set; } + [DataMember(Name="OverridePrice", EmitDefaultValue=false)] + public BooleanValue OverridePrice { get; set; } - /// - /// Gets or Sets ProductWorkgroup - /// - [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] - public StringValue ProductWorkgroup { get; set; } + [DataMember(Name="OverrideReplenishmentSettings", EmitDefaultValue=false)] + public BooleanValue OverrideReplenishmentSettings { get; set; } - /// - /// Gets or Sets ReplenishmentClass - /// - [DataMember(Name="ReplenishmentClass", EmitDefaultValue=false)] - public StringValue ReplenishmentClass { get; set; } + [DataMember(Name="OverrideServiceLevelOverride", EmitDefaultValue=false)] + public BooleanValue OverrideServiceLevelOverride { get; set; } - /// - /// Gets or Sets ReplenishmentMethod - /// - [DataMember(Name="ReplenishmentMethod", EmitDefaultValue=false)] - public StringValue ReplenishmentMethod { get; set; } + [DataMember(Name="OverrideStandardCost", EmitDefaultValue=false)] + public BooleanValue OverrideStandardCost { get; set; } - /// - /// Gets or Sets ReplenishmentSource - /// - [DataMember(Name="ReplenishmentSource", EmitDefaultValue=false)] - public StringValue ReplenishmentSource { get; set; } + [DataMember(Name="PreferredLocation", EmitDefaultValue=false)] + public StringValue PreferredLocation { get; set; } - /// - /// Gets or Sets ReplenishmentWarehouse - /// - [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] - public StringValue ReplenishmentWarehouse { get; set; } + [DataMember(Name="PreferredVendor", EmitDefaultValue=false)] + public StringValue PreferredVendor { get; set; } - /// - /// Gets or Sets Seasonality - /// - [DataMember(Name="Seasonality", EmitDefaultValue=false)] - public StringValue Seasonality { get; set; } + [DataMember(Name="ProductManager", EmitDefaultValue=false)] + public StringValue ProductManager { get; set; } - /// - /// Gets or Sets ServiceLevel - /// - [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] - public DecimalValue ServiceLevel { get; set; } + [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] + public StringValue ProductWorkgroup { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="ReplenishmentClass", EmitDefaultValue=false)] + public StringValue ReplenishmentClass { get; set; } - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } + [DataMember(Name="ReplenishmentMethod", EmitDefaultValue=false)] + public StringValue ReplenishmentMethod { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemWarehouse {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" DefaultIssueFrom: ").Append(DefaultIssueFrom).Append("\n"); - sb.Append(" DefaultReceiptTo: ").Append(DefaultReceiptTo).Append("\n"); - sb.Append(" DefaultSubitem: ").Append(DefaultSubitem).Append("\n"); - sb.Append(" InventoryAccount: ").Append(InventoryAccount).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" InventorySubaccount: ").Append(InventorySubaccount).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" MSRP: ").Append(MSRP).Append("\n"); - sb.Append(" OverrideInventoryAccountSubaccount: ").Append(OverrideInventoryAccountSubaccount).Append("\n"); - sb.Append(" OverridePreferredVendor: ").Append(OverridePreferredVendor).Append("\n"); - sb.Append(" OverridePrice: ").Append(OverridePrice).Append("\n"); - sb.Append(" OverrideReplenishmentSettings: ").Append(OverrideReplenishmentSettings).Append("\n"); - sb.Append(" OverrideServiceLevelOverride: ").Append(OverrideServiceLevelOverride).Append("\n"); - sb.Append(" OverrideStandardCost: ").Append(OverrideStandardCost).Append("\n"); - sb.Append(" PreferredLocation: ").Append(PreferredLocation).Append("\n"); - sb.Append(" PreferredVendor: ").Append(PreferredVendor).Append("\n"); - sb.Append(" ProductManager: ").Append(ProductManager).Append("\n"); - sb.Append(" ProductWorkgroup: ").Append(ProductWorkgroup).Append("\n"); - sb.Append(" ReplenishmentClass: ").Append(ReplenishmentClass).Append("\n"); - sb.Append(" ReplenishmentMethod: ").Append(ReplenishmentMethod).Append("\n"); - sb.Append(" ReplenishmentSource: ").Append(ReplenishmentSource).Append("\n"); - sb.Append(" ReplenishmentWarehouse: ").Append(ReplenishmentWarehouse).Append("\n"); - sb.Append(" Seasonality: ").Append(Seasonality).Append("\n"); - sb.Append(" ServiceLevel: ").Append(ServiceLevel).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ReplenishmentSource", EmitDefaultValue=false)] + public StringValue ReplenishmentSource { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemWarehouse); - } + [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] + public StringValue ReplenishmentWarehouse { get; set; } - /// - /// Returns true if ItemWarehouse instances are equal - /// - /// Instance of ItemWarehouse to be compared - /// Boolean - public bool Equals(ItemWarehouse input) - { - if (input == null) - return false; + [DataMember(Name="Seasonality", EmitDefaultValue=false)] + public StringValue Seasonality { get; set; } - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.DefaultIssueFrom == input.DefaultIssueFrom || - (this.DefaultIssueFrom != null && - this.DefaultIssueFrom.Equals(input.DefaultIssueFrom)) - ) && base.Equals(input) && - ( - this.DefaultReceiptTo == input.DefaultReceiptTo || - (this.DefaultReceiptTo != null && - this.DefaultReceiptTo.Equals(input.DefaultReceiptTo)) - ) && base.Equals(input) && - ( - this.DefaultSubitem == input.DefaultSubitem || - (this.DefaultSubitem != null && - this.DefaultSubitem.Equals(input.DefaultSubitem)) - ) && base.Equals(input) && - ( - this.InventoryAccount == input.InventoryAccount || - (this.InventoryAccount != null && - this.InventoryAccount.Equals(input.InventoryAccount)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.InventorySubaccount == input.InventorySubaccount || - (this.InventorySubaccount != null && - this.InventorySubaccount.Equals(input.InventorySubaccount)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.MSRP == input.MSRP || - (this.MSRP != null && - this.MSRP.Equals(input.MSRP)) - ) && base.Equals(input) && - ( - this.OverrideInventoryAccountSubaccount == input.OverrideInventoryAccountSubaccount || - (this.OverrideInventoryAccountSubaccount != null && - this.OverrideInventoryAccountSubaccount.Equals(input.OverrideInventoryAccountSubaccount)) - ) && base.Equals(input) && - ( - this.OverridePreferredVendor == input.OverridePreferredVendor || - (this.OverridePreferredVendor != null && - this.OverridePreferredVendor.Equals(input.OverridePreferredVendor)) - ) && base.Equals(input) && - ( - this.OverridePrice == input.OverridePrice || - (this.OverridePrice != null && - this.OverridePrice.Equals(input.OverridePrice)) - ) && base.Equals(input) && - ( - this.OverrideReplenishmentSettings == input.OverrideReplenishmentSettings || - (this.OverrideReplenishmentSettings != null && - this.OverrideReplenishmentSettings.Equals(input.OverrideReplenishmentSettings)) - ) && base.Equals(input) && - ( - this.OverrideServiceLevelOverride == input.OverrideServiceLevelOverride || - (this.OverrideServiceLevelOverride != null && - this.OverrideServiceLevelOverride.Equals(input.OverrideServiceLevelOverride)) - ) && base.Equals(input) && - ( - this.OverrideStandardCost == input.OverrideStandardCost || - (this.OverrideStandardCost != null && - this.OverrideStandardCost.Equals(input.OverrideStandardCost)) - ) && base.Equals(input) && - ( - this.PreferredLocation == input.PreferredLocation || - (this.PreferredLocation != null && - this.PreferredLocation.Equals(input.PreferredLocation)) - ) && base.Equals(input) && - ( - this.PreferredVendor == input.PreferredVendor || - (this.PreferredVendor != null && - this.PreferredVendor.Equals(input.PreferredVendor)) - ) && base.Equals(input) && - ( - this.ProductManager == input.ProductManager || - (this.ProductManager != null && - this.ProductManager.Equals(input.ProductManager)) - ) && base.Equals(input) && - ( - this.ProductWorkgroup == input.ProductWorkgroup || - (this.ProductWorkgroup != null && - this.ProductWorkgroup.Equals(input.ProductWorkgroup)) - ) && base.Equals(input) && - ( - this.ReplenishmentClass == input.ReplenishmentClass || - (this.ReplenishmentClass != null && - this.ReplenishmentClass.Equals(input.ReplenishmentClass)) - ) && base.Equals(input) && - ( - this.ReplenishmentMethod == input.ReplenishmentMethod || - (this.ReplenishmentMethod != null && - this.ReplenishmentMethod.Equals(input.ReplenishmentMethod)) - ) && base.Equals(input) && - ( - this.ReplenishmentSource == input.ReplenishmentSource || - (this.ReplenishmentSource != null && - this.ReplenishmentSource.Equals(input.ReplenishmentSource)) - ) && base.Equals(input) && - ( - this.ReplenishmentWarehouse == input.ReplenishmentWarehouse || - (this.ReplenishmentWarehouse != null && - this.ReplenishmentWarehouse.Equals(input.ReplenishmentWarehouse)) - ) && base.Equals(input) && - ( - this.Seasonality == input.Seasonality || - (this.Seasonality != null && - this.Seasonality.Equals(input.Seasonality)) - ) && base.Equals(input) && - ( - this.ServiceLevel == input.ServiceLevel || - (this.ServiceLevel != null && - this.ServiceLevel.Equals(input.ServiceLevel)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } + [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] + public DecimalValue ServiceLevel { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.DefaultIssueFrom != null) - hashCode = hashCode * 59 + this.DefaultIssueFrom.GetHashCode(); - if (this.DefaultReceiptTo != null) - hashCode = hashCode * 59 + this.DefaultReceiptTo.GetHashCode(); - if (this.DefaultSubitem != null) - hashCode = hashCode * 59 + this.DefaultSubitem.GetHashCode(); - if (this.InventoryAccount != null) - hashCode = hashCode * 59 + this.InventoryAccount.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.InventorySubaccount != null) - hashCode = hashCode * 59 + this.InventorySubaccount.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.MSRP != null) - hashCode = hashCode * 59 + this.MSRP.GetHashCode(); - if (this.OverrideInventoryAccountSubaccount != null) - hashCode = hashCode * 59 + this.OverrideInventoryAccountSubaccount.GetHashCode(); - if (this.OverridePreferredVendor != null) - hashCode = hashCode * 59 + this.OverridePreferredVendor.GetHashCode(); - if (this.OverridePrice != null) - hashCode = hashCode * 59 + this.OverridePrice.GetHashCode(); - if (this.OverrideReplenishmentSettings != null) - hashCode = hashCode * 59 + this.OverrideReplenishmentSettings.GetHashCode(); - if (this.OverrideServiceLevelOverride != null) - hashCode = hashCode * 59 + this.OverrideServiceLevelOverride.GetHashCode(); - if (this.OverrideStandardCost != null) - hashCode = hashCode * 59 + this.OverrideStandardCost.GetHashCode(); - if (this.PreferredLocation != null) - hashCode = hashCode * 59 + this.PreferredLocation.GetHashCode(); - if (this.PreferredVendor != null) - hashCode = hashCode * 59 + this.PreferredVendor.GetHashCode(); - if (this.ProductManager != null) - hashCode = hashCode * 59 + this.ProductManager.GetHashCode(); - if (this.ProductWorkgroup != null) - hashCode = hashCode * 59 + this.ProductWorkgroup.GetHashCode(); - if (this.ReplenishmentClass != null) - hashCode = hashCode * 59 + this.ReplenishmentClass.GetHashCode(); - if (this.ReplenishmentMethod != null) - hashCode = hashCode * 59 + this.ReplenishmentMethod.GetHashCode(); - if (this.ReplenishmentSource != null) - hashCode = hashCode * 59 + this.ReplenishmentSource.GetHashCode(); - if (this.ReplenishmentWarehouse != null) - hashCode = hashCode * 59 + this.ReplenishmentWarehouse.GetHashCode(); - if (this.Seasonality != null) - hashCode = hashCode * 59 + this.Seasonality.GetHashCode(); - if (this.ServiceLevel != null) - hashCode = hashCode * 59 + this.ServiceLevel.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ItemsDetails.cs b/Acumatica.Default_17.200.001/Model/ItemsDetails.cs index fafcbe9a..748fbcc9 100644 --- a/Acumatica.Default_17.200.001/Model/ItemsDetails.cs +++ b/Acumatica.Default_17.200.001/Model/ItemsDetails.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ItemsDetails - /// - [DataContract] - public partial class ItemsDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// inventoryID. - public ItemsDetails(StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.InventoryID = inventoryID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemsDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemsDetails); - } - - /// - /// Returns true if ItemsDetails instances are equal - /// - /// Instance of ItemsDetails to be compared - /// Boolean - public bool Equals(ItemsDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ); - } + [DataContract] + public partial class ItemsDetails : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/JournalTransaction.cs b/Acumatica.Default_17.200.001/Model/JournalTransaction.cs index c35ef372..0f7691cc 100644 --- a/Acumatica.Default_17.200.001/Model/JournalTransaction.cs +++ b/Acumatica.Default_17.200.001/Model/JournalTransaction.cs @@ -1,318 +1,51 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// JournalTransaction - /// - [DataContract] - public partial class JournalTransaction : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// batchNbr. - /// branchID. - /// createdDateTime. - /// currencyID. - /// description. - /// details. - /// hold. - /// lastModifiedDateTime. - /// ledgerID. - /// module. - /// postPeriod. - /// status. - /// transactionDate. - public JournalTransaction(StringValue batchNbr = default(StringValue), StringValue branchID = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), List details = default(List), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue ledgerID = default(StringValue), StringValue module = default(StringValue), StringValue postPeriod = default(StringValue), StringValue status = default(StringValue), DateTimeValue transactionDate = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BatchNbr = batchNbr; - this.BranchID = branchID; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.Description = description; - this.Details = details; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LedgerID = ledgerID; - this.Module = module; - this.PostPeriod = postPeriod; - this.Status = status; - this.TransactionDate = transactionDate; - } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } + [DataContract] + public partial class JournalTransaction : Entity + { - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } - /// - /// Gets or Sets LedgerID - /// - [DataMember(Name="LedgerID", EmitDefaultValue=false)] - public StringValue LedgerID { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets TransactionDate - /// - [DataMember(Name="TransactionDate", EmitDefaultValue=false)] - public DateTimeValue TransactionDate { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalTransaction {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LedgerID: ").Append(LedgerID).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TransactionDate: ").Append(TransactionDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalTransaction); - } + [DataMember(Name="LedgerID", EmitDefaultValue=false)] + public StringValue LedgerID { get; set; } - /// - /// Returns true if JournalTransaction instances are equal - /// - /// Instance of JournalTransaction to be compared - /// Boolean - public bool Equals(JournalTransaction input) - { - if (input == null) - return false; + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } - return base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LedgerID == input.LedgerID || - (this.LedgerID != null && - this.LedgerID.Equals(input.LedgerID)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TransactionDate == input.TransactionDate || - (this.TransactionDate != null && - this.TransactionDate.Equals(input.TransactionDate)) - ); - } + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LedgerID != null) - hashCode = hashCode * 59 + this.LedgerID.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TransactionDate != null) - hashCode = hashCode * 59 + this.TransactionDate.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TransactionDate", EmitDefaultValue=false)] + public DateTimeValue TransactionDate { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/JournalTransactionDetail.cs b/Acumatica.Default_17.200.001/Model/JournalTransactionDetail.cs index 7fdeab29..bfa5a01c 100644 --- a/Acumatica.Default_17.200.001/Model/JournalTransactionDetail.cs +++ b/Acumatica.Default_17.200.001/Model/JournalTransactionDetail.cs @@ -1,350 +1,57 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// JournalTransactionDetail - /// - [DataContract] - public partial class JournalTransactionDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// branchID. - /// creditAmount. - /// debitAmount. - /// description. - /// lineNbr. - /// nonBillable. - /// project. - /// projectTask. - /// qty. - /// referenceNbr. - /// subaccount. - /// transactionDescription. - /// uOM. - /// vendorOrCustomer. - public JournalTransactionDetail(StringValue account = default(StringValue), StringValue branchID = default(StringValue), DecimalValue creditAmount = default(DecimalValue), DecimalValue debitAmount = default(DecimalValue), StringValue description = default(StringValue), IntValue lineNbr = default(IntValue), BooleanValue nonBillable = default(BooleanValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue referenceNbr = default(StringValue), StringValue subaccount = default(StringValue), StringValue transactionDescription = default(StringValue), StringValue uOM = default(StringValue), StringValue vendorOrCustomer = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.BranchID = branchID; - this.CreditAmount = creditAmount; - this.DebitAmount = debitAmount; - this.Description = description; - this.LineNbr = lineNbr; - this.NonBillable = nonBillable; - this.Project = project; - this.ProjectTask = projectTask; - this.Qty = qty; - this.ReferenceNbr = referenceNbr; - this.Subaccount = subaccount; - this.TransactionDescription = transactionDescription; - this.UOM = uOM; - this.VendorOrCustomer = vendorOrCustomer; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets CreditAmount - /// - [DataMember(Name="CreditAmount", EmitDefaultValue=false)] - public DecimalValue CreditAmount { get; set; } - - /// - /// Gets or Sets DebitAmount - /// - [DataMember(Name="DebitAmount", EmitDefaultValue=false)] - public DecimalValue DebitAmount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } + [DataContract] + public partial class JournalTransactionDetail : Entity + { - /// - /// Gets or Sets NonBillable - /// - [DataMember(Name="NonBillable", EmitDefaultValue=false)] - public BooleanValue NonBillable { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } + [DataMember(Name="CreditAmount", EmitDefaultValue=false)] + public DecimalValue CreditAmount { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="DebitAmount", EmitDefaultValue=false)] + public DecimalValue DebitAmount { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } + [DataMember(Name="NonBillable", EmitDefaultValue=false)] + public BooleanValue NonBillable { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } - /// - /// Gets or Sets VendorOrCustomer - /// - [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] - public StringValue VendorOrCustomer { get; set; } + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalTransactionDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" CreditAmount: ").Append(CreditAmount).Append("\n"); - sb.Append(" DebitAmount: ").Append(DebitAmount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" NonBillable: ").Append(NonBillable).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" VendorOrCustomer: ").Append(VendorOrCustomer).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalTransactionDetail); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Returns true if JournalTransactionDetail instances are equal - /// - /// Instance of JournalTransactionDetail to be compared - /// Boolean - public bool Equals(JournalTransactionDetail input) - { - if (input == null) - return false; + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.CreditAmount == input.CreditAmount || - (this.CreditAmount != null && - this.CreditAmount.Equals(input.CreditAmount)) - ) && base.Equals(input) && - ( - this.DebitAmount == input.DebitAmount || - (this.DebitAmount != null && - this.DebitAmount.Equals(input.DebitAmount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.NonBillable == input.NonBillable || - (this.NonBillable != null && - this.NonBillable.Equals(input.NonBillable)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.VendorOrCustomer == input.VendorOrCustomer || - (this.VendorOrCustomer != null && - this.VendorOrCustomer.Equals(input.VendorOrCustomer)) - ); - } + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.CreditAmount != null) - hashCode = hashCode * 59 + this.CreditAmount.GetHashCode(); - if (this.DebitAmount != null) - hashCode = hashCode * 59 + this.DebitAmount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.NonBillable != null) - hashCode = hashCode * 59 + this.NonBillable.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.VendorOrCustomer != null) - hashCode = hashCode * 59 + this.VendorOrCustomer.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] + public StringValue VendorOrCustomer { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/JournalVoucher.cs b/Acumatica.Default_17.200.001/Model/JournalVoucher.cs index 70ee5aa2..6d43cbb2 100644 --- a/Acumatica.Default_17.200.001/Model/JournalVoucher.cs +++ b/Acumatica.Default_17.200.001/Model/JournalVoucher.cs @@ -1,446 +1,75 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// JournalVoucher - /// - [DataContract] - public partial class JournalVoucher : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// baseCurrencyID. - /// batchNbr. - /// branch. - /// controlTotal. - /// createdDateTime. - /// creditTotal. - /// currencyID. - /// currencyRate. - /// currencyRateTypeID. - /// debitTotal. - /// description. - /// details. - /// effectiveDate. - /// hold. - /// gLTransactions. - /// lastModifiedDateTime. - /// ledger. - /// postPeriod. - /// reciprocalRate. - /// status. - /// transactionDate. - public JournalVoucher(StringValue baseCurrencyID = default(StringValue), StringValue batchNbr = default(StringValue), StringValue branch = default(StringValue), DecimalValue controlTotal = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), DecimalValue creditTotal = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue currencyRate = default(DecimalValue), StringValue currencyRateTypeID = default(StringValue), DecimalValue debitTotal = default(DecimalValue), StringValue description = default(StringValue), List details = default(List), DateTimeValue effectiveDate = default(DateTimeValue), BooleanValue hold = default(BooleanValue), List gLTransactions = default(List), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue ledger = default(StringValue), StringValue postPeriod = default(StringValue), DecimalValue reciprocalRate = default(DecimalValue), StringValue status = default(StringValue), DateTimeValue transactionDate = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BaseCurrencyID = baseCurrencyID; - this.BatchNbr = batchNbr; - this.Branch = branch; - this.ControlTotal = controlTotal; - this.CreatedDateTime = createdDateTime; - this.CreditTotal = creditTotal; - this.CurrencyID = currencyID; - this.CurrencyRate = currencyRate; - this.CurrencyRateTypeID = currencyRateTypeID; - this.DebitTotal = debitTotal; - this.Description = description; - this.Details = details; - this.EffectiveDate = effectiveDate; - this.Hold = hold; - this.GLTransactions = gLTransactions; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Ledger = ledger; - this.PostPeriod = postPeriod; - this.ReciprocalRate = reciprocalRate; - this.Status = status; - this.TransactionDate = transactionDate; - } - - /// - /// Gets or Sets BaseCurrencyID - /// - [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] - public StringValue BaseCurrencyID { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ControlTotal - /// - [DataMember(Name="ControlTotal", EmitDefaultValue=false)] - public DecimalValue ControlTotal { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CreditTotal - /// - [DataMember(Name="CreditTotal", EmitDefaultValue=false)] - public DecimalValue CreditTotal { get; set; } + [DataContract] + public partial class JournalVoucher : Entity + { - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } + [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] + public StringValue BaseCurrencyID { get; set; } - /// - /// Gets or Sets CurrencyRate - /// - [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] - public DecimalValue CurrencyRate { get; set; } + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } - /// - /// Gets or Sets CurrencyRateTypeID - /// - [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] - public StringValue CurrencyRateTypeID { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets DebitTotal - /// - [DataMember(Name="DebitTotal", EmitDefaultValue=false)] - public DecimalValue DebitTotal { get; set; } + [DataMember(Name="ControlTotal", EmitDefaultValue=false)] + public DecimalValue ControlTotal { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } + [DataMember(Name="CreditTotal", EmitDefaultValue=false)] + public DecimalValue CreditTotal { get; set; } - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] + public DecimalValue CurrencyRate { get; set; } - /// - /// Gets or Sets GLTransactions - /// - [DataMember(Name="GLTransactions", EmitDefaultValue=false)] - public List GLTransactions { get; set; } + [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] + public StringValue CurrencyRateTypeID { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="DebitTotal", EmitDefaultValue=false)] + public DecimalValue DebitTotal { get; set; } - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets ReciprocalRate - /// - [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] - public DecimalValue ReciprocalRate { get; set; } + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Gets or Sets TransactionDate - /// - [DataMember(Name="TransactionDate", EmitDefaultValue=false)] - public DateTimeValue TransactionDate { get; set; } + [DataMember(Name="GLTransactions", EmitDefaultValue=false)] + public List GLTransactions { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalVoucher {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BaseCurrencyID: ").Append(BaseCurrencyID).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ControlTotal: ").Append(ControlTotal).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CreditTotal: ").Append(CreditTotal).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n"); - sb.Append(" CurrencyRateTypeID: ").Append(CurrencyRateTypeID).Append("\n"); - sb.Append(" DebitTotal: ").Append(DebitTotal).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" GLTransactions: ").Append(GLTransactions).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReciprocalRate: ").Append(ReciprocalRate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TransactionDate: ").Append(TransactionDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalVoucher); - } + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } - /// - /// Returns true if JournalVoucher instances are equal - /// - /// Instance of JournalVoucher to be compared - /// Boolean - public bool Equals(JournalVoucher input) - { - if (input == null) - return false; + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - return base.Equals(input) && - ( - this.BaseCurrencyID == input.BaseCurrencyID || - (this.BaseCurrencyID != null && - this.BaseCurrencyID.Equals(input.BaseCurrencyID)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ControlTotal == input.ControlTotal || - (this.ControlTotal != null && - this.ControlTotal.Equals(input.ControlTotal)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CreditTotal == input.CreditTotal || - (this.CreditTotal != null && - this.CreditTotal.Equals(input.CreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRate == input.CurrencyRate || - (this.CurrencyRate != null && - this.CurrencyRate.Equals(input.CurrencyRate)) - ) && base.Equals(input) && - ( - this.CurrencyRateTypeID == input.CurrencyRateTypeID || - (this.CurrencyRateTypeID != null && - this.CurrencyRateTypeID.Equals(input.CurrencyRateTypeID)) - ) && base.Equals(input) && - ( - this.DebitTotal == input.DebitTotal || - (this.DebitTotal != null && - this.DebitTotal.Equals(input.DebitTotal)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.GLTransactions == input.GLTransactions || - this.GLTransactions != null && - this.GLTransactions.SequenceEqual(input.GLTransactions) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReciprocalRate == input.ReciprocalRate || - (this.ReciprocalRate != null && - this.ReciprocalRate.Equals(input.ReciprocalRate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TransactionDate == input.TransactionDate || - (this.TransactionDate != null && - this.TransactionDate.Equals(input.TransactionDate)) - ); - } + [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] + public DecimalValue ReciprocalRate { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BaseCurrencyID != null) - hashCode = hashCode * 59 + this.BaseCurrencyID.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ControlTotal != null) - hashCode = hashCode * 59 + this.ControlTotal.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CreditTotal != null) - hashCode = hashCode * 59 + this.CreditTotal.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRate != null) - hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode(); - if (this.CurrencyRateTypeID != null) - hashCode = hashCode * 59 + this.CurrencyRateTypeID.GetHashCode(); - if (this.DebitTotal != null) - hashCode = hashCode * 59 + this.DebitTotal.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.GLTransactions != null) - hashCode = hashCode * 59 + this.GLTransactions.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReciprocalRate != null) - hashCode = hashCode * 59 + this.ReciprocalRate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TransactionDate != null) - hashCode = hashCode * 59 + this.TransactionDate.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TransactionDate", EmitDefaultValue=false)] + public DateTimeValue TransactionDate { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/JournalVoucherDetail.cs b/Acumatica.Default_17.200.001/Model/JournalVoucherDetail.cs index 086a47c2..2d8ae4c3 100644 --- a/Acumatica.Default_17.200.001/Model/JournalVoucherDetail.cs +++ b/Acumatica.Default_17.200.001/Model/JournalVoucherDetail.cs @@ -1,702 +1,123 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// JournalVoucherDetail - /// - [DataContract] - public partial class JournalVoucherDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aPDocumentsToApply. - /// aRDocumentsToApply. - /// batchModule. - /// batchNbr. - /// cardAccountNbr. - /// cardAccountNbrCardAccountNbr. - /// cashDiscount. - /// cashDiscountDate. - /// creditAccount. - /// creditSubaccount. - /// debitAccount. - /// debitSubaccount. - /// docCreated. - /// docTotal. - /// dueDate. - /// entryTypeID. - /// externalRef. - /// groupTransactionID. - /// includedTaxAmount. - /// lineNbr. - /// location. - /// paymentMethod. - /// project. - /// projectTask. - /// referenceNbr. - /// released. - /// split. - /// subtotalAmount. - /// taxAmount. - /// taxCategory. - /// taxZone. - /// terms. - /// totalAmount. - /// transactionCode. - /// transactionDate. - /// transactionDescription. - /// vendorOrCustomer. - public JournalVoucherDetail(List aPDocumentsToApply = default(List), List aRDocumentsToApply = default(List), StringValue batchModule = default(StringValue), StringValue batchNbr = default(StringValue), IntValue cardAccountNbr = default(IntValue), StringValue cardAccountNbrCardAccountNbr = default(StringValue), DecimalValue cashDiscount = default(DecimalValue), DateTimeValue cashDiscountDate = default(DateTimeValue), StringValue creditAccount = default(StringValue), StringValue creditSubaccount = default(StringValue), StringValue debitAccount = default(StringValue), StringValue debitSubaccount = default(StringValue), BooleanValue docCreated = default(BooleanValue), DecimalValue docTotal = default(DecimalValue), DateTimeValue dueDate = default(DateTimeValue), StringValue entryTypeID = default(StringValue), StringValue externalRef = default(StringValue), IntValue groupTransactionID = default(IntValue), DecimalValue includedTaxAmount = default(DecimalValue), IntValue lineNbr = default(IntValue), StringValue location = default(StringValue), StringValue paymentMethod = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), StringValue referenceNbr = default(StringValue), BooleanValue released = default(BooleanValue), BooleanValue split = default(BooleanValue), DecimalValue subtotalAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxCategory = default(StringValue), StringValue taxZone = default(StringValue), StringValue terms = default(StringValue), DecimalValue totalAmount = default(DecimalValue), StringValue transactionCode = default(StringValue), DateTimeValue transactionDate = default(DateTimeValue), StringValue transactionDescription = default(StringValue), StringValue vendorOrCustomer = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.APDocumentsToApply = aPDocumentsToApply; - this.ARDocumentsToApply = aRDocumentsToApply; - this.BatchModule = batchModule; - this.BatchNbr = batchNbr; - this.CardAccountNbr = cardAccountNbr; - this.CardAccountNbrCardAccountNbr = cardAccountNbrCardAccountNbr; - this.CashDiscount = cashDiscount; - this.CashDiscountDate = cashDiscountDate; - this.CreditAccount = creditAccount; - this.CreditSubaccount = creditSubaccount; - this.DebitAccount = debitAccount; - this.DebitSubaccount = debitSubaccount; - this.DocCreated = docCreated; - this.DocTotal = docTotal; - this.DueDate = dueDate; - this.EntryTypeID = entryTypeID; - this.ExternalRef = externalRef; - this.GroupTransactionID = groupTransactionID; - this.IncludedTaxAmount = includedTaxAmount; - this.LineNbr = lineNbr; - this.Location = location; - this.PaymentMethod = paymentMethod; - this.Project = project; - this.ProjectTask = projectTask; - this.ReferenceNbr = referenceNbr; - this.Released = released; - this.Split = split; - this.SubtotalAmount = subtotalAmount; - this.TaxAmount = taxAmount; - this.TaxCategory = taxCategory; - this.TaxZone = taxZone; - this.Terms = terms; - this.TotalAmount = totalAmount; - this.TransactionCode = transactionCode; - this.TransactionDate = transactionDate; - this.TransactionDescription = transactionDescription; - this.VendorOrCustomer = vendorOrCustomer; - } - - /// - /// Gets or Sets APDocumentsToApply - /// - [DataMember(Name="APDocumentsToApply", EmitDefaultValue=false)] - public List APDocumentsToApply { get; set; } - - /// - /// Gets or Sets ARDocumentsToApply - /// - [DataMember(Name="ARDocumentsToApply", EmitDefaultValue=false)] - public List ARDocumentsToApply { get; set; } - - /// - /// Gets or Sets BatchModule - /// - [DataMember(Name="BatchModule", EmitDefaultValue=false)] - public StringValue BatchModule { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets CardAccountNbr - /// - [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] - public IntValue CardAccountNbr { get; set; } - - /// - /// Gets or Sets CardAccountNbrCardAccountNbr - /// - [DataMember(Name="CardAccountNbrCardAccountNbr", EmitDefaultValue=false)] - public StringValue CardAccountNbrCardAccountNbr { get; set; } - - /// - /// Gets or Sets CashDiscount - /// - [DataMember(Name="CashDiscount", EmitDefaultValue=false)] - public DecimalValue CashDiscount { get; set; } - - /// - /// Gets or Sets CashDiscountDate - /// - [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] - public DateTimeValue CashDiscountDate { get; set; } - - /// - /// Gets or Sets CreditAccount - /// - [DataMember(Name="CreditAccount", EmitDefaultValue=false)] - public StringValue CreditAccount { get; set; } - - /// - /// Gets or Sets CreditSubaccount - /// - [DataMember(Name="CreditSubaccount", EmitDefaultValue=false)] - public StringValue CreditSubaccount { get; set; } - - /// - /// Gets or Sets DebitAccount - /// - [DataMember(Name="DebitAccount", EmitDefaultValue=false)] - public StringValue DebitAccount { get; set; } - - /// - /// Gets or Sets DebitSubaccount - /// - [DataMember(Name="DebitSubaccount", EmitDefaultValue=false)] - public StringValue DebitSubaccount { get; set; } - - /// - /// Gets or Sets DocCreated - /// - [DataMember(Name="DocCreated", EmitDefaultValue=false)] - public BooleanValue DocCreated { get; set; } - - /// - /// Gets or Sets DocTotal - /// - [DataMember(Name="DocTotal", EmitDefaultValue=false)] - public DecimalValue DocTotal { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets EntryTypeID - /// - [DataMember(Name="EntryTypeID", EmitDefaultValue=false)] - public StringValue EntryTypeID { get; set; } - - /// - /// Gets or Sets ExternalRef - /// - [DataMember(Name="ExternalRef", EmitDefaultValue=false)] - public StringValue ExternalRef { get; set; } - - /// - /// Gets or Sets GroupTransactionID - /// - [DataMember(Name="GroupTransactionID", EmitDefaultValue=false)] - public IntValue GroupTransactionID { get; set; } - - /// - /// Gets or Sets IncludedTaxAmount - /// - [DataMember(Name="IncludedTaxAmount", EmitDefaultValue=false)] - public DecimalValue IncludedTaxAmount { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } - - /// - /// Gets or Sets Split - /// - [DataMember(Name="Split", EmitDefaultValue=false)] - public BooleanValue Split { get; set; } - - /// - /// Gets or Sets SubtotalAmount - /// - [DataMember(Name="SubtotalAmount", EmitDefaultValue=false)] - public DecimalValue SubtotalAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets TotalAmount - /// - [DataMember(Name="TotalAmount", EmitDefaultValue=false)] - public DecimalValue TotalAmount { get; set; } - - /// - /// Gets or Sets TransactionCode - /// - [DataMember(Name="TransactionCode", EmitDefaultValue=false)] - public StringValue TransactionCode { get; set; } - - /// - /// Gets or Sets TransactionDate - /// - [DataMember(Name="TransactionDate", EmitDefaultValue=false)] - public DateTimeValue TransactionDate { get; set; } - - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } - - /// - /// Gets or Sets VendorOrCustomer - /// - [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] - public StringValue VendorOrCustomer { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalVoucherDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" APDocumentsToApply: ").Append(APDocumentsToApply).Append("\n"); - sb.Append(" ARDocumentsToApply: ").Append(ARDocumentsToApply).Append("\n"); - sb.Append(" BatchModule: ").Append(BatchModule).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" CardAccountNbr: ").Append(CardAccountNbr).Append("\n"); - sb.Append(" CardAccountNbrCardAccountNbr: ").Append(CardAccountNbrCardAccountNbr).Append("\n"); - sb.Append(" CashDiscount: ").Append(CashDiscount).Append("\n"); - sb.Append(" CashDiscountDate: ").Append(CashDiscountDate).Append("\n"); - sb.Append(" CreditAccount: ").Append(CreditAccount).Append("\n"); - sb.Append(" CreditSubaccount: ").Append(CreditSubaccount).Append("\n"); - sb.Append(" DebitAccount: ").Append(DebitAccount).Append("\n"); - sb.Append(" DebitSubaccount: ").Append(DebitSubaccount).Append("\n"); - sb.Append(" DocCreated: ").Append(DocCreated).Append("\n"); - sb.Append(" DocTotal: ").Append(DocTotal).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" EntryTypeID: ").Append(EntryTypeID).Append("\n"); - sb.Append(" ExternalRef: ").Append(ExternalRef).Append("\n"); - sb.Append(" GroupTransactionID: ").Append(GroupTransactionID).Append("\n"); - sb.Append(" IncludedTaxAmount: ").Append(IncludedTaxAmount).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" Split: ").Append(Split).Append("\n"); - sb.Append(" SubtotalAmount: ").Append(SubtotalAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); - sb.Append(" TransactionCode: ").Append(TransactionCode).Append("\n"); - sb.Append(" TransactionDate: ").Append(TransactionDate).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" VendorOrCustomer: ").Append(VendorOrCustomer).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalVoucherDetail); - } - - /// - /// Returns true if JournalVoucherDetail instances are equal - /// - /// Instance of JournalVoucherDetail to be compared - /// Boolean - public bool Equals(JournalVoucherDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.APDocumentsToApply == input.APDocumentsToApply || - this.APDocumentsToApply != null && - this.APDocumentsToApply.SequenceEqual(input.APDocumentsToApply) - ) && base.Equals(input) && - ( - this.ARDocumentsToApply == input.ARDocumentsToApply || - this.ARDocumentsToApply != null && - this.ARDocumentsToApply.SequenceEqual(input.ARDocumentsToApply) - ) && base.Equals(input) && - ( - this.BatchModule == input.BatchModule || - (this.BatchModule != null && - this.BatchModule.Equals(input.BatchModule)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.CardAccountNbr == input.CardAccountNbr || - (this.CardAccountNbr != null && - this.CardAccountNbr.Equals(input.CardAccountNbr)) - ) && base.Equals(input) && - ( - this.CardAccountNbrCardAccountNbr == input.CardAccountNbrCardAccountNbr || - (this.CardAccountNbrCardAccountNbr != null && - this.CardAccountNbrCardAccountNbr.Equals(input.CardAccountNbrCardAccountNbr)) - ) && base.Equals(input) && - ( - this.CashDiscount == input.CashDiscount || - (this.CashDiscount != null && - this.CashDiscount.Equals(input.CashDiscount)) - ) && base.Equals(input) && - ( - this.CashDiscountDate == input.CashDiscountDate || - (this.CashDiscountDate != null && - this.CashDiscountDate.Equals(input.CashDiscountDate)) - ) && base.Equals(input) && - ( - this.CreditAccount == input.CreditAccount || - (this.CreditAccount != null && - this.CreditAccount.Equals(input.CreditAccount)) - ) && base.Equals(input) && - ( - this.CreditSubaccount == input.CreditSubaccount || - (this.CreditSubaccount != null && - this.CreditSubaccount.Equals(input.CreditSubaccount)) - ) && base.Equals(input) && - ( - this.DebitAccount == input.DebitAccount || - (this.DebitAccount != null && - this.DebitAccount.Equals(input.DebitAccount)) - ) && base.Equals(input) && - ( - this.DebitSubaccount == input.DebitSubaccount || - (this.DebitSubaccount != null && - this.DebitSubaccount.Equals(input.DebitSubaccount)) - ) && base.Equals(input) && - ( - this.DocCreated == input.DocCreated || - (this.DocCreated != null && - this.DocCreated.Equals(input.DocCreated)) - ) && base.Equals(input) && - ( - this.DocTotal == input.DocTotal || - (this.DocTotal != null && - this.DocTotal.Equals(input.DocTotal)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.EntryTypeID == input.EntryTypeID || - (this.EntryTypeID != null && - this.EntryTypeID.Equals(input.EntryTypeID)) - ) && base.Equals(input) && - ( - this.ExternalRef == input.ExternalRef || - (this.ExternalRef != null && - this.ExternalRef.Equals(input.ExternalRef)) - ) && base.Equals(input) && - ( - this.GroupTransactionID == input.GroupTransactionID || - (this.GroupTransactionID != null && - this.GroupTransactionID.Equals(input.GroupTransactionID)) - ) && base.Equals(input) && - ( - this.IncludedTaxAmount == input.IncludedTaxAmount || - (this.IncludedTaxAmount != null && - this.IncludedTaxAmount.Equals(input.IncludedTaxAmount)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.Split == input.Split || - (this.Split != null && - this.Split.Equals(input.Split)) - ) && base.Equals(input) && - ( - this.SubtotalAmount == input.SubtotalAmount || - (this.SubtotalAmount != null && - this.SubtotalAmount.Equals(input.SubtotalAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.TotalAmount == input.TotalAmount || - (this.TotalAmount != null && - this.TotalAmount.Equals(input.TotalAmount)) - ) && base.Equals(input) && - ( - this.TransactionCode == input.TransactionCode || - (this.TransactionCode != null && - this.TransactionCode.Equals(input.TransactionCode)) - ) && base.Equals(input) && - ( - this.TransactionDate == input.TransactionDate || - (this.TransactionDate != null && - this.TransactionDate.Equals(input.TransactionDate)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.VendorOrCustomer == input.VendorOrCustomer || - (this.VendorOrCustomer != null && - this.VendorOrCustomer.Equals(input.VendorOrCustomer)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.APDocumentsToApply != null) - hashCode = hashCode * 59 + this.APDocumentsToApply.GetHashCode(); - if (this.ARDocumentsToApply != null) - hashCode = hashCode * 59 + this.ARDocumentsToApply.GetHashCode(); - if (this.BatchModule != null) - hashCode = hashCode * 59 + this.BatchModule.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.CardAccountNbr != null) - hashCode = hashCode * 59 + this.CardAccountNbr.GetHashCode(); - if (this.CardAccountNbrCardAccountNbr != null) - hashCode = hashCode * 59 + this.CardAccountNbrCardAccountNbr.GetHashCode(); - if (this.CashDiscount != null) - hashCode = hashCode * 59 + this.CashDiscount.GetHashCode(); - if (this.CashDiscountDate != null) - hashCode = hashCode * 59 + this.CashDiscountDate.GetHashCode(); - if (this.CreditAccount != null) - hashCode = hashCode * 59 + this.CreditAccount.GetHashCode(); - if (this.CreditSubaccount != null) - hashCode = hashCode * 59 + this.CreditSubaccount.GetHashCode(); - if (this.DebitAccount != null) - hashCode = hashCode * 59 + this.DebitAccount.GetHashCode(); - if (this.DebitSubaccount != null) - hashCode = hashCode * 59 + this.DebitSubaccount.GetHashCode(); - if (this.DocCreated != null) - hashCode = hashCode * 59 + this.DocCreated.GetHashCode(); - if (this.DocTotal != null) - hashCode = hashCode * 59 + this.DocTotal.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.EntryTypeID != null) - hashCode = hashCode * 59 + this.EntryTypeID.GetHashCode(); - if (this.ExternalRef != null) - hashCode = hashCode * 59 + this.ExternalRef.GetHashCode(); - if (this.GroupTransactionID != null) - hashCode = hashCode * 59 + this.GroupTransactionID.GetHashCode(); - if (this.IncludedTaxAmount != null) - hashCode = hashCode * 59 + this.IncludedTaxAmount.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.Split != null) - hashCode = hashCode * 59 + this.Split.GetHashCode(); - if (this.SubtotalAmount != null) - hashCode = hashCode * 59 + this.SubtotalAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.TotalAmount != null) - hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); - if (this.TransactionCode != null) - hashCode = hashCode * 59 + this.TransactionCode.GetHashCode(); - if (this.TransactionDate != null) - hashCode = hashCode * 59 + this.TransactionDate.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.VendorOrCustomer != null) - hashCode = hashCode * 59 + this.VendorOrCustomer.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class JournalVoucherDetail : Entity + { + + [DataMember(Name="APDocumentsToApply", EmitDefaultValue=false)] + public List APDocumentsToApply { get; set; } + + [DataMember(Name="ARDocumentsToApply", EmitDefaultValue=false)] + public List ARDocumentsToApply { get; set; } + + [DataMember(Name="BatchModule", EmitDefaultValue=false)] + public StringValue BatchModule { get; set; } + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] + public IntValue CardAccountNbr { get; set; } + + [DataMember(Name="CardAccountNbrCardAccountNbr", EmitDefaultValue=false)] + public StringValue CardAccountNbrCardAccountNbr { get; set; } + + [DataMember(Name="CashDiscount", EmitDefaultValue=false)] + public DecimalValue CashDiscount { get; set; } + + [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] + public DateTimeValue CashDiscountDate { get; set; } + + [DataMember(Name="CreditAccount", EmitDefaultValue=false)] + public StringValue CreditAccount { get; set; } + + [DataMember(Name="CreditSubaccount", EmitDefaultValue=false)] + public StringValue CreditSubaccount { get; set; } + + [DataMember(Name="DebitAccount", EmitDefaultValue=false)] + public StringValue DebitAccount { get; set; } + + [DataMember(Name="DebitSubaccount", EmitDefaultValue=false)] + public StringValue DebitSubaccount { get; set; } + + [DataMember(Name="DocCreated", EmitDefaultValue=false)] + public BooleanValue DocCreated { get; set; } + + [DataMember(Name="DocTotal", EmitDefaultValue=false)] + public DecimalValue DocTotal { get; set; } + + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } + + [DataMember(Name="EntryTypeID", EmitDefaultValue=false)] + public StringValue EntryTypeID { get; set; } + + [DataMember(Name="ExternalRef", EmitDefaultValue=false)] + public StringValue ExternalRef { get; set; } + + [DataMember(Name="GroupTransactionID", EmitDefaultValue=false)] + public IntValue GroupTransactionID { get; set; } + + [DataMember(Name="IncludedTaxAmount", EmitDefaultValue=false)] + public DecimalValue IncludedTaxAmount { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } + + [DataMember(Name="Split", EmitDefaultValue=false)] + public BooleanValue Split { get; set; } + + [DataMember(Name="SubtotalAmount", EmitDefaultValue=false)] + public DecimalValue SubtotalAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="TotalAmount", EmitDefaultValue=false)] + public DecimalValue TotalAmount { get; set; } + + [DataMember(Name="TransactionCode", EmitDefaultValue=false)] + public StringValue TransactionCode { get; set; } + + [DataMember(Name="TransactionDate", EmitDefaultValue=false)] + public DateTimeValue TransactionDate { get; set; } + + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } + + [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] + public StringValue VendorOrCustomer { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs b/Acumatica.Default_17.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs index 42c43554..0b475187 100644 --- a/Acumatica.Default_17.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs +++ b/Acumatica.Default_17.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// JournalVoucherDetailAPDocumentToApply - /// - [DataContract] - public partial class JournalVoucherDetailAPDocumentToApply : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// docType. - /// referenceNbr. - /// vendorRef. - /// withTax. - /// withTaxBalance. - public JournalVoucherDetailAPDocumentToApply(StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue vendorRef = default(StringValue), DecimalValue withTax = default(DecimalValue), DecimalValue withTaxBalance = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - this.VendorRef = vendorRef; - this.WithTax = withTax; - this.WithTaxBalance = withTaxBalance; - } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets VendorRef - /// - [DataMember(Name="VendorRef", EmitDefaultValue=false)] - public StringValue VendorRef { get; set; } - - /// - /// Gets or Sets WithTax - /// - [DataMember(Name="WithTax", EmitDefaultValue=false)] - public DecimalValue WithTax { get; set; } - - /// - /// Gets or Sets WithTaxBalance - /// - [DataMember(Name="WithTaxBalance", EmitDefaultValue=false)] - public DecimalValue WithTaxBalance { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalVoucherDetailAPDocumentToApply {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" VendorRef: ").Append(VendorRef).Append("\n"); - sb.Append(" WithTax: ").Append(WithTax).Append("\n"); - sb.Append(" WithTaxBalance: ").Append(WithTaxBalance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class JournalVoucherDetailAPDocumentToApply : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalVoucherDetailAPDocumentToApply); - } + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - /// - /// Returns true if JournalVoucherDetailAPDocumentToApply instances are equal - /// - /// Instance of JournalVoucherDetailAPDocumentToApply to be compared - /// Boolean - public bool Equals(JournalVoucherDetailAPDocumentToApply input) - { - if (input == null) - return false; + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - return base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.VendorRef == input.VendorRef || - (this.VendorRef != null && - this.VendorRef.Equals(input.VendorRef)) - ) && base.Equals(input) && - ( - this.WithTax == input.WithTax || - (this.WithTax != null && - this.WithTax.Equals(input.WithTax)) - ) && base.Equals(input) && - ( - this.WithTaxBalance == input.WithTaxBalance || - (this.WithTaxBalance != null && - this.WithTaxBalance.Equals(input.WithTaxBalance)) - ); - } + [DataMember(Name="VendorRef", EmitDefaultValue=false)] + public StringValue VendorRef { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.VendorRef != null) - hashCode = hashCode * 59 + this.VendorRef.GetHashCode(); - if (this.WithTax != null) - hashCode = hashCode * 59 + this.WithTax.GetHashCode(); - if (this.WithTaxBalance != null) - hashCode = hashCode * 59 + this.WithTaxBalance.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="WithTax", EmitDefaultValue=false)] + public DecimalValue WithTax { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WithTaxBalance", EmitDefaultValue=false)] + public DecimalValue WithTaxBalance { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/JournalVoucherDetailARDocumentToApply.cs b/Acumatica.Default_17.200.001/Model/JournalVoucherDetailARDocumentToApply.cs index 0bc9addd..b549f0a7 100644 --- a/Acumatica.Default_17.200.001/Model/JournalVoucherDetailARDocumentToApply.cs +++ b/Acumatica.Default_17.200.001/Model/JournalVoucherDetailARDocumentToApply.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// JournalVoucherDetailARDocumentToApply - /// - [DataContract] - public partial class JournalVoucherDetailARDocumentToApply : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// balanceWriteOff. - /// customerOrder. - /// docType. - /// referenceNbr. - /// writeOffLimit. - /// writeOffReasonCode. - public JournalVoucherDetailARDocumentToApply(DecimalValue balanceWriteOff = default(DecimalValue), StringValue customerOrder = default(StringValue), StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), DecimalValue writeOffLimit = default(DecimalValue), StringValue writeOffReasonCode = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BalanceWriteOff = balanceWriteOff; - this.CustomerOrder = customerOrder; - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - this.WriteOffLimit = writeOffLimit; - this.WriteOffReasonCode = writeOffReasonCode; - } - - /// - /// Gets or Sets BalanceWriteOff - /// - [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] - public DecimalValue BalanceWriteOff { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets WriteOffLimit - /// - [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] - public DecimalValue WriteOffLimit { get; set; } - - /// - /// Gets or Sets WriteOffReasonCode - /// - [DataMember(Name="WriteOffReasonCode", EmitDefaultValue=false)] - public StringValue WriteOffReasonCode { get; set; } + [DataContract] + public partial class JournalVoucherDetailARDocumentToApply : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalVoucherDetailARDocumentToApply {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BalanceWriteOff: ").Append(BalanceWriteOff).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" WriteOffLimit: ").Append(WriteOffLimit).Append("\n"); - sb.Append(" WriteOffReasonCode: ").Append(WriteOffReasonCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] + public DecimalValue BalanceWriteOff { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalVoucherDetailARDocumentToApply); - } + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } - /// - /// Returns true if JournalVoucherDetailARDocumentToApply instances are equal - /// - /// Instance of JournalVoucherDetailARDocumentToApply to be compared - /// Boolean - public bool Equals(JournalVoucherDetailARDocumentToApply input) - { - if (input == null) - return false; + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - return base.Equals(input) && - ( - this.BalanceWriteOff == input.BalanceWriteOff || - (this.BalanceWriteOff != null && - this.BalanceWriteOff.Equals(input.BalanceWriteOff)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.WriteOffLimit == input.WriteOffLimit || - (this.WriteOffLimit != null && - this.WriteOffLimit.Equals(input.WriteOffLimit)) - ) && base.Equals(input) && - ( - this.WriteOffReasonCode == input.WriteOffReasonCode || - (this.WriteOffReasonCode != null && - this.WriteOffReasonCode.Equals(input.WriteOffReasonCode)) - ); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BalanceWriteOff != null) - hashCode = hashCode * 59 + this.BalanceWriteOff.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.WriteOffLimit != null) - hashCode = hashCode * 59 + this.WriteOffLimit.GetHashCode(); - if (this.WriteOffReasonCode != null) - hashCode = hashCode * 59 + this.WriteOffReasonCode.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] + public DecimalValue WriteOffLimit { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WriteOffReasonCode", EmitDefaultValue=false)] + public StringValue WriteOffReasonCode { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/JournalVoucherGLTransaction.cs b/Acumatica.Default_17.200.001/Model/JournalVoucherGLTransaction.cs index 914a69ad..9bfe18f1 100644 --- a/Acumatica.Default_17.200.001/Model/JournalVoucherGLTransaction.cs +++ b/Acumatica.Default_17.200.001/Model/JournalVoucherGLTransaction.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// JournalVoucherGLTransaction - /// - [DataContract] - public partial class JournalVoucherGLTransaction : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// batchNbr. - /// creditAmount. - /// currencyID. - /// debitAmount. - /// lineNbr. - /// module. - /// qty. - /// referenceNbr. - /// subaccount. - /// transactionDate. - /// transactionDescription. - public JournalVoucherGLTransaction(StringValue account = default(StringValue), StringValue batchNbr = default(StringValue), DecimalValue creditAmount = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue debitAmount = default(DecimalValue), IntValue lineNbr = default(IntValue), StringValue module = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue referenceNbr = default(StringValue), StringValue subaccount = default(StringValue), DateTimeValue transactionDate = default(DateTimeValue), StringValue transactionDescription = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.BatchNbr = batchNbr; - this.CreditAmount = creditAmount; - this.CurrencyID = currencyID; - this.DebitAmount = debitAmount; - this.LineNbr = lineNbr; - this.Module = module; - this.Qty = qty; - this.ReferenceNbr = referenceNbr; - this.Subaccount = subaccount; - this.TransactionDate = transactionDate; - this.TransactionDescription = transactionDescription; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets CreditAmount - /// - [DataMember(Name="CreditAmount", EmitDefaultValue=false)] - public DecimalValue CreditAmount { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets DebitAmount - /// - [DataMember(Name="DebitAmount", EmitDefaultValue=false)] - public DecimalValue DebitAmount { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } + [DataContract] + public partial class JournalVoucherGLTransaction : Entity + { - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="CreditAmount", EmitDefaultValue=false)] + public DecimalValue CreditAmount { get; set; } - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets TransactionDate - /// - [DataMember(Name="TransactionDate", EmitDefaultValue=false)] - public DateTimeValue TransactionDate { get; set; } + [DataMember(Name="DebitAmount", EmitDefaultValue=false)] + public DecimalValue DebitAmount { get; set; } - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalVoucherGLTransaction {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" CreditAmount: ").Append(CreditAmount).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" DebitAmount: ").Append(DebitAmount).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" TransactionDate: ").Append(TransactionDate).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalVoucherGLTransaction); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if JournalVoucherGLTransaction instances are equal - /// - /// Instance of JournalVoucherGLTransaction to be compared - /// Boolean - public bool Equals(JournalVoucherGLTransaction input) - { - if (input == null) - return false; + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.CreditAmount == input.CreditAmount || - (this.CreditAmount != null && - this.CreditAmount.Equals(input.CreditAmount)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.DebitAmount == input.DebitAmount || - (this.DebitAmount != null && - this.DebitAmount.Equals(input.DebitAmount)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.TransactionDate == input.TransactionDate || - (this.TransactionDate != null && - this.TransactionDate.Equals(input.TransactionDate)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ); - } + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.CreditAmount != null) - hashCode = hashCode * 59 + this.CreditAmount.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.DebitAmount != null) - hashCode = hashCode * 59 + this.DebitAmount.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.TransactionDate != null) - hashCode = hashCode * 59 + this.TransactionDate.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TransactionDate", EmitDefaultValue=false)] + public DateTimeValue TransactionDate { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/KitAssembly.cs b/Acumatica.Default_17.200.001/Model/KitAssembly.cs index 0bd92274..7f8652b6 100644 --- a/Acumatica.Default_17.200.001/Model/KitAssembly.cs +++ b/Acumatica.Default_17.200.001/Model/KitAssembly.cs @@ -1,398 +1,66 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// KitAssembly - /// - [DataContract] - public partial class KitAssembly : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocations. - /// date. - /// description. - /// hold. - /// kitInventoryID. - /// locationID. - /// nonStockComponents. - /// postPeriod. - /// qty. - /// reasonCode. - /// referenceNbr. - /// revision. - /// status. - /// stockComponents. - /// subitem. - /// type. - /// uOM. - /// warehouseID. - public KitAssembly(List allocations = default(List), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), BooleanValue hold = default(BooleanValue), StringValue kitInventoryID = default(StringValue), StringValue locationID = default(StringValue), List nonStockComponents = default(List), StringValue postPeriod = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue reasonCode = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue revision = default(StringValue), StringValue status = default(StringValue), List stockComponents = default(List), StringValue subitem = default(StringValue), StringValue type = default(StringValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocations = allocations; - this.Date = date; - this.Description = description; - this.Hold = hold; - this.KitInventoryID = kitInventoryID; - this.LocationID = locationID; - this.NonStockComponents = nonStockComponents; - this.PostPeriod = postPeriod; - this.Qty = qty; - this.ReasonCode = reasonCode; - this.ReferenceNbr = referenceNbr; - this.Revision = revision; - this.Status = status; - this.StockComponents = stockComponents; - this.Subitem = subitem; - this.Type = type; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public List Allocations { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets KitInventoryID - /// - [DataMember(Name="KitInventoryID", EmitDefaultValue=false)] - public StringValue KitInventoryID { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } + [DataContract] + public partial class KitAssembly : Entity + { - /// - /// Gets or Sets NonStockComponents - /// - [DataMember(Name="NonStockComponents", EmitDefaultValue=false)] - public List NonStockComponents { get; set; } + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="KitInventoryID", EmitDefaultValue=false)] + public StringValue KitInventoryID { get; set; } - /// - /// Gets or Sets Revision - /// - [DataMember(Name="Revision", EmitDefaultValue=false)] - public StringValue Revision { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="NonStockComponents", EmitDefaultValue=false)] + public List NonStockComponents { get; set; } - /// - /// Gets or Sets StockComponents - /// - [DataMember(Name="StockComponents", EmitDefaultValue=false)] - public List StockComponents { get; set; } + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } + [DataMember(Name="Revision", EmitDefaultValue=false)] + public StringValue Revision { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitAssembly {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" KitInventoryID: ").Append(KitInventoryID).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" NonStockComponents: ").Append(NonStockComponents).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" StockComponents: ").Append(StockComponents).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitAssembly); - } + [DataMember(Name="StockComponents", EmitDefaultValue=false)] + public List StockComponents { get; set; } - /// - /// Returns true if KitAssembly instances are equal - /// - /// Instance of KitAssembly to be compared - /// Boolean - public bool Equals(KitAssembly input) - { - if (input == null) - return false; + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - return base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.KitInventoryID == input.KitInventoryID || - (this.KitInventoryID != null && - this.KitInventoryID.Equals(input.KitInventoryID)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.NonStockComponents == input.NonStockComponents || - this.NonStockComponents != null && - this.NonStockComponents.SequenceEqual(input.NonStockComponents) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.StockComponents == input.StockComponents || - this.StockComponents != null && - this.StockComponents.SequenceEqual(input.StockComponents) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.KitInventoryID != null) - hashCode = hashCode * 59 + this.KitInventoryID.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.NonStockComponents != null) - hashCode = hashCode * 59 + this.NonStockComponents.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.StockComponents != null) - hashCode = hashCode * 59 + this.StockComponents.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/KitAssemblyAllocation.cs b/Acumatica.Default_17.200.001/Model/KitAssemblyAllocation.cs index c9e3b9f2..c00453d0 100644 --- a/Acumatica.Default_17.200.001/Model/KitAssemblyAllocation.cs +++ b/Acumatica.Default_17.200.001/Model/KitAssemblyAllocation.cs @@ -1,238 +1,36 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// KitAssemblyAllocation - /// - [DataContract] - public partial class KitAssemblyAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// expirationDate. - /// lineNbr. - /// locationID. - /// lotSerialNbr. - /// qty. - /// splitLineNbr. - /// subitem. - /// uOM. - public KitAssemblyAllocation(DateTimeValue expirationDate = default(DateTimeValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), IntValue splitLineNbr = default(IntValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ExpirationDate = expirationDate; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.SplitLineNbr = splitLineNbr; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets SplitLineNbr - /// - [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] - public IntValue SplitLineNbr { get; set; } + [DataContract] + public partial class KitAssemblyAllocation : Entity + { - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitAssemblyAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" SplitLineNbr: ").Append(SplitLineNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitAssemblyAllocation); - } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Returns true if KitAssemblyAllocation instances are equal - /// - /// Instance of KitAssemblyAllocation to be compared - /// Boolean - public bool Equals(KitAssemblyAllocation input) - { - if (input == null) - return false; + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - return base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.SplitLineNbr == input.SplitLineNbr || - (this.SplitLineNbr != null && - this.SplitLineNbr.Equals(input.SplitLineNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] + public IntValue SplitLineNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.SplitLineNbr != null) - hashCode = hashCode * 59 + this.SplitLineNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/KitAssemblyNonStockComponent.cs b/Acumatica.Default_17.200.001/Model/KitAssemblyNonStockComponent.cs index da268ad2..26de5fd3 100644 --- a/Acumatica.Default_17.200.001/Model/KitAssemblyNonStockComponent.cs +++ b/Acumatica.Default_17.200.001/Model/KitAssemblyNonStockComponent.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// KitAssemblyNonStockComponent - /// - [DataContract] - public partial class KitAssemblyNonStockComponent : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// componentQty. - /// lineNbr. - /// nonStockInventoryID. - /// qty. - /// reasonCode. - /// unitCost. - /// uOM. - public KitAssemblyNonStockComponent(DecimalValue componentQty = default(DecimalValue), IntValue lineNbr = default(IntValue), StringValue nonStockInventoryID = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue reasonCode = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ComponentQty = componentQty; - this.LineNbr = lineNbr; - this.NonStockInventoryID = nonStockInventoryID; - this.Qty = qty; - this.ReasonCode = reasonCode; - this.UnitCost = unitCost; - this.UOM = uOM; - } - - /// - /// Gets or Sets ComponentQty - /// - [DataMember(Name="ComponentQty", EmitDefaultValue=false)] - public DecimalValue ComponentQty { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets NonStockInventoryID - /// - [DataMember(Name="NonStockInventoryID", EmitDefaultValue=false)] - public StringValue NonStockInventoryID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } + [DataContract] + public partial class KitAssemblyNonStockComponent : Entity + { - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="ComponentQty", EmitDefaultValue=false)] + public DecimalValue ComponentQty { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitAssemblyNonStockComponent {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ComponentQty: ").Append(ComponentQty).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" NonStockInventoryID: ").Append(NonStockInventoryID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitAssemblyNonStockComponent); - } + [DataMember(Name="NonStockInventoryID", EmitDefaultValue=false)] + public StringValue NonStockInventoryID { get; set; } - /// - /// Returns true if KitAssemblyNonStockComponent instances are equal - /// - /// Instance of KitAssemblyNonStockComponent to be compared - /// Boolean - public bool Equals(KitAssemblyNonStockComponent input) - { - if (input == null) - return false; + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - return base.Equals(input) && - ( - this.ComponentQty == input.ComponentQty || - (this.ComponentQty != null && - this.ComponentQty.Equals(input.ComponentQty)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.NonStockInventoryID == input.NonStockInventoryID || - (this.NonStockInventoryID != null && - this.NonStockInventoryID.Equals(input.NonStockInventoryID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ComponentQty != null) - hashCode = hashCode * 59 + this.ComponentQty.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.NonStockInventoryID != null) - hashCode = hashCode * 59 + this.NonStockInventoryID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/KitAssemblyStockComponent.cs b/Acumatica.Default_17.200.001/Model/KitAssemblyStockComponent.cs index 91564b8e..6bb17fee 100644 --- a/Acumatica.Default_17.200.001/Model/KitAssemblyStockComponent.cs +++ b/Acumatica.Default_17.200.001/Model/KitAssemblyStockComponent.cs @@ -1,270 +1,42 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// KitAssemblyStockComponent - /// - [DataContract] - public partial class KitAssemblyStockComponent : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocations. - /// componentQty. - /// lineNbr. - /// locationID. - /// qty. - /// reasonCode. - /// stockInventoryID. - /// subitem. - /// unitCost. - /// uOM. - public KitAssemblyStockComponent(List allocations = default(List), DecimalValue componentQty = default(DecimalValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue reasonCode = default(StringValue), StringValue stockInventoryID = default(StringValue), StringValue subitem = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocations = allocations; - this.ComponentQty = componentQty; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.Qty = qty; - this.ReasonCode = reasonCode; - this.StockInventoryID = stockInventoryID; - this.Subitem = subitem; - this.UnitCost = unitCost; - this.UOM = uOM; - } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public List Allocations { get; set; } - - /// - /// Gets or Sets ComponentQty - /// - [DataMember(Name="ComponentQty", EmitDefaultValue=false)] - public DecimalValue ComponentQty { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } + [DataContract] + public partial class KitAssemblyStockComponent : Entity + { - /// - /// Gets or Sets StockInventoryID - /// - [DataMember(Name="StockInventoryID", EmitDefaultValue=false)] - public StringValue StockInventoryID { get; set; } + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="ComponentQty", EmitDefaultValue=false)] + public DecimalValue ComponentQty { get; set; } - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitAssemblyStockComponent {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" ComponentQty: ").Append(ComponentQty).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" StockInventoryID: ").Append(StockInventoryID).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitAssemblyStockComponent); - } + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } - /// - /// Returns true if KitAssemblyStockComponent instances are equal - /// - /// Instance of KitAssemblyStockComponent to be compared - /// Boolean - public bool Equals(KitAssemblyStockComponent input) - { - if (input == null) - return false; + [DataMember(Name="StockInventoryID", EmitDefaultValue=false)] + public StringValue StockInventoryID { get; set; } - return base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.ComponentQty == input.ComponentQty || - (this.ComponentQty != null && - this.ComponentQty.Equals(input.ComponentQty)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.StockInventoryID == input.StockInventoryID || - (this.StockInventoryID != null && - this.StockInventoryID.Equals(input.StockInventoryID)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.ComponentQty != null) - hashCode = hashCode * 59 + this.ComponentQty.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.StockInventoryID != null) - hashCode = hashCode * 59 + this.StockInventoryID.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/KitAssemblyStockComponentAllocation.cs b/Acumatica.Default_17.200.001/Model/KitAssemblyStockComponentAllocation.cs index a642d1fa..8521dc39 100644 --- a/Acumatica.Default_17.200.001/Model/KitAssemblyStockComponentAllocation.cs +++ b/Acumatica.Default_17.200.001/Model/KitAssemblyStockComponentAllocation.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// KitAssemblyStockComponentAllocation - /// - [DataContract] - public partial class KitAssemblyStockComponentAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// docType. - /// expirationDate. - /// inventoryID. - /// lineNbr. - /// locationID. - /// lotSerialNbr. - /// qty. - /// referenceNbr. - /// splitLineNbr. - /// subitem. - /// uOM. - public KitAssemblyStockComponentAllocation(StringValue docType = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue referenceNbr = default(StringValue), IntValue splitLineNbr = default(IntValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DocType = docType; - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.ReferenceNbr = referenceNbr; - this.SplitLineNbr = splitLineNbr; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataContract] + public partial class KitAssemblyStockComponentAllocation : Entity + { - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets SplitLineNbr - /// - [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] - public IntValue SplitLineNbr { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitAssemblyStockComponentAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" SplitLineNbr: ").Append(SplitLineNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitAssemblyStockComponentAllocation); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if KitAssemblyStockComponentAllocation instances are equal - /// - /// Instance of KitAssemblyStockComponentAllocation to be compared - /// Boolean - public bool Equals(KitAssemblyStockComponentAllocation input) - { - if (input == null) - return false; + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - return base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.SplitLineNbr == input.SplitLineNbr || - (this.SplitLineNbr != null && - this.SplitLineNbr.Equals(input.SplitLineNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] + public IntValue SplitLineNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.SplitLineNbr != null) - hashCode = hashCode * 59 + this.SplitLineNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/KitNonStockComponent.cs b/Acumatica.Default_17.200.001/Model/KitNonStockComponent.cs index 633c6d44..6cd313e0 100644 --- a/Acumatica.Default_17.200.001/Model/KitNonStockComponent.cs +++ b/Acumatica.Default_17.200.001/Model/KitNonStockComponent.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// KitNonStockComponent - /// - [DataContract] - public partial class KitNonStockComponent : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allowComponentQtyVariance. - /// componentQty. - /// maxComponentQty. - /// minComponentQty. - /// nonStockInventoryID. - /// uOM. - public KitNonStockComponent(BooleanValue allowComponentQtyVariance = default(BooleanValue), DecimalValue componentQty = default(DecimalValue), DecimalValue maxComponentQty = default(DecimalValue), DecimalValue minComponentQty = default(DecimalValue), StringValue nonStockInventoryID = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllowComponentQtyVariance = allowComponentQtyVariance; - this.ComponentQty = componentQty; - this.MaxComponentQty = maxComponentQty; - this.MinComponentQty = minComponentQty; - this.NonStockInventoryID = nonStockInventoryID; - this.UOM = uOM; - } - - /// - /// Gets or Sets AllowComponentQtyVariance - /// - [DataMember(Name="AllowComponentQtyVariance", EmitDefaultValue=false)] - public BooleanValue AllowComponentQtyVariance { get; set; } - - /// - /// Gets or Sets ComponentQty - /// - [DataMember(Name="ComponentQty", EmitDefaultValue=false)] - public DecimalValue ComponentQty { get; set; } - - /// - /// Gets or Sets MaxComponentQty - /// - [DataMember(Name="MaxComponentQty", EmitDefaultValue=false)] - public DecimalValue MaxComponentQty { get; set; } - - /// - /// Gets or Sets MinComponentQty - /// - [DataMember(Name="MinComponentQty", EmitDefaultValue=false)] - public DecimalValue MinComponentQty { get; set; } - - /// - /// Gets or Sets NonStockInventoryID - /// - [DataMember(Name="NonStockInventoryID", EmitDefaultValue=false)] - public StringValue NonStockInventoryID { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataContract] + public partial class KitNonStockComponent : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitNonStockComponent {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllowComponentQtyVariance: ").Append(AllowComponentQtyVariance).Append("\n"); - sb.Append(" ComponentQty: ").Append(ComponentQty).Append("\n"); - sb.Append(" MaxComponentQty: ").Append(MaxComponentQty).Append("\n"); - sb.Append(" MinComponentQty: ").Append(MinComponentQty).Append("\n"); - sb.Append(" NonStockInventoryID: ").Append(NonStockInventoryID).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="AllowComponentQtyVariance", EmitDefaultValue=false)] + public BooleanValue AllowComponentQtyVariance { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitNonStockComponent); - } + [DataMember(Name="ComponentQty", EmitDefaultValue=false)] + public DecimalValue ComponentQty { get; set; } - /// - /// Returns true if KitNonStockComponent instances are equal - /// - /// Instance of KitNonStockComponent to be compared - /// Boolean - public bool Equals(KitNonStockComponent input) - { - if (input == null) - return false; + [DataMember(Name="MaxComponentQty", EmitDefaultValue=false)] + public DecimalValue MaxComponentQty { get; set; } - return base.Equals(input) && - ( - this.AllowComponentQtyVariance == input.AllowComponentQtyVariance || - (this.AllowComponentQtyVariance != null && - this.AllowComponentQtyVariance.Equals(input.AllowComponentQtyVariance)) - ) && base.Equals(input) && - ( - this.ComponentQty == input.ComponentQty || - (this.ComponentQty != null && - this.ComponentQty.Equals(input.ComponentQty)) - ) && base.Equals(input) && - ( - this.MaxComponentQty == input.MaxComponentQty || - (this.MaxComponentQty != null && - this.MaxComponentQty.Equals(input.MaxComponentQty)) - ) && base.Equals(input) && - ( - this.MinComponentQty == input.MinComponentQty || - (this.MinComponentQty != null && - this.MinComponentQty.Equals(input.MinComponentQty)) - ) && base.Equals(input) && - ( - this.NonStockInventoryID == input.NonStockInventoryID || - (this.NonStockInventoryID != null && - this.NonStockInventoryID.Equals(input.NonStockInventoryID)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="MinComponentQty", EmitDefaultValue=false)] + public DecimalValue MinComponentQty { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllowComponentQtyVariance != null) - hashCode = hashCode * 59 + this.AllowComponentQtyVariance.GetHashCode(); - if (this.ComponentQty != null) - hashCode = hashCode * 59 + this.ComponentQty.GetHashCode(); - if (this.MaxComponentQty != null) - hashCode = hashCode * 59 + this.MaxComponentQty.GetHashCode(); - if (this.MinComponentQty != null) - hashCode = hashCode * 59 + this.MinComponentQty.GetHashCode(); - if (this.NonStockInventoryID != null) - hashCode = hashCode * 59 + this.NonStockInventoryID.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="NonStockInventoryID", EmitDefaultValue=false)] + public StringValue NonStockInventoryID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/KitSpecification.cs b/Acumatica.Default_17.200.001/Model/KitSpecification.cs index 0b1691c8..75a7c047 100644 --- a/Acumatica.Default_17.200.001/Model/KitSpecification.cs +++ b/Acumatica.Default_17.200.001/Model/KitSpecification.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// KitSpecification - /// - [DataContract] - public partial class KitSpecification : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// description. - /// isNonStock. - /// kitInventoryID. - /// nonStockComponents. - /// revisionID. - /// stockComponents. - public KitSpecification(BooleanValue active = default(BooleanValue), StringValue description = default(StringValue), BooleanValue isNonStock = default(BooleanValue), StringValue kitInventoryID = default(StringValue), List nonStockComponents = default(List), StringValue revisionID = default(StringValue), List stockComponents = default(List), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Description = description; - this.IsNonStock = isNonStock; - this.KitInventoryID = kitInventoryID; - this.NonStockComponents = nonStockComponents; - this.RevisionID = revisionID; - this.StockComponents = stockComponents; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets IsNonStock - /// - [DataMember(Name="IsNonStock", EmitDefaultValue=false)] - public BooleanValue IsNonStock { get; set; } - - /// - /// Gets or Sets KitInventoryID - /// - [DataMember(Name="KitInventoryID", EmitDefaultValue=false)] - public StringValue KitInventoryID { get; set; } - - /// - /// Gets or Sets NonStockComponents - /// - [DataMember(Name="NonStockComponents", EmitDefaultValue=false)] - public List NonStockComponents { get; set; } - - /// - /// Gets or Sets RevisionID - /// - [DataMember(Name="RevisionID", EmitDefaultValue=false)] - public StringValue RevisionID { get; set; } + [DataContract] + public partial class KitSpecification : Entity + { - /// - /// Gets or Sets StockComponents - /// - [DataMember(Name="StockComponents", EmitDefaultValue=false)] - public List StockComponents { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitSpecification {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IsNonStock: ").Append(IsNonStock).Append("\n"); - sb.Append(" KitInventoryID: ").Append(KitInventoryID).Append("\n"); - sb.Append(" NonStockComponents: ").Append(NonStockComponents).Append("\n"); - sb.Append(" RevisionID: ").Append(RevisionID).Append("\n"); - sb.Append(" StockComponents: ").Append(StockComponents).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitSpecification); - } + [DataMember(Name="IsNonStock", EmitDefaultValue=false)] + public BooleanValue IsNonStock { get; set; } - /// - /// Returns true if KitSpecification instances are equal - /// - /// Instance of KitSpecification to be compared - /// Boolean - public bool Equals(KitSpecification input) - { - if (input == null) - return false; + [DataMember(Name="KitInventoryID", EmitDefaultValue=false)] + public StringValue KitInventoryID { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.IsNonStock == input.IsNonStock || - (this.IsNonStock != null && - this.IsNonStock.Equals(input.IsNonStock)) - ) && base.Equals(input) && - ( - this.KitInventoryID == input.KitInventoryID || - (this.KitInventoryID != null && - this.KitInventoryID.Equals(input.KitInventoryID)) - ) && base.Equals(input) && - ( - this.NonStockComponents == input.NonStockComponents || - this.NonStockComponents != null && - this.NonStockComponents.SequenceEqual(input.NonStockComponents) - ) && base.Equals(input) && - ( - this.RevisionID == input.RevisionID || - (this.RevisionID != null && - this.RevisionID.Equals(input.RevisionID)) - ) && base.Equals(input) && - ( - this.StockComponents == input.StockComponents || - this.StockComponents != null && - this.StockComponents.SequenceEqual(input.StockComponents) - ); - } + [DataMember(Name="NonStockComponents", EmitDefaultValue=false)] + public List NonStockComponents { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IsNonStock != null) - hashCode = hashCode * 59 + this.IsNonStock.GetHashCode(); - if (this.KitInventoryID != null) - hashCode = hashCode * 59 + this.KitInventoryID.GetHashCode(); - if (this.NonStockComponents != null) - hashCode = hashCode * 59 + this.NonStockComponents.GetHashCode(); - if (this.RevisionID != null) - hashCode = hashCode * 59 + this.RevisionID.GetHashCode(); - if (this.StockComponents != null) - hashCode = hashCode * 59 + this.StockComponents.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="RevisionID", EmitDefaultValue=false)] + public StringValue RevisionID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="StockComponents", EmitDefaultValue=false)] + public List StockComponents { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/KitStockComponent.cs b/Acumatica.Default_17.200.001/Model/KitStockComponent.cs index 2b641d6e..937f8646 100644 --- a/Acumatica.Default_17.200.001/Model/KitStockComponent.cs +++ b/Acumatica.Default_17.200.001/Model/KitStockComponent.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// KitStockComponent - /// - [DataContract] - public partial class KitStockComponent : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allowComponentQtyVariance. - /// componentQty. - /// maxComponentQty. - /// minComponentQty. - /// stockInventoryID. - /// subitem. - /// uOM. - public KitStockComponent(BooleanValue allowComponentQtyVariance = default(BooleanValue), DecimalValue componentQty = default(DecimalValue), DecimalValue maxComponentQty = default(DecimalValue), DecimalValue minComponentQty = default(DecimalValue), StringValue stockInventoryID = default(StringValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllowComponentQtyVariance = allowComponentQtyVariance; - this.ComponentQty = componentQty; - this.MaxComponentQty = maxComponentQty; - this.MinComponentQty = minComponentQty; - this.StockInventoryID = stockInventoryID; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets AllowComponentQtyVariance - /// - [DataMember(Name="AllowComponentQtyVariance", EmitDefaultValue=false)] - public BooleanValue AllowComponentQtyVariance { get; set; } - - /// - /// Gets or Sets ComponentQty - /// - [DataMember(Name="ComponentQty", EmitDefaultValue=false)] - public DecimalValue ComponentQty { get; set; } - - /// - /// Gets or Sets MaxComponentQty - /// - [DataMember(Name="MaxComponentQty", EmitDefaultValue=false)] - public DecimalValue MaxComponentQty { get; set; } - - /// - /// Gets or Sets MinComponentQty - /// - [DataMember(Name="MinComponentQty", EmitDefaultValue=false)] - public DecimalValue MinComponentQty { get; set; } - - /// - /// Gets or Sets StockInventoryID - /// - [DataMember(Name="StockInventoryID", EmitDefaultValue=false)] - public StringValue StockInventoryID { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataContract] + public partial class KitStockComponent : Entity + { - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="AllowComponentQtyVariance", EmitDefaultValue=false)] + public BooleanValue AllowComponentQtyVariance { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitStockComponent {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllowComponentQtyVariance: ").Append(AllowComponentQtyVariance).Append("\n"); - sb.Append(" ComponentQty: ").Append(ComponentQty).Append("\n"); - sb.Append(" MaxComponentQty: ").Append(MaxComponentQty).Append("\n"); - sb.Append(" MinComponentQty: ").Append(MinComponentQty).Append("\n"); - sb.Append(" StockInventoryID: ").Append(StockInventoryID).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ComponentQty", EmitDefaultValue=false)] + public DecimalValue ComponentQty { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitStockComponent); - } + [DataMember(Name="MaxComponentQty", EmitDefaultValue=false)] + public DecimalValue MaxComponentQty { get; set; } - /// - /// Returns true if KitStockComponent instances are equal - /// - /// Instance of KitStockComponent to be compared - /// Boolean - public bool Equals(KitStockComponent input) - { - if (input == null) - return false; + [DataMember(Name="MinComponentQty", EmitDefaultValue=false)] + public DecimalValue MinComponentQty { get; set; } - return base.Equals(input) && - ( - this.AllowComponentQtyVariance == input.AllowComponentQtyVariance || - (this.AllowComponentQtyVariance != null && - this.AllowComponentQtyVariance.Equals(input.AllowComponentQtyVariance)) - ) && base.Equals(input) && - ( - this.ComponentQty == input.ComponentQty || - (this.ComponentQty != null && - this.ComponentQty.Equals(input.ComponentQty)) - ) && base.Equals(input) && - ( - this.MaxComponentQty == input.MaxComponentQty || - (this.MaxComponentQty != null && - this.MaxComponentQty.Equals(input.MaxComponentQty)) - ) && base.Equals(input) && - ( - this.MinComponentQty == input.MinComponentQty || - (this.MinComponentQty != null && - this.MinComponentQty.Equals(input.MinComponentQty)) - ) && base.Equals(input) && - ( - this.StockInventoryID == input.StockInventoryID || - (this.StockInventoryID != null && - this.StockInventoryID.Equals(input.StockInventoryID)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="StockInventoryID", EmitDefaultValue=false)] + public StringValue StockInventoryID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllowComponentQtyVariance != null) - hashCode = hashCode * 59 + this.AllowComponentQtyVariance.GetHashCode(); - if (this.ComponentQty != null) - hashCode = hashCode * 59 + this.ComponentQty.GetHashCode(); - if (this.MaxComponentQty != null) - hashCode = hashCode * 59 + this.MaxComponentQty.GetHashCode(); - if (this.MinComponentQty != null) - hashCode = hashCode * 59 + this.MinComponentQty.GetHashCode(); - if (this.StockInventoryID != null) - hashCode = hashCode * 59 + this.StockInventoryID.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Lead.cs b/Acumatica.Default_17.200.001/Model/Lead.cs index c3bdacac..d709ad72 100644 --- a/Acumatica.Default_17.200.001/Model/Lead.cs +++ b/Acumatica.Default_17.200.001/Model/Lead.cs @@ -1,862 +1,153 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Lead - /// - [DataContract] - public partial class Lead : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// activities. - /// address. - /// attributes. - /// businessAccount. - /// campaigns. - /// companyName. - /// contactMethod. - /// doNotCall. - /// doNotEmail. - /// doNotFax. - /// doNotMail. - /// duplicate. - /// duplicateFound. - /// duplicates. - /// email. - /// fax. - /// faxType. - /// firstName. - /// jobTitle. - /// languageOrLocale. - /// lastIncomingActivity. - /// lastName. - /// lastOutgoingActivity. - /// leadClass. - /// leadDisplayName. - /// leadID. - /// marketingLists. - /// noMarketing. - /// noMassMail. - /// owner. - /// ownerEmployeeName. - /// parentAccount. - /// phone1. - /// phone1Type. - /// phone2. - /// phone2Type. - /// phone3. - /// phone3Type. - /// reason. - /// relations. - /// source. - /// sourceCampaign. - /// status. - /// title. - /// webSite. - /// workgroup. - /// workgroupDescription. - public Lead(List activities = default(List), Address address = default(Address), List attributes = default(List), StringValue businessAccount = default(StringValue), List campaigns = default(List), StringValue companyName = default(StringValue), StringValue contactMethod = default(StringValue), BooleanValue doNotCall = default(BooleanValue), BooleanValue doNotEmail = default(BooleanValue), BooleanValue doNotFax = default(BooleanValue), BooleanValue doNotMail = default(BooleanValue), StringValue duplicate = default(StringValue), BooleanValue duplicateFound = default(BooleanValue), List duplicates = default(List), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue faxType = default(StringValue), StringValue firstName = default(StringValue), StringValue jobTitle = default(StringValue), StringValue languageOrLocale = default(StringValue), DateTimeValue lastIncomingActivity = default(DateTimeValue), StringValue lastName = default(StringValue), DateTimeValue lastOutgoingActivity = default(DateTimeValue), StringValue leadClass = default(StringValue), StringValue leadDisplayName = default(StringValue), IntValue leadID = default(IntValue), List marketingLists = default(List), BooleanValue noMarketing = default(BooleanValue), BooleanValue noMassMail = default(BooleanValue), StringValue owner = default(StringValue), StringValue ownerEmployeeName = default(StringValue), StringValue parentAccount = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone1Type = default(StringValue), StringValue phone2 = default(StringValue), StringValue phone2Type = default(StringValue), StringValue phone3 = default(StringValue), StringValue phone3Type = default(StringValue), StringValue reason = default(StringValue), List relations = default(List), StringValue source = default(StringValue), StringValue sourceCampaign = default(StringValue), StringValue status = default(StringValue), StringValue title = default(StringValue), StringValue webSite = default(StringValue), StringValue workgroup = default(StringValue), StringValue workgroupDescription = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Activities = activities; - this.Address = address; - this.Attributes = attributes; - this.BusinessAccount = businessAccount; - this.Campaigns = campaigns; - this.CompanyName = companyName; - this.ContactMethod = contactMethod; - this.DoNotCall = doNotCall; - this.DoNotEmail = doNotEmail; - this.DoNotFax = doNotFax; - this.DoNotMail = doNotMail; - this.Duplicate = duplicate; - this.DuplicateFound = duplicateFound; - this.Duplicates = duplicates; - this.Email = email; - this.Fax = fax; - this.FaxType = faxType; - this.FirstName = firstName; - this.JobTitle = jobTitle; - this.LanguageOrLocale = languageOrLocale; - this.LastIncomingActivity = lastIncomingActivity; - this.LastName = lastName; - this.LastOutgoingActivity = lastOutgoingActivity; - this.LeadClass = leadClass; - this.LeadDisplayName = leadDisplayName; - this.LeadID = leadID; - this.MarketingLists = marketingLists; - this.NoMarketing = noMarketing; - this.NoMassMail = noMassMail; - this.Owner = owner; - this.OwnerEmployeeName = ownerEmployeeName; - this.ParentAccount = parentAccount; - this.Phone1 = phone1; - this.Phone1Type = phone1Type; - this.Phone2 = phone2; - this.Phone2Type = phone2Type; - this.Phone3 = phone3; - this.Phone3Type = phone3Type; - this.Reason = reason; - this.Relations = relations; - this.Source = source; - this.SourceCampaign = sourceCampaign; - this.Status = status; - this.Title = title; - this.WebSite = webSite; - this.Workgroup = workgroup; - this.WorkgroupDescription = workgroupDescription; - } - - /// - /// Gets or Sets Activities - /// - [DataMember(Name="Activities", EmitDefaultValue=false)] - public List Activities { get; set; } - - /// - /// Gets or Sets Address - /// - [DataMember(Name="Address", EmitDefaultValue=false)] - public Address Address { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets Campaigns - /// - [DataMember(Name="Campaigns", EmitDefaultValue=false)] - public List Campaigns { get; set; } - - /// - /// Gets or Sets CompanyName - /// - [DataMember(Name="CompanyName", EmitDefaultValue=false)] - public StringValue CompanyName { get; set; } - - /// - /// Gets or Sets ContactMethod - /// - [DataMember(Name="ContactMethod", EmitDefaultValue=false)] - public StringValue ContactMethod { get; set; } - - /// - /// Gets or Sets DoNotCall - /// - [DataMember(Name="DoNotCall", EmitDefaultValue=false)] - public BooleanValue DoNotCall { get; set; } - - /// - /// Gets or Sets DoNotEmail - /// - [DataMember(Name="DoNotEmail", EmitDefaultValue=false)] - public BooleanValue DoNotEmail { get; set; } - - /// - /// Gets or Sets DoNotFax - /// - [DataMember(Name="DoNotFax", EmitDefaultValue=false)] - public BooleanValue DoNotFax { get; set; } - - /// - /// Gets or Sets DoNotMail - /// - [DataMember(Name="DoNotMail", EmitDefaultValue=false)] - public BooleanValue DoNotMail { get; set; } - - /// - /// Gets or Sets Duplicate - /// - [DataMember(Name="Duplicate", EmitDefaultValue=false)] - public StringValue Duplicate { get; set; } - - /// - /// Gets or Sets DuplicateFound - /// - [DataMember(Name="DuplicateFound", EmitDefaultValue=false)] - public BooleanValue DuplicateFound { get; set; } - - /// - /// Gets or Sets Duplicates - /// - [DataMember(Name="Duplicates", EmitDefaultValue=false)] - public List Duplicates { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets FaxType - /// - [DataMember(Name="FaxType", EmitDefaultValue=false)] - public StringValue FaxType { get; set; } - - /// - /// Gets or Sets FirstName - /// - [DataMember(Name="FirstName", EmitDefaultValue=false)] - public StringValue FirstName { get; set; } - - /// - /// Gets or Sets JobTitle - /// - [DataMember(Name="JobTitle", EmitDefaultValue=false)] - public StringValue JobTitle { get; set; } - - /// - /// Gets or Sets LanguageOrLocale - /// - [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] - public StringValue LanguageOrLocale { get; set; } - - /// - /// Gets or Sets LastIncomingActivity - /// - [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] - public DateTimeValue LastIncomingActivity { get; set; } - - /// - /// Gets or Sets LastName - /// - [DataMember(Name="LastName", EmitDefaultValue=false)] - public StringValue LastName { get; set; } - - /// - /// Gets or Sets LastOutgoingActivity - /// - [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] - public DateTimeValue LastOutgoingActivity { get; set; } - - /// - /// Gets or Sets LeadClass - /// - [DataMember(Name="LeadClass", EmitDefaultValue=false)] - public StringValue LeadClass { get; set; } - - /// - /// Gets or Sets LeadDisplayName - /// - [DataMember(Name="LeadDisplayName", EmitDefaultValue=false)] - public StringValue LeadDisplayName { get; set; } - - /// - /// Gets or Sets LeadID - /// - [DataMember(Name="LeadID", EmitDefaultValue=false)] - public IntValue LeadID { get; set; } - - /// - /// Gets or Sets MarketingLists - /// - [DataMember(Name="MarketingLists", EmitDefaultValue=false)] - public List MarketingLists { get; set; } - - /// - /// Gets or Sets NoMarketing - /// - [DataMember(Name="NoMarketing", EmitDefaultValue=false)] - public BooleanValue NoMarketing { get; set; } - - /// - /// Gets or Sets NoMassMail - /// - [DataMember(Name="NoMassMail", EmitDefaultValue=false)] - public BooleanValue NoMassMail { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets OwnerEmployeeName - /// - [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] - public StringValue OwnerEmployeeName { get; set; } - - /// - /// Gets or Sets ParentAccount - /// - [DataMember(Name="ParentAccount", EmitDefaultValue=false)] - public StringValue ParentAccount { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Phone1Type - /// - [DataMember(Name="Phone1Type", EmitDefaultValue=false)] - public StringValue Phone1Type { get; set; } - - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } - - /// - /// Gets or Sets Phone2Type - /// - [DataMember(Name="Phone2Type", EmitDefaultValue=false)] - public StringValue Phone2Type { get; set; } - - /// - /// Gets or Sets Phone3 - /// - [DataMember(Name="Phone3", EmitDefaultValue=false)] - public StringValue Phone3 { get; set; } - - /// - /// Gets or Sets Phone3Type - /// - [DataMember(Name="Phone3Type", EmitDefaultValue=false)] - public StringValue Phone3Type { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } - - /// - /// Gets or Sets Relations - /// - [DataMember(Name="Relations", EmitDefaultValue=false)] - public List Relations { get; set; } - - /// - /// Gets or Sets Source - /// - [DataMember(Name="Source", EmitDefaultValue=false)] - public StringValue Source { get; set; } - - /// - /// Gets or Sets SourceCampaign - /// - [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] - public StringValue SourceCampaign { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Title - /// - [DataMember(Name="Title", EmitDefaultValue=false)] - public StringValue Title { get; set; } - - /// - /// Gets or Sets WebSite - /// - [DataMember(Name="WebSite", EmitDefaultValue=false)] - public StringValue WebSite { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Gets or Sets WorkgroupDescription - /// - [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] - public StringValue WorkgroupDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Lead {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Activities: ").Append(Activities).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" Campaigns: ").Append(Campaigns).Append("\n"); - sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); - sb.Append(" ContactMethod: ").Append(ContactMethod).Append("\n"); - sb.Append(" DoNotCall: ").Append(DoNotCall).Append("\n"); - sb.Append(" DoNotEmail: ").Append(DoNotEmail).Append("\n"); - sb.Append(" DoNotFax: ").Append(DoNotFax).Append("\n"); - sb.Append(" DoNotMail: ").Append(DoNotMail).Append("\n"); - sb.Append(" Duplicate: ").Append(Duplicate).Append("\n"); - sb.Append(" DuplicateFound: ").Append(DuplicateFound).Append("\n"); - sb.Append(" Duplicates: ").Append(Duplicates).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" FaxType: ").Append(FaxType).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); - sb.Append(" LanguageOrLocale: ").Append(LanguageOrLocale).Append("\n"); - sb.Append(" LastIncomingActivity: ").Append(LastIncomingActivity).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" LastOutgoingActivity: ").Append(LastOutgoingActivity).Append("\n"); - sb.Append(" LeadClass: ").Append(LeadClass).Append("\n"); - sb.Append(" LeadDisplayName: ").Append(LeadDisplayName).Append("\n"); - sb.Append(" LeadID: ").Append(LeadID).Append("\n"); - sb.Append(" MarketingLists: ").Append(MarketingLists).Append("\n"); - sb.Append(" NoMarketing: ").Append(NoMarketing).Append("\n"); - sb.Append(" NoMassMail: ").Append(NoMassMail).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerEmployeeName: ").Append(OwnerEmployeeName).Append("\n"); - sb.Append(" ParentAccount: ").Append(ParentAccount).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone1Type: ").Append(Phone1Type).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" Phone2Type: ").Append(Phone2Type).Append("\n"); - sb.Append(" Phone3: ").Append(Phone3).Append("\n"); - sb.Append(" Phone3Type: ").Append(Phone3Type).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" Relations: ").Append(Relations).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append(" SourceCampaign: ").Append(SourceCampaign).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" WebSite: ").Append(WebSite).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append(" WorkgroupDescription: ").Append(WorkgroupDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Lead); - } - - /// - /// Returns true if Lead instances are equal - /// - /// Instance of Lead to be compared - /// Boolean - public bool Equals(Lead input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Activities == input.Activities || - this.Activities != null && - this.Activities.SequenceEqual(input.Activities) - ) && base.Equals(input) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.Campaigns == input.Campaigns || - this.Campaigns != null && - this.Campaigns.SequenceEqual(input.Campaigns) - ) && base.Equals(input) && - ( - this.CompanyName == input.CompanyName || - (this.CompanyName != null && - this.CompanyName.Equals(input.CompanyName)) - ) && base.Equals(input) && - ( - this.ContactMethod == input.ContactMethod || - (this.ContactMethod != null && - this.ContactMethod.Equals(input.ContactMethod)) - ) && base.Equals(input) && - ( - this.DoNotCall == input.DoNotCall || - (this.DoNotCall != null && - this.DoNotCall.Equals(input.DoNotCall)) - ) && base.Equals(input) && - ( - this.DoNotEmail == input.DoNotEmail || - (this.DoNotEmail != null && - this.DoNotEmail.Equals(input.DoNotEmail)) - ) && base.Equals(input) && - ( - this.DoNotFax == input.DoNotFax || - (this.DoNotFax != null && - this.DoNotFax.Equals(input.DoNotFax)) - ) && base.Equals(input) && - ( - this.DoNotMail == input.DoNotMail || - (this.DoNotMail != null && - this.DoNotMail.Equals(input.DoNotMail)) - ) && base.Equals(input) && - ( - this.Duplicate == input.Duplicate || - (this.Duplicate != null && - this.Duplicate.Equals(input.Duplicate)) - ) && base.Equals(input) && - ( - this.DuplicateFound == input.DuplicateFound || - (this.DuplicateFound != null && - this.DuplicateFound.Equals(input.DuplicateFound)) - ) && base.Equals(input) && - ( - this.Duplicates == input.Duplicates || - this.Duplicates != null && - this.Duplicates.SequenceEqual(input.Duplicates) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.FaxType == input.FaxType || - (this.FaxType != null && - this.FaxType.Equals(input.FaxType)) - ) && base.Equals(input) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && base.Equals(input) && - ( - this.JobTitle == input.JobTitle || - (this.JobTitle != null && - this.JobTitle.Equals(input.JobTitle)) - ) && base.Equals(input) && - ( - this.LanguageOrLocale == input.LanguageOrLocale || - (this.LanguageOrLocale != null && - this.LanguageOrLocale.Equals(input.LanguageOrLocale)) - ) && base.Equals(input) && - ( - this.LastIncomingActivity == input.LastIncomingActivity || - (this.LastIncomingActivity != null && - this.LastIncomingActivity.Equals(input.LastIncomingActivity)) - ) && base.Equals(input) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && base.Equals(input) && - ( - this.LastOutgoingActivity == input.LastOutgoingActivity || - (this.LastOutgoingActivity != null && - this.LastOutgoingActivity.Equals(input.LastOutgoingActivity)) - ) && base.Equals(input) && - ( - this.LeadClass == input.LeadClass || - (this.LeadClass != null && - this.LeadClass.Equals(input.LeadClass)) - ) && base.Equals(input) && - ( - this.LeadDisplayName == input.LeadDisplayName || - (this.LeadDisplayName != null && - this.LeadDisplayName.Equals(input.LeadDisplayName)) - ) && base.Equals(input) && - ( - this.LeadID == input.LeadID || - (this.LeadID != null && - this.LeadID.Equals(input.LeadID)) - ) && base.Equals(input) && - ( - this.MarketingLists == input.MarketingLists || - this.MarketingLists != null && - this.MarketingLists.SequenceEqual(input.MarketingLists) - ) && base.Equals(input) && - ( - this.NoMarketing == input.NoMarketing || - (this.NoMarketing != null && - this.NoMarketing.Equals(input.NoMarketing)) - ) && base.Equals(input) && - ( - this.NoMassMail == input.NoMassMail || - (this.NoMassMail != null && - this.NoMassMail.Equals(input.NoMassMail)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.OwnerEmployeeName == input.OwnerEmployeeName || - (this.OwnerEmployeeName != null && - this.OwnerEmployeeName.Equals(input.OwnerEmployeeName)) - ) && base.Equals(input) && - ( - this.ParentAccount == input.ParentAccount || - (this.ParentAccount != null && - this.ParentAccount.Equals(input.ParentAccount)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone1Type == input.Phone1Type || - (this.Phone1Type != null && - this.Phone1Type.Equals(input.Phone1Type)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.Phone2Type == input.Phone2Type || - (this.Phone2Type != null && - this.Phone2Type.Equals(input.Phone2Type)) - ) && base.Equals(input) && - ( - this.Phone3 == input.Phone3 || - (this.Phone3 != null && - this.Phone3.Equals(input.Phone3)) - ) && base.Equals(input) && - ( - this.Phone3Type == input.Phone3Type || - (this.Phone3Type != null && - this.Phone3Type.Equals(input.Phone3Type)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.Relations == input.Relations || - this.Relations != null && - this.Relations.SequenceEqual(input.Relations) - ) && base.Equals(input) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ) && base.Equals(input) && - ( - this.SourceCampaign == input.SourceCampaign || - (this.SourceCampaign != null && - this.SourceCampaign.Equals(input.SourceCampaign)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && base.Equals(input) && - ( - this.WebSite == input.WebSite || - (this.WebSite != null && - this.WebSite.Equals(input.WebSite)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ) && base.Equals(input) && - ( - this.WorkgroupDescription == input.WorkgroupDescription || - (this.WorkgroupDescription != null && - this.WorkgroupDescription.Equals(input.WorkgroupDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Activities != null) - hashCode = hashCode * 59 + this.Activities.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.Campaigns != null) - hashCode = hashCode * 59 + this.Campaigns.GetHashCode(); - if (this.CompanyName != null) - hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); - if (this.ContactMethod != null) - hashCode = hashCode * 59 + this.ContactMethod.GetHashCode(); - if (this.DoNotCall != null) - hashCode = hashCode * 59 + this.DoNotCall.GetHashCode(); - if (this.DoNotEmail != null) - hashCode = hashCode * 59 + this.DoNotEmail.GetHashCode(); - if (this.DoNotFax != null) - hashCode = hashCode * 59 + this.DoNotFax.GetHashCode(); - if (this.DoNotMail != null) - hashCode = hashCode * 59 + this.DoNotMail.GetHashCode(); - if (this.Duplicate != null) - hashCode = hashCode * 59 + this.Duplicate.GetHashCode(); - if (this.DuplicateFound != null) - hashCode = hashCode * 59 + this.DuplicateFound.GetHashCode(); - if (this.Duplicates != null) - hashCode = hashCode * 59 + this.Duplicates.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.FaxType != null) - hashCode = hashCode * 59 + this.FaxType.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.JobTitle != null) - hashCode = hashCode * 59 + this.JobTitle.GetHashCode(); - if (this.LanguageOrLocale != null) - hashCode = hashCode * 59 + this.LanguageOrLocale.GetHashCode(); - if (this.LastIncomingActivity != null) - hashCode = hashCode * 59 + this.LastIncomingActivity.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.LastOutgoingActivity != null) - hashCode = hashCode * 59 + this.LastOutgoingActivity.GetHashCode(); - if (this.LeadClass != null) - hashCode = hashCode * 59 + this.LeadClass.GetHashCode(); - if (this.LeadDisplayName != null) - hashCode = hashCode * 59 + this.LeadDisplayName.GetHashCode(); - if (this.LeadID != null) - hashCode = hashCode * 59 + this.LeadID.GetHashCode(); - if (this.MarketingLists != null) - hashCode = hashCode * 59 + this.MarketingLists.GetHashCode(); - if (this.NoMarketing != null) - hashCode = hashCode * 59 + this.NoMarketing.GetHashCode(); - if (this.NoMassMail != null) - hashCode = hashCode * 59 + this.NoMassMail.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerEmployeeName != null) - hashCode = hashCode * 59 + this.OwnerEmployeeName.GetHashCode(); - if (this.ParentAccount != null) - hashCode = hashCode * 59 + this.ParentAccount.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone1Type != null) - hashCode = hashCode * 59 + this.Phone1Type.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.Phone2Type != null) - hashCode = hashCode * 59 + this.Phone2Type.GetHashCode(); - if (this.Phone3 != null) - hashCode = hashCode * 59 + this.Phone3.GetHashCode(); - if (this.Phone3Type != null) - hashCode = hashCode * 59 + this.Phone3Type.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.Relations != null) - hashCode = hashCode * 59 + this.Relations.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - if (this.SourceCampaign != null) - hashCode = hashCode * 59 + this.SourceCampaign.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Title != null) - hashCode = hashCode * 59 + this.Title.GetHashCode(); - if (this.WebSite != null) - hashCode = hashCode * 59 + this.WebSite.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - if (this.WorkgroupDescription != null) - hashCode = hashCode * 59 + this.WorkgroupDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class Lead : Entity + { + + [DataMember(Name="Activities", EmitDefaultValue=false)] + public List Activities { get; set; } + + [DataMember(Name="Address", EmitDefaultValue=false)] + public Address Address { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } + + [DataMember(Name="Campaigns", EmitDefaultValue=false)] + public List Campaigns { get; set; } + + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public StringValue CompanyName { get; set; } + + [DataMember(Name="ContactMethod", EmitDefaultValue=false)] + public StringValue ContactMethod { get; set; } + + [DataMember(Name="DoNotCall", EmitDefaultValue=false)] + public BooleanValue DoNotCall { get; set; } + + [DataMember(Name="DoNotEmail", EmitDefaultValue=false)] + public BooleanValue DoNotEmail { get; set; } + + [DataMember(Name="DoNotFax", EmitDefaultValue=false)] + public BooleanValue DoNotFax { get; set; } + + [DataMember(Name="DoNotMail", EmitDefaultValue=false)] + public BooleanValue DoNotMail { get; set; } + + [DataMember(Name="Duplicate", EmitDefaultValue=false)] + public StringValue Duplicate { get; set; } + + [DataMember(Name="DuplicateFound", EmitDefaultValue=false)] + public BooleanValue DuplicateFound { get; set; } + + [DataMember(Name="Duplicates", EmitDefaultValue=false)] + public List Duplicates { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } + + [DataMember(Name="FaxType", EmitDefaultValue=false)] + public StringValue FaxType { get; set; } + + [DataMember(Name="FirstName", EmitDefaultValue=false)] + public StringValue FirstName { get; set; } + + [DataMember(Name="JobTitle", EmitDefaultValue=false)] + public StringValue JobTitle { get; set; } + + [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] + public StringValue LanguageOrLocale { get; set; } + + [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] + public DateTimeValue LastIncomingActivity { get; set; } + + [DataMember(Name="LastName", EmitDefaultValue=false)] + public StringValue LastName { get; set; } + + [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] + public DateTimeValue LastOutgoingActivity { get; set; } + + [DataMember(Name="LeadClass", EmitDefaultValue=false)] + public StringValue LeadClass { get; set; } + + [DataMember(Name="LeadDisplayName", EmitDefaultValue=false)] + public StringValue LeadDisplayName { get; set; } + + [DataMember(Name="LeadID", EmitDefaultValue=false)] + public IntValue LeadID { get; set; } + + [DataMember(Name="MarketingLists", EmitDefaultValue=false)] + public List MarketingLists { get; set; } + + [DataMember(Name="NoMarketing", EmitDefaultValue=false)] + public BooleanValue NoMarketing { get; set; } + + [DataMember(Name="NoMassMail", EmitDefaultValue=false)] + public BooleanValue NoMassMail { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] + public StringValue OwnerEmployeeName { get; set; } + + [DataMember(Name="ParentAccount", EmitDefaultValue=false)] + public StringValue ParentAccount { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + [DataMember(Name="Phone1Type", EmitDefaultValue=false)] + public StringValue Phone1Type { get; set; } + + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } + + [DataMember(Name="Phone2Type", EmitDefaultValue=false)] + public StringValue Phone2Type { get; set; } + + [DataMember(Name="Phone3", EmitDefaultValue=false)] + public StringValue Phone3 { get; set; } + + [DataMember(Name="Phone3Type", EmitDefaultValue=false)] + public StringValue Phone3Type { get; set; } + + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } + + [DataMember(Name="Relations", EmitDefaultValue=false)] + public List Relations { get; set; } + + [DataMember(Name="Source", EmitDefaultValue=false)] + public StringValue Source { get; set; } + + [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] + public StringValue SourceCampaign { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Title", EmitDefaultValue=false)] + public StringValue Title { get; set; } + + [DataMember(Name="WebSite", EmitDefaultValue=false)] + public StringValue WebSite { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] + public StringValue WorkgroupDescription { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/LotSerialClass.cs b/Acumatica.Default_17.200.001/Model/LotSerialClass.cs index 78c0bcc7..38871ead 100644 --- a/Acumatica.Default_17.200.001/Model/LotSerialClass.cs +++ b/Acumatica.Default_17.200.001/Model/LotSerialClass.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// LotSerialClass - /// - [DataContract] - public partial class LotSerialClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// assignmentMethod. - /// classID. - /// description. - /// issueMethod. - /// segments. - /// trackExpirationDate. - /// trackingMethod. - public LotSerialClass(StringValue assignmentMethod = default(StringValue), StringValue classID = default(StringValue), StringValue description = default(StringValue), StringValue issueMethod = default(StringValue), List segments = default(List), BooleanValue trackExpirationDate = default(BooleanValue), StringValue trackingMethod = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AssignmentMethod = assignmentMethod; - this.ClassID = classID; - this.Description = description; - this.IssueMethod = issueMethod; - this.Segments = segments; - this.TrackExpirationDate = trackExpirationDate; - this.TrackingMethod = trackingMethod; - } - - /// - /// Gets or Sets AssignmentMethod - /// - [DataMember(Name="AssignmentMethod", EmitDefaultValue=false)] - public StringValue AssignmentMethod { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets IssueMethod - /// - [DataMember(Name="IssueMethod", EmitDefaultValue=false)] - public StringValue IssueMethod { get; set; } - - /// - /// Gets or Sets Segments - /// - [DataMember(Name="Segments", EmitDefaultValue=false)] - public List Segments { get; set; } - - /// - /// Gets or Sets TrackExpirationDate - /// - [DataMember(Name="TrackExpirationDate", EmitDefaultValue=false)] - public BooleanValue TrackExpirationDate { get; set; } + [DataContract] + public partial class LotSerialClass : Entity + { - /// - /// Gets or Sets TrackingMethod - /// - [DataMember(Name="TrackingMethod", EmitDefaultValue=false)] - public StringValue TrackingMethod { get; set; } + [DataMember(Name="AssignmentMethod", EmitDefaultValue=false)] + public StringValue AssignmentMethod { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LotSerialClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AssignmentMethod: ").Append(AssignmentMethod).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IssueMethod: ").Append(IssueMethod).Append("\n"); - sb.Append(" Segments: ").Append(Segments).Append("\n"); - sb.Append(" TrackExpirationDate: ").Append(TrackExpirationDate).Append("\n"); - sb.Append(" TrackingMethod: ").Append(TrackingMethod).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LotSerialClass); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if LotSerialClass instances are equal - /// - /// Instance of LotSerialClass to be compared - /// Boolean - public bool Equals(LotSerialClass input) - { - if (input == null) - return false; + [DataMember(Name="IssueMethod", EmitDefaultValue=false)] + public StringValue IssueMethod { get; set; } - return base.Equals(input) && - ( - this.AssignmentMethod == input.AssignmentMethod || - (this.AssignmentMethod != null && - this.AssignmentMethod.Equals(input.AssignmentMethod)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.IssueMethod == input.IssueMethod || - (this.IssueMethod != null && - this.IssueMethod.Equals(input.IssueMethod)) - ) && base.Equals(input) && - ( - this.Segments == input.Segments || - this.Segments != null && - this.Segments.SequenceEqual(input.Segments) - ) && base.Equals(input) && - ( - this.TrackExpirationDate == input.TrackExpirationDate || - (this.TrackExpirationDate != null && - this.TrackExpirationDate.Equals(input.TrackExpirationDate)) - ) && base.Equals(input) && - ( - this.TrackingMethod == input.TrackingMethod || - (this.TrackingMethod != null && - this.TrackingMethod.Equals(input.TrackingMethod)) - ); - } + [DataMember(Name="Segments", EmitDefaultValue=false)] + public List Segments { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AssignmentMethod != null) - hashCode = hashCode * 59 + this.AssignmentMethod.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IssueMethod != null) - hashCode = hashCode * 59 + this.IssueMethod.GetHashCode(); - if (this.Segments != null) - hashCode = hashCode * 59 + this.Segments.GetHashCode(); - if (this.TrackExpirationDate != null) - hashCode = hashCode * 59 + this.TrackExpirationDate.GetHashCode(); - if (this.TrackingMethod != null) - hashCode = hashCode * 59 + this.TrackingMethod.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TrackExpirationDate", EmitDefaultValue=false)] + public BooleanValue TrackExpirationDate { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TrackingMethod", EmitDefaultValue=false)] + public StringValue TrackingMethod { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/LotSerialClassSegment.cs b/Acumatica.Default_17.200.001/Model/LotSerialClassSegment.cs index 25038aef..fa500254 100644 --- a/Acumatica.Default_17.200.001/Model/LotSerialClassSegment.cs +++ b/Acumatica.Default_17.200.001/Model/LotSerialClassSegment.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// LotSerialClassSegment - /// - [DataContract] - public partial class LotSerialClassSegment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// segmentNbr. - /// type. - /// value. - public LotSerialClassSegment(ShortValue segmentNbr = default(ShortValue), StringValue type = default(StringValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.SegmentNbr = segmentNbr; - this.Type = type; - this.Value = value; - } - - /// - /// Gets or Sets SegmentNbr - /// - [DataMember(Name="SegmentNbr", EmitDefaultValue=false)] - public ShortValue SegmentNbr { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LotSerialClassSegment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" SegmentNbr: ").Append(SegmentNbr).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LotSerialClassSegment); - } - - /// - /// Returns true if LotSerialClassSegment instances are equal - /// - /// Instance of LotSerialClassSegment to be compared - /// Boolean - public bool Equals(LotSerialClassSegment input) - { - if (input == null) - return false; + [DataContract] + public partial class LotSerialClassSegment : Entity + { - return base.Equals(input) && - ( - this.SegmentNbr == input.SegmentNbr || - (this.SegmentNbr != null && - this.SegmentNbr.Equals(input.SegmentNbr)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } + [DataMember(Name="SegmentNbr", EmitDefaultValue=false)] + public ShortValue SegmentNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.SegmentNbr != null) - hashCode = hashCode * 59 + this.SegmentNbr.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/MarketingListDetail.cs b/Acumatica.Default_17.200.001/Model/MarketingListDetail.cs index 277771ee..26b0a093 100644 --- a/Acumatica.Default_17.200.001/Model/MarketingListDetail.cs +++ b/Acumatica.Default_17.200.001/Model/MarketingListDetail.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// MarketingListDetail - /// - [DataContract] - public partial class MarketingListDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// contactID. - /// dynamicList. - /// format. - /// listName. - /// marketingListID. - /// subscribed. - public MarketingListDetail(IntValue contactID = default(IntValue), BooleanValue dynamicList = default(BooleanValue), StringValue format = default(StringValue), StringValue listName = default(StringValue), IntValue marketingListID = default(IntValue), BooleanValue subscribed = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ContactID = contactID; - this.DynamicList = dynamicList; - this.Format = format; - this.ListName = listName; - this.MarketingListID = marketingListID; - this.Subscribed = subscribed; - } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets DynamicList - /// - [DataMember(Name="DynamicList", EmitDefaultValue=false)] - public BooleanValue DynamicList { get; set; } - - /// - /// Gets or Sets Format - /// - [DataMember(Name="Format", EmitDefaultValue=false)] - public StringValue Format { get; set; } - - /// - /// Gets or Sets ListName - /// - [DataMember(Name="ListName", EmitDefaultValue=false)] - public StringValue ListName { get; set; } - - /// - /// Gets or Sets MarketingListID - /// - [DataMember(Name="MarketingListID", EmitDefaultValue=false)] - public IntValue MarketingListID { get; set; } - - /// - /// Gets or Sets Subscribed - /// - [DataMember(Name="Subscribed", EmitDefaultValue=false)] - public BooleanValue Subscribed { get; set; } + [DataContract] + public partial class MarketingListDetail : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MarketingListDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" DynamicList: ").Append(DynamicList).Append("\n"); - sb.Append(" Format: ").Append(Format).Append("\n"); - sb.Append(" ListName: ").Append(ListName).Append("\n"); - sb.Append(" MarketingListID: ").Append(MarketingListID).Append("\n"); - sb.Append(" Subscribed: ").Append(Subscribed).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MarketingListDetail); - } + [DataMember(Name="DynamicList", EmitDefaultValue=false)] + public BooleanValue DynamicList { get; set; } - /// - /// Returns true if MarketingListDetail instances are equal - /// - /// Instance of MarketingListDetail to be compared - /// Boolean - public bool Equals(MarketingListDetail input) - { - if (input == null) - return false; + [DataMember(Name="Format", EmitDefaultValue=false)] + public StringValue Format { get; set; } - return base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.DynamicList == input.DynamicList || - (this.DynamicList != null && - this.DynamicList.Equals(input.DynamicList)) - ) && base.Equals(input) && - ( - this.Format == input.Format || - (this.Format != null && - this.Format.Equals(input.Format)) - ) && base.Equals(input) && - ( - this.ListName == input.ListName || - (this.ListName != null && - this.ListName.Equals(input.ListName)) - ) && base.Equals(input) && - ( - this.MarketingListID == input.MarketingListID || - (this.MarketingListID != null && - this.MarketingListID.Equals(input.MarketingListID)) - ) && base.Equals(input) && - ( - this.Subscribed == input.Subscribed || - (this.Subscribed != null && - this.Subscribed.Equals(input.Subscribed)) - ); - } + [DataMember(Name="ListName", EmitDefaultValue=false)] + public StringValue ListName { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.DynamicList != null) - hashCode = hashCode * 59 + this.DynamicList.GetHashCode(); - if (this.Format != null) - hashCode = hashCode * 59 + this.Format.GetHashCode(); - if (this.ListName != null) - hashCode = hashCode * 59 + this.ListName.GetHashCode(); - if (this.MarketingListID != null) - hashCode = hashCode * 59 + this.MarketingListID.GetHashCode(); - if (this.Subscribed != null) - hashCode = hashCode * 59 + this.Subscribed.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="MarketingListID", EmitDefaultValue=false)] + public IntValue MarketingListID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Subscribed", EmitDefaultValue=false)] + public BooleanValue Subscribed { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/NonStockItem.cs b/Acumatica.Default_17.200.001/Model/NonStockItem.cs index 77a9b5d0..96888c34 100644 --- a/Acumatica.Default_17.200.001/Model/NonStockItem.cs +++ b/Acumatica.Default_17.200.001/Model/NonStockItem.cs @@ -1,782 +1,138 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// NonStockItem - /// - [DataContract] - public partial class NonStockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributes. - /// baseUnit. - /// crossReferences. - /// currentCost. - /// defaultPrice. - /// deferralAccount. - /// deferralSubaccount. - /// description. - /// effectiveDate. - /// expenseAccount. - /// expenseAccrualAccount. - /// expenseAccrualSubaccount. - /// expenseSubaccount. - /// inventoryID. - /// isKit. - /// itemClass. - /// itemStatus. - /// itemType. - /// lastCost. - /// lastModifiedDateTime. - /// pendingCost. - /// pendingCostDate. - /// pOAccrualAccount. - /// pOAccrualSubaccount. - /// postingClass. - /// priceClass. - /// purchasePriceVarianceAccount. - /// purchasePriceVarianceSubaccount. - /// purchaseUnit. - /// reasonCodeSubaccount. - /// requireReceipt. - /// requireShipment. - /// salesAccount. - /// salesCategories. - /// salesSubaccount. - /// salesUnit. - /// taxCategory. - /// vendorDetails. - /// volume. - /// volumeUOM. - /// weight. - /// weightUOM. - public NonStockItem(List attributes = default(List), StringValue baseUnit = default(StringValue), List crossReferences = default(List), DecimalValue currentCost = default(DecimalValue), DecimalValue defaultPrice = default(DecimalValue), StringValue deferralAccount = default(StringValue), StringValue deferralSubaccount = default(StringValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), StringValue expenseAccount = default(StringValue), StringValue expenseAccrualAccount = default(StringValue), StringValue expenseAccrualSubaccount = default(StringValue), StringValue expenseSubaccount = default(StringValue), StringValue inventoryID = default(StringValue), BooleanValue isKit = default(BooleanValue), StringValue itemClass = default(StringValue), StringValue itemStatus = default(StringValue), StringValue itemType = default(StringValue), DecimalValue lastCost = default(DecimalValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue pendingCost = default(DecimalValue), DateTimeValue pendingCostDate = default(DateTimeValue), StringValue pOAccrualAccount = default(StringValue), StringValue pOAccrualSubaccount = default(StringValue), StringValue postingClass = default(StringValue), StringValue priceClass = default(StringValue), StringValue purchasePriceVarianceAccount = default(StringValue), StringValue purchasePriceVarianceSubaccount = default(StringValue), StringValue purchaseUnit = default(StringValue), StringValue reasonCodeSubaccount = default(StringValue), BooleanValue requireReceipt = default(BooleanValue), BooleanValue requireShipment = default(BooleanValue), StringValue salesAccount = default(StringValue), List salesCategories = default(List), StringValue salesSubaccount = default(StringValue), StringValue salesUnit = default(StringValue), StringValue taxCategory = default(StringValue), List vendorDetails = default(List), DecimalValue volume = default(DecimalValue), StringValue volumeUOM = default(StringValue), DecimalValue weight = default(DecimalValue), StringValue weightUOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attributes = attributes; - this.BaseUnit = baseUnit; - this.CrossReferences = crossReferences; - this.CurrentCost = currentCost; - this.DefaultPrice = defaultPrice; - this.DeferralAccount = deferralAccount; - this.DeferralSubaccount = deferralSubaccount; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExpenseAccount = expenseAccount; - this.ExpenseAccrualAccount = expenseAccrualAccount; - this.ExpenseAccrualSubaccount = expenseAccrualSubaccount; - this.ExpenseSubaccount = expenseSubaccount; - this.InventoryID = inventoryID; - this.IsKit = isKit; - this.ItemClass = itemClass; - this.ItemStatus = itemStatus; - this.ItemType = itemType; - this.LastCost = lastCost; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PendingCost = pendingCost; - this.PendingCostDate = pendingCostDate; - this.POAccrualAccount = pOAccrualAccount; - this.POAccrualSubaccount = pOAccrualSubaccount; - this.PostingClass = postingClass; - this.PriceClass = priceClass; - this.PurchasePriceVarianceAccount = purchasePriceVarianceAccount; - this.PurchasePriceVarianceSubaccount = purchasePriceVarianceSubaccount; - this.PurchaseUnit = purchaseUnit; - this.ReasonCodeSubaccount = reasonCodeSubaccount; - this.RequireReceipt = requireReceipt; - this.RequireShipment = requireShipment; - this.SalesAccount = salesAccount; - this.SalesCategories = salesCategories; - this.SalesSubaccount = salesSubaccount; - this.SalesUnit = salesUnit; - this.TaxCategory = taxCategory; - this.VendorDetails = vendorDetails; - this.Volume = volume; - this.VolumeUOM = volumeUOM; - this.Weight = weight; - this.WeightUOM = weightUOM; - } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets BaseUnit - /// - [DataMember(Name="BaseUnit", EmitDefaultValue=false)] - public StringValue BaseUnit { get; set; } - - /// - /// Gets or Sets CrossReferences - /// - [DataMember(Name="CrossReferences", EmitDefaultValue=false)] - public List CrossReferences { get; set; } - - /// - /// Gets or Sets CurrentCost - /// - [DataMember(Name="CurrentCost", EmitDefaultValue=false)] - public DecimalValue CurrentCost { get; set; } - - /// - /// Gets or Sets DefaultPrice - /// - [DataMember(Name="DefaultPrice", EmitDefaultValue=false)] - public DecimalValue DefaultPrice { get; set; } - - /// - /// Gets or Sets DeferralAccount - /// - [DataMember(Name="DeferralAccount", EmitDefaultValue=false)] - public StringValue DeferralAccount { get; set; } - - /// - /// Gets or Sets DeferralSubaccount - /// - [DataMember(Name="DeferralSubaccount", EmitDefaultValue=false)] - public StringValue DeferralSubaccount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpenseAccount - /// - [DataMember(Name="ExpenseAccount", EmitDefaultValue=false)] - public StringValue ExpenseAccount { get; set; } - - /// - /// Gets or Sets ExpenseAccrualAccount - /// - [DataMember(Name="ExpenseAccrualAccount", EmitDefaultValue=false)] - public StringValue ExpenseAccrualAccount { get; set; } - - /// - /// Gets or Sets ExpenseAccrualSubaccount - /// - [DataMember(Name="ExpenseAccrualSubaccount", EmitDefaultValue=false)] - public StringValue ExpenseAccrualSubaccount { get; set; } - - /// - /// Gets or Sets ExpenseSubaccount - /// - [DataMember(Name="ExpenseSubaccount", EmitDefaultValue=false)] - public StringValue ExpenseSubaccount { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets IsKit - /// - [DataMember(Name="IsKit", EmitDefaultValue=false)] - public BooleanValue IsKit { get; set; } - - /// - /// Gets or Sets ItemClass - /// - [DataMember(Name="ItemClass", EmitDefaultValue=false)] - public StringValue ItemClass { get; set; } - - /// - /// Gets or Sets ItemStatus - /// - [DataMember(Name="ItemStatus", EmitDefaultValue=false)] - public StringValue ItemStatus { get; set; } - - /// - /// Gets or Sets ItemType - /// - [DataMember(Name="ItemType", EmitDefaultValue=false)] - public StringValue ItemType { get; set; } - - /// - /// Gets or Sets LastCost - /// - [DataMember(Name="LastCost", EmitDefaultValue=false)] - public DecimalValue LastCost { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets PendingCost - /// - [DataMember(Name="PendingCost", EmitDefaultValue=false)] - public DecimalValue PendingCost { get; set; } - - /// - /// Gets or Sets PendingCostDate - /// - [DataMember(Name="PendingCostDate", EmitDefaultValue=false)] - public DateTimeValue PendingCostDate { get; set; } - - /// - /// Gets or Sets POAccrualAccount - /// - [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] - public StringValue POAccrualAccount { get; set; } - - /// - /// Gets or Sets POAccrualSubaccount - /// - [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] - public StringValue POAccrualSubaccount { get; set; } - - /// - /// Gets or Sets PostingClass - /// - [DataMember(Name="PostingClass", EmitDefaultValue=false)] - public StringValue PostingClass { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceAccount - /// - [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceAccount { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceSubaccount - /// - [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceSubaccount { get; set; } - - /// - /// Gets or Sets PurchaseUnit - /// - [DataMember(Name="PurchaseUnit", EmitDefaultValue=false)] - public StringValue PurchaseUnit { get; set; } - - /// - /// Gets or Sets ReasonCodeSubaccount - /// - [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] - public StringValue ReasonCodeSubaccount { get; set; } - - /// - /// Gets or Sets RequireReceipt - /// - [DataMember(Name="RequireReceipt", EmitDefaultValue=false)] - public BooleanValue RequireReceipt { get; set; } - - /// - /// Gets or Sets RequireShipment - /// - [DataMember(Name="RequireShipment", EmitDefaultValue=false)] - public BooleanValue RequireShipment { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesCategories - /// - [DataMember(Name="SalesCategories", EmitDefaultValue=false)] - public List SalesCategories { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets SalesUnit - /// - [DataMember(Name="SalesUnit", EmitDefaultValue=false)] - public StringValue SalesUnit { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets VendorDetails - /// - [DataMember(Name="VendorDetails", EmitDefaultValue=false)] - public List VendorDetails { get; set; } - - /// - /// Gets or Sets Volume - /// - [DataMember(Name="Volume", EmitDefaultValue=false)] - public DecimalValue Volume { get; set; } - - /// - /// Gets or Sets VolumeUOM - /// - [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] - public StringValue VolumeUOM { get; set; } - - /// - /// Gets or Sets Weight - /// - [DataMember(Name="Weight", EmitDefaultValue=false)] - public DecimalValue Weight { get; set; } - - /// - /// Gets or Sets WeightUOM - /// - [DataMember(Name="WeightUOM", EmitDefaultValue=false)] - public StringValue WeightUOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NonStockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BaseUnit: ").Append(BaseUnit).Append("\n"); - sb.Append(" CrossReferences: ").Append(CrossReferences).Append("\n"); - sb.Append(" CurrentCost: ").Append(CurrentCost).Append("\n"); - sb.Append(" DefaultPrice: ").Append(DefaultPrice).Append("\n"); - sb.Append(" DeferralAccount: ").Append(DeferralAccount).Append("\n"); - sb.Append(" DeferralSubaccount: ").Append(DeferralSubaccount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpenseAccount: ").Append(ExpenseAccount).Append("\n"); - sb.Append(" ExpenseAccrualAccount: ").Append(ExpenseAccrualAccount).Append("\n"); - sb.Append(" ExpenseAccrualSubaccount: ").Append(ExpenseAccrualSubaccount).Append("\n"); - sb.Append(" ExpenseSubaccount: ").Append(ExpenseSubaccount).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" IsKit: ").Append(IsKit).Append("\n"); - sb.Append(" ItemClass: ").Append(ItemClass).Append("\n"); - sb.Append(" ItemStatus: ").Append(ItemStatus).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" LastCost: ").Append(LastCost).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PendingCost: ").Append(PendingCost).Append("\n"); - sb.Append(" PendingCostDate: ").Append(PendingCostDate).Append("\n"); - sb.Append(" POAccrualAccount: ").Append(POAccrualAccount).Append("\n"); - sb.Append(" POAccrualSubaccount: ").Append(POAccrualSubaccount).Append("\n"); - sb.Append(" PostingClass: ").Append(PostingClass).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" PurchasePriceVarianceAccount: ").Append(PurchasePriceVarianceAccount).Append("\n"); - sb.Append(" PurchasePriceVarianceSubaccount: ").Append(PurchasePriceVarianceSubaccount).Append("\n"); - sb.Append(" PurchaseUnit: ").Append(PurchaseUnit).Append("\n"); - sb.Append(" ReasonCodeSubaccount: ").Append(ReasonCodeSubaccount).Append("\n"); - sb.Append(" RequireReceipt: ").Append(RequireReceipt).Append("\n"); - sb.Append(" RequireShipment: ").Append(RequireShipment).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesCategories: ").Append(SalesCategories).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" SalesUnit: ").Append(SalesUnit).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" VendorDetails: ").Append(VendorDetails).Append("\n"); - sb.Append(" Volume: ").Append(Volume).Append("\n"); - sb.Append(" VolumeUOM: ").Append(VolumeUOM).Append("\n"); - sb.Append(" Weight: ").Append(Weight).Append("\n"); - sb.Append(" WeightUOM: ").Append(WeightUOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NonStockItem); - } - - /// - /// Returns true if NonStockItem instances are equal - /// - /// Instance of NonStockItem to be compared - /// Boolean - public bool Equals(NonStockItem input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BaseUnit == input.BaseUnit || - (this.BaseUnit != null && - this.BaseUnit.Equals(input.BaseUnit)) - ) && base.Equals(input) && - ( - this.CrossReferences == input.CrossReferences || - this.CrossReferences != null && - this.CrossReferences.SequenceEqual(input.CrossReferences) - ) && base.Equals(input) && - ( - this.CurrentCost == input.CurrentCost || - (this.CurrentCost != null && - this.CurrentCost.Equals(input.CurrentCost)) - ) && base.Equals(input) && - ( - this.DefaultPrice == input.DefaultPrice || - (this.DefaultPrice != null && - this.DefaultPrice.Equals(input.DefaultPrice)) - ) && base.Equals(input) && - ( - this.DeferralAccount == input.DeferralAccount || - (this.DeferralAccount != null && - this.DeferralAccount.Equals(input.DeferralAccount)) - ) && base.Equals(input) && - ( - this.DeferralSubaccount == input.DeferralSubaccount || - (this.DeferralSubaccount != null && - this.DeferralSubaccount.Equals(input.DeferralSubaccount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpenseAccount == input.ExpenseAccount || - (this.ExpenseAccount != null && - this.ExpenseAccount.Equals(input.ExpenseAccount)) - ) && base.Equals(input) && - ( - this.ExpenseAccrualAccount == input.ExpenseAccrualAccount || - (this.ExpenseAccrualAccount != null && - this.ExpenseAccrualAccount.Equals(input.ExpenseAccrualAccount)) - ) && base.Equals(input) && - ( - this.ExpenseAccrualSubaccount == input.ExpenseAccrualSubaccount || - (this.ExpenseAccrualSubaccount != null && - this.ExpenseAccrualSubaccount.Equals(input.ExpenseAccrualSubaccount)) - ) && base.Equals(input) && - ( - this.ExpenseSubaccount == input.ExpenseSubaccount || - (this.ExpenseSubaccount != null && - this.ExpenseSubaccount.Equals(input.ExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.IsKit == input.IsKit || - (this.IsKit != null && - this.IsKit.Equals(input.IsKit)) - ) && base.Equals(input) && - ( - this.ItemClass == input.ItemClass || - (this.ItemClass != null && - this.ItemClass.Equals(input.ItemClass)) - ) && base.Equals(input) && - ( - this.ItemStatus == input.ItemStatus || - (this.ItemStatus != null && - this.ItemStatus.Equals(input.ItemStatus)) - ) && base.Equals(input) && - ( - this.ItemType == input.ItemType || - (this.ItemType != null && - this.ItemType.Equals(input.ItemType)) - ) && base.Equals(input) && - ( - this.LastCost == input.LastCost || - (this.LastCost != null && - this.LastCost.Equals(input.LastCost)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PendingCost == input.PendingCost || - (this.PendingCost != null && - this.PendingCost.Equals(input.PendingCost)) - ) && base.Equals(input) && - ( - this.PendingCostDate == input.PendingCostDate || - (this.PendingCostDate != null && - this.PendingCostDate.Equals(input.PendingCostDate)) - ) && base.Equals(input) && - ( - this.POAccrualAccount == input.POAccrualAccount || - (this.POAccrualAccount != null && - this.POAccrualAccount.Equals(input.POAccrualAccount)) - ) && base.Equals(input) && - ( - this.POAccrualSubaccount == input.POAccrualSubaccount || - (this.POAccrualSubaccount != null && - this.POAccrualSubaccount.Equals(input.POAccrualSubaccount)) - ) && base.Equals(input) && - ( - this.PostingClass == input.PostingClass || - (this.PostingClass != null && - this.PostingClass.Equals(input.PostingClass)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceAccount == input.PurchasePriceVarianceAccount || - (this.PurchasePriceVarianceAccount != null && - this.PurchasePriceVarianceAccount.Equals(input.PurchasePriceVarianceAccount)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceSubaccount == input.PurchasePriceVarianceSubaccount || - (this.PurchasePriceVarianceSubaccount != null && - this.PurchasePriceVarianceSubaccount.Equals(input.PurchasePriceVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.PurchaseUnit == input.PurchaseUnit || - (this.PurchaseUnit != null && - this.PurchaseUnit.Equals(input.PurchaseUnit)) - ) && base.Equals(input) && - ( - this.ReasonCodeSubaccount == input.ReasonCodeSubaccount || - (this.ReasonCodeSubaccount != null && - this.ReasonCodeSubaccount.Equals(input.ReasonCodeSubaccount)) - ) && base.Equals(input) && - ( - this.RequireReceipt == input.RequireReceipt || - (this.RequireReceipt != null && - this.RequireReceipt.Equals(input.RequireReceipt)) - ) && base.Equals(input) && - ( - this.RequireShipment == input.RequireShipment || - (this.RequireShipment != null && - this.RequireShipment.Equals(input.RequireShipment)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesCategories == input.SalesCategories || - this.SalesCategories != null && - this.SalesCategories.SequenceEqual(input.SalesCategories) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.SalesUnit == input.SalesUnit || - (this.SalesUnit != null && - this.SalesUnit.Equals(input.SalesUnit)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.VendorDetails == input.VendorDetails || - this.VendorDetails != null && - this.VendorDetails.SequenceEqual(input.VendorDetails) - ) && base.Equals(input) && - ( - this.Volume == input.Volume || - (this.Volume != null && - this.Volume.Equals(input.Volume)) - ) && base.Equals(input) && - ( - this.VolumeUOM == input.VolumeUOM || - (this.VolumeUOM != null && - this.VolumeUOM.Equals(input.VolumeUOM)) - ) && base.Equals(input) && - ( - this.Weight == input.Weight || - (this.Weight != null && - this.Weight.Equals(input.Weight)) - ) && base.Equals(input) && - ( - this.WeightUOM == input.WeightUOM || - (this.WeightUOM != null && - this.WeightUOM.Equals(input.WeightUOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BaseUnit != null) - hashCode = hashCode * 59 + this.BaseUnit.GetHashCode(); - if (this.CrossReferences != null) - hashCode = hashCode * 59 + this.CrossReferences.GetHashCode(); - if (this.CurrentCost != null) - hashCode = hashCode * 59 + this.CurrentCost.GetHashCode(); - if (this.DefaultPrice != null) - hashCode = hashCode * 59 + this.DefaultPrice.GetHashCode(); - if (this.DeferralAccount != null) - hashCode = hashCode * 59 + this.DeferralAccount.GetHashCode(); - if (this.DeferralSubaccount != null) - hashCode = hashCode * 59 + this.DeferralSubaccount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpenseAccount != null) - hashCode = hashCode * 59 + this.ExpenseAccount.GetHashCode(); - if (this.ExpenseAccrualAccount != null) - hashCode = hashCode * 59 + this.ExpenseAccrualAccount.GetHashCode(); - if (this.ExpenseAccrualSubaccount != null) - hashCode = hashCode * 59 + this.ExpenseAccrualSubaccount.GetHashCode(); - if (this.ExpenseSubaccount != null) - hashCode = hashCode * 59 + this.ExpenseSubaccount.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.IsKit != null) - hashCode = hashCode * 59 + this.IsKit.GetHashCode(); - if (this.ItemClass != null) - hashCode = hashCode * 59 + this.ItemClass.GetHashCode(); - if (this.ItemStatus != null) - hashCode = hashCode * 59 + this.ItemStatus.GetHashCode(); - if (this.ItemType != null) - hashCode = hashCode * 59 + this.ItemType.GetHashCode(); - if (this.LastCost != null) - hashCode = hashCode * 59 + this.LastCost.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PendingCost != null) - hashCode = hashCode * 59 + this.PendingCost.GetHashCode(); - if (this.PendingCostDate != null) - hashCode = hashCode * 59 + this.PendingCostDate.GetHashCode(); - if (this.POAccrualAccount != null) - hashCode = hashCode * 59 + this.POAccrualAccount.GetHashCode(); - if (this.POAccrualSubaccount != null) - hashCode = hashCode * 59 + this.POAccrualSubaccount.GetHashCode(); - if (this.PostingClass != null) - hashCode = hashCode * 59 + this.PostingClass.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.PurchasePriceVarianceAccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceAccount.GetHashCode(); - if (this.PurchasePriceVarianceSubaccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceSubaccount.GetHashCode(); - if (this.PurchaseUnit != null) - hashCode = hashCode * 59 + this.PurchaseUnit.GetHashCode(); - if (this.ReasonCodeSubaccount != null) - hashCode = hashCode * 59 + this.ReasonCodeSubaccount.GetHashCode(); - if (this.RequireReceipt != null) - hashCode = hashCode * 59 + this.RequireReceipt.GetHashCode(); - if (this.RequireShipment != null) - hashCode = hashCode * 59 + this.RequireShipment.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesCategories != null) - hashCode = hashCode * 59 + this.SalesCategories.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.SalesUnit != null) - hashCode = hashCode * 59 + this.SalesUnit.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.VendorDetails != null) - hashCode = hashCode * 59 + this.VendorDetails.GetHashCode(); - if (this.Volume != null) - hashCode = hashCode * 59 + this.Volume.GetHashCode(); - if (this.VolumeUOM != null) - hashCode = hashCode * 59 + this.VolumeUOM.GetHashCode(); - if (this.Weight != null) - hashCode = hashCode * 59 + this.Weight.GetHashCode(); - if (this.WeightUOM != null) - hashCode = hashCode * 59 + this.WeightUOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class NonStockItem : Entity + { + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BaseUnit", EmitDefaultValue=false)] + public StringValue BaseUnit { get; set; } + + [DataMember(Name="CrossReferences", EmitDefaultValue=false)] + public List CrossReferences { get; set; } + + [DataMember(Name="CurrentCost", EmitDefaultValue=false)] + public DecimalValue CurrentCost { get; set; } + + [DataMember(Name="DefaultPrice", EmitDefaultValue=false)] + public DecimalValue DefaultPrice { get; set; } + + [DataMember(Name="DeferralAccount", EmitDefaultValue=false)] + public StringValue DeferralAccount { get; set; } + + [DataMember(Name="DeferralSubaccount", EmitDefaultValue=false)] + public StringValue DeferralSubaccount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="ExpenseAccount", EmitDefaultValue=false)] + public StringValue ExpenseAccount { get; set; } + + [DataMember(Name="ExpenseAccrualAccount", EmitDefaultValue=false)] + public StringValue ExpenseAccrualAccount { get; set; } + + [DataMember(Name="ExpenseAccrualSubaccount", EmitDefaultValue=false)] + public StringValue ExpenseAccrualSubaccount { get; set; } + + [DataMember(Name="ExpenseSubaccount", EmitDefaultValue=false)] + public StringValue ExpenseSubaccount { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="IsKit", EmitDefaultValue=false)] + public BooleanValue IsKit { get; set; } + + [DataMember(Name="ItemClass", EmitDefaultValue=false)] + public StringValue ItemClass { get; set; } + + [DataMember(Name="ItemStatus", EmitDefaultValue=false)] + public StringValue ItemStatus { get; set; } + + [DataMember(Name="ItemType", EmitDefaultValue=false)] + public StringValue ItemType { get; set; } + + [DataMember(Name="LastCost", EmitDefaultValue=false)] + public DecimalValue LastCost { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="PendingCost", EmitDefaultValue=false)] + public DecimalValue PendingCost { get; set; } + + [DataMember(Name="PendingCostDate", EmitDefaultValue=false)] + public DateTimeValue PendingCostDate { get; set; } + + [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] + public StringValue POAccrualAccount { get; set; } + + [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] + public StringValue POAccrualSubaccount { get; set; } + + [DataMember(Name="PostingClass", EmitDefaultValue=false)] + public StringValue PostingClass { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceAccount { get; set; } + + [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceSubaccount { get; set; } + + [DataMember(Name="PurchaseUnit", EmitDefaultValue=false)] + public StringValue PurchaseUnit { get; set; } + + [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] + public StringValue ReasonCodeSubaccount { get; set; } + + [DataMember(Name="RequireReceipt", EmitDefaultValue=false)] + public BooleanValue RequireReceipt { get; set; } + + [DataMember(Name="RequireShipment", EmitDefaultValue=false)] + public BooleanValue RequireShipment { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesCategories", EmitDefaultValue=false)] + public List SalesCategories { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="SalesUnit", EmitDefaultValue=false)] + public StringValue SalesUnit { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="VendorDetails", EmitDefaultValue=false)] + public List VendorDetails { get; set; } + + [DataMember(Name="Volume", EmitDefaultValue=false)] + public DecimalValue Volume { get; set; } + + [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] + public StringValue VolumeUOM { get; set; } + + [DataMember(Name="Weight", EmitDefaultValue=false)] + public DecimalValue Weight { get; set; } + + [DataMember(Name="WeightUOM", EmitDefaultValue=false)] + public StringValue WeightUOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/NonStockItemAttribute.cs b/Acumatica.Default_17.200.001/Model/NonStockItemAttribute.cs index 12212343..aeaf7636 100644 --- a/Acumatica.Default_17.200.001/Model/NonStockItemAttribute.cs +++ b/Acumatica.Default_17.200.001/Model/NonStockItemAttribute.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// NonStockItemAttribute - /// - [DataContract] - public partial class NonStockItemAttribute : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attribute. - /// required. - /// value. - public NonStockItemAttribute(StringValue attribute = default(StringValue), BooleanValue required = default(BooleanValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attribute = attribute; - this.Required = required; - this.Value = value; - } - - /// - /// Gets or Sets Attribute - /// - [DataMember(Name="Attribute", EmitDefaultValue=false)] - public StringValue Attribute { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="Required", EmitDefaultValue=false)] - public BooleanValue Required { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NonStockItemAttribute {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attribute: ").Append(Attribute).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NonStockItemAttribute); - } - - /// - /// Returns true if NonStockItemAttribute instances are equal - /// - /// Instance of NonStockItemAttribute to be compared - /// Boolean - public bool Equals(NonStockItemAttribute input) - { - if (input == null) - return false; + [DataContract] + public partial class NonStockItemAttribute : Entity + { - return base.Equals(input) && - ( - this.Attribute == input.Attribute || - (this.Attribute != null && - this.Attribute.Equals(input.Attribute)) - ) && base.Equals(input) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } + [DataMember(Name="Attribute", EmitDefaultValue=false)] + public StringValue Attribute { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attribute != null) - hashCode = hashCode * 59 + this.Attribute.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Required", EmitDefaultValue=false)] + public BooleanValue Required { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/NonStockItemSalesCategory.cs b/Acumatica.Default_17.200.001/Model/NonStockItemSalesCategory.cs index c0654d37..49ab162e 100644 --- a/Acumatica.Default_17.200.001/Model/NonStockItemSalesCategory.cs +++ b/Acumatica.Default_17.200.001/Model/NonStockItemSalesCategory.cs @@ -1,126 +1,15 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// NonStockItemSalesCategory - /// - [DataContract] - public partial class NonStockItemSalesCategory : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// categoryID. - public NonStockItemSalesCategory(IntValue categoryID = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CategoryID = categoryID; - } - - /// - /// Gets or Sets CategoryID - /// - [DataMember(Name="CategoryID", EmitDefaultValue=false)] - public IntValue CategoryID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NonStockItemSalesCategory {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CategoryID: ").Append(CategoryID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NonStockItemSalesCategory); - } - - /// - /// Returns true if NonStockItemSalesCategory instances are equal - /// - /// Instance of NonStockItemSalesCategory to be compared - /// Boolean - public bool Equals(NonStockItemSalesCategory input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CategoryID == input.CategoryID || - (this.CategoryID != null && - this.CategoryID.Equals(input.CategoryID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CategoryID != null) - hashCode = hashCode * 59 + this.CategoryID.GetHashCode(); - return hashCode; - } - } + [DataContract] + public partial class NonStockItemSalesCategory : Entity + { - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="CategoryID", EmitDefaultValue=false)] + public IntValue CategoryID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/NonStockItemVendorDetail.cs b/Acumatica.Default_17.200.001/Model/NonStockItemVendorDetail.cs index c51423d0..0b631d0e 100644 --- a/Acumatica.Default_17.200.001/Model/NonStockItemVendorDetail.cs +++ b/Acumatica.Default_17.200.001/Model/NonStockItemVendorDetail.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// NonStockItemVendorDetail - /// - [DataContract] - public partial class NonStockItemVendorDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// vendorID. - /// vendorName. - public NonStockItemVendorDetail(StringValue vendorID = default(StringValue), StringValue vendorName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.VendorID = vendorID; - this.VendorName = vendorName; - } - - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } - - /// - /// Gets or Sets VendorName - /// - [DataMember(Name="VendorName", EmitDefaultValue=false)] - public StringValue VendorName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NonStockItemVendorDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append(" VendorName: ").Append(VendorName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NonStockItemVendorDetail); - } - - /// - /// Returns true if NonStockItemVendorDetail instances are equal - /// - /// Instance of NonStockItemVendorDetail to be compared - /// Boolean - public bool Equals(NonStockItemVendorDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ) && base.Equals(input) && - ( - this.VendorName == input.VendorName || - (this.VendorName != null && - this.VendorName.Equals(input.VendorName)) - ); - } + [DataContract] + public partial class NonStockItemVendorDetail : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - if (this.VendorName != null) - hashCode = hashCode * 59 + this.VendorName.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorName", EmitDefaultValue=false)] + public StringValue VendorName { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Opportunity.cs b/Acumatica.Default_17.200.001/Model/Opportunity.cs index 1fcc71ae..8a00d5c9 100644 --- a/Acumatica.Default_17.200.001/Model/Opportunity.cs +++ b/Acumatica.Default_17.200.001/Model/Opportunity.cs @@ -1,750 +1,132 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Opportunity - /// - [DataContract] - public partial class Opportunity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// activities. - /// address. - /// amount. - /// attributes. - /// branch. - /// businessAccount. - /// classID. - /// contactDisplayName. - /// contactID. - /// contactInformation. - /// convertedLeadDisplayName. - /// convertedLeadID. - /// currencyID. - /// currencyViewState. - /// details. - /// discount. - /// discounts. - /// estimation. - /// location. - /// manualAmount. - /// opportunityID. - /// _override. - /// owner. - /// ownerEmployeeName. - /// parentAccount. - /// products. - /// project. - /// reason. - /// relations. - /// source. - /// sourceCampaign. - /// stage. - /// status. - /// subject. - /// taxDetails. - /// taxZone. - /// total. - /// weightTotal. - /// workgroupDescription. - /// workgroupID. - public Opportunity(List activities = default(List), Address address = default(Address), DecimalValue amount = default(DecimalValue), List attributes = default(List), StringValue branch = default(StringValue), StringValue businessAccount = default(StringValue), StringValue classID = default(StringValue), StringValue contactDisplayName = default(StringValue), IntValue contactID = default(IntValue), OpportunityContact contactInformation = default(OpportunityContact), StringValue convertedLeadDisplayName = default(StringValue), IntValue convertedLeadID = default(IntValue), StringValue currencyID = default(StringValue), BooleanValue currencyViewState = default(BooleanValue), StringValue details = default(StringValue), DecimalValue discount = default(DecimalValue), List discounts = default(List), DateTimeValue estimation = default(DateTimeValue), StringValue location = default(StringValue), BooleanValue manualAmount = default(BooleanValue), StringValue opportunityID = default(StringValue), BooleanValue _override = default(BooleanValue), StringValue owner = default(StringValue), StringValue ownerEmployeeName = default(StringValue), StringValue parentAccount = default(StringValue), List products = default(List), StringValue project = default(StringValue), StringValue reason = default(StringValue), List relations = default(List), StringValue source = default(StringValue), StringValue sourceCampaign = default(StringValue), StringValue stage = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), List taxDetails = default(List), StringValue taxZone = default(StringValue), DecimalValue total = default(DecimalValue), DecimalValue weightTotal = default(DecimalValue), StringValue workgroupDescription = default(StringValue), StringValue workgroupID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Activities = activities; - this.Address = address; - this.Amount = amount; - this.Attributes = attributes; - this.Branch = branch; - this.BusinessAccount = businessAccount; - this.ClassID = classID; - this.ContactDisplayName = contactDisplayName; - this.ContactID = contactID; - this.ContactInformation = contactInformation; - this.ConvertedLeadDisplayName = convertedLeadDisplayName; - this.ConvertedLeadID = convertedLeadID; - this.CurrencyID = currencyID; - this.CurrencyViewState = currencyViewState; - this.Details = details; - this.Discount = discount; - this.Discounts = discounts; - this.Estimation = estimation; - this.Location = location; - this.ManualAmount = manualAmount; - this.OpportunityID = opportunityID; - this.Override = _override; - this.Owner = owner; - this.OwnerEmployeeName = ownerEmployeeName; - this.ParentAccount = parentAccount; - this.Products = products; - this.Project = project; - this.Reason = reason; - this.Relations = relations; - this.Source = source; - this.SourceCampaign = sourceCampaign; - this.Stage = stage; - this.Status = status; - this.Subject = subject; - this.TaxDetails = taxDetails; - this.TaxZone = taxZone; - this.Total = total; - this.WeightTotal = weightTotal; - this.WorkgroupDescription = workgroupDescription; - this.WorkgroupID = workgroupID; - } - - /// - /// Gets or Sets Activities - /// - [DataMember(Name="Activities", EmitDefaultValue=false)] - public List Activities { get; set; } - - /// - /// Gets or Sets Address - /// - [DataMember(Name="Address", EmitDefaultValue=false)] - public Address Address { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets ContactDisplayName - /// - [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] - public StringValue ContactDisplayName { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets ContactInformation - /// - [DataMember(Name="ContactInformation", EmitDefaultValue=false)] - public OpportunityContact ContactInformation { get; set; } - - /// - /// Gets or Sets ConvertedLeadDisplayName - /// - [DataMember(Name="ConvertedLeadDisplayName", EmitDefaultValue=false)] - public StringValue ConvertedLeadDisplayName { get; set; } - - /// - /// Gets or Sets ConvertedLeadID - /// - [DataMember(Name="ConvertedLeadID", EmitDefaultValue=false)] - public IntValue ConvertedLeadID { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyViewState - /// - [DataMember(Name="CurrencyViewState", EmitDefaultValue=false)] - public BooleanValue CurrencyViewState { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public StringValue Details { get; set; } - - /// - /// Gets or Sets Discount - /// - [DataMember(Name="Discount", EmitDefaultValue=false)] - public DecimalValue Discount { get; set; } - - /// - /// Gets or Sets Discounts - /// - [DataMember(Name="Discounts", EmitDefaultValue=false)] - public List Discounts { get; set; } - - /// - /// Gets or Sets Estimation - /// - [DataMember(Name="Estimation", EmitDefaultValue=false)] - public DateTimeValue Estimation { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets ManualAmount - /// - [DataMember(Name="ManualAmount", EmitDefaultValue=false)] - public BooleanValue ManualAmount { get; set; } - - /// - /// Gets or Sets OpportunityID - /// - [DataMember(Name="OpportunityID", EmitDefaultValue=false)] - public StringValue OpportunityID { get; set; } - - /// - /// Gets or Sets Override - /// - [DataMember(Name="Override", EmitDefaultValue=false)] - public BooleanValue Override { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets OwnerEmployeeName - /// - [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] - public StringValue OwnerEmployeeName { get; set; } - - /// - /// Gets or Sets ParentAccount - /// - [DataMember(Name="ParentAccount", EmitDefaultValue=false)] - public StringValue ParentAccount { get; set; } - - /// - /// Gets or Sets Products - /// - [DataMember(Name="Products", EmitDefaultValue=false)] - public List Products { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } - - /// - /// Gets or Sets Relations - /// - [DataMember(Name="Relations", EmitDefaultValue=false)] - public List Relations { get; set; } - - /// - /// Gets or Sets Source - /// - [DataMember(Name="Source", EmitDefaultValue=false)] - public StringValue Source { get; set; } - - /// - /// Gets or Sets SourceCampaign - /// - [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] - public StringValue SourceCampaign { get; set; } - - /// - /// Gets or Sets Stage - /// - [DataMember(Name="Stage", EmitDefaultValue=false)] - public StringValue Stage { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public List TaxDetails { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Total - /// - [DataMember(Name="Total", EmitDefaultValue=false)] - public DecimalValue Total { get; set; } - - /// - /// Gets or Sets WeightTotal - /// - [DataMember(Name="WeightTotal", EmitDefaultValue=false)] - public DecimalValue WeightTotal { get; set; } - - /// - /// Gets or Sets WorkgroupDescription - /// - [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] - public StringValue WorkgroupDescription { get; set; } - - /// - /// Gets or Sets WorkgroupID - /// - [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] - public StringValue WorkgroupID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Opportunity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Activities: ").Append(Activities).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" ContactDisplayName: ").Append(ContactDisplayName).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" ContactInformation: ").Append(ContactInformation).Append("\n"); - sb.Append(" ConvertedLeadDisplayName: ").Append(ConvertedLeadDisplayName).Append("\n"); - sb.Append(" ConvertedLeadID: ").Append(ConvertedLeadID).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyViewState: ").Append(CurrencyViewState).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Discount: ").Append(Discount).Append("\n"); - sb.Append(" Discounts: ").Append(Discounts).Append("\n"); - sb.Append(" Estimation: ").Append(Estimation).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" ManualAmount: ").Append(ManualAmount).Append("\n"); - sb.Append(" OpportunityID: ").Append(OpportunityID).Append("\n"); - sb.Append(" Override: ").Append(Override).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerEmployeeName: ").Append(OwnerEmployeeName).Append("\n"); - sb.Append(" ParentAccount: ").Append(ParentAccount).Append("\n"); - sb.Append(" Products: ").Append(Products).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" Relations: ").Append(Relations).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append(" SourceCampaign: ").Append(SourceCampaign).Append("\n"); - sb.Append(" Stage: ").Append(Stage).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Total: ").Append(Total).Append("\n"); - sb.Append(" WeightTotal: ").Append(WeightTotal).Append("\n"); - sb.Append(" WorkgroupDescription: ").Append(WorkgroupDescription).Append("\n"); - sb.Append(" WorkgroupID: ").Append(WorkgroupID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Opportunity); - } - - /// - /// Returns true if Opportunity instances are equal - /// - /// Instance of Opportunity to be compared - /// Boolean - public bool Equals(Opportunity input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Activities == input.Activities || - this.Activities != null && - this.Activities.SequenceEqual(input.Activities) - ) && base.Equals(input) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.ContactDisplayName == input.ContactDisplayName || - (this.ContactDisplayName != null && - this.ContactDisplayName.Equals(input.ContactDisplayName)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.ContactInformation == input.ContactInformation || - (this.ContactInformation != null && - this.ContactInformation.Equals(input.ContactInformation)) - ) && base.Equals(input) && - ( - this.ConvertedLeadDisplayName == input.ConvertedLeadDisplayName || - (this.ConvertedLeadDisplayName != null && - this.ConvertedLeadDisplayName.Equals(input.ConvertedLeadDisplayName)) - ) && base.Equals(input) && - ( - this.ConvertedLeadID == input.ConvertedLeadID || - (this.ConvertedLeadID != null && - this.ConvertedLeadID.Equals(input.ConvertedLeadID)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyViewState == input.CurrencyViewState || - (this.CurrencyViewState != null && - this.CurrencyViewState.Equals(input.CurrencyViewState)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - (this.Details != null && - this.Details.Equals(input.Details)) - ) && base.Equals(input) && - ( - this.Discount == input.Discount || - (this.Discount != null && - this.Discount.Equals(input.Discount)) - ) && base.Equals(input) && - ( - this.Discounts == input.Discounts || - this.Discounts != null && - this.Discounts.SequenceEqual(input.Discounts) - ) && base.Equals(input) && - ( - this.Estimation == input.Estimation || - (this.Estimation != null && - this.Estimation.Equals(input.Estimation)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.ManualAmount == input.ManualAmount || - (this.ManualAmount != null && - this.ManualAmount.Equals(input.ManualAmount)) - ) && base.Equals(input) && - ( - this.OpportunityID == input.OpportunityID || - (this.OpportunityID != null && - this.OpportunityID.Equals(input.OpportunityID)) - ) && base.Equals(input) && - ( - this.Override == input.Override || - (this.Override != null && - this.Override.Equals(input.Override)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.OwnerEmployeeName == input.OwnerEmployeeName || - (this.OwnerEmployeeName != null && - this.OwnerEmployeeName.Equals(input.OwnerEmployeeName)) - ) && base.Equals(input) && - ( - this.ParentAccount == input.ParentAccount || - (this.ParentAccount != null && - this.ParentAccount.Equals(input.ParentAccount)) - ) && base.Equals(input) && - ( - this.Products == input.Products || - this.Products != null && - this.Products.SequenceEqual(input.Products) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.Relations == input.Relations || - this.Relations != null && - this.Relations.SequenceEqual(input.Relations) - ) && base.Equals(input) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ) && base.Equals(input) && - ( - this.SourceCampaign == input.SourceCampaign || - (this.SourceCampaign != null && - this.SourceCampaign.Equals(input.SourceCampaign)) - ) && base.Equals(input) && - ( - this.Stage == input.Stage || - (this.Stage != null && - this.Stage.Equals(input.Stage)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Total == input.Total || - (this.Total != null && - this.Total.Equals(input.Total)) - ) && base.Equals(input) && - ( - this.WeightTotal == input.WeightTotal || - (this.WeightTotal != null && - this.WeightTotal.Equals(input.WeightTotal)) - ) && base.Equals(input) && - ( - this.WorkgroupDescription == input.WorkgroupDescription || - (this.WorkgroupDescription != null && - this.WorkgroupDescription.Equals(input.WorkgroupDescription)) - ) && base.Equals(input) && - ( - this.WorkgroupID == input.WorkgroupID || - (this.WorkgroupID != null && - this.WorkgroupID.Equals(input.WorkgroupID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Activities != null) - hashCode = hashCode * 59 + this.Activities.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.ContactDisplayName != null) - hashCode = hashCode * 59 + this.ContactDisplayName.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.ContactInformation != null) - hashCode = hashCode * 59 + this.ContactInformation.GetHashCode(); - if (this.ConvertedLeadDisplayName != null) - hashCode = hashCode * 59 + this.ConvertedLeadDisplayName.GetHashCode(); - if (this.ConvertedLeadID != null) - hashCode = hashCode * 59 + this.ConvertedLeadID.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyViewState != null) - hashCode = hashCode * 59 + this.CurrencyViewState.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Discount != null) - hashCode = hashCode * 59 + this.Discount.GetHashCode(); - if (this.Discounts != null) - hashCode = hashCode * 59 + this.Discounts.GetHashCode(); - if (this.Estimation != null) - hashCode = hashCode * 59 + this.Estimation.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.ManualAmount != null) - hashCode = hashCode * 59 + this.ManualAmount.GetHashCode(); - if (this.OpportunityID != null) - hashCode = hashCode * 59 + this.OpportunityID.GetHashCode(); - if (this.Override != null) - hashCode = hashCode * 59 + this.Override.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerEmployeeName != null) - hashCode = hashCode * 59 + this.OwnerEmployeeName.GetHashCode(); - if (this.ParentAccount != null) - hashCode = hashCode * 59 + this.ParentAccount.GetHashCode(); - if (this.Products != null) - hashCode = hashCode * 59 + this.Products.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.Relations != null) - hashCode = hashCode * 59 + this.Relations.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - if (this.SourceCampaign != null) - hashCode = hashCode * 59 + this.SourceCampaign.GetHashCode(); - if (this.Stage != null) - hashCode = hashCode * 59 + this.Stage.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Total != null) - hashCode = hashCode * 59 + this.Total.GetHashCode(); - if (this.WeightTotal != null) - hashCode = hashCode * 59 + this.WeightTotal.GetHashCode(); - if (this.WorkgroupDescription != null) - hashCode = hashCode * 59 + this.WorkgroupDescription.GetHashCode(); - if (this.WorkgroupID != null) - hashCode = hashCode * 59 + this.WorkgroupID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class Opportunity : Entity + { + + [DataMember(Name="Activities", EmitDefaultValue=false)] + public List Activities { get; set; } + + [DataMember(Name="Address", EmitDefaultValue=false)] + public Address Address { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] + public StringValue ContactDisplayName { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="ContactInformation", EmitDefaultValue=false)] + public OpportunityContact ContactInformation { get; set; } + + [DataMember(Name="ConvertedLeadDisplayName", EmitDefaultValue=false)] + public StringValue ConvertedLeadDisplayName { get; set; } + + [DataMember(Name="ConvertedLeadID", EmitDefaultValue=false)] + public IntValue ConvertedLeadID { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyViewState", EmitDefaultValue=false)] + public BooleanValue CurrencyViewState { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public StringValue Details { get; set; } + + [DataMember(Name="Discount", EmitDefaultValue=false)] + public DecimalValue Discount { get; set; } + + [DataMember(Name="Discounts", EmitDefaultValue=false)] + public List Discounts { get; set; } + + [DataMember(Name="Estimation", EmitDefaultValue=false)] + public DateTimeValue Estimation { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="ManualAmount", EmitDefaultValue=false)] + public BooleanValue ManualAmount { get; set; } + + [DataMember(Name="OpportunityID", EmitDefaultValue=false)] + public StringValue OpportunityID { get; set; } + + [DataMember(Name="Override", EmitDefaultValue=false)] + public BooleanValue Override { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] + public StringValue OwnerEmployeeName { get; set; } + + [DataMember(Name="ParentAccount", EmitDefaultValue=false)] + public StringValue ParentAccount { get; set; } + + [DataMember(Name="Products", EmitDefaultValue=false)] + public List Products { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } + + [DataMember(Name="Relations", EmitDefaultValue=false)] + public List Relations { get; set; } + + [DataMember(Name="Source", EmitDefaultValue=false)] + public StringValue Source { get; set; } + + [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] + public StringValue SourceCampaign { get; set; } + + [DataMember(Name="Stage", EmitDefaultValue=false)] + public StringValue Stage { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Total", EmitDefaultValue=false)] + public DecimalValue Total { get; set; } + + [DataMember(Name="WeightTotal", EmitDefaultValue=false)] + public DecimalValue WeightTotal { get; set; } + + [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] + public StringValue WorkgroupDescription { get; set; } + + [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] + public StringValue WorkgroupID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/OpportunityContact.cs b/Acumatica.Default_17.200.001/Model/OpportunityContact.cs index a99526cf..d5fec095 100644 --- a/Acumatica.Default_17.200.001/Model/OpportunityContact.cs +++ b/Acumatica.Default_17.200.001/Model/OpportunityContact.cs @@ -1,366 +1,60 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// OpportunityContact - /// - [DataContract] - public partial class OpportunityContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// companyName. - /// email. - /// fax. - /// faxType. - /// firstName. - /// lastName. - /// phone1. - /// phone1Type. - /// phone2. - /// phone2Type. - /// phone3. - /// phone3Type. - /// position. - /// attention. - /// title. - /// webSite. - public OpportunityContact(StringValue companyName = default(StringValue), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue faxType = default(StringValue), StringValue firstName = default(StringValue), StringValue lastName = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone1Type = default(StringValue), StringValue phone2 = default(StringValue), StringValue phone2Type = default(StringValue), StringValue phone3 = default(StringValue), StringValue phone3Type = default(StringValue), StringValue position = default(StringValue), StringValue attention = default(StringValue), StringValue title = default(StringValue), StringValue webSite = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CompanyName = companyName; - this.Email = email; - this.Fax = fax; - this.FaxType = faxType; - this.FirstName = firstName; - this.LastName = lastName; - this.Phone1 = phone1; - this.Phone1Type = phone1Type; - this.Phone2 = phone2; - this.Phone2Type = phone2Type; - this.Phone3 = phone3; - this.Phone3Type = phone3Type; - this.Position = position; - this.Attention = attention; - this.Title = title; - this.WebSite = webSite; - } - - /// - /// Gets or Sets CompanyName - /// - [DataMember(Name="CompanyName", EmitDefaultValue=false)] - public StringValue CompanyName { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets FaxType - /// - [DataMember(Name="FaxType", EmitDefaultValue=false)] - public StringValue FaxType { get; set; } - - /// - /// Gets or Sets FirstName - /// - [DataMember(Name="FirstName", EmitDefaultValue=false)] - public StringValue FirstName { get; set; } - - /// - /// Gets or Sets LastName - /// - [DataMember(Name="LastName", EmitDefaultValue=false)] - public StringValue LastName { get; set; } + [DataContract] + public partial class OpportunityContact : Entity + { - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public StringValue CompanyName { get; set; } - /// - /// Gets or Sets Phone1Type - /// - [DataMember(Name="Phone1Type", EmitDefaultValue=false)] - public StringValue Phone1Type { get; set; } + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } - /// - /// Gets or Sets Phone2Type - /// - [DataMember(Name="Phone2Type", EmitDefaultValue=false)] - public StringValue Phone2Type { get; set; } + [DataMember(Name="FaxType", EmitDefaultValue=false)] + public StringValue FaxType { get; set; } - /// - /// Gets or Sets Phone3 - /// - [DataMember(Name="Phone3", EmitDefaultValue=false)] - public StringValue Phone3 { get; set; } + [DataMember(Name="FirstName", EmitDefaultValue=false)] + public StringValue FirstName { get; set; } - /// - /// Gets or Sets Phone3Type - /// - [DataMember(Name="Phone3Type", EmitDefaultValue=false)] - public StringValue Phone3Type { get; set; } + [DataMember(Name="LastName", EmitDefaultValue=false)] + public StringValue LastName { get; set; } - /// - /// Gets or Sets Position - /// - [DataMember(Name="Position", EmitDefaultValue=false)] - public StringValue Position { get; set; } + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } + [DataMember(Name="Phone1Type", EmitDefaultValue=false)] + public StringValue Phone1Type { get; set; } - /// - /// Gets or Sets Title - /// - [DataMember(Name="Title", EmitDefaultValue=false)] - public StringValue Title { get; set; } + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } - /// - /// Gets or Sets WebSite - /// - [DataMember(Name="WebSite", EmitDefaultValue=false)] - public StringValue WebSite { get; set; } + [DataMember(Name="Phone2Type", EmitDefaultValue=false)] + public StringValue Phone2Type { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OpportunityContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" FaxType: ").Append(FaxType).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone1Type: ").Append(Phone1Type).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" Phone2Type: ").Append(Phone2Type).Append("\n"); - sb.Append(" Phone3: ").Append(Phone3).Append("\n"); - sb.Append(" Phone3Type: ").Append(Phone3Type).Append("\n"); - sb.Append(" Position: ").Append(Position).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" WebSite: ").Append(WebSite).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Phone3", EmitDefaultValue=false)] + public StringValue Phone3 { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OpportunityContact); - } + [DataMember(Name="Phone3Type", EmitDefaultValue=false)] + public StringValue Phone3Type { get; set; } - /// - /// Returns true if OpportunityContact instances are equal - /// - /// Instance of OpportunityContact to be compared - /// Boolean - public bool Equals(OpportunityContact input) - { - if (input == null) - return false; + [DataMember(Name="Position", EmitDefaultValue=false)] + public StringValue Position { get; set; } - return base.Equals(input) && - ( - this.CompanyName == input.CompanyName || - (this.CompanyName != null && - this.CompanyName.Equals(input.CompanyName)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.FaxType == input.FaxType || - (this.FaxType != null && - this.FaxType.Equals(input.FaxType)) - ) && base.Equals(input) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && base.Equals(input) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone1Type == input.Phone1Type || - (this.Phone1Type != null && - this.Phone1Type.Equals(input.Phone1Type)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.Phone2Type == input.Phone2Type || - (this.Phone2Type != null && - this.Phone2Type.Equals(input.Phone2Type)) - ) && base.Equals(input) && - ( - this.Phone3 == input.Phone3 || - (this.Phone3 != null && - this.Phone3.Equals(input.Phone3)) - ) && base.Equals(input) && - ( - this.Phone3Type == input.Phone3Type || - (this.Phone3Type != null && - this.Phone3Type.Equals(input.Phone3Type)) - ) && base.Equals(input) && - ( - this.Position == input.Position || - (this.Position != null && - this.Position.Equals(input.Position)) - ) && base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && base.Equals(input) && - ( - this.WebSite == input.WebSite || - (this.WebSite != null && - this.WebSite.Equals(input.WebSite)) - ); - } + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CompanyName != null) - hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.FaxType != null) - hashCode = hashCode * 59 + this.FaxType.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone1Type != null) - hashCode = hashCode * 59 + this.Phone1Type.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.Phone2Type != null) - hashCode = hashCode * 59 + this.Phone2Type.GetHashCode(); - if (this.Phone3 != null) - hashCode = hashCode * 59 + this.Phone3.GetHashCode(); - if (this.Phone3Type != null) - hashCode = hashCode * 59 + this.Phone3Type.GetHashCode(); - if (this.Position != null) - hashCode = hashCode * 59 + this.Position.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.Title != null) - hashCode = hashCode * 59 + this.Title.GetHashCode(); - if (this.WebSite != null) - hashCode = hashCode * 59 + this.WebSite.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Title", EmitDefaultValue=false)] + public StringValue Title { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WebSite", EmitDefaultValue=false)] + public StringValue WebSite { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/OpportunityDetail.cs b/Acumatica.Default_17.200.001/Model/OpportunityDetail.cs index 09cd65f9..55ca4636 100644 --- a/Acumatica.Default_17.200.001/Model/OpportunityDetail.cs +++ b/Acumatica.Default_17.200.001/Model/OpportunityDetail.cs @@ -1,270 +1,42 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// OpportunityDetail - /// - [DataContract] - public partial class OpportunityDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// currency. - /// displayName. - /// estimation. - /// owner. - /// probability. - /// stage. - /// status. - /// subject. - /// total. - /// workgroup. - public OpportunityDetail(StringValue currency = default(StringValue), StringValue displayName = default(StringValue), DateTimeValue estimation = default(DateTimeValue), StringValue owner = default(StringValue), IntValue probability = default(IntValue), StringValue stage = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), DecimalValue total = default(DecimalValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Currency = currency; - this.DisplayName = displayName; - this.Estimation = estimation; - this.Owner = owner; - this.Probability = probability; - this.Stage = stage; - this.Status = status; - this.Subject = subject; - this.Total = total; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Currency - /// - [DataMember(Name="Currency", EmitDefaultValue=false)] - public StringValue Currency { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets Estimation - /// - [DataMember(Name="Estimation", EmitDefaultValue=false)] - public DateTimeValue Estimation { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Probability - /// - [DataMember(Name="Probability", EmitDefaultValue=false)] - public IntValue Probability { get; set; } - - /// - /// Gets or Sets Stage - /// - [DataMember(Name="Stage", EmitDefaultValue=false)] - public StringValue Stage { get; set; } + [DataContract] + public partial class OpportunityDetail : Entity + { - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Currency", EmitDefaultValue=false)] + public StringValue Currency { get; set; } - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } - /// - /// Gets or Sets Total - /// - [DataMember(Name="Total", EmitDefaultValue=false)] - public DecimalValue Total { get; set; } + [DataMember(Name="Estimation", EmitDefaultValue=false)] + public DateTimeValue Estimation { get; set; } - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OpportunityDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Estimation: ").Append(Estimation).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Probability: ").Append(Probability).Append("\n"); - sb.Append(" Stage: ").Append(Stage).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Total: ").Append(Total).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Probability", EmitDefaultValue=false)] + public IntValue Probability { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OpportunityDetail); - } + [DataMember(Name="Stage", EmitDefaultValue=false)] + public StringValue Stage { get; set; } - /// - /// Returns true if OpportunityDetail instances are equal - /// - /// Instance of OpportunityDetail to be compared - /// Boolean - public bool Equals(OpportunityDetail input) - { - if (input == null) - return false; + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - return base.Equals(input) && - ( - this.Currency == input.Currency || - (this.Currency != null && - this.Currency.Equals(input.Currency)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.Estimation == input.Estimation || - (this.Estimation != null && - this.Estimation.Equals(input.Estimation)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Probability == input.Probability || - (this.Probability != null && - this.Probability.Equals(input.Probability)) - ) && base.Equals(input) && - ( - this.Stage == input.Stage || - (this.Stage != null && - this.Stage.Equals(input.Stage)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.Total == input.Total || - (this.Total != null && - this.Total.Equals(input.Total)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Currency != null) - hashCode = hashCode * 59 + this.Currency.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Estimation != null) - hashCode = hashCode * 59 + this.Estimation.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Probability != null) - hashCode = hashCode * 59 + this.Probability.GetHashCode(); - if (this.Stage != null) - hashCode = hashCode * 59 + this.Stage.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Total != null) - hashCode = hashCode * 59 + this.Total.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Total", EmitDefaultValue=false)] + public DecimalValue Total { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/OpportunityDiscount.cs b/Acumatica.Default_17.200.001/Model/OpportunityDiscount.cs index b2c2cfd7..c882df53 100644 --- a/Acumatica.Default_17.200.001/Model/OpportunityDiscount.cs +++ b/Acumatica.Default_17.200.001/Model/OpportunityDiscount.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// OpportunityDiscount - /// - [DataContract] - public partial class OpportunityDiscount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// discountableAmount. - /// discountableQty. - /// discountAmount. - /// discountCode. - /// discountPercent. - /// freeItem. - /// freeItemQty. - /// lineNbr. - /// manualDiscount. - /// sequenceID. - /// skipDiscount. - /// type. - public OpportunityDiscount(DecimalValue discountableAmount = default(DecimalValue), DecimalValue discountableQty = default(DecimalValue), DecimalValue discountAmount = default(DecimalValue), StringValue discountCode = default(StringValue), DecimalValue discountPercent = default(DecimalValue), StringValue freeItem = default(StringValue), DecimalValue freeItemQty = default(DecimalValue), IntValue lineNbr = default(IntValue), BooleanValue manualDiscount = default(BooleanValue), StringValue sequenceID = default(StringValue), BooleanValue skipDiscount = default(BooleanValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DiscountableAmount = discountableAmount; - this.DiscountableQty = discountableQty; - this.DiscountAmount = discountAmount; - this.DiscountCode = discountCode; - this.DiscountPercent = discountPercent; - this.FreeItem = freeItem; - this.FreeItemQty = freeItemQty; - this.LineNbr = lineNbr; - this.ManualDiscount = manualDiscount; - this.SequenceID = sequenceID; - this.SkipDiscount = skipDiscount; - this.Type = type; - } - - /// - /// Gets or Sets DiscountableAmount - /// - [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] - public DecimalValue DiscountableAmount { get; set; } - - /// - /// Gets or Sets DiscountableQty - /// - [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] - public DecimalValue DiscountableQty { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public StringValue FreeItem { get; set; } + [DataContract] + public partial class OpportunityDiscount : Entity + { - /// - /// Gets or Sets FreeItemQty - /// - [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] - public DecimalValue FreeItemQty { get; set; } + [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] + public DecimalValue DiscountableAmount { get; set; } - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } + [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] + public DecimalValue DiscountableQty { get; set; } - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } - /// - /// Gets or Sets SequenceID - /// - [DataMember(Name="SequenceID", EmitDefaultValue=false)] - public StringValue SequenceID { get; set; } + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } - /// - /// Gets or Sets SkipDiscount - /// - [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] - public BooleanValue SkipDiscount { get; set; } + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public StringValue FreeItem { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OpportunityDiscount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DiscountableAmount: ").Append(DiscountableAmount).Append("\n"); - sb.Append(" DiscountableQty: ").Append(DiscountableQty).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" FreeItemQty: ").Append(FreeItemQty).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" SequenceID: ").Append(SequenceID).Append("\n"); - sb.Append(" SkipDiscount: ").Append(SkipDiscount).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] + public DecimalValue FreeItemQty { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OpportunityDiscount); - } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Returns true if OpportunityDiscount instances are equal - /// - /// Instance of OpportunityDiscount to be compared - /// Boolean - public bool Equals(OpportunityDiscount input) - { - if (input == null) - return false; + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } - return base.Equals(input) && - ( - this.DiscountableAmount == input.DiscountableAmount || - (this.DiscountableAmount != null && - this.DiscountableAmount.Equals(input.DiscountableAmount)) - ) && base.Equals(input) && - ( - this.DiscountableQty == input.DiscountableQty || - (this.DiscountableQty != null && - this.DiscountableQty.Equals(input.DiscountableQty)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.FreeItemQty == input.FreeItemQty || - (this.FreeItemQty != null && - this.FreeItemQty.Equals(input.FreeItemQty)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.SequenceID == input.SequenceID || - (this.SequenceID != null && - this.SequenceID.Equals(input.SequenceID)) - ) && base.Equals(input) && - ( - this.SkipDiscount == input.SkipDiscount || - (this.SkipDiscount != null && - this.SkipDiscount.Equals(input.SkipDiscount)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="SequenceID", EmitDefaultValue=false)] + public StringValue SequenceID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DiscountableAmount != null) - hashCode = hashCode * 59 + this.DiscountableAmount.GetHashCode(); - if (this.DiscountableQty != null) - hashCode = hashCode * 59 + this.DiscountableQty.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.FreeItemQty != null) - hashCode = hashCode * 59 + this.FreeItemQty.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.SequenceID != null) - hashCode = hashCode * 59 + this.SequenceID.GetHashCode(); - if (this.SkipDiscount != null) - hashCode = hashCode * 59 + this.SkipDiscount.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] + public BooleanValue SkipDiscount { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/OpportunityProduct.cs b/Acumatica.Default_17.200.001/Model/OpportunityProduct.cs index 35d3f476..da4c5a70 100644 --- a/Acumatica.Default_17.200.001/Model/OpportunityProduct.cs +++ b/Acumatica.Default_17.200.001/Model/OpportunityProduct.cs @@ -1,398 +1,66 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// OpportunityProduct - /// - [DataContract] - public partial class OpportunityProduct : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// discount. - /// discountAmount. - /// discountCode. - /// discountSequence. - /// externalPrice. - /// freeItem. - /// inventoryID. - /// manualDiscount. - /// opportunityProductID. - /// projectTask. - /// qty. - /// subitem. - /// taxCategory. - /// transactionDescription. - /// unitPrice. - /// uOM. - /// warehouse. - public OpportunityProduct(DecimalValue amount = default(DecimalValue), DecimalValue discount = default(DecimalValue), DecimalValue discountAmount = default(DecimalValue), StringValue discountCode = default(StringValue), StringValue discountSequence = default(StringValue), DecimalValue externalPrice = default(DecimalValue), BooleanValue freeItem = default(BooleanValue), StringValue inventoryID = default(StringValue), BooleanValue manualDiscount = default(BooleanValue), IntValue opportunityProductID = default(IntValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subitem = default(StringValue), StringValue taxCategory = default(StringValue), StringValue transactionDescription = default(StringValue), DecimalValue unitPrice = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.Discount = discount; - this.DiscountAmount = discountAmount; - this.DiscountCode = discountCode; - this.DiscountSequence = discountSequence; - this.ExternalPrice = externalPrice; - this.FreeItem = freeItem; - this.InventoryID = inventoryID; - this.ManualDiscount = manualDiscount; - this.OpportunityProductID = opportunityProductID; - this.ProjectTask = projectTask; - this.Qty = qty; - this.Subitem = subitem; - this.TaxCategory = taxCategory; - this.TransactionDescription = transactionDescription; - this.UnitPrice = unitPrice; - this.UOM = uOM; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Discount - /// - [DataMember(Name="Discount", EmitDefaultValue=false)] - public DecimalValue Discount { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets DiscountSequence - /// - [DataMember(Name="DiscountSequence", EmitDefaultValue=false)] - public StringValue DiscountSequence { get; set; } - - /// - /// Gets or Sets ExternalPrice - /// - [DataMember(Name="ExternalPrice", EmitDefaultValue=false)] - public DecimalValue ExternalPrice { get; set; } + [DataContract] + public partial class OpportunityProduct : Entity + { - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public BooleanValue FreeItem { get; set; } + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } + [DataMember(Name="Discount", EmitDefaultValue=false)] + public DecimalValue Discount { get; set; } - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } - /// - /// Gets or Sets OpportunityProductID - /// - [DataMember(Name="OpportunityProductID", EmitDefaultValue=false)] - public IntValue OpportunityProductID { get; set; } + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } + [DataMember(Name="DiscountSequence", EmitDefaultValue=false)] + public StringValue DiscountSequence { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="ExternalPrice", EmitDefaultValue=false)] + public DecimalValue ExternalPrice { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public BooleanValue FreeItem { get; set; } - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } + [DataMember(Name="OpportunityProductID", EmitDefaultValue=false)] + public IntValue OpportunityProductID { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OpportunityProduct {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Discount: ").Append(Discount).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" DiscountSequence: ").Append(DiscountSequence).Append("\n"); - sb.Append(" ExternalPrice: ").Append(ExternalPrice).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" OpportunityProductID: ").Append(OpportunityProductID).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OpportunityProduct); - } + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } - /// - /// Returns true if OpportunityProduct instances are equal - /// - /// Instance of OpportunityProduct to be compared - /// Boolean - public bool Equals(OpportunityProduct input) - { - if (input == null) - return false; + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Discount == input.Discount || - (this.Discount != null && - this.Discount.Equals(input.Discount)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.DiscountSequence == input.DiscountSequence || - (this.DiscountSequence != null && - this.DiscountSequence.Equals(input.DiscountSequence)) - ) && base.Equals(input) && - ( - this.ExternalPrice == input.ExternalPrice || - (this.ExternalPrice != null && - this.ExternalPrice.Equals(input.ExternalPrice)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.OpportunityProductID == input.OpportunityProductID || - (this.OpportunityProductID != null && - this.OpportunityProductID.Equals(input.OpportunityProductID)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Discount != null) - hashCode = hashCode * 59 + this.Discount.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.DiscountSequence != null) - hashCode = hashCode * 59 + this.DiscountSequence.GetHashCode(); - if (this.ExternalPrice != null) - hashCode = hashCode * 59 + this.ExternalPrice.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.OpportunityProductID != null) - hashCode = hashCode * 59 + this.OpportunityProductID.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/OpportunityTaxDetail.cs b/Acumatica.Default_17.200.001/Model/OpportunityTaxDetail.cs index 841b8f4d..0ba7efa2 100644 --- a/Acumatica.Default_17.200.001/Model/OpportunityTaxDetail.cs +++ b/Acumatica.Default_17.200.001/Model/OpportunityTaxDetail.cs @@ -1,270 +1,42 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// OpportunityTaxDetail - /// - [DataContract] - public partial class OpportunityTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// includeInVATExemptTotal. - /// lineNbr. - /// pendingVAT. - /// reverseVAT. - /// statisticalVAT. - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - /// taxType. - public OpportunityTaxDetail(BooleanValue includeInVATExemptTotal = default(BooleanValue), IntValue lineNbr = default(IntValue), BooleanValue pendingVAT = default(BooleanValue), BooleanValue reverseVAT = default(BooleanValue), BooleanValue statisticalVAT = default(BooleanValue), DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), StringValue taxType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.IncludeInVATExemptTotal = includeInVATExemptTotal; - this.LineNbr = lineNbr; - this.PendingVAT = pendingVAT; - this.ReverseVAT = reverseVAT; - this.StatisticalVAT = statisticalVAT; - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - this.TaxType = taxType; - } - - /// - /// Gets or Sets IncludeInVATExemptTotal - /// - [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] - public BooleanValue IncludeInVATExemptTotal { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets PendingVAT - /// - [DataMember(Name="PendingVAT", EmitDefaultValue=false)] - public BooleanValue PendingVAT { get; set; } - - /// - /// Gets or Sets ReverseVAT - /// - [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] - public BooleanValue ReverseVAT { get; set; } - - /// - /// Gets or Sets StatisticalVAT - /// - [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] - public BooleanValue StatisticalVAT { get; set; } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } + [DataContract] + public partial class OpportunityTaxDetail : Entity + { - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } + [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] + public BooleanValue IncludeInVATExemptTotal { get; set; } - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } + [DataMember(Name="PendingVAT", EmitDefaultValue=false)] + public BooleanValue PendingVAT { get; set; } - /// - /// Gets or Sets TaxType - /// - [DataMember(Name="TaxType", EmitDefaultValue=false)] - public StringValue TaxType { get; set; } + [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] + public BooleanValue ReverseVAT { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OpportunityTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" IncludeInVATExemptTotal: ").Append(IncludeInVATExemptTotal).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" PendingVAT: ").Append(PendingVAT).Append("\n"); - sb.Append(" ReverseVAT: ").Append(ReverseVAT).Append("\n"); - sb.Append(" StatisticalVAT: ").Append(StatisticalVAT).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append(" TaxType: ").Append(TaxType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] + public BooleanValue StatisticalVAT { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OpportunityTaxDetail); - } + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } - /// - /// Returns true if OpportunityTaxDetail instances are equal - /// - /// Instance of OpportunityTaxDetail to be compared - /// Boolean - public bool Equals(OpportunityTaxDetail input) - { - if (input == null) - return false; + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } - return base.Equals(input) && - ( - this.IncludeInVATExemptTotal == input.IncludeInVATExemptTotal || - (this.IncludeInVATExemptTotal != null && - this.IncludeInVATExemptTotal.Equals(input.IncludeInVATExemptTotal)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.PendingVAT == input.PendingVAT || - (this.PendingVAT != null && - this.PendingVAT.Equals(input.PendingVAT)) - ) && base.Equals(input) && - ( - this.ReverseVAT == input.ReverseVAT || - (this.ReverseVAT != null && - this.ReverseVAT.Equals(input.ReverseVAT)) - ) && base.Equals(input) && - ( - this.StatisticalVAT == input.StatisticalVAT || - (this.StatisticalVAT != null && - this.StatisticalVAT.Equals(input.StatisticalVAT)) - ) && base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ) && base.Equals(input) && - ( - this.TaxType == input.TaxType || - (this.TaxType != null && - this.TaxType.Equals(input.TaxType)) - ); - } + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.IncludeInVATExemptTotal != null) - hashCode = hashCode * 59 + this.IncludeInVATExemptTotal.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.PendingVAT != null) - hashCode = hashCode * 59 + this.PendingVAT.GetHashCode(); - if (this.ReverseVAT != null) - hashCode = hashCode * 59 + this.ReverseVAT.GetHashCode(); - if (this.StatisticalVAT != null) - hashCode = hashCode * 59 + this.StatisticalVAT.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - if (this.TaxType != null) - hashCode = hashCode * 59 + this.TaxType.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public StringValue TaxType { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Payment.cs b/Acumatica.Default_17.200.001/Model/Payment.cs index 8efddb59..daf14ee8 100644 --- a/Acumatica.Default_17.200.001/Model/Payment.cs +++ b/Acumatica.Default_17.200.001/Model/Payment.cs @@ -1,398 +1,66 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Payment - /// - [DataContract] - public partial class Payment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// applicationDate. - /// applicationHistory. - /// appliedToDocuments. - /// cardAccountNbr. - /// cashAccount. - /// creditCardProcessingInfo. - /// currencyID. - /// customerID. - /// description. - /// documentsToApply. - /// hold. - /// ordersToApply. - /// paymentAmount. - /// paymentMethod. - /// paymentRef. - /// referenceNbr. - /// status. - /// type. - public Payment(DateTimeValue applicationDate = default(DateTimeValue), List applicationHistory = default(List), DecimalValue appliedToDocuments = default(DecimalValue), IntValue cardAccountNbr = default(IntValue), StringValue cashAccount = default(StringValue), List creditCardProcessingInfo = default(List), StringValue currencyID = default(StringValue), StringValue customerID = default(StringValue), StringValue description = default(StringValue), List documentsToApply = default(List), BooleanValue hold = default(BooleanValue), List ordersToApply = default(List), DecimalValue paymentAmount = default(DecimalValue), StringValue paymentMethod = default(StringValue), StringValue paymentRef = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApplicationDate = applicationDate; - this.ApplicationHistory = applicationHistory; - this.AppliedToDocuments = appliedToDocuments; - this.CardAccountNbr = cardAccountNbr; - this.CashAccount = cashAccount; - this.CreditCardProcessingInfo = creditCardProcessingInfo; - this.CurrencyID = currencyID; - this.CustomerID = customerID; - this.Description = description; - this.DocumentsToApply = documentsToApply; - this.Hold = hold; - this.OrdersToApply = ordersToApply; - this.PaymentAmount = paymentAmount; - this.PaymentMethod = paymentMethod; - this.PaymentRef = paymentRef; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.Type = type; - } - - /// - /// Gets or Sets ApplicationDate - /// - [DataMember(Name="ApplicationDate", EmitDefaultValue=false)] - public DateTimeValue ApplicationDate { get; set; } - - /// - /// Gets or Sets ApplicationHistory - /// - [DataMember(Name="ApplicationHistory", EmitDefaultValue=false)] - public List ApplicationHistory { get; set; } - - /// - /// Gets or Sets AppliedToDocuments - /// - [DataMember(Name="AppliedToDocuments", EmitDefaultValue=false)] - public DecimalValue AppliedToDocuments { get; set; } - - /// - /// Gets or Sets CardAccountNbr - /// - [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] - public IntValue CardAccountNbr { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CreditCardProcessingInfo - /// - [DataMember(Name="CreditCardProcessingInfo", EmitDefaultValue=false)] - public List CreditCardProcessingInfo { get; set; } + [DataContract] + public partial class Payment : Entity + { - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } + [DataMember(Name="ApplicationDate", EmitDefaultValue=false)] + public DateTimeValue ApplicationDate { get; set; } - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } + [DataMember(Name="ApplicationHistory", EmitDefaultValue=false)] + public List ApplicationHistory { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="AppliedToDocuments", EmitDefaultValue=false)] + public DecimalValue AppliedToDocuments { get; set; } - /// - /// Gets or Sets DocumentsToApply - /// - [DataMember(Name="DocumentsToApply", EmitDefaultValue=false)] - public List DocumentsToApply { get; set; } + [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] + public IntValue CardAccountNbr { get; set; } - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } - /// - /// Gets or Sets OrdersToApply - /// - [DataMember(Name="OrdersToApply", EmitDefaultValue=false)] - public List OrdersToApply { get; set; } + [DataMember(Name="CreditCardProcessingInfo", EmitDefaultValue=false)] + public List CreditCardProcessingInfo { get; set; } - /// - /// Gets or Sets PaymentAmount - /// - [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] - public DecimalValue PaymentAmount { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="DocumentsToApply", EmitDefaultValue=false)] + public List DocumentsToApply { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="OrdersToApply", EmitDefaultValue=false)] + public List OrdersToApply { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Payment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApplicationDate: ").Append(ApplicationDate).Append("\n"); - sb.Append(" ApplicationHistory: ").Append(ApplicationHistory).Append("\n"); - sb.Append(" AppliedToDocuments: ").Append(AppliedToDocuments).Append("\n"); - sb.Append(" CardAccountNbr: ").Append(CardAccountNbr).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CreditCardProcessingInfo: ").Append(CreditCardProcessingInfo).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocumentsToApply: ").Append(DocumentsToApply).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" OrdersToApply: ").Append(OrdersToApply).Append("\n"); - sb.Append(" PaymentAmount: ").Append(PaymentAmount).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] + public DecimalValue PaymentAmount { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Payment); - } + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } - /// - /// Returns true if Payment instances are equal - /// - /// Instance of Payment to be compared - /// Boolean - public bool Equals(Payment input) - { - if (input == null) - return false; + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } - return base.Equals(input) && - ( - this.ApplicationDate == input.ApplicationDate || - (this.ApplicationDate != null && - this.ApplicationDate.Equals(input.ApplicationDate)) - ) && base.Equals(input) && - ( - this.ApplicationHistory == input.ApplicationHistory || - this.ApplicationHistory != null && - this.ApplicationHistory.SequenceEqual(input.ApplicationHistory) - ) && base.Equals(input) && - ( - this.AppliedToDocuments == input.AppliedToDocuments || - (this.AppliedToDocuments != null && - this.AppliedToDocuments.Equals(input.AppliedToDocuments)) - ) && base.Equals(input) && - ( - this.CardAccountNbr == input.CardAccountNbr || - (this.CardAccountNbr != null && - this.CardAccountNbr.Equals(input.CardAccountNbr)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CreditCardProcessingInfo == input.CreditCardProcessingInfo || - this.CreditCardProcessingInfo != null && - this.CreditCardProcessingInfo.SequenceEqual(input.CreditCardProcessingInfo) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DocumentsToApply == input.DocumentsToApply || - this.DocumentsToApply != null && - this.DocumentsToApply.SequenceEqual(input.DocumentsToApply) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.OrdersToApply == input.OrdersToApply || - this.OrdersToApply != null && - this.OrdersToApply.SequenceEqual(input.OrdersToApply) - ) && base.Equals(input) && - ( - this.PaymentAmount == input.PaymentAmount || - (this.PaymentAmount != null && - this.PaymentAmount.Equals(input.PaymentAmount)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApplicationDate != null) - hashCode = hashCode * 59 + this.ApplicationDate.GetHashCode(); - if (this.ApplicationHistory != null) - hashCode = hashCode * 59 + this.ApplicationHistory.GetHashCode(); - if (this.AppliedToDocuments != null) - hashCode = hashCode * 59 + this.AppliedToDocuments.GetHashCode(); - if (this.CardAccountNbr != null) - hashCode = hashCode * 59 + this.CardAccountNbr.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CreditCardProcessingInfo != null) - hashCode = hashCode * 59 + this.CreditCardProcessingInfo.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocumentsToApply != null) - hashCode = hashCode * 59 + this.DocumentsToApply.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.OrdersToApply != null) - hashCode = hashCode * 59 + this.OrdersToApply.GetHashCode(); - if (this.PaymentAmount != null) - hashCode = hashCode * 59 + this.PaymentAmount.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PaymentApplicationHistoryDetail.cs b/Acumatica.Default_17.200.001/Model/PaymentApplicationHistoryDetail.cs index b7f1c295..b5763025 100644 --- a/Acumatica.Default_17.200.001/Model/PaymentApplicationHistoryDetail.cs +++ b/Acumatica.Default_17.200.001/Model/PaymentApplicationHistoryDetail.cs @@ -1,494 +1,84 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PaymentApplicationHistoryDetail - /// - [DataContract] - public partial class PaymentApplicationHistoryDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// adjustingDocType. - /// adjustingRefNbr. - /// adjustmentNbr. - /// adjustsVAT. - /// amountPaid. - /// applicationPeriod. - /// balance. - /// balanceWriteOff. - /// batchNbr. - /// cashDiscountBalance. - /// cashDiscountDate. - /// cashDiscountTaken. - /// currencyID. - /// customer. - /// customerOrder. - /// date. - /// description. - /// adjustedDocType. - /// displayDocType. - /// dueDate. - /// postPeriod. - /// adjustedRefNbr. - /// displayRefNbr. - /// vATCreditMemo. - public PaymentApplicationHistoryDetail(StringValue adjustingDocType = default(StringValue), StringValue adjustingRefNbr = default(StringValue), IntValue adjustmentNbr = default(IntValue), BooleanValue adjustsVAT = default(BooleanValue), DecimalValue amountPaid = default(DecimalValue), StringValue applicationPeriod = default(StringValue), DecimalValue balance = default(DecimalValue), DecimalValue balanceWriteOff = default(DecimalValue), StringValue batchNbr = default(StringValue), DecimalValue cashDiscountBalance = default(DecimalValue), DateTimeValue cashDiscountDate = default(DateTimeValue), DecimalValue cashDiscountTaken = default(DecimalValue), StringValue currencyID = default(StringValue), StringValue customer = default(StringValue), StringValue customerOrder = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), StringValue adjustedDocType = default(StringValue), StringValue displayDocType = default(StringValue), DateTimeValue dueDate = default(DateTimeValue), StringValue postPeriod = default(StringValue), StringValue adjustedRefNbr = default(StringValue), StringValue displayRefNbr = default(StringValue), StringValue vATCreditMemo = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AdjustingDocType = adjustingDocType; - this.AdjustingRefNbr = adjustingRefNbr; - this.AdjustmentNbr = adjustmentNbr; - this.AdjustsVAT = adjustsVAT; - this.AmountPaid = amountPaid; - this.ApplicationPeriod = applicationPeriod; - this.Balance = balance; - this.BalanceWriteOff = balanceWriteOff; - this.BatchNbr = batchNbr; - this.CashDiscountBalance = cashDiscountBalance; - this.CashDiscountDate = cashDiscountDate; - this.CashDiscountTaken = cashDiscountTaken; - this.CurrencyID = currencyID; - this.Customer = customer; - this.CustomerOrder = customerOrder; - this.Date = date; - this.Description = description; - this.AdjustedDocType = adjustedDocType; - this.DisplayDocType = displayDocType; - this.DueDate = dueDate; - this.PostPeriod = postPeriod; - this.AdjustedRefNbr = adjustedRefNbr; - this.DisplayRefNbr = displayRefNbr; - this.VATCreditMemo = vATCreditMemo; - } - - /// - /// Gets or Sets AdjustingDocType - /// - [DataMember(Name="AdjustingDocType", EmitDefaultValue=false)] - public StringValue AdjustingDocType { get; set; } - - /// - /// Gets or Sets AdjustingRefNbr - /// - [DataMember(Name="AdjustingRefNbr", EmitDefaultValue=false)] - public StringValue AdjustingRefNbr { get; set; } - - /// - /// Gets or Sets AdjustmentNbr - /// - [DataMember(Name="AdjustmentNbr", EmitDefaultValue=false)] - public IntValue AdjustmentNbr { get; set; } - - /// - /// Gets or Sets AdjustsVAT - /// - [DataMember(Name="AdjustsVAT", EmitDefaultValue=false)] - public BooleanValue AdjustsVAT { get; set; } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets ApplicationPeriod - /// - [DataMember(Name="ApplicationPeriod", EmitDefaultValue=false)] - public StringValue ApplicationPeriod { get; set; } + [DataContract] + public partial class PaymentApplicationHistoryDetail : Entity + { - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } + [DataMember(Name="AdjustingDocType", EmitDefaultValue=false)] + public StringValue AdjustingDocType { get; set; } - /// - /// Gets or Sets BalanceWriteOff - /// - [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] - public DecimalValue BalanceWriteOff { get; set; } + [DataMember(Name="AdjustingRefNbr", EmitDefaultValue=false)] + public StringValue AdjustingRefNbr { get; set; } - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } + [DataMember(Name="AdjustmentNbr", EmitDefaultValue=false)] + public IntValue AdjustmentNbr { get; set; } - /// - /// Gets or Sets CashDiscountBalance - /// - [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] - public DecimalValue CashDiscountBalance { get; set; } + [DataMember(Name="AdjustsVAT", EmitDefaultValue=false)] + public BooleanValue AdjustsVAT { get; set; } - /// - /// Gets or Sets CashDiscountDate - /// - [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] - public DateTimeValue CashDiscountDate { get; set; } + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } - /// - /// Gets or Sets CashDiscountTaken - /// - [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] - public DecimalValue CashDiscountTaken { get; set; } + [DataMember(Name="ApplicationPeriod", EmitDefaultValue=false)] + public StringValue ApplicationPeriod { get; set; } - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } + [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] + public DecimalValue BalanceWriteOff { get; set; } - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } + [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] + public DecimalValue CashDiscountBalance { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] + public DateTimeValue CashDiscountDate { get; set; } - /// - /// Gets or Sets AdjustedDocType - /// - [DataMember(Name="AdjustedDocType", EmitDefaultValue=false)] - public StringValue AdjustedDocType { get; set; } + [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] + public DecimalValue CashDiscountTaken { get; set; } - /// - /// Gets or Sets DisplayDocType - /// - [DataMember(Name="DisplayDocType", EmitDefaultValue=false)] - public StringValue DisplayDocType { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } - /// - /// Gets or Sets AdjustedRefNbr - /// - [DataMember(Name="AdjustedRefNbr", EmitDefaultValue=false)] - public StringValue AdjustedRefNbr { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets DisplayRefNbr - /// - [DataMember(Name="DisplayRefNbr", EmitDefaultValue=false)] - public StringValue DisplayRefNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets VATCreditMemo - /// - [DataMember(Name="VATCreditMemo", EmitDefaultValue=false)] - public StringValue VATCreditMemo { get; set; } + [DataMember(Name="AdjustedDocType", EmitDefaultValue=false)] + public StringValue AdjustedDocType { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentApplicationHistoryDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AdjustingDocType: ").Append(AdjustingDocType).Append("\n"); - sb.Append(" AdjustingRefNbr: ").Append(AdjustingRefNbr).Append("\n"); - sb.Append(" AdjustmentNbr: ").Append(AdjustmentNbr).Append("\n"); - sb.Append(" AdjustsVAT: ").Append(AdjustsVAT).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" ApplicationPeriod: ").Append(ApplicationPeriod).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" BalanceWriteOff: ").Append(BalanceWriteOff).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" CashDiscountBalance: ").Append(CashDiscountBalance).Append("\n"); - sb.Append(" CashDiscountDate: ").Append(CashDiscountDate).Append("\n"); - sb.Append(" CashDiscountTaken: ").Append(CashDiscountTaken).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" AdjustedDocType: ").Append(AdjustedDocType).Append("\n"); - sb.Append(" DisplayDocType: ").Append(DisplayDocType).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" AdjustedRefNbr: ").Append(AdjustedRefNbr).Append("\n"); - sb.Append(" DisplayRefNbr: ").Append(DisplayRefNbr).Append("\n"); - sb.Append(" VATCreditMemo: ").Append(VATCreditMemo).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="DisplayDocType", EmitDefaultValue=false)] + public StringValue DisplayDocType { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentApplicationHistoryDetail); - } + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } - /// - /// Returns true if PaymentApplicationHistoryDetail instances are equal - /// - /// Instance of PaymentApplicationHistoryDetail to be compared - /// Boolean - public bool Equals(PaymentApplicationHistoryDetail input) - { - if (input == null) - return false; + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - return base.Equals(input) && - ( - this.AdjustingDocType == input.AdjustingDocType || - (this.AdjustingDocType != null && - this.AdjustingDocType.Equals(input.AdjustingDocType)) - ) && base.Equals(input) && - ( - this.AdjustingRefNbr == input.AdjustingRefNbr || - (this.AdjustingRefNbr != null && - this.AdjustingRefNbr.Equals(input.AdjustingRefNbr)) - ) && base.Equals(input) && - ( - this.AdjustmentNbr == input.AdjustmentNbr || - (this.AdjustmentNbr != null && - this.AdjustmentNbr.Equals(input.AdjustmentNbr)) - ) && base.Equals(input) && - ( - this.AdjustsVAT == input.AdjustsVAT || - (this.AdjustsVAT != null && - this.AdjustsVAT.Equals(input.AdjustsVAT)) - ) && base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.ApplicationPeriod == input.ApplicationPeriod || - (this.ApplicationPeriod != null && - this.ApplicationPeriod.Equals(input.ApplicationPeriod)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.BalanceWriteOff == input.BalanceWriteOff || - (this.BalanceWriteOff != null && - this.BalanceWriteOff.Equals(input.BalanceWriteOff)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.CashDiscountBalance == input.CashDiscountBalance || - (this.CashDiscountBalance != null && - this.CashDiscountBalance.Equals(input.CashDiscountBalance)) - ) && base.Equals(input) && - ( - this.CashDiscountDate == input.CashDiscountDate || - (this.CashDiscountDate != null && - this.CashDiscountDate.Equals(input.CashDiscountDate)) - ) && base.Equals(input) && - ( - this.CashDiscountTaken == input.CashDiscountTaken || - (this.CashDiscountTaken != null && - this.CashDiscountTaken.Equals(input.CashDiscountTaken)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.AdjustedDocType == input.AdjustedDocType || - (this.AdjustedDocType != null && - this.AdjustedDocType.Equals(input.AdjustedDocType)) - ) && base.Equals(input) && - ( - this.DisplayDocType == input.DisplayDocType || - (this.DisplayDocType != null && - this.DisplayDocType.Equals(input.DisplayDocType)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.AdjustedRefNbr == input.AdjustedRefNbr || - (this.AdjustedRefNbr != null && - this.AdjustedRefNbr.Equals(input.AdjustedRefNbr)) - ) && base.Equals(input) && - ( - this.DisplayRefNbr == input.DisplayRefNbr || - (this.DisplayRefNbr != null && - this.DisplayRefNbr.Equals(input.DisplayRefNbr)) - ) && base.Equals(input) && - ( - this.VATCreditMemo == input.VATCreditMemo || - (this.VATCreditMemo != null && - this.VATCreditMemo.Equals(input.VATCreditMemo)) - ); - } + [DataMember(Name="AdjustedRefNbr", EmitDefaultValue=false)] + public StringValue AdjustedRefNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AdjustingDocType != null) - hashCode = hashCode * 59 + this.AdjustingDocType.GetHashCode(); - if (this.AdjustingRefNbr != null) - hashCode = hashCode * 59 + this.AdjustingRefNbr.GetHashCode(); - if (this.AdjustmentNbr != null) - hashCode = hashCode * 59 + this.AdjustmentNbr.GetHashCode(); - if (this.AdjustsVAT != null) - hashCode = hashCode * 59 + this.AdjustsVAT.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.ApplicationPeriod != null) - hashCode = hashCode * 59 + this.ApplicationPeriod.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.BalanceWriteOff != null) - hashCode = hashCode * 59 + this.BalanceWriteOff.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.CashDiscountBalance != null) - hashCode = hashCode * 59 + this.CashDiscountBalance.GetHashCode(); - if (this.CashDiscountDate != null) - hashCode = hashCode * 59 + this.CashDiscountDate.GetHashCode(); - if (this.CashDiscountTaken != null) - hashCode = hashCode * 59 + this.CashDiscountTaken.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.AdjustedDocType != null) - hashCode = hashCode * 59 + this.AdjustedDocType.GetHashCode(); - if (this.DisplayDocType != null) - hashCode = hashCode * 59 + this.DisplayDocType.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.AdjustedRefNbr != null) - hashCode = hashCode * 59 + this.AdjustedRefNbr.GetHashCode(); - if (this.DisplayRefNbr != null) - hashCode = hashCode * 59 + this.DisplayRefNbr.GetHashCode(); - if (this.VATCreditMemo != null) - hashCode = hashCode * 59 + this.VATCreditMemo.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="DisplayRefNbr", EmitDefaultValue=false)] + public StringValue DisplayRefNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VATCreditMemo", EmitDefaultValue=false)] + public StringValue VATCreditMemo { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PaymentDetail.cs b/Acumatica.Default_17.200.001/Model/PaymentDetail.cs index 34ad54f3..700f0621 100644 --- a/Acumatica.Default_17.200.001/Model/PaymentDetail.cs +++ b/Acumatica.Default_17.200.001/Model/PaymentDetail.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PaymentDetail - /// - [DataContract] - public partial class PaymentDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balanceWriteOff. - /// customerOrder. - /// description. - /// docType. - /// referenceNbr. - /// writeOffReasonCode. - public PaymentDetail(DecimalValue amountPaid = default(DecimalValue), DecimalValue balanceWriteOff = default(DecimalValue), StringValue customerOrder = default(StringValue), StringValue description = default(StringValue), StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue writeOffReasonCode = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.BalanceWriteOff = balanceWriteOff; - this.CustomerOrder = customerOrder; - this.Description = description; - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - this.WriteOffReasonCode = writeOffReasonCode; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets BalanceWriteOff - /// - [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] - public DecimalValue BalanceWriteOff { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataContract] + public partial class PaymentDetail : Entity + { - /// - /// Gets or Sets WriteOffReasonCode - /// - [DataMember(Name="WriteOffReasonCode", EmitDefaultValue=false)] - public StringValue WriteOffReasonCode { get; set; } + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" BalanceWriteOff: ").Append(BalanceWriteOff).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" WriteOffReasonCode: ").Append(WriteOffReasonCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] + public DecimalValue BalanceWriteOff { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentDetail); - } + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } - /// - /// Returns true if PaymentDetail instances are equal - /// - /// Instance of PaymentDetail to be compared - /// Boolean - public bool Equals(PaymentDetail input) - { - if (input == null) - return false; + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.BalanceWriteOff == input.BalanceWriteOff || - (this.BalanceWriteOff != null && - this.BalanceWriteOff.Equals(input.BalanceWriteOff)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.WriteOffReasonCode == input.WriteOffReasonCode || - (this.WriteOffReasonCode != null && - this.WriteOffReasonCode.Equals(input.WriteOffReasonCode)) - ); - } + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.BalanceWriteOff != null) - hashCode = hashCode * 59 + this.BalanceWriteOff.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.WriteOffReasonCode != null) - hashCode = hashCode * 59 + this.WriteOffReasonCode.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WriteOffReasonCode", EmitDefaultValue=false)] + public StringValue WriteOffReasonCode { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PaymentMethod.cs b/Acumatica.Default_17.200.001/Model/PaymentMethod.cs index c1e9ba46..77a85eec 100644 --- a/Acumatica.Default_17.200.001/Model/PaymentMethod.cs +++ b/Acumatica.Default_17.200.001/Model/PaymentMethod.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PaymentMethod - /// - [DataContract] - public partial class PaymentMethod : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// allowedCashAccounts. - /// createdDateTime. - /// description. - /// integratedProcessing. - /// lastModifiedDateTime. - /// meansOfPayment. - /// paymentMethodID. - /// processingCenters. - /// requireRemittanceInformationforCashAccount. - /// useInAP. - /// useInAR. - public PaymentMethod(BooleanValue active = default(BooleanValue), List allowedCashAccounts = default(List), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), BooleanValue integratedProcessing = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue meansOfPayment = default(StringValue), StringValue paymentMethodID = default(StringValue), List processingCenters = default(List), BooleanValue requireRemittanceInformationforCashAccount = default(BooleanValue), BooleanValue useInAP = default(BooleanValue), BooleanValue useInAR = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AllowedCashAccounts = allowedCashAccounts; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.IntegratedProcessing = integratedProcessing; - this.LastModifiedDateTime = lastModifiedDateTime; - this.MeansOfPayment = meansOfPayment; - this.PaymentMethodID = paymentMethodID; - this.ProcessingCenters = processingCenters; - this.RequireRemittanceInformationforCashAccount = requireRemittanceInformationforCashAccount; - this.UseInAP = useInAP; - this.UseInAR = useInAR; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AllowedCashAccounts - /// - [DataMember(Name="AllowedCashAccounts", EmitDefaultValue=false)] - public List AllowedCashAccounts { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets IntegratedProcessing - /// - [DataMember(Name="IntegratedProcessing", EmitDefaultValue=false)] - public BooleanValue IntegratedProcessing { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataContract] + public partial class PaymentMethod : Entity + { - /// - /// Gets or Sets MeansOfPayment - /// - [DataMember(Name="MeansOfPayment", EmitDefaultValue=false)] - public StringValue MeansOfPayment { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets PaymentMethodID - /// - [DataMember(Name="PaymentMethodID", EmitDefaultValue=false)] - public StringValue PaymentMethodID { get; set; } + [DataMember(Name="AllowedCashAccounts", EmitDefaultValue=false)] + public List AllowedCashAccounts { get; set; } - /// - /// Gets or Sets ProcessingCenters - /// - [DataMember(Name="ProcessingCenters", EmitDefaultValue=false)] - public List ProcessingCenters { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets RequireRemittanceInformationforCashAccount - /// - [DataMember(Name="RequireRemittanceInformationforCashAccount", EmitDefaultValue=false)] - public BooleanValue RequireRemittanceInformationforCashAccount { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets UseInAP - /// - [DataMember(Name="UseInAP", EmitDefaultValue=false)] - public BooleanValue UseInAP { get; set; } + [DataMember(Name="IntegratedProcessing", EmitDefaultValue=false)] + public BooleanValue IntegratedProcessing { get; set; } - /// - /// Gets or Sets UseInAR - /// - [DataMember(Name="UseInAR", EmitDefaultValue=false)] - public BooleanValue UseInAR { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentMethod {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AllowedCashAccounts: ").Append(AllowedCashAccounts).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IntegratedProcessing: ").Append(IntegratedProcessing).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" MeansOfPayment: ").Append(MeansOfPayment).Append("\n"); - sb.Append(" PaymentMethodID: ").Append(PaymentMethodID).Append("\n"); - sb.Append(" ProcessingCenters: ").Append(ProcessingCenters).Append("\n"); - sb.Append(" RequireRemittanceInformationforCashAccount: ").Append(RequireRemittanceInformationforCashAccount).Append("\n"); - sb.Append(" UseInAP: ").Append(UseInAP).Append("\n"); - sb.Append(" UseInAR: ").Append(UseInAR).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="MeansOfPayment", EmitDefaultValue=false)] + public StringValue MeansOfPayment { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentMethod); - } + [DataMember(Name="PaymentMethodID", EmitDefaultValue=false)] + public StringValue PaymentMethodID { get; set; } - /// - /// Returns true if PaymentMethod instances are equal - /// - /// Instance of PaymentMethod to be compared - /// Boolean - public bool Equals(PaymentMethod input) - { - if (input == null) - return false; + [DataMember(Name="ProcessingCenters", EmitDefaultValue=false)] + public List ProcessingCenters { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AllowedCashAccounts == input.AllowedCashAccounts || - this.AllowedCashAccounts != null && - this.AllowedCashAccounts.SequenceEqual(input.AllowedCashAccounts) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.IntegratedProcessing == input.IntegratedProcessing || - (this.IntegratedProcessing != null && - this.IntegratedProcessing.Equals(input.IntegratedProcessing)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.MeansOfPayment == input.MeansOfPayment || - (this.MeansOfPayment != null && - this.MeansOfPayment.Equals(input.MeansOfPayment)) - ) && base.Equals(input) && - ( - this.PaymentMethodID == input.PaymentMethodID || - (this.PaymentMethodID != null && - this.PaymentMethodID.Equals(input.PaymentMethodID)) - ) && base.Equals(input) && - ( - this.ProcessingCenters == input.ProcessingCenters || - this.ProcessingCenters != null && - this.ProcessingCenters.SequenceEqual(input.ProcessingCenters) - ) && base.Equals(input) && - ( - this.RequireRemittanceInformationforCashAccount == input.RequireRemittanceInformationforCashAccount || - (this.RequireRemittanceInformationforCashAccount != null && - this.RequireRemittanceInformationforCashAccount.Equals(input.RequireRemittanceInformationforCashAccount)) - ) && base.Equals(input) && - ( - this.UseInAP == input.UseInAP || - (this.UseInAP != null && - this.UseInAP.Equals(input.UseInAP)) - ) && base.Equals(input) && - ( - this.UseInAR == input.UseInAR || - (this.UseInAR != null && - this.UseInAR.Equals(input.UseInAR)) - ); - } + [DataMember(Name="RequireRemittanceInformationforCashAccount", EmitDefaultValue=false)] + public BooleanValue RequireRemittanceInformationforCashAccount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AllowedCashAccounts != null) - hashCode = hashCode * 59 + this.AllowedCashAccounts.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IntegratedProcessing != null) - hashCode = hashCode * 59 + this.IntegratedProcessing.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.MeansOfPayment != null) - hashCode = hashCode * 59 + this.MeansOfPayment.GetHashCode(); - if (this.PaymentMethodID != null) - hashCode = hashCode * 59 + this.PaymentMethodID.GetHashCode(); - if (this.ProcessingCenters != null) - hashCode = hashCode * 59 + this.ProcessingCenters.GetHashCode(); - if (this.RequireRemittanceInformationforCashAccount != null) - hashCode = hashCode * 59 + this.RequireRemittanceInformationforCashAccount.GetHashCode(); - if (this.UseInAP != null) - hashCode = hashCode * 59 + this.UseInAP.GetHashCode(); - if (this.UseInAR != null) - hashCode = hashCode * 59 + this.UseInAR.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UseInAP", EmitDefaultValue=false)] + public BooleanValue UseInAP { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UseInAR", EmitDefaultValue=false)] + public BooleanValue UseInAR { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs b/Acumatica.Default_17.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs index 31ad1665..38900ad9 100644 --- a/Acumatica.Default_17.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs +++ b/Acumatica.Default_17.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs @@ -1,334 +1,54 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PaymentMethodAllowedCashAccountDetail - /// - [DataContract] - public partial class PaymentMethodAllowedCashAccountDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aPDefault. - /// aPLastRefNbr. - /// aPSuggestNextNbr. - /// aRDefault. - /// aRDefaultForRefund. - /// aRLastRefNbr. - /// aRSuggestNextNbr. - /// batchLastRefNbr. - /// branch. - /// cashAccount. - /// description. - /// paymentMethod. - /// useInAP. - /// useInAR. - public PaymentMethodAllowedCashAccountDetail(BooleanValue aPDefault = default(BooleanValue), StringValue aPLastRefNbr = default(StringValue), BooleanValue aPSuggestNextNbr = default(BooleanValue), BooleanValue aRDefault = default(BooleanValue), BooleanValue aRDefaultForRefund = default(BooleanValue), StringValue aRLastRefNbr = default(StringValue), BooleanValue aRSuggestNextNbr = default(BooleanValue), StringValue batchLastRefNbr = default(StringValue), StringValue branch = default(StringValue), StringValue cashAccount = default(StringValue), StringValue description = default(StringValue), StringValue paymentMethod = default(StringValue), BooleanValue useInAP = default(BooleanValue), BooleanValue useInAR = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.APDefault = aPDefault; - this.APLastRefNbr = aPLastRefNbr; - this.APSuggestNextNbr = aPSuggestNextNbr; - this.ARDefault = aRDefault; - this.ARDefaultForRefund = aRDefaultForRefund; - this.ARLastRefNbr = aRLastRefNbr; - this.ARSuggestNextNbr = aRSuggestNextNbr; - this.BatchLastRefNbr = batchLastRefNbr; - this.Branch = branch; - this.CashAccount = cashAccount; - this.Description = description; - this.PaymentMethod = paymentMethod; - this.UseInAP = useInAP; - this.UseInAR = useInAR; - } - - /// - /// Gets or Sets APDefault - /// - [DataMember(Name="APDefault", EmitDefaultValue=false)] - public BooleanValue APDefault { get; set; } - - /// - /// Gets or Sets APLastRefNbr - /// - [DataMember(Name="APLastRefNbr", EmitDefaultValue=false)] - public StringValue APLastRefNbr { get; set; } - - /// - /// Gets or Sets APSuggestNextNbr - /// - [DataMember(Name="APSuggestNextNbr", EmitDefaultValue=false)] - public BooleanValue APSuggestNextNbr { get; set; } - - /// - /// Gets or Sets ARDefault - /// - [DataMember(Name="ARDefault", EmitDefaultValue=false)] - public BooleanValue ARDefault { get; set; } - - /// - /// Gets or Sets ARDefaultForRefund - /// - [DataMember(Name="ARDefaultForRefund", EmitDefaultValue=false)] - public BooleanValue ARDefaultForRefund { get; set; } - - /// - /// Gets or Sets ARLastRefNbr - /// - [DataMember(Name="ARLastRefNbr", EmitDefaultValue=false)] - public StringValue ARLastRefNbr { get; set; } + [DataContract] + public partial class PaymentMethodAllowedCashAccountDetail : Entity + { - /// - /// Gets or Sets ARSuggestNextNbr - /// - [DataMember(Name="ARSuggestNextNbr", EmitDefaultValue=false)] - public BooleanValue ARSuggestNextNbr { get; set; } + [DataMember(Name="APDefault", EmitDefaultValue=false)] + public BooleanValue APDefault { get; set; } - /// - /// Gets or Sets BatchLastRefNbr - /// - [DataMember(Name="BatchLastRefNbr", EmitDefaultValue=false)] - public StringValue BatchLastRefNbr { get; set; } + [DataMember(Name="APLastRefNbr", EmitDefaultValue=false)] + public StringValue APLastRefNbr { get; set; } - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } + [DataMember(Name="APSuggestNextNbr", EmitDefaultValue=false)] + public BooleanValue APSuggestNextNbr { get; set; } - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } + [DataMember(Name="ARDefault", EmitDefaultValue=false)] + public BooleanValue ARDefault { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="ARDefaultForRefund", EmitDefaultValue=false)] + public BooleanValue ARDefaultForRefund { get; set; } - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } + [DataMember(Name="ARLastRefNbr", EmitDefaultValue=false)] + public StringValue ARLastRefNbr { get; set; } - /// - /// Gets or Sets UseInAP - /// - [DataMember(Name="UseInAP", EmitDefaultValue=false)] - public BooleanValue UseInAP { get; set; } + [DataMember(Name="ARSuggestNextNbr", EmitDefaultValue=false)] + public BooleanValue ARSuggestNextNbr { get; set; } - /// - /// Gets or Sets UseInAR - /// - [DataMember(Name="UseInAR", EmitDefaultValue=false)] - public BooleanValue UseInAR { get; set; } + [DataMember(Name="BatchLastRefNbr", EmitDefaultValue=false)] + public StringValue BatchLastRefNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentMethodAllowedCashAccountDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" APDefault: ").Append(APDefault).Append("\n"); - sb.Append(" APLastRefNbr: ").Append(APLastRefNbr).Append("\n"); - sb.Append(" APSuggestNextNbr: ").Append(APSuggestNextNbr).Append("\n"); - sb.Append(" ARDefault: ").Append(ARDefault).Append("\n"); - sb.Append(" ARDefaultForRefund: ").Append(ARDefaultForRefund).Append("\n"); - sb.Append(" ARLastRefNbr: ").Append(ARLastRefNbr).Append("\n"); - sb.Append(" ARSuggestNextNbr: ").Append(ARSuggestNextNbr).Append("\n"); - sb.Append(" BatchLastRefNbr: ").Append(BatchLastRefNbr).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" UseInAP: ").Append(UseInAP).Append("\n"); - sb.Append(" UseInAR: ").Append(UseInAR).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentMethodAllowedCashAccountDetail); - } + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } - /// - /// Returns true if PaymentMethodAllowedCashAccountDetail instances are equal - /// - /// Instance of PaymentMethodAllowedCashAccountDetail to be compared - /// Boolean - public bool Equals(PaymentMethodAllowedCashAccountDetail input) - { - if (input == null) - return false; + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - return base.Equals(input) && - ( - this.APDefault == input.APDefault || - (this.APDefault != null && - this.APDefault.Equals(input.APDefault)) - ) && base.Equals(input) && - ( - this.APLastRefNbr == input.APLastRefNbr || - (this.APLastRefNbr != null && - this.APLastRefNbr.Equals(input.APLastRefNbr)) - ) && base.Equals(input) && - ( - this.APSuggestNextNbr == input.APSuggestNextNbr || - (this.APSuggestNextNbr != null && - this.APSuggestNextNbr.Equals(input.APSuggestNextNbr)) - ) && base.Equals(input) && - ( - this.ARDefault == input.ARDefault || - (this.ARDefault != null && - this.ARDefault.Equals(input.ARDefault)) - ) && base.Equals(input) && - ( - this.ARDefaultForRefund == input.ARDefaultForRefund || - (this.ARDefaultForRefund != null && - this.ARDefaultForRefund.Equals(input.ARDefaultForRefund)) - ) && base.Equals(input) && - ( - this.ARLastRefNbr == input.ARLastRefNbr || - (this.ARLastRefNbr != null && - this.ARLastRefNbr.Equals(input.ARLastRefNbr)) - ) && base.Equals(input) && - ( - this.ARSuggestNextNbr == input.ARSuggestNextNbr || - (this.ARSuggestNextNbr != null && - this.ARSuggestNextNbr.Equals(input.ARSuggestNextNbr)) - ) && base.Equals(input) && - ( - this.BatchLastRefNbr == input.BatchLastRefNbr || - (this.BatchLastRefNbr != null && - this.BatchLastRefNbr.Equals(input.BatchLastRefNbr)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.UseInAP == input.UseInAP || - (this.UseInAP != null && - this.UseInAP.Equals(input.UseInAP)) - ) && base.Equals(input) && - ( - this.UseInAR == input.UseInAR || - (this.UseInAR != null && - this.UseInAR.Equals(input.UseInAR)) - ); - } + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.APDefault != null) - hashCode = hashCode * 59 + this.APDefault.GetHashCode(); - if (this.APLastRefNbr != null) - hashCode = hashCode * 59 + this.APLastRefNbr.GetHashCode(); - if (this.APSuggestNextNbr != null) - hashCode = hashCode * 59 + this.APSuggestNextNbr.GetHashCode(); - if (this.ARDefault != null) - hashCode = hashCode * 59 + this.ARDefault.GetHashCode(); - if (this.ARDefaultForRefund != null) - hashCode = hashCode * 59 + this.ARDefaultForRefund.GetHashCode(); - if (this.ARLastRefNbr != null) - hashCode = hashCode * 59 + this.ARLastRefNbr.GetHashCode(); - if (this.ARSuggestNextNbr != null) - hashCode = hashCode * 59 + this.ARSuggestNextNbr.GetHashCode(); - if (this.BatchLastRefNbr != null) - hashCode = hashCode * 59 + this.BatchLastRefNbr.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.UseInAP != null) - hashCode = hashCode * 59 + this.UseInAP.GetHashCode(); - if (this.UseInAR != null) - hashCode = hashCode * 59 + this.UseInAR.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UseInAP", EmitDefaultValue=false)] + public BooleanValue UseInAP { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UseInAR", EmitDefaultValue=false)] + public BooleanValue UseInAR { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PaymentMethodProcessingCenterDetail.cs b/Acumatica.Default_17.200.001/Model/PaymentMethodProcessingCenterDetail.cs index ec01d5c0..a5946420 100644 --- a/Acumatica.Default_17.200.001/Model/PaymentMethodProcessingCenterDetail.cs +++ b/Acumatica.Default_17.200.001/Model/PaymentMethodProcessingCenterDetail.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PaymentMethodProcessingCenterDetail - /// - [DataContract] - public partial class PaymentMethodProcessingCenterDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// _default. - /// paymentMethod. - /// procCenterID. - public PaymentMethodProcessingCenterDetail(BooleanValue active = default(BooleanValue), BooleanValue _default = default(BooleanValue), StringValue paymentMethod = default(StringValue), StringValue procCenterID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Default = _default; - this.PaymentMethod = paymentMethod; - this.ProcCenterID = procCenterID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Default - /// - [DataMember(Name="Default", EmitDefaultValue=false)] - public BooleanValue Default { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets ProcCenterID - /// - [DataMember(Name="ProcCenterID", EmitDefaultValue=false)] - public StringValue ProcCenterID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentMethodProcessingCenterDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" ProcCenterID: ").Append(ProcCenterID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentMethodProcessingCenterDetail); - } + [DataContract] + public partial class PaymentMethodProcessingCenterDetail : Entity + { - /// - /// Returns true if PaymentMethodProcessingCenterDetail instances are equal - /// - /// Instance of PaymentMethodProcessingCenterDetail to be compared - /// Boolean - public bool Equals(PaymentMethodProcessingCenterDetail input) - { - if (input == null) - return false; + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.ProcCenterID == input.ProcCenterID || - (this.ProcCenterID != null && - this.ProcCenterID.Equals(input.ProcCenterID)) - ); - } + [DataMember(Name="Default", EmitDefaultValue=false)] + public BooleanValue Default { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.ProcCenterID != null) - hashCode = hashCode * 59 + this.ProcCenterID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ProcCenterID", EmitDefaultValue=false)] + public StringValue ProcCenterID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PaymentOrderDetail.cs b/Acumatica.Default_17.200.001/Model/PaymentOrderDetail.cs index 5ddcaefc..0818bec8 100644 --- a/Acumatica.Default_17.200.001/Model/PaymentOrderDetail.cs +++ b/Acumatica.Default_17.200.001/Model/PaymentOrderDetail.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PaymentOrderDetail - /// - [DataContract] - public partial class PaymentOrderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// appliedToOrder. - /// orderNbr. - /// orderType. - public PaymentOrderDetail(DecimalValue appliedToOrder = default(DecimalValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AppliedToOrder = appliedToOrder; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - } - - /// - /// Gets or Sets AppliedToOrder - /// - [DataMember(Name="AppliedToOrder", EmitDefaultValue=false)] - public DecimalValue AppliedToOrder { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentOrderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AppliedToOrder: ").Append(AppliedToOrder).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentOrderDetail); - } - - /// - /// Returns true if PaymentOrderDetail instances are equal - /// - /// Instance of PaymentOrderDetail to be compared - /// Boolean - public bool Equals(PaymentOrderDetail input) - { - if (input == null) - return false; + [DataContract] + public partial class PaymentOrderDetail : Entity + { - return base.Equals(input) && - ( - this.AppliedToOrder == input.AppliedToOrder || - (this.AppliedToOrder != null && - this.AppliedToOrder.Equals(input.AppliedToOrder)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ); - } + [DataMember(Name="AppliedToOrder", EmitDefaultValue=false)] + public DecimalValue AppliedToOrder { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AppliedToOrder != null) - hashCode = hashCode * 59 + this.AppliedToOrder.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Payments.cs b/Acumatica.Default_17.200.001/Model/Payments.cs index cdfe1408..8ac93034 100644 --- a/Acumatica.Default_17.200.001/Model/Payments.cs +++ b/Acumatica.Default_17.200.001/Model/Payments.cs @@ -1,318 +1,51 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Payments - /// - [DataContract] - public partial class Payments : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// appliedToOrder. - /// balance. - /// cashAccount. - /// currencyID. - /// docType. - /// orderNbr. - /// orderType. - /// paymentAmount. - /// paymentMethod. - /// paymentRef. - /// referenceNbr. - /// status. - /// transferredtoInvoice. - public Payments(DecimalValue appliedToOrder = default(DecimalValue), DecimalValue balance = default(DecimalValue), StringValue cashAccount = default(StringValue), StringValue currencyID = default(StringValue), StringValue docType = default(StringValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), DecimalValue paymentAmount = default(DecimalValue), StringValue paymentMethod = default(StringValue), StringValue paymentRef = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue transferredtoInvoice = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AppliedToOrder = appliedToOrder; - this.Balance = balance; - this.CashAccount = cashAccount; - this.CurrencyID = currencyID; - this.DocType = docType; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.PaymentAmount = paymentAmount; - this.PaymentMethod = paymentMethod; - this.PaymentRef = paymentRef; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TransferredtoInvoice = transferredtoInvoice; - } - - /// - /// Gets or Sets AppliedToOrder - /// - [DataMember(Name="AppliedToOrder", EmitDefaultValue=false)] - public DecimalValue AppliedToOrder { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } + [DataContract] + public partial class Payments : Entity + { - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } + [DataMember(Name="AppliedToOrder", EmitDefaultValue=false)] + public DecimalValue AppliedToOrder { get; set; } - /// - /// Gets or Sets PaymentAmount - /// - [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] - public DecimalValue PaymentAmount { get; set; } + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } - /// - /// Gets or Sets TransferredtoInvoice - /// - [DataMember(Name="TransferredtoInvoice", EmitDefaultValue=false)] - public DecimalValue TransferredtoInvoice { get; set; } + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Payments {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AppliedToOrder: ").Append(AppliedToOrder).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" PaymentAmount: ").Append(PaymentAmount).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TransferredtoInvoice: ").Append(TransferredtoInvoice).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] + public DecimalValue PaymentAmount { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Payments); - } + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } - /// - /// Returns true if Payments instances are equal - /// - /// Instance of Payments to be compared - /// Boolean - public bool Equals(Payments input) - { - if (input == null) - return false; + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } - return base.Equals(input) && - ( - this.AppliedToOrder == input.AppliedToOrder || - (this.AppliedToOrder != null && - this.AppliedToOrder.Equals(input.AppliedToOrder)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.PaymentAmount == input.PaymentAmount || - (this.PaymentAmount != null && - this.PaymentAmount.Equals(input.PaymentAmount)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TransferredtoInvoice == input.TransferredtoInvoice || - (this.TransferredtoInvoice != null && - this.TransferredtoInvoice.Equals(input.TransferredtoInvoice)) - ); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AppliedToOrder != null) - hashCode = hashCode * 59 + this.AppliedToOrder.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.PaymentAmount != null) - hashCode = hashCode * 59 + this.PaymentAmount.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TransferredtoInvoice != null) - hashCode = hashCode * 59 + this.TransferredtoInvoice.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TransferredtoInvoice", EmitDefaultValue=false)] + public DecimalValue TransferredtoInvoice { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PhysicalInventoryCount.cs b/Acumatica.Default_17.200.001/Model/PhysicalInventoryCount.cs index 4e6c57fe..956e92c1 100644 --- a/Acumatica.Default_17.200.001/Model/PhysicalInventoryCount.cs +++ b/Acumatica.Default_17.200.001/Model/PhysicalInventoryCount.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PhysicalInventoryCount - /// - [DataContract] - public partial class PhysicalInventoryCount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// details. - /// inventoryID. - /// location. - /// lotSerialNbr. - /// referenceNbr. - /// subitem. - public PhysicalInventoryCount(List details = default(List), StringValue inventoryID = default(StringValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue subitem = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Details = details; - this.InventoryID = inventoryID; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.ReferenceNbr = referenceNbr; - this.Subitem = subitem; - } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataContract] + public partial class PhysicalInventoryCount : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PhysicalInventoryCount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PhysicalInventoryCount); - } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Returns true if PhysicalInventoryCount instances are equal - /// - /// Instance of PhysicalInventoryCount to be compared - /// Boolean - public bool Equals(PhysicalInventoryCount input) - { - if (input == null) - return false; + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - return base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ); - } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PhysicalInventoryCountDetail.cs b/Acumatica.Default_17.200.001/Model/PhysicalInventoryCountDetail.cs index a91defa4..34e307eb 100644 --- a/Acumatica.Default_17.200.001/Model/PhysicalInventoryCountDetail.cs +++ b/Acumatica.Default_17.200.001/Model/PhysicalInventoryCountDetail.cs @@ -1,254 +1,39 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PhysicalInventoryCountDetail - /// - [DataContract] - public partial class PhysicalInventoryCountDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// bookQty. - /// description. - /// inventoryID. - /// lineNbr. - /// location. - /// lotSerialNbr. - /// physicalQty. - /// referenceNbr. - /// subitem. - public PhysicalInventoryCountDetail(DecimalValue bookQty = default(DecimalValue), StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue physicalQty = default(DecimalValue), StringValue referenceNbr = default(StringValue), StringValue subitem = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BookQty = bookQty; - this.Description = description; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.PhysicalQty = physicalQty; - this.ReferenceNbr = referenceNbr; - this.Subitem = subitem; - } - - /// - /// Gets or Sets BookQty - /// - [DataMember(Name="BookQty", EmitDefaultValue=false)] - public DecimalValue BookQty { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataContract] + public partial class PhysicalInventoryCountDetail : Entity + { - /// - /// Gets or Sets PhysicalQty - /// - [DataMember(Name="PhysicalQty", EmitDefaultValue=false)] - public DecimalValue PhysicalQty { get; set; } + [DataMember(Name="BookQty", EmitDefaultValue=false)] + public DecimalValue BookQty { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PhysicalInventoryCountDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BookQty: ").Append(BookQty).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" PhysicalQty: ").Append(PhysicalQty).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PhysicalInventoryCountDetail); - } + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - /// - /// Returns true if PhysicalInventoryCountDetail instances are equal - /// - /// Instance of PhysicalInventoryCountDetail to be compared - /// Boolean - public bool Equals(PhysicalInventoryCountDetail input) - { - if (input == null) - return false; + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - return base.Equals(input) && - ( - this.BookQty == input.BookQty || - (this.BookQty != null && - this.BookQty.Equals(input.BookQty)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.PhysicalQty == input.PhysicalQty || - (this.PhysicalQty != null && - this.PhysicalQty.Equals(input.PhysicalQty)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ); - } + [DataMember(Name="PhysicalQty", EmitDefaultValue=false)] + public DecimalValue PhysicalQty { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BookQty != null) - hashCode = hashCode * 59 + this.BookQty.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.PhysicalQty != null) - hashCode = hashCode * 59 + this.PhysicalQty.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PhysicalInventoryReview.cs b/Acumatica.Default_17.200.001/Model/PhysicalInventoryReview.cs index 0e3c58ac..f518adf2 100644 --- a/Acumatica.Default_17.200.001/Model/PhysicalInventoryReview.cs +++ b/Acumatica.Default_17.200.001/Model/PhysicalInventoryReview.cs @@ -1,270 +1,42 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PhysicalInventoryReview - /// - [DataContract] - public partial class PhysicalInventoryReview : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// details. - /// freezeDate. - /// referenceNbr. - /// status. - /// totalPhysicalQty. - /// totalVarianceCost. - /// totalVarianceQty. - /// typeID. - /// warehouseID. - public PhysicalInventoryReview(StringValue description = default(StringValue), List details = default(List), DateTimeValue freezeDate = default(DateTimeValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalPhysicalQty = default(DecimalValue), DecimalValue totalVarianceCost = default(DecimalValue), DecimalValue totalVarianceQty = default(DecimalValue), StringValue typeID = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.Details = details; - this.FreezeDate = freezeDate; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TotalPhysicalQty = totalPhysicalQty; - this.TotalVarianceCost = totalVarianceCost; - this.TotalVarianceQty = totalVarianceQty; - this.TypeID = typeID; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets FreezeDate - /// - [DataMember(Name="FreezeDate", EmitDefaultValue=false)] - public DateTimeValue FreezeDate { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TotalPhysicalQty - /// - [DataMember(Name="TotalPhysicalQty", EmitDefaultValue=false)] - public DecimalValue TotalPhysicalQty { get; set; } + [DataContract] + public partial class PhysicalInventoryReview : Entity + { - /// - /// Gets or Sets TotalVarianceCost - /// - [DataMember(Name="TotalVarianceCost", EmitDefaultValue=false)] - public DecimalValue TotalVarianceCost { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets TotalVarianceQty - /// - [DataMember(Name="TotalVarianceQty", EmitDefaultValue=false)] - public DecimalValue TotalVarianceQty { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets TypeID - /// - [DataMember(Name="TypeID", EmitDefaultValue=false)] - public StringValue TypeID { get; set; } + [DataMember(Name="FreezeDate", EmitDefaultValue=false)] + public DateTimeValue FreezeDate { get; set; } - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PhysicalInventoryReview {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" FreezeDate: ").Append(FreezeDate).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalPhysicalQty: ").Append(TotalPhysicalQty).Append("\n"); - sb.Append(" TotalVarianceCost: ").Append(TotalVarianceCost).Append("\n"); - sb.Append(" TotalVarianceQty: ").Append(TotalVarianceQty).Append("\n"); - sb.Append(" TypeID: ").Append(TypeID).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PhysicalInventoryReview); - } + [DataMember(Name="TotalPhysicalQty", EmitDefaultValue=false)] + public DecimalValue TotalPhysicalQty { get; set; } - /// - /// Returns true if PhysicalInventoryReview instances are equal - /// - /// Instance of PhysicalInventoryReview to be compared - /// Boolean - public bool Equals(PhysicalInventoryReview input) - { - if (input == null) - return false; + [DataMember(Name="TotalVarianceCost", EmitDefaultValue=false)] + public DecimalValue TotalVarianceCost { get; set; } - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.FreezeDate == input.FreezeDate || - (this.FreezeDate != null && - this.FreezeDate.Equals(input.FreezeDate)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalPhysicalQty == input.TotalPhysicalQty || - (this.TotalPhysicalQty != null && - this.TotalPhysicalQty.Equals(input.TotalPhysicalQty)) - ) && base.Equals(input) && - ( - this.TotalVarianceCost == input.TotalVarianceCost || - (this.TotalVarianceCost != null && - this.TotalVarianceCost.Equals(input.TotalVarianceCost)) - ) && base.Equals(input) && - ( - this.TotalVarianceQty == input.TotalVarianceQty || - (this.TotalVarianceQty != null && - this.TotalVarianceQty.Equals(input.TotalVarianceQty)) - ) && base.Equals(input) && - ( - this.TypeID == input.TypeID || - (this.TypeID != null && - this.TypeID.Equals(input.TypeID)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } + [DataMember(Name="TotalVarianceQty", EmitDefaultValue=false)] + public DecimalValue TotalVarianceQty { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.FreezeDate != null) - hashCode = hashCode * 59 + this.FreezeDate.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalPhysicalQty != null) - hashCode = hashCode * 59 + this.TotalPhysicalQty.GetHashCode(); - if (this.TotalVarianceCost != null) - hashCode = hashCode * 59 + this.TotalVarianceCost.GetHashCode(); - if (this.TotalVarianceQty != null) - hashCode = hashCode * 59 + this.TotalVarianceQty.GetHashCode(); - if (this.TypeID != null) - hashCode = hashCode * 59 + this.TypeID.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TypeID", EmitDefaultValue=false)] + public StringValue TypeID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PhysicalInventoryReviewDetail.cs b/Acumatica.Default_17.200.001/Model/PhysicalInventoryReviewDetail.cs index d8bc5afc..a0e845f8 100644 --- a/Acumatica.Default_17.200.001/Model/PhysicalInventoryReviewDetail.cs +++ b/Acumatica.Default_17.200.001/Model/PhysicalInventoryReviewDetail.cs @@ -1,350 +1,57 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PhysicalInventoryReviewDetail - /// - [DataContract] - public partial class PhysicalInventoryReviewDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// bookQty. - /// description. - /// expirationDate. - /// extendedVarianceCost. - /// inventoryID. - /// lineNbr. - /// locationID. - /// lotSerialNbr. - /// physicalQty. - /// reasonCode. - /// status. - /// subitem. - /// tagNbr. - /// unitCost. - /// varianceQty. - public PhysicalInventoryReviewDetail(DecimalValue bookQty = default(DecimalValue), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), DecimalValue extendedVarianceCost = default(DecimalValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue physicalQty = default(DecimalValue), StringValue reasonCode = default(StringValue), StringValue status = default(StringValue), StringValue subitem = default(StringValue), IntValue tagNbr = default(IntValue), DecimalValue unitCost = default(DecimalValue), DecimalValue varianceQty = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BookQty = bookQty; - this.Description = description; - this.ExpirationDate = expirationDate; - this.ExtendedVarianceCost = extendedVarianceCost; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.PhysicalQty = physicalQty; - this.ReasonCode = reasonCode; - this.Status = status; - this.Subitem = subitem; - this.TagNbr = tagNbr; - this.UnitCost = unitCost; - this.VarianceQty = varianceQty; - } - - /// - /// Gets or Sets BookQty - /// - [DataMember(Name="BookQty", EmitDefaultValue=false)] - public DecimalValue BookQty { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets ExtendedVarianceCost - /// - [DataMember(Name="ExtendedVarianceCost", EmitDefaultValue=false)] - public DecimalValue ExtendedVarianceCost { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } + [DataContract] + public partial class PhysicalInventoryReviewDetail : Entity + { - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } + [DataMember(Name="BookQty", EmitDefaultValue=false)] + public DecimalValue BookQty { get; set; } - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets PhysicalQty - /// - [DataMember(Name="PhysicalQty", EmitDefaultValue=false)] - public DecimalValue PhysicalQty { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } + [DataMember(Name="ExtendedVarianceCost", EmitDefaultValue=false)] + public DecimalValue ExtendedVarianceCost { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets TagNbr - /// - [DataMember(Name="TagNbr", EmitDefaultValue=false)] - public IntValue TagNbr { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Gets or Sets VarianceQty - /// - [DataMember(Name="VarianceQty", EmitDefaultValue=false)] - public DecimalValue VarianceQty { get; set; } + [DataMember(Name="PhysicalQty", EmitDefaultValue=false)] + public DecimalValue PhysicalQty { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PhysicalInventoryReviewDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BookQty: ").Append(BookQty).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" ExtendedVarianceCost: ").Append(ExtendedVarianceCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" PhysicalQty: ").Append(PhysicalQty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TagNbr: ").Append(TagNbr).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" VarianceQty: ").Append(VarianceQty).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PhysicalInventoryReviewDetail); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns true if PhysicalInventoryReviewDetail instances are equal - /// - /// Instance of PhysicalInventoryReviewDetail to be compared - /// Boolean - public bool Equals(PhysicalInventoryReviewDetail input) - { - if (input == null) - return false; + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - return base.Equals(input) && - ( - this.BookQty == input.BookQty || - (this.BookQty != null && - this.BookQty.Equals(input.BookQty)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.ExtendedVarianceCost == input.ExtendedVarianceCost || - (this.ExtendedVarianceCost != null && - this.ExtendedVarianceCost.Equals(input.ExtendedVarianceCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.PhysicalQty == input.PhysicalQty || - (this.PhysicalQty != null && - this.PhysicalQty.Equals(input.PhysicalQty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TagNbr == input.TagNbr || - (this.TagNbr != null && - this.TagNbr.Equals(input.TagNbr)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.VarianceQty == input.VarianceQty || - (this.VarianceQty != null && - this.VarianceQty.Equals(input.VarianceQty)) - ); - } + [DataMember(Name="TagNbr", EmitDefaultValue=false)] + public IntValue TagNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BookQty != null) - hashCode = hashCode * 59 + this.BookQty.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.ExtendedVarianceCost != null) - hashCode = hashCode * 59 + this.ExtendedVarianceCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.PhysicalQty != null) - hashCode = hashCode * 59 + this.PhysicalQty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TagNbr != null) - hashCode = hashCode * 59 + this.TagNbr.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.VarianceQty != null) - hashCode = hashCode * 59 + this.VarianceQty.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VarianceQty", EmitDefaultValue=false)] + public DecimalValue VarianceQty { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ProjectTransaction.cs b/Acumatica.Default_17.200.001/Model/ProjectTransaction.cs index 250b4cf0..a5fba36f 100644 --- a/Acumatica.Default_17.200.001/Model/ProjectTransaction.cs +++ b/Acumatica.Default_17.200.001/Model/ProjectTransaction.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ProjectTransaction - /// - [DataContract] - public partial class ProjectTransaction : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// description. - /// details. - /// lastModifiedDateTime. - /// module. - /// originalDocNbr. - /// originalDocType. - /// referenceNbr. - /// status. - /// totalAmount. - /// totalBillableQty. - /// totalQty. - public ProjectTransaction(DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), List details = default(List), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue module = default(StringValue), StringValue originalDocNbr = default(StringValue), StringValue originalDocType = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalAmount = default(DecimalValue), DecimalValue totalBillableQty = default(DecimalValue), DecimalValue totalQty = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.Details = details; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Module = module; - this.OriginalDocNbr = originalDocNbr; - this.OriginalDocType = originalDocType; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TotalAmount = totalAmount; - this.TotalBillableQty = totalBillableQty; - this.TotalQty = totalQty; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } - - /// - /// Gets or Sets OriginalDocNbr - /// - [DataMember(Name="OriginalDocNbr", EmitDefaultValue=false)] - public StringValue OriginalDocNbr { get; set; } + [DataContract] + public partial class ProjectTransaction : Entity + { - /// - /// Gets or Sets OriginalDocType - /// - [DataMember(Name="OriginalDocType", EmitDefaultValue=false)] - public StringValue OriginalDocType { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets TotalAmount - /// - [DataMember(Name="TotalAmount", EmitDefaultValue=false)] - public DecimalValue TotalAmount { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets or Sets TotalBillableQty - /// - [DataMember(Name="TotalBillableQty", EmitDefaultValue=false)] - public DecimalValue TotalBillableQty { get; set; } + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } - /// - /// Gets or Sets TotalQty - /// - [DataMember(Name="TotalQty", EmitDefaultValue=false)] - public DecimalValue TotalQty { get; set; } + [DataMember(Name="OriginalDocNbr", EmitDefaultValue=false)] + public StringValue OriginalDocNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTransaction {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" OriginalDocNbr: ").Append(OriginalDocNbr).Append("\n"); - sb.Append(" OriginalDocType: ").Append(OriginalDocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); - sb.Append(" TotalBillableQty: ").Append(TotalBillableQty).Append("\n"); - sb.Append(" TotalQty: ").Append(TotalQty).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="OriginalDocType", EmitDefaultValue=false)] + public StringValue OriginalDocType { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTransaction); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Returns true if ProjectTransaction instances are equal - /// - /// Instance of ProjectTransaction to be compared - /// Boolean - public bool Equals(ProjectTransaction input) - { - if (input == null) - return false; + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.OriginalDocNbr == input.OriginalDocNbr || - (this.OriginalDocNbr != null && - this.OriginalDocNbr.Equals(input.OriginalDocNbr)) - ) && base.Equals(input) && - ( - this.OriginalDocType == input.OriginalDocType || - (this.OriginalDocType != null && - this.OriginalDocType.Equals(input.OriginalDocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalAmount == input.TotalAmount || - (this.TotalAmount != null && - this.TotalAmount.Equals(input.TotalAmount)) - ) && base.Equals(input) && - ( - this.TotalBillableQty == input.TotalBillableQty || - (this.TotalBillableQty != null && - this.TotalBillableQty.Equals(input.TotalBillableQty)) - ) && base.Equals(input) && - ( - this.TotalQty == input.TotalQty || - (this.TotalQty != null && - this.TotalQty.Equals(input.TotalQty)) - ); - } + [DataMember(Name="TotalAmount", EmitDefaultValue=false)] + public DecimalValue TotalAmount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.OriginalDocNbr != null) - hashCode = hashCode * 59 + this.OriginalDocNbr.GetHashCode(); - if (this.OriginalDocType != null) - hashCode = hashCode * 59 + this.OriginalDocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalAmount != null) - hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); - if (this.TotalBillableQty != null) - hashCode = hashCode * 59 + this.TotalBillableQty.GetHashCode(); - if (this.TotalQty != null) - hashCode = hashCode * 59 + this.TotalQty.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TotalBillableQty", EmitDefaultValue=false)] + public DecimalValue TotalBillableQty { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TotalQty", EmitDefaultValue=false)] + public DecimalValue TotalQty { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ProjectTransactionDetail.cs b/Acumatica.Default_17.200.001/Model/ProjectTransactionDetail.cs index 079c406b..9aa48ca4 100644 --- a/Acumatica.Default_17.200.001/Model/ProjectTransactionDetail.cs +++ b/Acumatica.Default_17.200.001/Model/ProjectTransactionDetail.cs @@ -1,606 +1,105 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ProjectTransactionDetail - /// - [DataContract] - public partial class ProjectTransactionDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountGroup. - /// accountGroupDescription. - /// allocated. - /// amount. - /// batchNbr. - /// billable. - /// billableQty. - /// branch. - /// creditAccount. - /// creditSubaccount. - /// date. - /// debitAccount. - /// debitSubaccount. - /// description. - /// earningType. - /// employee. - /// endDate. - /// finPeriod. - /// inventoryID. - /// location. - /// multiplier. - /// project. - /// projectTask. - /// qty. - /// released. - /// startDate. - /// transactionID. - /// unitRate. - /// uOM. - /// useBillableQtyInAmountFormula. - /// vendorOrCustomer. - public ProjectTransactionDetail(StringValue accountGroup = default(StringValue), StringValue accountGroupDescription = default(StringValue), BooleanValue allocated = default(BooleanValue), DecimalValue amount = default(DecimalValue), StringValue batchNbr = default(StringValue), BooleanValue billable = default(BooleanValue), DecimalValue billableQty = default(DecimalValue), StringValue branch = default(StringValue), StringValue creditAccount = default(StringValue), StringValue creditSubaccount = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue debitAccount = default(StringValue), StringValue debitSubaccount = default(StringValue), StringValue description = default(StringValue), StringValue earningType = default(StringValue), StringValue employee = default(StringValue), DateTimeValue endDate = default(DateTimeValue), StringValue finPeriod = default(StringValue), StringValue inventoryID = default(StringValue), StringValue location = default(StringValue), DecimalValue multiplier = default(DecimalValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), BooleanValue released = default(BooleanValue), DateTimeValue startDate = default(DateTimeValue), LongValue transactionID = default(LongValue), DecimalValue unitRate = default(DecimalValue), StringValue uOM = default(StringValue), BooleanValue useBillableQtyInAmountFormula = default(BooleanValue), StringValue vendorOrCustomer = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountGroup = accountGroup; - this.AccountGroupDescription = accountGroupDescription; - this.Allocated = allocated; - this.Amount = amount; - this.BatchNbr = batchNbr; - this.Billable = billable; - this.BillableQty = billableQty; - this.Branch = branch; - this.CreditAccount = creditAccount; - this.CreditSubaccount = creditSubaccount; - this.Date = date; - this.DebitAccount = debitAccount; - this.DebitSubaccount = debitSubaccount; - this.Description = description; - this.EarningType = earningType; - this.Employee = employee; - this.EndDate = endDate; - this.FinPeriod = finPeriod; - this.InventoryID = inventoryID; - this.Location = location; - this.Multiplier = multiplier; - this.Project = project; - this.ProjectTask = projectTask; - this.Qty = qty; - this.Released = released; - this.StartDate = startDate; - this.TransactionID = transactionID; - this.UnitRate = unitRate; - this.UOM = uOM; - this.UseBillableQtyInAmountFormula = useBillableQtyInAmountFormula; - this.VendorOrCustomer = vendorOrCustomer; - } - - /// - /// Gets or Sets AccountGroup - /// - [DataMember(Name="AccountGroup", EmitDefaultValue=false)] - public StringValue AccountGroup { get; set; } - - /// - /// Gets or Sets AccountGroupDescription - /// - [DataMember(Name="AccountGroupDescription", EmitDefaultValue=false)] - public StringValue AccountGroupDescription { get; set; } - - /// - /// Gets or Sets Allocated - /// - [DataMember(Name="Allocated", EmitDefaultValue=false)] - public BooleanValue Allocated { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableQty - /// - [DataMember(Name="BillableQty", EmitDefaultValue=false)] - public DecimalValue BillableQty { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CreditAccount - /// - [DataMember(Name="CreditAccount", EmitDefaultValue=false)] - public StringValue CreditAccount { get; set; } - - /// - /// Gets or Sets CreditSubaccount - /// - [DataMember(Name="CreditSubaccount", EmitDefaultValue=false)] - public StringValue CreditSubaccount { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets DebitAccount - /// - [DataMember(Name="DebitAccount", EmitDefaultValue=false)] - public StringValue DebitAccount { get; set; } - - /// - /// Gets or Sets DebitSubaccount - /// - [DataMember(Name="DebitSubaccount", EmitDefaultValue=false)] - public StringValue DebitSubaccount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EarningType - /// - [DataMember(Name="EarningType", EmitDefaultValue=false)] - public StringValue EarningType { get; set; } - - /// - /// Gets or Sets Employee - /// - [DataMember(Name="Employee", EmitDefaultValue=false)] - public StringValue Employee { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets FinPeriod - /// - [DataMember(Name="FinPeriod", EmitDefaultValue=false)] - public StringValue FinPeriod { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets Multiplier - /// - [DataMember(Name="Multiplier", EmitDefaultValue=false)] - public DecimalValue Multiplier { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets TransactionID - /// - [DataMember(Name="TransactionID", EmitDefaultValue=false)] - public LongValue TransactionID { get; set; } - - /// - /// Gets or Sets UnitRate - /// - [DataMember(Name="UnitRate", EmitDefaultValue=false)] - public DecimalValue UnitRate { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets UseBillableQtyInAmountFormula - /// - [DataMember(Name="UseBillableQtyInAmountFormula", EmitDefaultValue=false)] - public BooleanValue UseBillableQtyInAmountFormula { get; set; } - - /// - /// Gets or Sets VendorOrCustomer - /// - [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] - public StringValue VendorOrCustomer { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTransactionDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountGroup: ").Append(AccountGroup).Append("\n"); - sb.Append(" AccountGroupDescription: ").Append(AccountGroupDescription).Append("\n"); - sb.Append(" Allocated: ").Append(Allocated).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableQty: ").Append(BillableQty).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CreditAccount: ").Append(CreditAccount).Append("\n"); - sb.Append(" CreditSubaccount: ").Append(CreditSubaccount).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" DebitAccount: ").Append(DebitAccount).Append("\n"); - sb.Append(" DebitSubaccount: ").Append(DebitSubaccount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EarningType: ").Append(EarningType).Append("\n"); - sb.Append(" Employee: ").Append(Employee).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" FinPeriod: ").Append(FinPeriod).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" Multiplier: ").Append(Multiplier).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" TransactionID: ").Append(TransactionID).Append("\n"); - sb.Append(" UnitRate: ").Append(UnitRate).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" UseBillableQtyInAmountFormula: ").Append(UseBillableQtyInAmountFormula).Append("\n"); - sb.Append(" VendorOrCustomer: ").Append(VendorOrCustomer).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTransactionDetail); - } - - /// - /// Returns true if ProjectTransactionDetail instances are equal - /// - /// Instance of ProjectTransactionDetail to be compared - /// Boolean - public bool Equals(ProjectTransactionDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountGroup == input.AccountGroup || - (this.AccountGroup != null && - this.AccountGroup.Equals(input.AccountGroup)) - ) && base.Equals(input) && - ( - this.AccountGroupDescription == input.AccountGroupDescription || - (this.AccountGroupDescription != null && - this.AccountGroupDescription.Equals(input.AccountGroupDescription)) - ) && base.Equals(input) && - ( - this.Allocated == input.Allocated || - (this.Allocated != null && - this.Allocated.Equals(input.Allocated)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableQty == input.BillableQty || - (this.BillableQty != null && - this.BillableQty.Equals(input.BillableQty)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CreditAccount == input.CreditAccount || - (this.CreditAccount != null && - this.CreditAccount.Equals(input.CreditAccount)) - ) && base.Equals(input) && - ( - this.CreditSubaccount == input.CreditSubaccount || - (this.CreditSubaccount != null && - this.CreditSubaccount.Equals(input.CreditSubaccount)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.DebitAccount == input.DebitAccount || - (this.DebitAccount != null && - this.DebitAccount.Equals(input.DebitAccount)) - ) && base.Equals(input) && - ( - this.DebitSubaccount == input.DebitSubaccount || - (this.DebitSubaccount != null && - this.DebitSubaccount.Equals(input.DebitSubaccount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EarningType == input.EarningType || - (this.EarningType != null && - this.EarningType.Equals(input.EarningType)) - ) && base.Equals(input) && - ( - this.Employee == input.Employee || - (this.Employee != null && - this.Employee.Equals(input.Employee)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.FinPeriod == input.FinPeriod || - (this.FinPeriod != null && - this.FinPeriod.Equals(input.FinPeriod)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.Multiplier == input.Multiplier || - (this.Multiplier != null && - this.Multiplier.Equals(input.Multiplier)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.TransactionID == input.TransactionID || - (this.TransactionID != null && - this.TransactionID.Equals(input.TransactionID)) - ) && base.Equals(input) && - ( - this.UnitRate == input.UnitRate || - (this.UnitRate != null && - this.UnitRate.Equals(input.UnitRate)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.UseBillableQtyInAmountFormula == input.UseBillableQtyInAmountFormula || - (this.UseBillableQtyInAmountFormula != null && - this.UseBillableQtyInAmountFormula.Equals(input.UseBillableQtyInAmountFormula)) - ) && base.Equals(input) && - ( - this.VendorOrCustomer == input.VendorOrCustomer || - (this.VendorOrCustomer != null && - this.VendorOrCustomer.Equals(input.VendorOrCustomer)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountGroup != null) - hashCode = hashCode * 59 + this.AccountGroup.GetHashCode(); - if (this.AccountGroupDescription != null) - hashCode = hashCode * 59 + this.AccountGroupDescription.GetHashCode(); - if (this.Allocated != null) - hashCode = hashCode * 59 + this.Allocated.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableQty != null) - hashCode = hashCode * 59 + this.BillableQty.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CreditAccount != null) - hashCode = hashCode * 59 + this.CreditAccount.GetHashCode(); - if (this.CreditSubaccount != null) - hashCode = hashCode * 59 + this.CreditSubaccount.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.DebitAccount != null) - hashCode = hashCode * 59 + this.DebitAccount.GetHashCode(); - if (this.DebitSubaccount != null) - hashCode = hashCode * 59 + this.DebitSubaccount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EarningType != null) - hashCode = hashCode * 59 + this.EarningType.GetHashCode(); - if (this.Employee != null) - hashCode = hashCode * 59 + this.Employee.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.FinPeriod != null) - hashCode = hashCode * 59 + this.FinPeriod.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.Multiplier != null) - hashCode = hashCode * 59 + this.Multiplier.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.TransactionID != null) - hashCode = hashCode * 59 + this.TransactionID.GetHashCode(); - if (this.UnitRate != null) - hashCode = hashCode * 59 + this.UnitRate.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.UseBillableQtyInAmountFormula != null) - hashCode = hashCode * 59 + this.UseBillableQtyInAmountFormula.GetHashCode(); - if (this.VendorOrCustomer != null) - hashCode = hashCode * 59 + this.VendorOrCustomer.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class ProjectTransactionDetail : Entity + { + + [DataMember(Name="AccountGroup", EmitDefaultValue=false)] + public StringValue AccountGroup { get; set; } + + [DataMember(Name="AccountGroupDescription", EmitDefaultValue=false)] + public StringValue AccountGroupDescription { get; set; } + + [DataMember(Name="Allocated", EmitDefaultValue=false)] + public BooleanValue Allocated { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="BillableQty", EmitDefaultValue=false)] + public DecimalValue BillableQty { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CreditAccount", EmitDefaultValue=false)] + public StringValue CreditAccount { get; set; } + + [DataMember(Name="CreditSubaccount", EmitDefaultValue=false)] + public StringValue CreditSubaccount { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="DebitAccount", EmitDefaultValue=false)] + public StringValue DebitAccount { get; set; } + + [DataMember(Name="DebitSubaccount", EmitDefaultValue=false)] + public StringValue DebitSubaccount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EarningType", EmitDefaultValue=false)] + public StringValue EarningType { get; set; } + + [DataMember(Name="Employee", EmitDefaultValue=false)] + public StringValue Employee { get; set; } + + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } + + [DataMember(Name="FinPeriod", EmitDefaultValue=false)] + public StringValue FinPeriod { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="Multiplier", EmitDefaultValue=false)] + public DecimalValue Multiplier { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="TransactionID", EmitDefaultValue=false)] + public LongValue TransactionID { get; set; } + + [DataMember(Name="UnitRate", EmitDefaultValue=false)] + public DecimalValue UnitRate { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="UseBillableQtyInAmountFormula", EmitDefaultValue=false)] + public BooleanValue UseBillableQtyInAmountFormula { get; set; } + + [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] + public StringValue VendorOrCustomer { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PurchaseOrder.cs b/Acumatica.Default_17.200.001/Model/PurchaseOrder.cs index 9b0dc7c6..047fb3c2 100644 --- a/Acumatica.Default_17.200.001/Model/PurchaseOrder.cs +++ b/Acumatica.Default_17.200.001/Model/PurchaseOrder.cs @@ -1,398 +1,66 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PurchaseOrder - /// - [DataContract] - public partial class PurchaseOrder : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// controlTotal. - /// currencyID. - /// date. - /// description. - /// details. - /// hold. - /// lineTotal. - /// location. - /// orderNbr. - /// orderTotal. - /// owner. - /// promisedOn. - /// shippingInstructions. - /// status. - /// taxTotal. - /// type. - /// vendorID. - /// vendorRef. - public PurchaseOrder(DecimalValue controlTotal = default(DecimalValue), StringValue currencyID = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), List details = default(List), BooleanValue hold = default(BooleanValue), DecimalValue lineTotal = default(DecimalValue), StringValue location = default(StringValue), StringValue orderNbr = default(StringValue), DecimalValue orderTotal = default(DecimalValue), StringValue owner = default(StringValue), DateTimeValue promisedOn = default(DateTimeValue), ShippingInstructions shippingInstructions = default(ShippingInstructions), StringValue status = default(StringValue), DecimalValue taxTotal = default(DecimalValue), StringValue type = default(StringValue), StringValue vendorID = default(StringValue), StringValue vendorRef = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ControlTotal = controlTotal; - this.CurrencyID = currencyID; - this.Date = date; - this.Description = description; - this.Details = details; - this.Hold = hold; - this.LineTotal = lineTotal; - this.Location = location; - this.OrderNbr = orderNbr; - this.OrderTotal = orderTotal; - this.Owner = owner; - this.PromisedOn = promisedOn; - this.ShippingInstructions = shippingInstructions; - this.Status = status; - this.TaxTotal = taxTotal; - this.Type = type; - this.VendorID = vendorID; - this.VendorRef = vendorRef; - } - - /// - /// Gets or Sets ControlTotal - /// - [DataMember(Name="ControlTotal", EmitDefaultValue=false)] - public DecimalValue ControlTotal { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataContract] + public partial class PurchaseOrder : Entity + { - /// - /// Gets or Sets LineTotal - /// - [DataMember(Name="LineTotal", EmitDefaultValue=false)] - public DecimalValue LineTotal { get; set; } + [DataMember(Name="ControlTotal", EmitDefaultValue=false)] + public DecimalValue ControlTotal { get; set; } - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets OrderTotal - /// - [DataMember(Name="OrderTotal", EmitDefaultValue=false)] - public DecimalValue OrderTotal { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets PromisedOn - /// - [DataMember(Name="PromisedOn", EmitDefaultValue=false)] - public DateTimeValue PromisedOn { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Gets or Sets ShippingInstructions - /// - [DataMember(Name="ShippingInstructions", EmitDefaultValue=false)] - public ShippingInstructions ShippingInstructions { get; set; } + [DataMember(Name="LineTotal", EmitDefaultValue=false)] + public DecimalValue LineTotal { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="OrderTotal", EmitDefaultValue=false)] + public DecimalValue OrderTotal { get; set; } - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Gets or Sets VendorRef - /// - [DataMember(Name="VendorRef", EmitDefaultValue=false)] - public StringValue VendorRef { get; set; } + [DataMember(Name="PromisedOn", EmitDefaultValue=false)] + public DateTimeValue PromisedOn { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseOrder {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ControlTotal: ").Append(ControlTotal).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LineTotal: ").Append(LineTotal).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderTotal: ").Append(OrderTotal).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PromisedOn: ").Append(PromisedOn).Append("\n"); - sb.Append(" ShippingInstructions: ").Append(ShippingInstructions).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append(" VendorRef: ").Append(VendorRef).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ShippingInstructions", EmitDefaultValue=false)] + public ShippingInstructions ShippingInstructions { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseOrder); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns true if PurchaseOrder instances are equal - /// - /// Instance of PurchaseOrder to be compared - /// Boolean - public bool Equals(PurchaseOrder input) - { - if (input == null) - return false; + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } - return base.Equals(input) && - ( - this.ControlTotal == input.ControlTotal || - (this.ControlTotal != null && - this.ControlTotal.Equals(input.ControlTotal)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LineTotal == input.LineTotal || - (this.LineTotal != null && - this.LineTotal.Equals(input.LineTotal)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderTotal == input.OrderTotal || - (this.OrderTotal != null && - this.OrderTotal.Equals(input.OrderTotal)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PromisedOn == input.PromisedOn || - (this.PromisedOn != null && - this.PromisedOn.Equals(input.PromisedOn)) - ) && base.Equals(input) && - ( - this.ShippingInstructions == input.ShippingInstructions || - (this.ShippingInstructions != null && - this.ShippingInstructions.Equals(input.ShippingInstructions)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ) && base.Equals(input) && - ( - this.VendorRef == input.VendorRef || - (this.VendorRef != null && - this.VendorRef.Equals(input.VendorRef)) - ); - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ControlTotal != null) - hashCode = hashCode * 59 + this.ControlTotal.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LineTotal != null) - hashCode = hashCode * 59 + this.LineTotal.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderTotal != null) - hashCode = hashCode * 59 + this.OrderTotal.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PromisedOn != null) - hashCode = hashCode * 59 + this.PromisedOn.GetHashCode(); - if (this.ShippingInstructions != null) - hashCode = hashCode * 59 + this.ShippingInstructions.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - if (this.VendorRef != null) - hashCode = hashCode * 59 + this.VendorRef.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorRef", EmitDefaultValue=false)] + public StringValue VendorRef { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PurchaseOrderDetail.cs b/Acumatica.Default_17.200.001/Model/PurchaseOrderDetail.cs index 621308f5..ac87b3e1 100644 --- a/Acumatica.Default_17.200.001/Model/PurchaseOrderDetail.cs +++ b/Acumatica.Default_17.200.001/Model/PurchaseOrderDetail.cs @@ -1,590 +1,102 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PurchaseOrderDetail - /// - [DataContract] - public partial class PurchaseOrderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// alternateID. - /// branchID. - /// cancelled. - /// completed. - /// completeOn. - /// description. - /// extendedCost. - /// inventoryID. - /// lineDescription. - /// lineNbr. - /// lineType. - /// maxReceiptPercent. - /// minReceiptPercent. - /// orderNbr. - /// orderQty. - /// orderType. - /// origPONbr. - /// origPOType. - /// promised. - /// qtyOnReceipts. - /// receiptAction. - /// receivedAmount. - /// requested. - /// subaccount. - /// subitem. - /// taxCategory. - /// unitCost. - /// uOM. - /// warehouseID. - public PurchaseOrderDetail(StringValue account = default(StringValue), StringValue alternateID = default(StringValue), StringValue branchID = default(StringValue), BooleanValue cancelled = default(BooleanValue), BooleanValue completed = default(BooleanValue), DecimalValue completeOn = default(DecimalValue), StringValue description = default(StringValue), DecimalValue extendedCost = default(DecimalValue), StringValue inventoryID = default(StringValue), StringValue lineDescription = default(StringValue), IntValue lineNbr = default(IntValue), StringValue lineType = default(StringValue), DecimalValue maxReceiptPercent = default(DecimalValue), DecimalValue minReceiptPercent = default(DecimalValue), StringValue orderNbr = default(StringValue), DecimalValue orderQty = default(DecimalValue), StringValue orderType = default(StringValue), StringValue origPONbr = default(StringValue), StringValue origPOType = default(StringValue), DateTimeValue promised = default(DateTimeValue), DecimalValue qtyOnReceipts = default(DecimalValue), StringValue receiptAction = default(StringValue), DecimalValue receivedAmount = default(DecimalValue), DateTimeValue requested = default(DateTimeValue), StringValue subaccount = default(StringValue), StringValue subitem = default(StringValue), StringValue taxCategory = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.AlternateID = alternateID; - this.BranchID = branchID; - this.Cancelled = cancelled; - this.Completed = completed; - this.CompleteOn = completeOn; - this.Description = description; - this.ExtendedCost = extendedCost; - this.InventoryID = inventoryID; - this.LineDescription = lineDescription; - this.LineNbr = lineNbr; - this.LineType = lineType; - this.MaxReceiptPercent = maxReceiptPercent; - this.MinReceiptPercent = minReceiptPercent; - this.OrderNbr = orderNbr; - this.OrderQty = orderQty; - this.OrderType = orderType; - this.OrigPONbr = origPONbr; - this.OrigPOType = origPOType; - this.Promised = promised; - this.QtyOnReceipts = qtyOnReceipts; - this.ReceiptAction = receiptAction; - this.ReceivedAmount = receivedAmount; - this.Requested = requested; - this.Subaccount = subaccount; - this.Subitem = subitem; - this.TaxCategory = taxCategory; - this.UnitCost = unitCost; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets AlternateID - /// - [DataMember(Name="AlternateID", EmitDefaultValue=false)] - public StringValue AlternateID { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets Cancelled - /// - [DataMember(Name="Cancelled", EmitDefaultValue=false)] - public BooleanValue Cancelled { get; set; } - - /// - /// Gets or Sets Completed - /// - [DataMember(Name="Completed", EmitDefaultValue=false)] - public BooleanValue Completed { get; set; } - - /// - /// Gets or Sets CompleteOn - /// - [DataMember(Name="CompleteOn", EmitDefaultValue=false)] - public DecimalValue CompleteOn { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExtendedCost - /// - [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] - public DecimalValue ExtendedCost { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineDescription - /// - [DataMember(Name="LineDescription", EmitDefaultValue=false)] - public StringValue LineDescription { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LineType - /// - [DataMember(Name="LineType", EmitDefaultValue=false)] - public StringValue LineType { get; set; } - - /// - /// Gets or Sets MaxReceiptPercent - /// - [DataMember(Name="MaxReceiptPercent", EmitDefaultValue=false)] - public DecimalValue MaxReceiptPercent { get; set; } - - /// - /// Gets or Sets MinReceiptPercent - /// - [DataMember(Name="MinReceiptPercent", EmitDefaultValue=false)] - public DecimalValue MinReceiptPercent { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderQty - /// - [DataMember(Name="OrderQty", EmitDefaultValue=false)] - public DecimalValue OrderQty { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets OrigPONbr - /// - [DataMember(Name="OrigPONbr", EmitDefaultValue=false)] - public StringValue OrigPONbr { get; set; } - - /// - /// Gets or Sets OrigPOType - /// - [DataMember(Name="OrigPOType", EmitDefaultValue=false)] - public StringValue OrigPOType { get; set; } - - /// - /// Gets or Sets Promised - /// - [DataMember(Name="Promised", EmitDefaultValue=false)] - public DateTimeValue Promised { get; set; } - - /// - /// Gets or Sets QtyOnReceipts - /// - [DataMember(Name="QtyOnReceipts", EmitDefaultValue=false)] - public DecimalValue QtyOnReceipts { get; set; } - - /// - /// Gets or Sets ReceiptAction - /// - [DataMember(Name="ReceiptAction", EmitDefaultValue=false)] - public StringValue ReceiptAction { get; set; } - - /// - /// Gets or Sets ReceivedAmount - /// - [DataMember(Name="ReceivedAmount", EmitDefaultValue=false)] - public DecimalValue ReceivedAmount { get; set; } - - /// - /// Gets or Sets Requested - /// - [DataMember(Name="Requested", EmitDefaultValue=false)] - public DateTimeValue Requested { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseOrderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" AlternateID: ").Append(AlternateID).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" Cancelled: ").Append(Cancelled).Append("\n"); - sb.Append(" Completed: ").Append(Completed).Append("\n"); - sb.Append(" CompleteOn: ").Append(CompleteOn).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExtendedCost: ").Append(ExtendedCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineDescription: ").Append(LineDescription).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LineType: ").Append(LineType).Append("\n"); - sb.Append(" MaxReceiptPercent: ").Append(MaxReceiptPercent).Append("\n"); - sb.Append(" MinReceiptPercent: ").Append(MinReceiptPercent).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderQty: ").Append(OrderQty).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" OrigPONbr: ").Append(OrigPONbr).Append("\n"); - sb.Append(" OrigPOType: ").Append(OrigPOType).Append("\n"); - sb.Append(" Promised: ").Append(Promised).Append("\n"); - sb.Append(" QtyOnReceipts: ").Append(QtyOnReceipts).Append("\n"); - sb.Append(" ReceiptAction: ").Append(ReceiptAction).Append("\n"); - sb.Append(" ReceivedAmount: ").Append(ReceivedAmount).Append("\n"); - sb.Append(" Requested: ").Append(Requested).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseOrderDetail); - } - - /// - /// Returns true if PurchaseOrderDetail instances are equal - /// - /// Instance of PurchaseOrderDetail to be compared - /// Boolean - public bool Equals(PurchaseOrderDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.AlternateID == input.AlternateID || - (this.AlternateID != null && - this.AlternateID.Equals(input.AlternateID)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.Cancelled == input.Cancelled || - (this.Cancelled != null && - this.Cancelled.Equals(input.Cancelled)) - ) && base.Equals(input) && - ( - this.Completed == input.Completed || - (this.Completed != null && - this.Completed.Equals(input.Completed)) - ) && base.Equals(input) && - ( - this.CompleteOn == input.CompleteOn || - (this.CompleteOn != null && - this.CompleteOn.Equals(input.CompleteOn)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExtendedCost == input.ExtendedCost || - (this.ExtendedCost != null && - this.ExtendedCost.Equals(input.ExtendedCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineDescription == input.LineDescription || - (this.LineDescription != null && - this.LineDescription.Equals(input.LineDescription)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LineType == input.LineType || - (this.LineType != null && - this.LineType.Equals(input.LineType)) - ) && base.Equals(input) && - ( - this.MaxReceiptPercent == input.MaxReceiptPercent || - (this.MaxReceiptPercent != null && - this.MaxReceiptPercent.Equals(input.MaxReceiptPercent)) - ) && base.Equals(input) && - ( - this.MinReceiptPercent == input.MinReceiptPercent || - (this.MinReceiptPercent != null && - this.MinReceiptPercent.Equals(input.MinReceiptPercent)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderQty == input.OrderQty || - (this.OrderQty != null && - this.OrderQty.Equals(input.OrderQty)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.OrigPONbr == input.OrigPONbr || - (this.OrigPONbr != null && - this.OrigPONbr.Equals(input.OrigPONbr)) - ) && base.Equals(input) && - ( - this.OrigPOType == input.OrigPOType || - (this.OrigPOType != null && - this.OrigPOType.Equals(input.OrigPOType)) - ) && base.Equals(input) && - ( - this.Promised == input.Promised || - (this.Promised != null && - this.Promised.Equals(input.Promised)) - ) && base.Equals(input) && - ( - this.QtyOnReceipts == input.QtyOnReceipts || - (this.QtyOnReceipts != null && - this.QtyOnReceipts.Equals(input.QtyOnReceipts)) - ) && base.Equals(input) && - ( - this.ReceiptAction == input.ReceiptAction || - (this.ReceiptAction != null && - this.ReceiptAction.Equals(input.ReceiptAction)) - ) && base.Equals(input) && - ( - this.ReceivedAmount == input.ReceivedAmount || - (this.ReceivedAmount != null && - this.ReceivedAmount.Equals(input.ReceivedAmount)) - ) && base.Equals(input) && - ( - this.Requested == input.Requested || - (this.Requested != null && - this.Requested.Equals(input.Requested)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.AlternateID != null) - hashCode = hashCode * 59 + this.AlternateID.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.Cancelled != null) - hashCode = hashCode * 59 + this.Cancelled.GetHashCode(); - if (this.Completed != null) - hashCode = hashCode * 59 + this.Completed.GetHashCode(); - if (this.CompleteOn != null) - hashCode = hashCode * 59 + this.CompleteOn.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExtendedCost != null) - hashCode = hashCode * 59 + this.ExtendedCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineDescription != null) - hashCode = hashCode * 59 + this.LineDescription.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LineType != null) - hashCode = hashCode * 59 + this.LineType.GetHashCode(); - if (this.MaxReceiptPercent != null) - hashCode = hashCode * 59 + this.MaxReceiptPercent.GetHashCode(); - if (this.MinReceiptPercent != null) - hashCode = hashCode * 59 + this.MinReceiptPercent.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderQty != null) - hashCode = hashCode * 59 + this.OrderQty.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.OrigPONbr != null) - hashCode = hashCode * 59 + this.OrigPONbr.GetHashCode(); - if (this.OrigPOType != null) - hashCode = hashCode * 59 + this.OrigPOType.GetHashCode(); - if (this.Promised != null) - hashCode = hashCode * 59 + this.Promised.GetHashCode(); - if (this.QtyOnReceipts != null) - hashCode = hashCode * 59 + this.QtyOnReceipts.GetHashCode(); - if (this.ReceiptAction != null) - hashCode = hashCode * 59 + this.ReceiptAction.GetHashCode(); - if (this.ReceivedAmount != null) - hashCode = hashCode * 59 + this.ReceivedAmount.GetHashCode(); - if (this.Requested != null) - hashCode = hashCode * 59 + this.Requested.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class PurchaseOrderDetail : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="AlternateID", EmitDefaultValue=false)] + public StringValue AlternateID { get; set; } + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } + + [DataMember(Name="Cancelled", EmitDefaultValue=false)] + public BooleanValue Cancelled { get; set; } + + [DataMember(Name="Completed", EmitDefaultValue=false)] + public BooleanValue Completed { get; set; } + + [DataMember(Name="CompleteOn", EmitDefaultValue=false)] + public DecimalValue CompleteOn { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] + public DecimalValue ExtendedCost { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineDescription", EmitDefaultValue=false)] + public StringValue LineDescription { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LineType", EmitDefaultValue=false)] + public StringValue LineType { get; set; } + + [DataMember(Name="MaxReceiptPercent", EmitDefaultValue=false)] + public DecimalValue MaxReceiptPercent { get; set; } + + [DataMember(Name="MinReceiptPercent", EmitDefaultValue=false)] + public DecimalValue MinReceiptPercent { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderQty", EmitDefaultValue=false)] + public DecimalValue OrderQty { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="OrigPONbr", EmitDefaultValue=false)] + public StringValue OrigPONbr { get; set; } + + [DataMember(Name="OrigPOType", EmitDefaultValue=false)] + public StringValue OrigPOType { get; set; } + + [DataMember(Name="Promised", EmitDefaultValue=false)] + public DateTimeValue Promised { get; set; } + + [DataMember(Name="QtyOnReceipts", EmitDefaultValue=false)] + public DecimalValue QtyOnReceipts { get; set; } + + [DataMember(Name="ReceiptAction", EmitDefaultValue=false)] + public StringValue ReceiptAction { get; set; } + + [DataMember(Name="ReceivedAmount", EmitDefaultValue=false)] + public DecimalValue ReceivedAmount { get; set; } + + [DataMember(Name="Requested", EmitDefaultValue=false)] + public DateTimeValue Requested { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PurchaseReceipt.cs b/Acumatica.Default_17.200.001/Model/PurchaseReceipt.cs index b13b5cfd..9ba5dcf7 100644 --- a/Acumatica.Default_17.200.001/Model/PurchaseReceipt.cs +++ b/Acumatica.Default_17.200.001/Model/PurchaseReceipt.cs @@ -1,350 +1,57 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PurchaseReceipt - /// - [DataContract] - public partial class PurchaseReceipt : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// controlAmount. - /// controlQty. - /// createBill. - /// currencyID. - /// date. - /// details. - /// hold. - /// postPeriod. - /// receiptNbr. - /// status. - /// totalAmount. - /// totalQty. - /// type. - /// vendorID. - /// vendorRef. - public PurchaseReceipt(DecimalValue controlAmount = default(DecimalValue), DecimalValue controlQty = default(DecimalValue), BooleanValue createBill = default(BooleanValue), StringValue currencyID = default(StringValue), DateTimeValue date = default(DateTimeValue), List details = default(List), BooleanValue hold = default(BooleanValue), StringValue postPeriod = default(StringValue), StringValue receiptNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalAmount = default(DecimalValue), DecimalValue totalQty = default(DecimalValue), StringValue type = default(StringValue), StringValue vendorID = default(StringValue), StringValue vendorRef = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ControlAmount = controlAmount; - this.ControlQty = controlQty; - this.CreateBill = createBill; - this.CurrencyID = currencyID; - this.Date = date; - this.Details = details; - this.Hold = hold; - this.PostPeriod = postPeriod; - this.ReceiptNbr = receiptNbr; - this.Status = status; - this.TotalAmount = totalAmount; - this.TotalQty = totalQty; - this.Type = type; - this.VendorID = vendorID; - this.VendorRef = vendorRef; - } - - /// - /// Gets or Sets ControlAmount - /// - [DataMember(Name="ControlAmount", EmitDefaultValue=false)] - public DecimalValue ControlAmount { get; set; } - - /// - /// Gets or Sets ControlQty - /// - [DataMember(Name="ControlQty", EmitDefaultValue=false)] - public DecimalValue ControlQty { get; set; } - - /// - /// Gets or Sets CreateBill - /// - [DataMember(Name="CreateBill", EmitDefaultValue=false)] - public BooleanValue CreateBill { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } + [DataContract] + public partial class PurchaseReceipt : Entity + { - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataMember(Name="ControlAmount", EmitDefaultValue=false)] + public DecimalValue ControlAmount { get; set; } - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="ControlQty", EmitDefaultValue=false)] + public DecimalValue ControlQty { get; set; } - /// - /// Gets or Sets ReceiptNbr - /// - [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] - public StringValue ReceiptNbr { get; set; } + [DataMember(Name="CreateBill", EmitDefaultValue=false)] + public BooleanValue CreateBill { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets TotalAmount - /// - [DataMember(Name="TotalAmount", EmitDefaultValue=false)] - public DecimalValue TotalAmount { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets TotalQty - /// - [DataMember(Name="TotalQty", EmitDefaultValue=false)] - public DecimalValue TotalQty { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - /// - /// Gets or Sets VendorRef - /// - [DataMember(Name="VendorRef", EmitDefaultValue=false)] - public StringValue VendorRef { get; set; } + [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] + public StringValue ReceiptNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseReceipt {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ControlAmount: ").Append(ControlAmount).Append("\n"); - sb.Append(" ControlQty: ").Append(ControlQty).Append("\n"); - sb.Append(" CreateBill: ").Append(CreateBill).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReceiptNbr: ").Append(ReceiptNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); - sb.Append(" TotalQty: ").Append(TotalQty).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append(" VendorRef: ").Append(VendorRef).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseReceipt); - } + [DataMember(Name="TotalAmount", EmitDefaultValue=false)] + public DecimalValue TotalAmount { get; set; } - /// - /// Returns true if PurchaseReceipt instances are equal - /// - /// Instance of PurchaseReceipt to be compared - /// Boolean - public bool Equals(PurchaseReceipt input) - { - if (input == null) - return false; + [DataMember(Name="TotalQty", EmitDefaultValue=false)] + public DecimalValue TotalQty { get; set; } - return base.Equals(input) && - ( - this.ControlAmount == input.ControlAmount || - (this.ControlAmount != null && - this.ControlAmount.Equals(input.ControlAmount)) - ) && base.Equals(input) && - ( - this.ControlQty == input.ControlQty || - (this.ControlQty != null && - this.ControlQty.Equals(input.ControlQty)) - ) && base.Equals(input) && - ( - this.CreateBill == input.CreateBill || - (this.CreateBill != null && - this.CreateBill.Equals(input.CreateBill)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReceiptNbr == input.ReceiptNbr || - (this.ReceiptNbr != null && - this.ReceiptNbr.Equals(input.ReceiptNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalAmount == input.TotalAmount || - (this.TotalAmount != null && - this.TotalAmount.Equals(input.TotalAmount)) - ) && base.Equals(input) && - ( - this.TotalQty == input.TotalQty || - (this.TotalQty != null && - this.TotalQty.Equals(input.TotalQty)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ) && base.Equals(input) && - ( - this.VendorRef == input.VendorRef || - (this.VendorRef != null && - this.VendorRef.Equals(input.VendorRef)) - ); - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ControlAmount != null) - hashCode = hashCode * 59 + this.ControlAmount.GetHashCode(); - if (this.ControlQty != null) - hashCode = hashCode * 59 + this.ControlQty.GetHashCode(); - if (this.CreateBill != null) - hashCode = hashCode * 59 + this.CreateBill.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReceiptNbr != null) - hashCode = hashCode * 59 + this.ReceiptNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalAmount != null) - hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); - if (this.TotalQty != null) - hashCode = hashCode * 59 + this.TotalQty.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - if (this.VendorRef != null) - hashCode = hashCode * 59 + this.VendorRef.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorRef", EmitDefaultValue=false)] + public StringValue VendorRef { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PurchaseReceiptDetail.cs b/Acumatica.Default_17.200.001/Model/PurchaseReceiptDetail.cs index ad553a71..276167b8 100644 --- a/Acumatica.Default_17.200.001/Model/PurchaseReceiptDetail.cs +++ b/Acumatica.Default_17.200.001/Model/PurchaseReceiptDetail.cs @@ -1,526 +1,90 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PurchaseReceiptDetail - /// - [DataContract] - public partial class PurchaseReceiptDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// accrualAccount. - /// accrualSubaccount. - /// allocations. - /// branch. - /// expirationDate. - /// extendedCost. - /// inventoryID. - /// lineNbr. - /// lineType. - /// location. - /// lotSerialNbr. - /// openQty. - /// orderedQty. - /// pOLineNbr. - /// pOOrderNbr. - /// pOOrderType. - /// project. - /// projectTask. - /// receiptQty. - /// subaccount. - /// subitem. - /// transactionDescription. - /// unitCost. - /// uOM. - /// warehouse. - public PurchaseReceiptDetail(StringValue account = default(StringValue), StringValue accrualAccount = default(StringValue), StringValue accrualSubaccount = default(StringValue), List allocations = default(List), StringValue branch = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), DecimalValue extendedCost = default(DecimalValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue lineType = default(StringValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue openQty = default(DecimalValue), DecimalValue orderedQty = default(DecimalValue), IntValue pOLineNbr = default(IntValue), StringValue pOOrderNbr = default(StringValue), StringValue pOOrderType = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), DecimalValue receiptQty = default(DecimalValue), StringValue subaccount = default(StringValue), StringValue subitem = default(StringValue), StringValue transactionDescription = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.AccrualAccount = accrualAccount; - this.AccrualSubaccount = accrualSubaccount; - this.Allocations = allocations; - this.Branch = branch; - this.ExpirationDate = expirationDate; - this.ExtendedCost = extendedCost; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LineType = lineType; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.OpenQty = openQty; - this.OrderedQty = orderedQty; - this.POLineNbr = pOLineNbr; - this.POOrderNbr = pOOrderNbr; - this.POOrderType = pOOrderType; - this.Project = project; - this.ProjectTask = projectTask; - this.ReceiptQty = receiptQty; - this.Subaccount = subaccount; - this.Subitem = subitem; - this.TransactionDescription = transactionDescription; - this.UnitCost = unitCost; - this.UOM = uOM; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets AccrualAccount - /// - [DataMember(Name="AccrualAccount", EmitDefaultValue=false)] - public StringValue AccrualAccount { get; set; } - - /// - /// Gets or Sets AccrualSubaccount - /// - [DataMember(Name="AccrualSubaccount", EmitDefaultValue=false)] - public StringValue AccrualSubaccount { get; set; } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public List Allocations { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } + [DataContract] + public partial class PurchaseReceiptDetail : Entity + { - /// - /// Gets or Sets ExtendedCost - /// - [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] - public DecimalValue ExtendedCost { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } + [DataMember(Name="AccrualAccount", EmitDefaultValue=false)] + public StringValue AccrualAccount { get; set; } - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } + [DataMember(Name="AccrualSubaccount", EmitDefaultValue=false)] + public StringValue AccrualSubaccount { get; set; } - /// - /// Gets or Sets LineType - /// - [DataMember(Name="LineType", EmitDefaultValue=false)] - public StringValue LineType { get; set; } + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets OpenQty - /// - [DataMember(Name="OpenQty", EmitDefaultValue=false)] - public DecimalValue OpenQty { get; set; } + [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] + public DecimalValue ExtendedCost { get; set; } - /// - /// Gets or Sets OrderedQty - /// - [DataMember(Name="OrderedQty", EmitDefaultValue=false)] - public DecimalValue OrderedQty { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets POLineNbr - /// - [DataMember(Name="POLineNbr", EmitDefaultValue=false)] - public IntValue POLineNbr { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets POOrderNbr - /// - [DataMember(Name="POOrderNbr", EmitDefaultValue=false)] - public StringValue POOrderNbr { get; set; } + [DataMember(Name="LineType", EmitDefaultValue=false)] + public StringValue LineType { get; set; } - /// - /// Gets or Sets POOrderType - /// - [DataMember(Name="POOrderType", EmitDefaultValue=false)] - public StringValue POOrderType { get; set; } + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } + [DataMember(Name="OpenQty", EmitDefaultValue=false)] + public DecimalValue OpenQty { get; set; } - /// - /// Gets or Sets ReceiptQty - /// - [DataMember(Name="ReceiptQty", EmitDefaultValue=false)] - public DecimalValue ReceiptQty { get; set; } + [DataMember(Name="OrderedQty", EmitDefaultValue=false)] + public DecimalValue OrderedQty { get; set; } - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } + [DataMember(Name="POLineNbr", EmitDefaultValue=false)] + public IntValue POLineNbr { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="POOrderNbr", EmitDefaultValue=false)] + public StringValue POOrderNbr { get; set; } - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } + [DataMember(Name="POOrderType", EmitDefaultValue=false)] + public StringValue POOrderType { get; set; } - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } + [DataMember(Name="ReceiptQty", EmitDefaultValue=false)] + public DecimalValue ReceiptQty { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseReceiptDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" AccrualAccount: ").Append(AccrualAccount).Append("\n"); - sb.Append(" AccrualSubaccount: ").Append(AccrualSubaccount).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" ExtendedCost: ").Append(ExtendedCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LineType: ").Append(LineType).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" OpenQty: ").Append(OpenQty).Append("\n"); - sb.Append(" OrderedQty: ").Append(OrderedQty).Append("\n"); - sb.Append(" POLineNbr: ").Append(POLineNbr).Append("\n"); - sb.Append(" POOrderNbr: ").Append(POOrderNbr).Append("\n"); - sb.Append(" POOrderType: ").Append(POOrderType).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" ReceiptQty: ").Append(ReceiptQty).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseReceiptDetail); - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// Returns true if PurchaseReceiptDetail instances are equal - /// - /// Instance of PurchaseReceiptDetail to be compared - /// Boolean - public bool Equals(PurchaseReceiptDetail input) - { - if (input == null) - return false; + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.AccrualAccount == input.AccrualAccount || - (this.AccrualAccount != null && - this.AccrualAccount.Equals(input.AccrualAccount)) - ) && base.Equals(input) && - ( - this.AccrualSubaccount == input.AccrualSubaccount || - (this.AccrualSubaccount != null && - this.AccrualSubaccount.Equals(input.AccrualSubaccount)) - ) && base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.ExtendedCost == input.ExtendedCost || - (this.ExtendedCost != null && - this.ExtendedCost.Equals(input.ExtendedCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LineType == input.LineType || - (this.LineType != null && - this.LineType.Equals(input.LineType)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.OpenQty == input.OpenQty || - (this.OpenQty != null && - this.OpenQty.Equals(input.OpenQty)) - ) && base.Equals(input) && - ( - this.OrderedQty == input.OrderedQty || - (this.OrderedQty != null && - this.OrderedQty.Equals(input.OrderedQty)) - ) && base.Equals(input) && - ( - this.POLineNbr == input.POLineNbr || - (this.POLineNbr != null && - this.POLineNbr.Equals(input.POLineNbr)) - ) && base.Equals(input) && - ( - this.POOrderNbr == input.POOrderNbr || - (this.POOrderNbr != null && - this.POOrderNbr.Equals(input.POOrderNbr)) - ) && base.Equals(input) && - ( - this.POOrderType == input.POOrderType || - (this.POOrderType != null && - this.POOrderType.Equals(input.POOrderType)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.ReceiptQty == input.ReceiptQty || - (this.ReceiptQty != null && - this.ReceiptQty.Equals(input.ReceiptQty)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.AccrualAccount != null) - hashCode = hashCode * 59 + this.AccrualAccount.GetHashCode(); - if (this.AccrualSubaccount != null) - hashCode = hashCode * 59 + this.AccrualSubaccount.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.ExtendedCost != null) - hashCode = hashCode * 59 + this.ExtendedCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LineType != null) - hashCode = hashCode * 59 + this.LineType.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.OpenQty != null) - hashCode = hashCode * 59 + this.OpenQty.GetHashCode(); - if (this.OrderedQty != null) - hashCode = hashCode * 59 + this.OrderedQty.GetHashCode(); - if (this.POLineNbr != null) - hashCode = hashCode * 59 + this.POLineNbr.GetHashCode(); - if (this.POOrderNbr != null) - hashCode = hashCode * 59 + this.POOrderNbr.GetHashCode(); - if (this.POOrderType != null) - hashCode = hashCode * 59 + this.POOrderType.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.ReceiptQty != null) - hashCode = hashCode * 59 + this.ReceiptQty.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PurchaseReceiptDetailAllocation.cs b/Acumatica.Default_17.200.001/Model/PurchaseReceiptDetailAllocation.cs index acce873b..1a0fa164 100644 --- a/Acumatica.Default_17.200.001/Model/PurchaseReceiptDetailAllocation.cs +++ b/Acumatica.Default_17.200.001/Model/PurchaseReceiptDetailAllocation.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PurchaseReceiptDetailAllocation - /// - [DataContract] - public partial class PurchaseReceiptDetailAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// lineNbr. - /// location. - /// lotSerialNbr. - /// qty. - /// receiptNbr. - /// splitLineNbr. - public PurchaseReceiptDetailAllocation(IntValue lineNbr = default(IntValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue receiptNbr = default(StringValue), IntValue splitLineNbr = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.LineNbr = lineNbr; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.ReceiptNbr = receiptNbr; - this.SplitLineNbr = splitLineNbr; - } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReceiptNbr - /// - [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] - public StringValue ReceiptNbr { get; set; } - - /// - /// Gets or Sets SplitLineNbr - /// - [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] - public IntValue SplitLineNbr { get; set; } + [DataContract] + public partial class PurchaseReceiptDetailAllocation : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseReceiptDetailAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReceiptNbr: ").Append(ReceiptNbr).Append("\n"); - sb.Append(" SplitLineNbr: ").Append(SplitLineNbr).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseReceiptDetailAllocation); - } + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - /// - /// Returns true if PurchaseReceiptDetailAllocation instances are equal - /// - /// Instance of PurchaseReceiptDetailAllocation to be compared - /// Boolean - public bool Equals(PurchaseReceiptDetailAllocation input) - { - if (input == null) - return false; + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - return base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReceiptNbr == input.ReceiptNbr || - (this.ReceiptNbr != null && - this.ReceiptNbr.Equals(input.ReceiptNbr)) - ) && base.Equals(input) && - ( - this.SplitLineNbr == input.SplitLineNbr || - (this.SplitLineNbr != null && - this.SplitLineNbr.Equals(input.SplitLineNbr)) - ); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReceiptNbr != null) - hashCode = hashCode * 59 + this.ReceiptNbr.GetHashCode(); - if (this.SplitLineNbr != null) - hashCode = hashCode * 59 + this.SplitLineNbr.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] + public StringValue ReceiptNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] + public IntValue SplitLineNbr { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/PurchaseSettings.cs b/Acumatica.Default_17.200.001/Model/PurchaseSettings.cs index 21bfd481..c11beb3a 100644 --- a/Acumatica.Default_17.200.001/Model/PurchaseSettings.cs +++ b/Acumatica.Default_17.200.001/Model/PurchaseSettings.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// PurchaseSettings - /// - [DataContract] - public partial class PurchaseSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// pOSiteID. - /// pOSource. - /// vendorID. - public PurchaseSettings(StringValue pOSiteID = default(StringValue), StringValue pOSource = default(StringValue), StringValue vendorID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.POSiteID = pOSiteID; - this.POSource = pOSource; - this.VendorID = vendorID; - } - - /// - /// Gets or Sets POSiteID - /// - [DataMember(Name="POSiteID", EmitDefaultValue=false)] - public StringValue POSiteID { get; set; } - - /// - /// Gets or Sets POSource - /// - [DataMember(Name="POSource", EmitDefaultValue=false)] - public StringValue POSource { get; set; } - - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" POSiteID: ").Append(POSiteID).Append("\n"); - sb.Append(" POSource: ").Append(POSource).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseSettings); - } - - /// - /// Returns true if PurchaseSettings instances are equal - /// - /// Instance of PurchaseSettings to be compared - /// Boolean - public bool Equals(PurchaseSettings input) - { - if (input == null) - return false; + [DataContract] + public partial class PurchaseSettings : Entity + { - return base.Equals(input) && - ( - this.POSiteID == input.POSiteID || - (this.POSiteID != null && - this.POSiteID.Equals(input.POSiteID)) - ) && base.Equals(input) && - ( - this.POSource == input.POSource || - (this.POSource != null && - this.POSource.Equals(input.POSource)) - ) && base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ); - } + [DataMember(Name="POSiteID", EmitDefaultValue=false)] + public StringValue POSiteID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.POSiteID != null) - hashCode = hashCode * 59 + this.POSiteID.GetHashCode(); - if (this.POSource != null) - hashCode = hashCode * 59 + this.POSource.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="POSource", EmitDefaultValue=false)] + public StringValue POSource { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/RelationDetail.cs b/Acumatica.Default_17.200.001/Model/RelationDetail.cs index df1d4af7..b1b334e8 100644 --- a/Acumatica.Default_17.200.001/Model/RelationDetail.cs +++ b/Acumatica.Default_17.200.001/Model/RelationDetail.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// RelationDetail - /// - [DataContract] - public partial class RelationDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// addToCc. - /// contactDisplayName. - /// contactID. - /// document. - /// documentTargetNoteIDDescription. - /// email. - /// name. - /// primary. - /// relationID. - /// role. - /// type. - public RelationDetail(StringValue account = default(StringValue), BooleanValue addToCc = default(BooleanValue), StringValue contactDisplayName = default(StringValue), IntValue contactID = default(IntValue), GuidValue document = default(GuidValue), StringValue documentTargetNoteIDDescription = default(StringValue), StringValue email = default(StringValue), StringValue name = default(StringValue), BooleanValue primary = default(BooleanValue), IntValue relationID = default(IntValue), StringValue role = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.AddToCc = addToCc; - this.ContactDisplayName = contactDisplayName; - this.ContactID = contactID; - this.Document = document; - this.DocumentTargetNoteIDDescription = documentTargetNoteIDDescription; - this.Email = email; - this.Name = name; - this.Primary = primary; - this.RelationID = relationID; - this.Role = role; - this.Type = type; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets AddToCc - /// - [DataMember(Name="AddToCc", EmitDefaultValue=false)] - public BooleanValue AddToCc { get; set; } - - /// - /// Gets or Sets ContactDisplayName - /// - [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] - public StringValue ContactDisplayName { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets Document - /// - [DataMember(Name="Document", EmitDefaultValue=false)] - public GuidValue Document { get; set; } - - /// - /// Gets or Sets DocumentTargetNoteIDDescription - /// - [DataMember(Name="DocumentTargetNoteIDDescription", EmitDefaultValue=false)] - public StringValue DocumentTargetNoteIDDescription { get; set; } + [DataContract] + public partial class RelationDetail : Entity + { - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } + [DataMember(Name="AddToCc", EmitDefaultValue=false)] + public BooleanValue AddToCc { get; set; } - /// - /// Gets or Sets Primary - /// - [DataMember(Name="Primary", EmitDefaultValue=false)] - public BooleanValue Primary { get; set; } + [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] + public StringValue ContactDisplayName { get; set; } - /// - /// Gets or Sets RelationID - /// - [DataMember(Name="RelationID", EmitDefaultValue=false)] - public IntValue RelationID { get; set; } + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } - /// - /// Gets or Sets Role - /// - [DataMember(Name="Role", EmitDefaultValue=false)] - public StringValue Role { get; set; } + [DataMember(Name="Document", EmitDefaultValue=false)] + public GuidValue Document { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="DocumentTargetNoteIDDescription", EmitDefaultValue=false)] + public StringValue DocumentTargetNoteIDDescription { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RelationDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" AddToCc: ").Append(AddToCc).Append("\n"); - sb.Append(" ContactDisplayName: ").Append(ContactDisplayName).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" Document: ").Append(Document).Append("\n"); - sb.Append(" DocumentTargetNoteIDDescription: ").Append(DocumentTargetNoteIDDescription).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Primary: ").Append(Primary).Append("\n"); - sb.Append(" RelationID: ").Append(RelationID).Append("\n"); - sb.Append(" Role: ").Append(Role).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RelationDetail); - } + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } - /// - /// Returns true if RelationDetail instances are equal - /// - /// Instance of RelationDetail to be compared - /// Boolean - public bool Equals(RelationDetail input) - { - if (input == null) - return false; + [DataMember(Name="Primary", EmitDefaultValue=false)] + public BooleanValue Primary { get; set; } - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.AddToCc == input.AddToCc || - (this.AddToCc != null && - this.AddToCc.Equals(input.AddToCc)) - ) && base.Equals(input) && - ( - this.ContactDisplayName == input.ContactDisplayName || - (this.ContactDisplayName != null && - this.ContactDisplayName.Equals(input.ContactDisplayName)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.Document == input.Document || - (this.Document != null && - this.Document.Equals(input.Document)) - ) && base.Equals(input) && - ( - this.DocumentTargetNoteIDDescription == input.DocumentTargetNoteIDDescription || - (this.DocumentTargetNoteIDDescription != null && - this.DocumentTargetNoteIDDescription.Equals(input.DocumentTargetNoteIDDescription)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.Primary == input.Primary || - (this.Primary != null && - this.Primary.Equals(input.Primary)) - ) && base.Equals(input) && - ( - this.RelationID == input.RelationID || - (this.RelationID != null && - this.RelationID.Equals(input.RelationID)) - ) && base.Equals(input) && - ( - this.Role == input.Role || - (this.Role != null && - this.Role.Equals(input.Role)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="RelationID", EmitDefaultValue=false)] + public IntValue RelationID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.AddToCc != null) - hashCode = hashCode * 59 + this.AddToCc.GetHashCode(); - if (this.ContactDisplayName != null) - hashCode = hashCode * 59 + this.ContactDisplayName.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.Document != null) - hashCode = hashCode * 59 + this.Document.GetHashCode(); - if (this.DocumentTargetNoteIDDescription != null) - hashCode = hashCode * 59 + this.DocumentTargetNoteIDDescription.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Primary != null) - hashCode = hashCode * 59 + this.Primary.GetHashCode(); - if (this.RelationID != null) - hashCode = hashCode * 59 + this.RelationID.GetHashCode(); - if (this.Role != null) - hashCode = hashCode * 59 + this.Role.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Role", EmitDefaultValue=false)] + public StringValue Role { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ReminderDetail.cs b/Acumatica.Default_17.200.001/Model/ReminderDetail.cs index b46e83ed..4cdbd7ca 100644 --- a/Acumatica.Default_17.200.001/Model/ReminderDetail.cs +++ b/Acumatica.Default_17.200.001/Model/ReminderDetail.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ReminderDetail - /// - [DataContract] - public partial class ReminderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// isActive. - /// remindAtDate. - /// remindAtTime. - public ReminderDetail(BooleanValue isActive = default(BooleanValue), DateTimeValue remindAtDate = default(DateTimeValue), DateTimeValue remindAtTime = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.IsActive = isActive; - this.RemindAtDate = remindAtDate; - this.RemindAtTime = remindAtTime; - } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="IsActive", EmitDefaultValue=false)] - public BooleanValue IsActive { get; set; } - - /// - /// Gets or Sets RemindAtDate - /// - [DataMember(Name="RemindAtDate", EmitDefaultValue=false)] - public DateTimeValue RemindAtDate { get; set; } - - /// - /// Gets or Sets RemindAtTime - /// - [DataMember(Name="RemindAtTime", EmitDefaultValue=false)] - public DateTimeValue RemindAtTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReminderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" RemindAtDate: ").Append(RemindAtDate).Append("\n"); - sb.Append(" RemindAtTime: ").Append(RemindAtTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReminderDetail); - } - - /// - /// Returns true if ReminderDetail instances are equal - /// - /// Instance of ReminderDetail to be compared - /// Boolean - public bool Equals(ReminderDetail input) - { - if (input == null) - return false; + [DataContract] + public partial class ReminderDetail : Entity + { - return base.Equals(input) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && base.Equals(input) && - ( - this.RemindAtDate == input.RemindAtDate || - (this.RemindAtDate != null && - this.RemindAtDate.Equals(input.RemindAtDate)) - ) && base.Equals(input) && - ( - this.RemindAtTime == input.RemindAtTime || - (this.RemindAtTime != null && - this.RemindAtTime.Equals(input.RemindAtTime)) - ); - } + [DataMember(Name="IsActive", EmitDefaultValue=false)] + public BooleanValue IsActive { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.RemindAtDate != null) - hashCode = hashCode * 59 + this.RemindAtDate.GetHashCode(); - if (this.RemindAtTime != null) - hashCode = hashCode * 59 + this.RemindAtTime.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="RemindAtDate", EmitDefaultValue=false)] + public DateTimeValue RemindAtDate { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="RemindAtTime", EmitDefaultValue=false)] + public DateTimeValue RemindAtTime { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ReplenishmentParameterStockItem.cs b/Acumatica.Default_17.200.001/Model/ReplenishmentParameterStockItem.cs index 0910a647..83fa4d7b 100644 --- a/Acumatica.Default_17.200.001/Model/ReplenishmentParameterStockItem.cs +++ b/Acumatica.Default_17.200.001/Model/ReplenishmentParameterStockItem.cs @@ -1,366 +1,60 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ReplenishmentParameterStockItem - /// - [DataContract] - public partial class ReplenishmentParameterStockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// demandForecastModel. - /// forecastPeriodType. - /// launchDate. - /// maxQty. - /// maxShelfLifeInDays. - /// method. - /// periodsToAnalyze. - /// reorderPoint. - /// replenishmentClass. - /// replenishmentWarehouse. - /// safetyStock. - /// seasonality. - /// serviceLevel. - /// source. - /// terminationDate. - /// transferERQ. - public ReplenishmentParameterStockItem(StringValue demandForecastModel = default(StringValue), StringValue forecastPeriodType = default(StringValue), DateTimeValue launchDate = default(DateTimeValue), DecimalValue maxQty = default(DecimalValue), IntValue maxShelfLifeInDays = default(IntValue), StringValue method = default(StringValue), IntValue periodsToAnalyze = default(IntValue), DecimalValue reorderPoint = default(DecimalValue), StringValue replenishmentClass = default(StringValue), StringValue replenishmentWarehouse = default(StringValue), DecimalValue safetyStock = default(DecimalValue), StringValue seasonality = default(StringValue), DecimalValue serviceLevel = default(DecimalValue), StringValue source = default(StringValue), DateTimeValue terminationDate = default(DateTimeValue), DecimalValue transferERQ = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DemandForecastModel = demandForecastModel; - this.ForecastPeriodType = forecastPeriodType; - this.LaunchDate = launchDate; - this.MaxQty = maxQty; - this.MaxShelfLifeInDays = maxShelfLifeInDays; - this.Method = method; - this.PeriodsToAnalyze = periodsToAnalyze; - this.ReorderPoint = reorderPoint; - this.ReplenishmentClass = replenishmentClass; - this.ReplenishmentWarehouse = replenishmentWarehouse; - this.SafetyStock = safetyStock; - this.Seasonality = seasonality; - this.ServiceLevel = serviceLevel; - this.Source = source; - this.TerminationDate = terminationDate; - this.TransferERQ = transferERQ; - } - - /// - /// Gets or Sets DemandForecastModel - /// - [DataMember(Name="DemandForecastModel", EmitDefaultValue=false)] - public StringValue DemandForecastModel { get; set; } - - /// - /// Gets or Sets ForecastPeriodType - /// - [DataMember(Name="ForecastPeriodType", EmitDefaultValue=false)] - public StringValue ForecastPeriodType { get; set; } - - /// - /// Gets or Sets LaunchDate - /// - [DataMember(Name="LaunchDate", EmitDefaultValue=false)] - public DateTimeValue LaunchDate { get; set; } - - /// - /// Gets or Sets MaxQty - /// - [DataMember(Name="MaxQty", EmitDefaultValue=false)] - public DecimalValue MaxQty { get; set; } - - /// - /// Gets or Sets MaxShelfLifeInDays - /// - [DataMember(Name="MaxShelfLifeInDays", EmitDefaultValue=false)] - public IntValue MaxShelfLifeInDays { get; set; } - - /// - /// Gets or Sets Method - /// - [DataMember(Name="Method", EmitDefaultValue=false)] - public StringValue Method { get; set; } + [DataContract] + public partial class ReplenishmentParameterStockItem : Entity + { - /// - /// Gets or Sets PeriodsToAnalyze - /// - [DataMember(Name="PeriodsToAnalyze", EmitDefaultValue=false)] - public IntValue PeriodsToAnalyze { get; set; } + [DataMember(Name="DemandForecastModel", EmitDefaultValue=false)] + public StringValue DemandForecastModel { get; set; } - /// - /// Gets or Sets ReorderPoint - /// - [DataMember(Name="ReorderPoint", EmitDefaultValue=false)] - public DecimalValue ReorderPoint { get; set; } + [DataMember(Name="ForecastPeriodType", EmitDefaultValue=false)] + public StringValue ForecastPeriodType { get; set; } - /// - /// Gets or Sets ReplenishmentClass - /// - [DataMember(Name="ReplenishmentClass", EmitDefaultValue=false)] - public StringValue ReplenishmentClass { get; set; } + [DataMember(Name="LaunchDate", EmitDefaultValue=false)] + public DateTimeValue LaunchDate { get; set; } - /// - /// Gets or Sets ReplenishmentWarehouse - /// - [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] - public StringValue ReplenishmentWarehouse { get; set; } + [DataMember(Name="MaxQty", EmitDefaultValue=false)] + public DecimalValue MaxQty { get; set; } - /// - /// Gets or Sets SafetyStock - /// - [DataMember(Name="SafetyStock", EmitDefaultValue=false)] - public DecimalValue SafetyStock { get; set; } + [DataMember(Name="MaxShelfLifeInDays", EmitDefaultValue=false)] + public IntValue MaxShelfLifeInDays { get; set; } - /// - /// Gets or Sets Seasonality - /// - [DataMember(Name="Seasonality", EmitDefaultValue=false)] - public StringValue Seasonality { get; set; } + [DataMember(Name="Method", EmitDefaultValue=false)] + public StringValue Method { get; set; } - /// - /// Gets or Sets ServiceLevel - /// - [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] - public DecimalValue ServiceLevel { get; set; } + [DataMember(Name="PeriodsToAnalyze", EmitDefaultValue=false)] + public IntValue PeriodsToAnalyze { get; set; } - /// - /// Gets or Sets Source - /// - [DataMember(Name="Source", EmitDefaultValue=false)] - public StringValue Source { get; set; } + [DataMember(Name="ReorderPoint", EmitDefaultValue=false)] + public DecimalValue ReorderPoint { get; set; } - /// - /// Gets or Sets TerminationDate - /// - [DataMember(Name="TerminationDate", EmitDefaultValue=false)] - public DateTimeValue TerminationDate { get; set; } + [DataMember(Name="ReplenishmentClass", EmitDefaultValue=false)] + public StringValue ReplenishmentClass { get; set; } - /// - /// Gets or Sets TransferERQ - /// - [DataMember(Name="TransferERQ", EmitDefaultValue=false)] - public DecimalValue TransferERQ { get; set; } + [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] + public StringValue ReplenishmentWarehouse { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReplenishmentParameterStockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DemandForecastModel: ").Append(DemandForecastModel).Append("\n"); - sb.Append(" ForecastPeriodType: ").Append(ForecastPeriodType).Append("\n"); - sb.Append(" LaunchDate: ").Append(LaunchDate).Append("\n"); - sb.Append(" MaxQty: ").Append(MaxQty).Append("\n"); - sb.Append(" MaxShelfLifeInDays: ").Append(MaxShelfLifeInDays).Append("\n"); - sb.Append(" Method: ").Append(Method).Append("\n"); - sb.Append(" PeriodsToAnalyze: ").Append(PeriodsToAnalyze).Append("\n"); - sb.Append(" ReorderPoint: ").Append(ReorderPoint).Append("\n"); - sb.Append(" ReplenishmentClass: ").Append(ReplenishmentClass).Append("\n"); - sb.Append(" ReplenishmentWarehouse: ").Append(ReplenishmentWarehouse).Append("\n"); - sb.Append(" SafetyStock: ").Append(SafetyStock).Append("\n"); - sb.Append(" Seasonality: ").Append(Seasonality).Append("\n"); - sb.Append(" ServiceLevel: ").Append(ServiceLevel).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append(" TerminationDate: ").Append(TerminationDate).Append("\n"); - sb.Append(" TransferERQ: ").Append(TransferERQ).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="SafetyStock", EmitDefaultValue=false)] + public DecimalValue SafetyStock { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReplenishmentParameterStockItem); - } + [DataMember(Name="Seasonality", EmitDefaultValue=false)] + public StringValue Seasonality { get; set; } - /// - /// Returns true if ReplenishmentParameterStockItem instances are equal - /// - /// Instance of ReplenishmentParameterStockItem to be compared - /// Boolean - public bool Equals(ReplenishmentParameterStockItem input) - { - if (input == null) - return false; + [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] + public DecimalValue ServiceLevel { get; set; } - return base.Equals(input) && - ( - this.DemandForecastModel == input.DemandForecastModel || - (this.DemandForecastModel != null && - this.DemandForecastModel.Equals(input.DemandForecastModel)) - ) && base.Equals(input) && - ( - this.ForecastPeriodType == input.ForecastPeriodType || - (this.ForecastPeriodType != null && - this.ForecastPeriodType.Equals(input.ForecastPeriodType)) - ) && base.Equals(input) && - ( - this.LaunchDate == input.LaunchDate || - (this.LaunchDate != null && - this.LaunchDate.Equals(input.LaunchDate)) - ) && base.Equals(input) && - ( - this.MaxQty == input.MaxQty || - (this.MaxQty != null && - this.MaxQty.Equals(input.MaxQty)) - ) && base.Equals(input) && - ( - this.MaxShelfLifeInDays == input.MaxShelfLifeInDays || - (this.MaxShelfLifeInDays != null && - this.MaxShelfLifeInDays.Equals(input.MaxShelfLifeInDays)) - ) && base.Equals(input) && - ( - this.Method == input.Method || - (this.Method != null && - this.Method.Equals(input.Method)) - ) && base.Equals(input) && - ( - this.PeriodsToAnalyze == input.PeriodsToAnalyze || - (this.PeriodsToAnalyze != null && - this.PeriodsToAnalyze.Equals(input.PeriodsToAnalyze)) - ) && base.Equals(input) && - ( - this.ReorderPoint == input.ReorderPoint || - (this.ReorderPoint != null && - this.ReorderPoint.Equals(input.ReorderPoint)) - ) && base.Equals(input) && - ( - this.ReplenishmentClass == input.ReplenishmentClass || - (this.ReplenishmentClass != null && - this.ReplenishmentClass.Equals(input.ReplenishmentClass)) - ) && base.Equals(input) && - ( - this.ReplenishmentWarehouse == input.ReplenishmentWarehouse || - (this.ReplenishmentWarehouse != null && - this.ReplenishmentWarehouse.Equals(input.ReplenishmentWarehouse)) - ) && base.Equals(input) && - ( - this.SafetyStock == input.SafetyStock || - (this.SafetyStock != null && - this.SafetyStock.Equals(input.SafetyStock)) - ) && base.Equals(input) && - ( - this.Seasonality == input.Seasonality || - (this.Seasonality != null && - this.Seasonality.Equals(input.Seasonality)) - ) && base.Equals(input) && - ( - this.ServiceLevel == input.ServiceLevel || - (this.ServiceLevel != null && - this.ServiceLevel.Equals(input.ServiceLevel)) - ) && base.Equals(input) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ) && base.Equals(input) && - ( - this.TerminationDate == input.TerminationDate || - (this.TerminationDate != null && - this.TerminationDate.Equals(input.TerminationDate)) - ) && base.Equals(input) && - ( - this.TransferERQ == input.TransferERQ || - (this.TransferERQ != null && - this.TransferERQ.Equals(input.TransferERQ)) - ); - } + [DataMember(Name="Source", EmitDefaultValue=false)] + public StringValue Source { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DemandForecastModel != null) - hashCode = hashCode * 59 + this.DemandForecastModel.GetHashCode(); - if (this.ForecastPeriodType != null) - hashCode = hashCode * 59 + this.ForecastPeriodType.GetHashCode(); - if (this.LaunchDate != null) - hashCode = hashCode * 59 + this.LaunchDate.GetHashCode(); - if (this.MaxQty != null) - hashCode = hashCode * 59 + this.MaxQty.GetHashCode(); - if (this.MaxShelfLifeInDays != null) - hashCode = hashCode * 59 + this.MaxShelfLifeInDays.GetHashCode(); - if (this.Method != null) - hashCode = hashCode * 59 + this.Method.GetHashCode(); - if (this.PeriodsToAnalyze != null) - hashCode = hashCode * 59 + this.PeriodsToAnalyze.GetHashCode(); - if (this.ReorderPoint != null) - hashCode = hashCode * 59 + this.ReorderPoint.GetHashCode(); - if (this.ReplenishmentClass != null) - hashCode = hashCode * 59 + this.ReplenishmentClass.GetHashCode(); - if (this.ReplenishmentWarehouse != null) - hashCode = hashCode * 59 + this.ReplenishmentWarehouse.GetHashCode(); - if (this.SafetyStock != null) - hashCode = hashCode * 59 + this.SafetyStock.GetHashCode(); - if (this.Seasonality != null) - hashCode = hashCode * 59 + this.Seasonality.GetHashCode(); - if (this.ServiceLevel != null) - hashCode = hashCode * 59 + this.ServiceLevel.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - if (this.TerminationDate != null) - hashCode = hashCode * 59 + this.TerminationDate.GetHashCode(); - if (this.TransferERQ != null) - hashCode = hashCode * 59 + this.TransferERQ.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TerminationDate", EmitDefaultValue=false)] + public DateTimeValue TerminationDate { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TransferERQ", EmitDefaultValue=false)] + public DecimalValue TransferERQ { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ReportingGroup.cs b/Acumatica.Default_17.200.001/Model/ReportingGroup.cs index 4e11a1ef..60ed15f6 100644 --- a/Acumatica.Default_17.200.001/Model/ReportingGroup.cs +++ b/Acumatica.Default_17.200.001/Model/ReportingGroup.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ReportingGroup - /// - [DataContract] - public partial class ReportingGroup : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// groupType. - /// lastModifiedDateTime. - /// name. - public ReportingGroup(StringValue groupType = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue name = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.GroupType = groupType; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Name = name; - } - - /// - /// Gets or Sets GroupType - /// - [DataMember(Name="GroupType", EmitDefaultValue=false)] - public StringValue GroupType { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportingGroup {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" GroupType: ").Append(GroupType).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportingGroup); - } - - /// - /// Returns true if ReportingGroup instances are equal - /// - /// Instance of ReportingGroup to be compared - /// Boolean - public bool Equals(ReportingGroup input) - { - if (input == null) - return false; + [DataContract] + public partial class ReportingGroup : Entity + { - return base.Equals(input) && - ( - this.GroupType == input.GroupType || - (this.GroupType != null && - this.GroupType.Equals(input.GroupType)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } + [DataMember(Name="GroupType", EmitDefaultValue=false)] + public StringValue GroupType { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.GroupType != null) - hashCode = hashCode * 59 + this.GroupType.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ReportingSettings.cs b/Acumatica.Default_17.200.001/Model/ReportingSettings.cs index ffe6c7cb..afa58c7d 100644 --- a/Acumatica.Default_17.200.001/Model/ReportingSettings.cs +++ b/Acumatica.Default_17.200.001/Model/ReportingSettings.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ReportingSettings - /// - [DataContract] - public partial class ReportingSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// reportingGroups. - /// taxAgency. - public ReportingSettings(List reportingGroups = default(List), StringValue taxAgency = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ReportingGroups = reportingGroups; - this.TaxAgency = taxAgency; - } - - /// - /// Gets or Sets ReportingGroups - /// - [DataMember(Name="ReportingGroups", EmitDefaultValue=false)] - public List ReportingGroups { get; set; } - - /// - /// Gets or Sets TaxAgency - /// - [DataMember(Name="TaxAgency", EmitDefaultValue=false)] - public StringValue TaxAgency { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportingSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ReportingGroups: ").Append(ReportingGroups).Append("\n"); - sb.Append(" TaxAgency: ").Append(TaxAgency).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportingSettings); - } - - /// - /// Returns true if ReportingSettings instances are equal - /// - /// Instance of ReportingSettings to be compared - /// Boolean - public bool Equals(ReportingSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ReportingGroups == input.ReportingGroups || - this.ReportingGroups != null && - this.ReportingGroups.SequenceEqual(input.ReportingGroups) - ) && base.Equals(input) && - ( - this.TaxAgency == input.TaxAgency || - (this.TaxAgency != null && - this.TaxAgency.Equals(input.TaxAgency)) - ); - } + [DataContract] + public partial class ReportingSettings : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ReportingGroups != null) - hashCode = hashCode * 59 + this.ReportingGroups.GetHashCode(); - if (this.TaxAgency != null) - hashCode = hashCode * 59 + this.TaxAgency.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ReportingGroups", EmitDefaultValue=false)] + public List ReportingGroups { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxAgency", EmitDefaultValue=false)] + public StringValue TaxAgency { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesInvoice.cs b/Acumatica.Default_17.200.001/Model/SalesInvoice.cs index 51347109..3ea9ddef 100644 --- a/Acumatica.Default_17.200.001/Model/SalesInvoice.cs +++ b/Acumatica.Default_17.200.001/Model/SalesInvoice.cs @@ -1,334 +1,54 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesInvoice - /// - [DataContract] - public partial class SalesInvoice : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// balance. - /// billingSettings. - /// customerID. - /// customerOrder. - /// date. - /// description. - /// details. - /// dueDate. - /// freightDetails. - /// hold. - /// referenceNbr. - /// status. - /// type. - public SalesInvoice(DecimalValue amount = default(DecimalValue), DecimalValue balance = default(DecimalValue), BillToSettings billingSettings = default(BillToSettings), StringValue customerID = default(StringValue), StringValue customerOrder = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), List details = default(List), DateTimeValue dueDate = default(DateTimeValue), List freightDetails = default(List), BooleanValue hold = default(BooleanValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.Balance = balance; - this.BillingSettings = billingSettings; - this.CustomerID = customerID; - this.CustomerOrder = customerOrder; - this.Date = date; - this.Description = description; - this.Details = details; - this.DueDate = dueDate; - this.FreightDetails = freightDetails; - this.Hold = hold; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.Type = type; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets BillingSettings - /// - [DataMember(Name="BillingSettings", EmitDefaultValue=false)] - public BillToSettings BillingSettings { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } + [DataContract] + public partial class SalesInvoice : Entity + { - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } + [DataMember(Name="BillingSettings", EmitDefaultValue=false)] + public BillToSettings BillingSettings { get; set; } - /// - /// Gets or Sets FreightDetails - /// - [DataMember(Name="FreightDetails", EmitDefaultValue=false)] - public List FreightDetails { get; set; } + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoice {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" BillingSettings: ").Append(BillingSettings).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" FreightDetails: ").Append(FreightDetails).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoice); - } + [DataMember(Name="FreightDetails", EmitDefaultValue=false)] + public List FreightDetails { get; set; } - /// - /// Returns true if SalesInvoice instances are equal - /// - /// Instance of SalesInvoice to be compared - /// Boolean - public bool Equals(SalesInvoice input) - { - if (input == null) - return false; + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.BillingSettings == input.BillingSettings || - (this.BillingSettings != null && - this.BillingSettings.Equals(input.BillingSettings)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.FreightDetails == input.FreightDetails || - this.FreightDetails != null && - this.FreightDetails.SequenceEqual(input.FreightDetails) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.BillingSettings != null) - hashCode = hashCode * 59 + this.BillingSettings.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.FreightDetails != null) - hashCode = hashCode * 59 + this.FreightDetails.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesInvoiceDetail.cs b/Acumatica.Default_17.200.001/Model/SalesInvoiceDetail.cs index b5be538c..e51d1058 100644 --- a/Acumatica.Default_17.200.001/Model/SalesInvoiceDetail.cs +++ b/Acumatica.Default_17.200.001/Model/SalesInvoiceDetail.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesInvoiceDetail - /// - [DataContract] - public partial class SalesInvoiceDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// branchID. - /// description. - /// inventoryID. - /// lineNbr. - /// orderNbr. - /// orderType. - /// qty. - /// shipmentNbr. - /// unitPrice. - /// uOM. - public SalesInvoiceDetail(DecimalValue amount = default(DecimalValue), StringValue branchID = default(StringValue), StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue shipmentNbr = default(StringValue), DecimalValue unitPrice = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.BranchID = branchID; - this.Description = description; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.Qty = qty; - this.ShipmentNbr = shipmentNbr; - this.UnitPrice = unitPrice; - this.UOM = uOM; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } + [DataContract] + public partial class SalesInvoiceDetail : Entity + { - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } - /// - /// Gets or Sets ShipmentNbr - /// - [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] - public StringValue ShipmentNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ShipmentNbr: ").Append(ShipmentNbr).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceDetail); - } + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } - /// - /// Returns true if SalesInvoiceDetail instances are equal - /// - /// Instance of SalesInvoiceDetail to be compared - /// Boolean - public bool Equals(SalesInvoiceDetail input) - { - if (input == null) - return false; + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ShipmentNbr == input.ShipmentNbr || - (this.ShipmentNbr != null && - this.ShipmentNbr.Equals(input.ShipmentNbr)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] + public StringValue ShipmentNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ShipmentNbr != null) - hashCode = hashCode * 59 + this.ShipmentNbr.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesInvoiceFreightDetail.cs b/Acumatica.Default_17.200.001/Model/SalesInvoiceFreightDetail.cs index e18d2ef8..377667dc 100644 --- a/Acumatica.Default_17.200.001/Model/SalesInvoiceFreightDetail.cs +++ b/Acumatica.Default_17.200.001/Model/SalesInvoiceFreightDetail.cs @@ -1,270 +1,42 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesInvoiceFreightDetail - /// - [DataContract] - public partial class SalesInvoiceFreightDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// freightAmount. - /// freightCost. - /// lineTotal. - /// premiumFreightAmount. - /// shipmentNbr. - /// shipmentType. - /// totalFreightAmount. - /// volume. - /// weight. - public SalesInvoiceFreightDetail(StringValue description = default(StringValue), DecimalValue freightAmount = default(DecimalValue), DecimalValue freightCost = default(DecimalValue), DecimalValue lineTotal = default(DecimalValue), DecimalValue premiumFreightAmount = default(DecimalValue), StringValue shipmentNbr = default(StringValue), StringValue shipmentType = default(StringValue), DecimalValue totalFreightAmount = default(DecimalValue), DecimalValue volume = default(DecimalValue), DecimalValue weight = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.FreightAmount = freightAmount; - this.FreightCost = freightCost; - this.LineTotal = lineTotal; - this.PremiumFreightAmount = premiumFreightAmount; - this.ShipmentNbr = shipmentNbr; - this.ShipmentType = shipmentType; - this.TotalFreightAmount = totalFreightAmount; - this.Volume = volume; - this.Weight = weight; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets FreightAmount - /// - [DataMember(Name="FreightAmount", EmitDefaultValue=false)] - public DecimalValue FreightAmount { get; set; } - - /// - /// Gets or Sets FreightCost - /// - [DataMember(Name="FreightCost", EmitDefaultValue=false)] - public DecimalValue FreightCost { get; set; } - - /// - /// Gets or Sets LineTotal - /// - [DataMember(Name="LineTotal", EmitDefaultValue=false)] - public DecimalValue LineTotal { get; set; } - - /// - /// Gets or Sets PremiumFreightAmount - /// - [DataMember(Name="PremiumFreightAmount", EmitDefaultValue=false)] - public DecimalValue PremiumFreightAmount { get; set; } - - /// - /// Gets or Sets ShipmentNbr - /// - [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] - public StringValue ShipmentNbr { get; set; } + [DataContract] + public partial class SalesInvoiceFreightDetail : Entity + { - /// - /// Gets or Sets ShipmentType - /// - [DataMember(Name="ShipmentType", EmitDefaultValue=false)] - public StringValue ShipmentType { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets TotalFreightAmount - /// - [DataMember(Name="TotalFreightAmount", EmitDefaultValue=false)] - public DecimalValue TotalFreightAmount { get; set; } + [DataMember(Name="FreightAmount", EmitDefaultValue=false)] + public DecimalValue FreightAmount { get; set; } - /// - /// Gets or Sets Volume - /// - [DataMember(Name="Volume", EmitDefaultValue=false)] - public DecimalValue Volume { get; set; } + [DataMember(Name="FreightCost", EmitDefaultValue=false)] + public DecimalValue FreightCost { get; set; } - /// - /// Gets or Sets Weight - /// - [DataMember(Name="Weight", EmitDefaultValue=false)] - public DecimalValue Weight { get; set; } + [DataMember(Name="LineTotal", EmitDefaultValue=false)] + public DecimalValue LineTotal { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceFreightDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" FreightAmount: ").Append(FreightAmount).Append("\n"); - sb.Append(" FreightCost: ").Append(FreightCost).Append("\n"); - sb.Append(" LineTotal: ").Append(LineTotal).Append("\n"); - sb.Append(" PremiumFreightAmount: ").Append(PremiumFreightAmount).Append("\n"); - sb.Append(" ShipmentNbr: ").Append(ShipmentNbr).Append("\n"); - sb.Append(" ShipmentType: ").Append(ShipmentType).Append("\n"); - sb.Append(" TotalFreightAmount: ").Append(TotalFreightAmount).Append("\n"); - sb.Append(" Volume: ").Append(Volume).Append("\n"); - sb.Append(" Weight: ").Append(Weight).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PremiumFreightAmount", EmitDefaultValue=false)] + public DecimalValue PremiumFreightAmount { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceFreightDetail); - } + [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] + public StringValue ShipmentNbr { get; set; } - /// - /// Returns true if SalesInvoiceFreightDetail instances are equal - /// - /// Instance of SalesInvoiceFreightDetail to be compared - /// Boolean - public bool Equals(SalesInvoiceFreightDetail input) - { - if (input == null) - return false; + [DataMember(Name="ShipmentType", EmitDefaultValue=false)] + public StringValue ShipmentType { get; set; } - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.FreightAmount == input.FreightAmount || - (this.FreightAmount != null && - this.FreightAmount.Equals(input.FreightAmount)) - ) && base.Equals(input) && - ( - this.FreightCost == input.FreightCost || - (this.FreightCost != null && - this.FreightCost.Equals(input.FreightCost)) - ) && base.Equals(input) && - ( - this.LineTotal == input.LineTotal || - (this.LineTotal != null && - this.LineTotal.Equals(input.LineTotal)) - ) && base.Equals(input) && - ( - this.PremiumFreightAmount == input.PremiumFreightAmount || - (this.PremiumFreightAmount != null && - this.PremiumFreightAmount.Equals(input.PremiumFreightAmount)) - ) && base.Equals(input) && - ( - this.ShipmentNbr == input.ShipmentNbr || - (this.ShipmentNbr != null && - this.ShipmentNbr.Equals(input.ShipmentNbr)) - ) && base.Equals(input) && - ( - this.ShipmentType == input.ShipmentType || - (this.ShipmentType != null && - this.ShipmentType.Equals(input.ShipmentType)) - ) && base.Equals(input) && - ( - this.TotalFreightAmount == input.TotalFreightAmount || - (this.TotalFreightAmount != null && - this.TotalFreightAmount.Equals(input.TotalFreightAmount)) - ) && base.Equals(input) && - ( - this.Volume == input.Volume || - (this.Volume != null && - this.Volume.Equals(input.Volume)) - ) && base.Equals(input) && - ( - this.Weight == input.Weight || - (this.Weight != null && - this.Weight.Equals(input.Weight)) - ); - } + [DataMember(Name="TotalFreightAmount", EmitDefaultValue=false)] + public DecimalValue TotalFreightAmount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.FreightAmount != null) - hashCode = hashCode * 59 + this.FreightAmount.GetHashCode(); - if (this.FreightCost != null) - hashCode = hashCode * 59 + this.FreightCost.GetHashCode(); - if (this.LineTotal != null) - hashCode = hashCode * 59 + this.LineTotal.GetHashCode(); - if (this.PremiumFreightAmount != null) - hashCode = hashCode * 59 + this.PremiumFreightAmount.GetHashCode(); - if (this.ShipmentNbr != null) - hashCode = hashCode * 59 + this.ShipmentNbr.GetHashCode(); - if (this.ShipmentType != null) - hashCode = hashCode * 59 + this.ShipmentType.GetHashCode(); - if (this.TotalFreightAmount != null) - hashCode = hashCode * 59 + this.TotalFreightAmount.GetHashCode(); - if (this.Volume != null) - hashCode = hashCode * 59 + this.Volume.GetHashCode(); - if (this.Weight != null) - hashCode = hashCode * 59 + this.Weight.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Volume", EmitDefaultValue=false)] + public DecimalValue Volume { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Weight", EmitDefaultValue=false)] + public DecimalValue Weight { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesOrder.cs b/Acumatica.Default_17.200.001/Model/SalesOrder.cs index c383e35c..90b99d3d 100644 --- a/Acumatica.Default_17.200.001/Model/SalesOrder.cs +++ b/Acumatica.Default_17.200.001/Model/SalesOrder.cs @@ -1,1022 +1,183 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesOrder - /// - [DataContract] - public partial class SalesOrder : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// approved. - /// baseCurrencyID. - /// billToAddress. - /// billToAddressOverride. - /// billToAddressValidated. - /// billToContact. - /// billToContactOverride. - /// cashAccount. - /// commissions. - /// controlTotal. - /// creditHold. - /// currencyID. - /// currencyRate. - /// currencyRateTypeID. - /// customerID. - /// customerOrder. - /// date. - /// description. - /// destinationWarehouseID. - /// details. - /// discountDetails. - /// effectiveDate. - /// externalRef. - /// financialSettings. - /// hold. - /// isTaxValid. - /// lastModified. - /// locationID. - /// newCard. - /// orderedQty. - /// orderNbr. - /// orderTotal. - /// orderType. - /// paymentCardIdentifier. - /// paymentMethod. - /// paymentRef. - /// payments. - /// preAuthorizationNbr. - /// preAuthorizedAmount. - /// preferredWarehouseID. - /// project. - /// reciprocalRate. - /// requestedOn. - /// shipments. - /// shippingSettings. - /// shipToAddress. - /// shipToAddressOverride. - /// shipToAddressValidated. - /// shipToContact. - /// shipToContactOverride. - /// shipVia. - /// status. - /// taxDetails. - /// taxTotal. - /// totals. - /// vATExemptTotal. - /// vATTaxableTotal. - public SalesOrder(BooleanValue approved = default(BooleanValue), StringValue baseCurrencyID = default(StringValue), Address billToAddress = default(Address), BooleanValue billToAddressOverride = default(BooleanValue), BooleanValue billToAddressValidated = default(BooleanValue), DocContact billToContact = default(DocContact), BooleanValue billToContactOverride = default(BooleanValue), StringValue cashAccount = default(StringValue), Commissions commissions = default(Commissions), DecimalValue controlTotal = default(DecimalValue), BooleanValue creditHold = default(BooleanValue), StringValue currencyID = default(StringValue), DecimalValue currencyRate = default(DecimalValue), StringValue currencyRateTypeID = default(StringValue), StringValue customerID = default(StringValue), StringValue customerOrder = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), StringValue destinationWarehouseID = default(StringValue), List details = default(List), List discountDetails = default(List), DateTimeValue effectiveDate = default(DateTimeValue), StringValue externalRef = default(StringValue), FinancialSettings financialSettings = default(FinancialSettings), BooleanValue hold = default(BooleanValue), BooleanValue isTaxValid = default(BooleanValue), DateTimeValue lastModified = default(DateTimeValue), StringValue locationID = default(StringValue), BooleanValue newCard = default(BooleanValue), DecimalValue orderedQty = default(DecimalValue), StringValue orderNbr = default(StringValue), DecimalValue orderTotal = default(DecimalValue), StringValue orderType = default(StringValue), StringValue paymentCardIdentifier = default(StringValue), StringValue paymentMethod = default(StringValue), StringValue paymentRef = default(StringValue), List payments = default(List), StringValue preAuthorizationNbr = default(StringValue), DecimalValue preAuthorizedAmount = default(DecimalValue), StringValue preferredWarehouseID = default(StringValue), StringValue project = default(StringValue), DecimalValue reciprocalRate = default(DecimalValue), DateTimeValue requestedOn = default(DateTimeValue), List shipments = default(List), ShippingSettings shippingSettings = default(ShippingSettings), Address shipToAddress = default(Address), BooleanValue shipToAddressOverride = default(BooleanValue), BooleanValue shipToAddressValidated = default(BooleanValue), DocContact shipToContact = default(DocContact), BooleanValue shipToContactOverride = default(BooleanValue), StringValue shipVia = default(StringValue), StringValue status = default(StringValue), List taxDetails = default(List), DecimalValue taxTotal = default(DecimalValue), Totals totals = default(Totals), DecimalValue vATExemptTotal = default(DecimalValue), DecimalValue vATTaxableTotal = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Approved = approved; - this.BaseCurrencyID = baseCurrencyID; - this.BillToAddress = billToAddress; - this.BillToAddressOverride = billToAddressOverride; - this.BillToAddressValidated = billToAddressValidated; - this.BillToContact = billToContact; - this.BillToContactOverride = billToContactOverride; - this.CashAccount = cashAccount; - this.Commissions = commissions; - this.ControlTotal = controlTotal; - this.CreditHold = creditHold; - this.CurrencyID = currencyID; - this.CurrencyRate = currencyRate; - this.CurrencyRateTypeID = currencyRateTypeID; - this.CustomerID = customerID; - this.CustomerOrder = customerOrder; - this.Date = date; - this.Description = description; - this.DestinationWarehouseID = destinationWarehouseID; - this.Details = details; - this.DiscountDetails = discountDetails; - this.EffectiveDate = effectiveDate; - this.ExternalRef = externalRef; - this.FinancialSettings = financialSettings; - this.Hold = hold; - this.IsTaxValid = isTaxValid; - this.LastModified = lastModified; - this.LocationID = locationID; - this.NewCard = newCard; - this.OrderedQty = orderedQty; - this.OrderNbr = orderNbr; - this.OrderTotal = orderTotal; - this.OrderType = orderType; - this.PaymentCardIdentifier = paymentCardIdentifier; - this.PaymentMethod = paymentMethod; - this.PaymentRef = paymentRef; - this.Payments = payments; - this.PreAuthorizationNbr = preAuthorizationNbr; - this.PreAuthorizedAmount = preAuthorizedAmount; - this.PreferredWarehouseID = preferredWarehouseID; - this.Project = project; - this.ReciprocalRate = reciprocalRate; - this.RequestedOn = requestedOn; - this.Shipments = shipments; - this.ShippingSettings = shippingSettings; - this.ShipToAddress = shipToAddress; - this.ShipToAddressOverride = shipToAddressOverride; - this.ShipToAddressValidated = shipToAddressValidated; - this.ShipToContact = shipToContact; - this.ShipToContactOverride = shipToContactOverride; - this.ShipVia = shipVia; - this.Status = status; - this.TaxDetails = taxDetails; - this.TaxTotal = taxTotal; - this.Totals = totals; - this.VATExemptTotal = vATExemptTotal; - this.VATTaxableTotal = vATTaxableTotal; - } - - /// - /// Gets or Sets Approved - /// - [DataMember(Name="Approved", EmitDefaultValue=false)] - public BooleanValue Approved { get; set; } - - /// - /// Gets or Sets BaseCurrencyID - /// - [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] - public StringValue BaseCurrencyID { get; set; } - - /// - /// Gets or Sets BillToAddress - /// - [DataMember(Name="BillToAddress", EmitDefaultValue=false)] - public Address BillToAddress { get; set; } - - /// - /// Gets or Sets BillToAddressOverride - /// - [DataMember(Name="BillToAddressOverride", EmitDefaultValue=false)] - public BooleanValue BillToAddressOverride { get; set; } - - /// - /// Gets or Sets BillToAddressValidated - /// - [DataMember(Name="BillToAddressValidated", EmitDefaultValue=false)] - public BooleanValue BillToAddressValidated { get; set; } - - /// - /// Gets or Sets BillToContact - /// - [DataMember(Name="BillToContact", EmitDefaultValue=false)] - public DocContact BillToContact { get; set; } - - /// - /// Gets or Sets BillToContactOverride - /// - [DataMember(Name="BillToContactOverride", EmitDefaultValue=false)] - public BooleanValue BillToContactOverride { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets Commissions - /// - [DataMember(Name="Commissions", EmitDefaultValue=false)] - public Commissions Commissions { get; set; } - - /// - /// Gets or Sets ControlTotal - /// - [DataMember(Name="ControlTotal", EmitDefaultValue=false)] - public DecimalValue ControlTotal { get; set; } - - /// - /// Gets or Sets CreditHold - /// - [DataMember(Name="CreditHold", EmitDefaultValue=false)] - public BooleanValue CreditHold { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRate - /// - [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] - public DecimalValue CurrencyRate { get; set; } - - /// - /// Gets or Sets CurrencyRateTypeID - /// - [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] - public StringValue CurrencyRateTypeID { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DestinationWarehouseID - /// - [DataMember(Name="DestinationWarehouseID", EmitDefaultValue=false)] - public StringValue DestinationWarehouseID { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets DiscountDetails - /// - [DataMember(Name="DiscountDetails", EmitDefaultValue=false)] - public List DiscountDetails { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExternalRef - /// - [DataMember(Name="ExternalRef", EmitDefaultValue=false)] - public StringValue ExternalRef { get; set; } - - /// - /// Gets or Sets FinancialSettings - /// - [DataMember(Name="FinancialSettings", EmitDefaultValue=false)] - public FinancialSettings FinancialSettings { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets IsTaxValid - /// - [DataMember(Name="IsTaxValid", EmitDefaultValue=false)] - public BooleanValue IsTaxValid { get; set; } - - /// - /// Gets or Sets LastModified - /// - [DataMember(Name="LastModified", EmitDefaultValue=false)] - public DateTimeValue LastModified { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets NewCard - /// - [DataMember(Name="NewCard", EmitDefaultValue=false)] - public BooleanValue NewCard { get; set; } - - /// - /// Gets or Sets OrderedQty - /// - [DataMember(Name="OrderedQty", EmitDefaultValue=false)] - public DecimalValue OrderedQty { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderTotal - /// - [DataMember(Name="OrderTotal", EmitDefaultValue=false)] - public DecimalValue OrderTotal { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets PaymentCardIdentifier - /// - [DataMember(Name="PaymentCardIdentifier", EmitDefaultValue=false)] - public StringValue PaymentCardIdentifier { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } - - /// - /// Gets or Sets Payments - /// - [DataMember(Name="Payments", EmitDefaultValue=false)] - public List Payments { get; set; } - - /// - /// Gets or Sets PreAuthorizationNbr - /// - [DataMember(Name="PreAuthorizationNbr", EmitDefaultValue=false)] - public StringValue PreAuthorizationNbr { get; set; } - - /// - /// Gets or Sets PreAuthorizedAmount - /// - [DataMember(Name="PreAuthorizedAmount", EmitDefaultValue=false)] - public DecimalValue PreAuthorizedAmount { get; set; } - - /// - /// Gets or Sets PreferredWarehouseID - /// - [DataMember(Name="PreferredWarehouseID", EmitDefaultValue=false)] - public StringValue PreferredWarehouseID { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ReciprocalRate - /// - [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] - public DecimalValue ReciprocalRate { get; set; } - - /// - /// Gets or Sets RequestedOn - /// - [DataMember(Name="RequestedOn", EmitDefaultValue=false)] - public DateTimeValue RequestedOn { get; set; } - - /// - /// Gets or Sets Shipments - /// - [DataMember(Name="Shipments", EmitDefaultValue=false)] - public List Shipments { get; set; } - - /// - /// Gets or Sets ShippingSettings - /// - [DataMember(Name="ShippingSettings", EmitDefaultValue=false)] - public ShippingSettings ShippingSettings { get; set; } - - /// - /// Gets or Sets ShipToAddress - /// - [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] - public Address ShipToAddress { get; set; } - - /// - /// Gets or Sets ShipToAddressOverride - /// - [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] - public BooleanValue ShipToAddressOverride { get; set; } - - /// - /// Gets or Sets ShipToAddressValidated - /// - [DataMember(Name="ShipToAddressValidated", EmitDefaultValue=false)] - public BooleanValue ShipToAddressValidated { get; set; } - - /// - /// Gets or Sets ShipToContact - /// - [DataMember(Name="ShipToContact", EmitDefaultValue=false)] - public DocContact ShipToContact { get; set; } - - /// - /// Gets or Sets ShipToContactOverride - /// - [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] - public BooleanValue ShipToContactOverride { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public List TaxDetails { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Gets or Sets Totals - /// - [DataMember(Name="Totals", EmitDefaultValue=false)] - public Totals Totals { get; set; } - - /// - /// Gets or Sets VATExemptTotal - /// - [DataMember(Name="VATExemptTotal", EmitDefaultValue=false)] - public DecimalValue VATExemptTotal { get; set; } - - /// - /// Gets or Sets VATTaxableTotal - /// - [DataMember(Name="VATTaxableTotal", EmitDefaultValue=false)] - public DecimalValue VATTaxableTotal { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesOrder {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Approved: ").Append(Approved).Append("\n"); - sb.Append(" BaseCurrencyID: ").Append(BaseCurrencyID).Append("\n"); - sb.Append(" BillToAddress: ").Append(BillToAddress).Append("\n"); - sb.Append(" BillToAddressOverride: ").Append(BillToAddressOverride).Append("\n"); - sb.Append(" BillToAddressValidated: ").Append(BillToAddressValidated).Append("\n"); - sb.Append(" BillToContact: ").Append(BillToContact).Append("\n"); - sb.Append(" BillToContactOverride: ").Append(BillToContactOverride).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" Commissions: ").Append(Commissions).Append("\n"); - sb.Append(" ControlTotal: ").Append(ControlTotal).Append("\n"); - sb.Append(" CreditHold: ").Append(CreditHold).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n"); - sb.Append(" CurrencyRateTypeID: ").Append(CurrencyRateTypeID).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DestinationWarehouseID: ").Append(DestinationWarehouseID).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" DiscountDetails: ").Append(DiscountDetails).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExternalRef: ").Append(ExternalRef).Append("\n"); - sb.Append(" FinancialSettings: ").Append(FinancialSettings).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" IsTaxValid: ").Append(IsTaxValid).Append("\n"); - sb.Append(" LastModified: ").Append(LastModified).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" NewCard: ").Append(NewCard).Append("\n"); - sb.Append(" OrderedQty: ").Append(OrderedQty).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderTotal: ").Append(OrderTotal).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" PaymentCardIdentifier: ").Append(PaymentCardIdentifier).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" Payments: ").Append(Payments).Append("\n"); - sb.Append(" PreAuthorizationNbr: ").Append(PreAuthorizationNbr).Append("\n"); - sb.Append(" PreAuthorizedAmount: ").Append(PreAuthorizedAmount).Append("\n"); - sb.Append(" PreferredWarehouseID: ").Append(PreferredWarehouseID).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ReciprocalRate: ").Append(ReciprocalRate).Append("\n"); - sb.Append(" RequestedOn: ").Append(RequestedOn).Append("\n"); - sb.Append(" Shipments: ").Append(Shipments).Append("\n"); - sb.Append(" ShippingSettings: ").Append(ShippingSettings).Append("\n"); - sb.Append(" ShipToAddress: ").Append(ShipToAddress).Append("\n"); - sb.Append(" ShipToAddressOverride: ").Append(ShipToAddressOverride).Append("\n"); - sb.Append(" ShipToAddressValidated: ").Append(ShipToAddressValidated).Append("\n"); - sb.Append(" ShipToContact: ").Append(ShipToContact).Append("\n"); - sb.Append(" ShipToContactOverride: ").Append(ShipToContactOverride).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" Totals: ").Append(Totals).Append("\n"); - sb.Append(" VATExemptTotal: ").Append(VATExemptTotal).Append("\n"); - sb.Append(" VATTaxableTotal: ").Append(VATTaxableTotal).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesOrder); - } - - /// - /// Returns true if SalesOrder instances are equal - /// - /// Instance of SalesOrder to be compared - /// Boolean - public bool Equals(SalesOrder input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Approved == input.Approved || - (this.Approved != null && - this.Approved.Equals(input.Approved)) - ) && base.Equals(input) && - ( - this.BaseCurrencyID == input.BaseCurrencyID || - (this.BaseCurrencyID != null && - this.BaseCurrencyID.Equals(input.BaseCurrencyID)) - ) && base.Equals(input) && - ( - this.BillToAddress == input.BillToAddress || - (this.BillToAddress != null && - this.BillToAddress.Equals(input.BillToAddress)) - ) && base.Equals(input) && - ( - this.BillToAddressOverride == input.BillToAddressOverride || - (this.BillToAddressOverride != null && - this.BillToAddressOverride.Equals(input.BillToAddressOverride)) - ) && base.Equals(input) && - ( - this.BillToAddressValidated == input.BillToAddressValidated || - (this.BillToAddressValidated != null && - this.BillToAddressValidated.Equals(input.BillToAddressValidated)) - ) && base.Equals(input) && - ( - this.BillToContact == input.BillToContact || - (this.BillToContact != null && - this.BillToContact.Equals(input.BillToContact)) - ) && base.Equals(input) && - ( - this.BillToContactOverride == input.BillToContactOverride || - (this.BillToContactOverride != null && - this.BillToContactOverride.Equals(input.BillToContactOverride)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.Commissions == input.Commissions || - (this.Commissions != null && - this.Commissions.Equals(input.Commissions)) - ) && base.Equals(input) && - ( - this.ControlTotal == input.ControlTotal || - (this.ControlTotal != null && - this.ControlTotal.Equals(input.ControlTotal)) - ) && base.Equals(input) && - ( - this.CreditHold == input.CreditHold || - (this.CreditHold != null && - this.CreditHold.Equals(input.CreditHold)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRate == input.CurrencyRate || - (this.CurrencyRate != null && - this.CurrencyRate.Equals(input.CurrencyRate)) - ) && base.Equals(input) && - ( - this.CurrencyRateTypeID == input.CurrencyRateTypeID || - (this.CurrencyRateTypeID != null && - this.CurrencyRateTypeID.Equals(input.CurrencyRateTypeID)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DestinationWarehouseID == input.DestinationWarehouseID || - (this.DestinationWarehouseID != null && - this.DestinationWarehouseID.Equals(input.DestinationWarehouseID)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.DiscountDetails == input.DiscountDetails || - this.DiscountDetails != null && - this.DiscountDetails.SequenceEqual(input.DiscountDetails) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExternalRef == input.ExternalRef || - (this.ExternalRef != null && - this.ExternalRef.Equals(input.ExternalRef)) - ) && base.Equals(input) && - ( - this.FinancialSettings == input.FinancialSettings || - (this.FinancialSettings != null && - this.FinancialSettings.Equals(input.FinancialSettings)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.IsTaxValid == input.IsTaxValid || - (this.IsTaxValid != null && - this.IsTaxValid.Equals(input.IsTaxValid)) - ) && base.Equals(input) && - ( - this.LastModified == input.LastModified || - (this.LastModified != null && - this.LastModified.Equals(input.LastModified)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.NewCard == input.NewCard || - (this.NewCard != null && - this.NewCard.Equals(input.NewCard)) - ) && base.Equals(input) && - ( - this.OrderedQty == input.OrderedQty || - (this.OrderedQty != null && - this.OrderedQty.Equals(input.OrderedQty)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderTotal == input.OrderTotal || - (this.OrderTotal != null && - this.OrderTotal.Equals(input.OrderTotal)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.PaymentCardIdentifier == input.PaymentCardIdentifier || - (this.PaymentCardIdentifier != null && - this.PaymentCardIdentifier.Equals(input.PaymentCardIdentifier)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.Payments == input.Payments || - this.Payments != null && - this.Payments.SequenceEqual(input.Payments) - ) && base.Equals(input) && - ( - this.PreAuthorizationNbr == input.PreAuthorizationNbr || - (this.PreAuthorizationNbr != null && - this.PreAuthorizationNbr.Equals(input.PreAuthorizationNbr)) - ) && base.Equals(input) && - ( - this.PreAuthorizedAmount == input.PreAuthorizedAmount || - (this.PreAuthorizedAmount != null && - this.PreAuthorizedAmount.Equals(input.PreAuthorizedAmount)) - ) && base.Equals(input) && - ( - this.PreferredWarehouseID == input.PreferredWarehouseID || - (this.PreferredWarehouseID != null && - this.PreferredWarehouseID.Equals(input.PreferredWarehouseID)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ReciprocalRate == input.ReciprocalRate || - (this.ReciprocalRate != null && - this.ReciprocalRate.Equals(input.ReciprocalRate)) - ) && base.Equals(input) && - ( - this.RequestedOn == input.RequestedOn || - (this.RequestedOn != null && - this.RequestedOn.Equals(input.RequestedOn)) - ) && base.Equals(input) && - ( - this.Shipments == input.Shipments || - this.Shipments != null && - this.Shipments.SequenceEqual(input.Shipments) - ) && base.Equals(input) && - ( - this.ShippingSettings == input.ShippingSettings || - (this.ShippingSettings != null && - this.ShippingSettings.Equals(input.ShippingSettings)) - ) && base.Equals(input) && - ( - this.ShipToAddress == input.ShipToAddress || - (this.ShipToAddress != null && - this.ShipToAddress.Equals(input.ShipToAddress)) - ) && base.Equals(input) && - ( - this.ShipToAddressOverride == input.ShipToAddressOverride || - (this.ShipToAddressOverride != null && - this.ShipToAddressOverride.Equals(input.ShipToAddressOverride)) - ) && base.Equals(input) && - ( - this.ShipToAddressValidated == input.ShipToAddressValidated || - (this.ShipToAddressValidated != null && - this.ShipToAddressValidated.Equals(input.ShipToAddressValidated)) - ) && base.Equals(input) && - ( - this.ShipToContact == input.ShipToContact || - (this.ShipToContact != null && - this.ShipToContact.Equals(input.ShipToContact)) - ) && base.Equals(input) && - ( - this.ShipToContactOverride == input.ShipToContactOverride || - (this.ShipToContactOverride != null && - this.ShipToContactOverride.Equals(input.ShipToContactOverride)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.Totals == input.Totals || - (this.Totals != null && - this.Totals.Equals(input.Totals)) - ) && base.Equals(input) && - ( - this.VATExemptTotal == input.VATExemptTotal || - (this.VATExemptTotal != null && - this.VATExemptTotal.Equals(input.VATExemptTotal)) - ) && base.Equals(input) && - ( - this.VATTaxableTotal == input.VATTaxableTotal || - (this.VATTaxableTotal != null && - this.VATTaxableTotal.Equals(input.VATTaxableTotal)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Approved != null) - hashCode = hashCode * 59 + this.Approved.GetHashCode(); - if (this.BaseCurrencyID != null) - hashCode = hashCode * 59 + this.BaseCurrencyID.GetHashCode(); - if (this.BillToAddress != null) - hashCode = hashCode * 59 + this.BillToAddress.GetHashCode(); - if (this.BillToAddressOverride != null) - hashCode = hashCode * 59 + this.BillToAddressOverride.GetHashCode(); - if (this.BillToAddressValidated != null) - hashCode = hashCode * 59 + this.BillToAddressValidated.GetHashCode(); - if (this.BillToContact != null) - hashCode = hashCode * 59 + this.BillToContact.GetHashCode(); - if (this.BillToContactOverride != null) - hashCode = hashCode * 59 + this.BillToContactOverride.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.Commissions != null) - hashCode = hashCode * 59 + this.Commissions.GetHashCode(); - if (this.ControlTotal != null) - hashCode = hashCode * 59 + this.ControlTotal.GetHashCode(); - if (this.CreditHold != null) - hashCode = hashCode * 59 + this.CreditHold.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRate != null) - hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode(); - if (this.CurrencyRateTypeID != null) - hashCode = hashCode * 59 + this.CurrencyRateTypeID.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DestinationWarehouseID != null) - hashCode = hashCode * 59 + this.DestinationWarehouseID.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.DiscountDetails != null) - hashCode = hashCode * 59 + this.DiscountDetails.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExternalRef != null) - hashCode = hashCode * 59 + this.ExternalRef.GetHashCode(); - if (this.FinancialSettings != null) - hashCode = hashCode * 59 + this.FinancialSettings.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.IsTaxValid != null) - hashCode = hashCode * 59 + this.IsTaxValid.GetHashCode(); - if (this.LastModified != null) - hashCode = hashCode * 59 + this.LastModified.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.NewCard != null) - hashCode = hashCode * 59 + this.NewCard.GetHashCode(); - if (this.OrderedQty != null) - hashCode = hashCode * 59 + this.OrderedQty.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderTotal != null) - hashCode = hashCode * 59 + this.OrderTotal.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.PaymentCardIdentifier != null) - hashCode = hashCode * 59 + this.PaymentCardIdentifier.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.Payments != null) - hashCode = hashCode * 59 + this.Payments.GetHashCode(); - if (this.PreAuthorizationNbr != null) - hashCode = hashCode * 59 + this.PreAuthorizationNbr.GetHashCode(); - if (this.PreAuthorizedAmount != null) - hashCode = hashCode * 59 + this.PreAuthorizedAmount.GetHashCode(); - if (this.PreferredWarehouseID != null) - hashCode = hashCode * 59 + this.PreferredWarehouseID.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ReciprocalRate != null) - hashCode = hashCode * 59 + this.ReciprocalRate.GetHashCode(); - if (this.RequestedOn != null) - hashCode = hashCode * 59 + this.RequestedOn.GetHashCode(); - if (this.Shipments != null) - hashCode = hashCode * 59 + this.Shipments.GetHashCode(); - if (this.ShippingSettings != null) - hashCode = hashCode * 59 + this.ShippingSettings.GetHashCode(); - if (this.ShipToAddress != null) - hashCode = hashCode * 59 + this.ShipToAddress.GetHashCode(); - if (this.ShipToAddressOverride != null) - hashCode = hashCode * 59 + this.ShipToAddressOverride.GetHashCode(); - if (this.ShipToAddressValidated != null) - hashCode = hashCode * 59 + this.ShipToAddressValidated.GetHashCode(); - if (this.ShipToContact != null) - hashCode = hashCode * 59 + this.ShipToContact.GetHashCode(); - if (this.ShipToContactOverride != null) - hashCode = hashCode * 59 + this.ShipToContactOverride.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.Totals != null) - hashCode = hashCode * 59 + this.Totals.GetHashCode(); - if (this.VATExemptTotal != null) - hashCode = hashCode * 59 + this.VATExemptTotal.GetHashCode(); - if (this.VATTaxableTotal != null) - hashCode = hashCode * 59 + this.VATTaxableTotal.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class SalesOrder : Entity + { + + [DataMember(Name="Approved", EmitDefaultValue=false)] + public BooleanValue Approved { get; set; } + + [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] + public StringValue BaseCurrencyID { get; set; } + + [DataMember(Name="BillToAddress", EmitDefaultValue=false)] + public Address BillToAddress { get; set; } + + [DataMember(Name="BillToAddressOverride", EmitDefaultValue=false)] + public BooleanValue BillToAddressOverride { get; set; } + + [DataMember(Name="BillToAddressValidated", EmitDefaultValue=false)] + public BooleanValue BillToAddressValidated { get; set; } + + [DataMember(Name="BillToContact", EmitDefaultValue=false)] + public DocContact BillToContact { get; set; } + + [DataMember(Name="BillToContactOverride", EmitDefaultValue=false)] + public BooleanValue BillToContactOverride { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="Commissions", EmitDefaultValue=false)] + public Commissions Commissions { get; set; } + + [DataMember(Name="ControlTotal", EmitDefaultValue=false)] + public DecimalValue ControlTotal { get; set; } + + [DataMember(Name="CreditHold", EmitDefaultValue=false)] + public BooleanValue CreditHold { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] + public DecimalValue CurrencyRate { get; set; } + + [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] + public StringValue CurrencyRateTypeID { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DestinationWarehouseID", EmitDefaultValue=false)] + public StringValue DestinationWarehouseID { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="DiscountDetails", EmitDefaultValue=false)] + public List DiscountDetails { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="ExternalRef", EmitDefaultValue=false)] + public StringValue ExternalRef { get; set; } + + [DataMember(Name="FinancialSettings", EmitDefaultValue=false)] + public FinancialSettings FinancialSettings { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="IsTaxValid", EmitDefaultValue=false)] + public BooleanValue IsTaxValid { get; set; } + + [DataMember(Name="LastModified", EmitDefaultValue=false)] + public DateTimeValue LastModified { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="NewCard", EmitDefaultValue=false)] + public BooleanValue NewCard { get; set; } + + [DataMember(Name="OrderedQty", EmitDefaultValue=false)] + public DecimalValue OrderedQty { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderTotal", EmitDefaultValue=false)] + public DecimalValue OrderTotal { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="PaymentCardIdentifier", EmitDefaultValue=false)] + public StringValue PaymentCardIdentifier { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } + + [DataMember(Name="Payments", EmitDefaultValue=false)] + public List Payments { get; set; } + + [DataMember(Name="PreAuthorizationNbr", EmitDefaultValue=false)] + public StringValue PreAuthorizationNbr { get; set; } + + [DataMember(Name="PreAuthorizedAmount", EmitDefaultValue=false)] + public DecimalValue PreAuthorizedAmount { get; set; } + + [DataMember(Name="PreferredWarehouseID", EmitDefaultValue=false)] + public StringValue PreferredWarehouseID { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] + public DecimalValue ReciprocalRate { get; set; } + + [DataMember(Name="RequestedOn", EmitDefaultValue=false)] + public DateTimeValue RequestedOn { get; set; } + + [DataMember(Name="Shipments", EmitDefaultValue=false)] + public List Shipments { get; set; } + + [DataMember(Name="ShippingSettings", EmitDefaultValue=false)] + public ShippingSettings ShippingSettings { get; set; } + + [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] + public Address ShipToAddress { get; set; } + + [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] + public BooleanValue ShipToAddressOverride { get; set; } + + [DataMember(Name="ShipToAddressValidated", EmitDefaultValue=false)] + public BooleanValue ShipToAddressValidated { get; set; } + + [DataMember(Name="ShipToContact", EmitDefaultValue=false)] + public DocContact ShipToContact { get; set; } + + [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] + public BooleanValue ShipToContactOverride { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + [DataMember(Name="Totals", EmitDefaultValue=false)] + public Totals Totals { get; set; } + + [DataMember(Name="VATExemptTotal", EmitDefaultValue=false)] + public DecimalValue VATExemptTotal { get; set; } + + [DataMember(Name="VATTaxableTotal", EmitDefaultValue=false)] + public DecimalValue VATTaxableTotal { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesOrderDetail.cs b/Acumatica.Default_17.200.001/Model/SalesOrderDetail.cs index f294e702..128e1c47 100644 --- a/Acumatica.Default_17.200.001/Model/SalesOrderDetail.cs +++ b/Acumatica.Default_17.200.001/Model/SalesOrderDetail.cs @@ -1,798 +1,141 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesOrderDetail - /// - [DataContract] - public partial class SalesOrderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// allocations. - /// alternateID. - /// autoCreateIssue. - /// averageCost. - /// branch. - /// commissionable. - /// completed. - /// discountAmount. - /// discountCode. - /// discountedUnitPrice. - /// discountPercent. - /// extendedPrice. - /// freeItem. - /// inventoryID. - /// lastModifiedDate. - /// lineDescription. - /// lineNbr. - /// lineType. - /// location. - /// manualDiscount. - /// markForPO. - /// openQty. - /// operation. - /// orderQty. - /// overshipThreshold. - /// pOSource. - /// projectTask. - /// purchasingSettings. - /// qtyOnShipments. - /// reasonCode. - /// requestedOn. - /// salespersonID. - /// shipOn. - /// shippingRule. - /// subitem. - /// taxCategory. - /// unbilledAmount. - /// undershipThreshold. - /// unitCost. - /// unitPrice. - /// uOM. - /// warehouseID. - public SalesOrderDetail(StringValue account = default(StringValue), List allocations = default(List), StringValue alternateID = default(StringValue), BooleanValue autoCreateIssue = default(BooleanValue), DecimalValue averageCost = default(DecimalValue), StringValue branch = default(StringValue), BooleanValue commissionable = default(BooleanValue), BooleanValue completed = default(BooleanValue), DecimalValue discountAmount = default(DecimalValue), StringValue discountCode = default(StringValue), DecimalValue discountedUnitPrice = default(DecimalValue), DecimalValue discountPercent = default(DecimalValue), DecimalValue extendedPrice = default(DecimalValue), BooleanValue freeItem = default(BooleanValue), StringValue inventoryID = default(StringValue), StringValue lastModifiedDate = default(StringValue), StringValue lineDescription = default(StringValue), IntValue lineNbr = default(IntValue), StringValue lineType = default(StringValue), StringValue location = default(StringValue), BooleanValue manualDiscount = default(BooleanValue), BooleanValue markForPO = default(BooleanValue), DecimalValue openQty = default(DecimalValue), StringValue operation = default(StringValue), DecimalValue orderQty = default(DecimalValue), DecimalValue overshipThreshold = default(DecimalValue), StringValue pOSource = default(StringValue), StringValue projectTask = default(StringValue), PurchaseSettings purchasingSettings = default(PurchaseSettings), DecimalValue qtyOnShipments = default(DecimalValue), StringValue reasonCode = default(StringValue), DateTimeValue requestedOn = default(DateTimeValue), StringValue salespersonID = default(StringValue), DateTimeValue shipOn = default(DateTimeValue), StringValue shippingRule = default(StringValue), StringValue subitem = default(StringValue), StringValue taxCategory = default(StringValue), DecimalValue unbilledAmount = default(DecimalValue), DecimalValue undershipThreshold = default(DecimalValue), DecimalValue unitCost = default(DecimalValue), DecimalValue unitPrice = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Allocations = allocations; - this.AlternateID = alternateID; - this.AutoCreateIssue = autoCreateIssue; - this.AverageCost = averageCost; - this.Branch = branch; - this.Commissionable = commissionable; - this.Completed = completed; - this.DiscountAmount = discountAmount; - this.DiscountCode = discountCode; - this.DiscountedUnitPrice = discountedUnitPrice; - this.DiscountPercent = discountPercent; - this.ExtendedPrice = extendedPrice; - this.FreeItem = freeItem; - this.InventoryID = inventoryID; - this.LastModifiedDate = lastModifiedDate; - this.LineDescription = lineDescription; - this.LineNbr = lineNbr; - this.LineType = lineType; - this.Location = location; - this.ManualDiscount = manualDiscount; - this.MarkForPO = markForPO; - this.OpenQty = openQty; - this.Operation = operation; - this.OrderQty = orderQty; - this.OvershipThreshold = overshipThreshold; - this.POSource = pOSource; - this.ProjectTask = projectTask; - this.PurchasingSettings = purchasingSettings; - this.QtyOnShipments = qtyOnShipments; - this.ReasonCode = reasonCode; - this.RequestedOn = requestedOn; - this.SalespersonID = salespersonID; - this.ShipOn = shipOn; - this.ShippingRule = shippingRule; - this.Subitem = subitem; - this.TaxCategory = taxCategory; - this.UnbilledAmount = unbilledAmount; - this.UndershipThreshold = undershipThreshold; - this.UnitCost = unitCost; - this.UnitPrice = unitPrice; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public List Allocations { get; set; } - - /// - /// Gets or Sets AlternateID - /// - [DataMember(Name="AlternateID", EmitDefaultValue=false)] - public StringValue AlternateID { get; set; } - - /// - /// Gets or Sets AutoCreateIssue - /// - [DataMember(Name="AutoCreateIssue", EmitDefaultValue=false)] - public BooleanValue AutoCreateIssue { get; set; } - - /// - /// Gets or Sets AverageCost - /// - [DataMember(Name="AverageCost", EmitDefaultValue=false)] - public DecimalValue AverageCost { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets Commissionable - /// - [DataMember(Name="Commissionable", EmitDefaultValue=false)] - public BooleanValue Commissionable { get; set; } - - /// - /// Gets or Sets Completed - /// - [DataMember(Name="Completed", EmitDefaultValue=false)] - public BooleanValue Completed { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets DiscountedUnitPrice - /// - [DataMember(Name="DiscountedUnitPrice", EmitDefaultValue=false)] - public DecimalValue DiscountedUnitPrice { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets ExtendedPrice - /// - [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] - public DecimalValue ExtendedPrice { get; set; } - - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public BooleanValue FreeItem { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LastModifiedDate - /// - [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] - public StringValue LastModifiedDate { get; set; } - - /// - /// Gets or Sets LineDescription - /// - [DataMember(Name="LineDescription", EmitDefaultValue=false)] - public StringValue LineDescription { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LineType - /// - [DataMember(Name="LineType", EmitDefaultValue=false)] - public StringValue LineType { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } - - /// - /// Gets or Sets MarkForPO - /// - [DataMember(Name="MarkForPO", EmitDefaultValue=false)] - public BooleanValue MarkForPO { get; set; } - - /// - /// Gets or Sets OpenQty - /// - [DataMember(Name="OpenQty", EmitDefaultValue=false)] - public DecimalValue OpenQty { get; set; } - - /// - /// Gets or Sets Operation - /// - [DataMember(Name="Operation", EmitDefaultValue=false)] - public StringValue Operation { get; set; } - - /// - /// Gets or Sets OrderQty - /// - [DataMember(Name="OrderQty", EmitDefaultValue=false)] - public DecimalValue OrderQty { get; set; } - - /// - /// Gets or Sets OvershipThreshold - /// - [DataMember(Name="OvershipThreshold", EmitDefaultValue=false)] - public DecimalValue OvershipThreshold { get; set; } - - /// - /// Gets or Sets POSource - /// - [DataMember(Name="POSource", EmitDefaultValue=false)] - public StringValue POSource { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets PurchasingSettings - /// - [DataMember(Name="PurchasingSettings", EmitDefaultValue=false)] - public PurchaseSettings PurchasingSettings { get; set; } - - /// - /// Gets or Sets QtyOnShipments - /// - [DataMember(Name="QtyOnShipments", EmitDefaultValue=false)] - public DecimalValue QtyOnShipments { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } - - /// - /// Gets or Sets RequestedOn - /// - [DataMember(Name="RequestedOn", EmitDefaultValue=false)] - public DateTimeValue RequestedOn { get; set; } - - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } - - /// - /// Gets or Sets ShipOn - /// - [DataMember(Name="ShipOn", EmitDefaultValue=false)] - public DateTimeValue ShipOn { get; set; } - - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets UnbilledAmount - /// - [DataMember(Name="UnbilledAmount", EmitDefaultValue=false)] - public DecimalValue UnbilledAmount { get; set; } - - /// - /// Gets or Sets UndershipThreshold - /// - [DataMember(Name="UndershipThreshold", EmitDefaultValue=false)] - public DecimalValue UndershipThreshold { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesOrderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" AlternateID: ").Append(AlternateID).Append("\n"); - sb.Append(" AutoCreateIssue: ").Append(AutoCreateIssue).Append("\n"); - sb.Append(" AverageCost: ").Append(AverageCost).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" Commissionable: ").Append(Commissionable).Append("\n"); - sb.Append(" Completed: ").Append(Completed).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" DiscountedUnitPrice: ").Append(DiscountedUnitPrice).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" ExtendedPrice: ").Append(ExtendedPrice).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LastModifiedDate: ").Append(LastModifiedDate).Append("\n"); - sb.Append(" LineDescription: ").Append(LineDescription).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LineType: ").Append(LineType).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" MarkForPO: ").Append(MarkForPO).Append("\n"); - sb.Append(" OpenQty: ").Append(OpenQty).Append("\n"); - sb.Append(" Operation: ").Append(Operation).Append("\n"); - sb.Append(" OrderQty: ").Append(OrderQty).Append("\n"); - sb.Append(" OvershipThreshold: ").Append(OvershipThreshold).Append("\n"); - sb.Append(" POSource: ").Append(POSource).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" PurchasingSettings: ").Append(PurchasingSettings).Append("\n"); - sb.Append(" QtyOnShipments: ").Append(QtyOnShipments).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" RequestedOn: ").Append(RequestedOn).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append(" ShipOn: ").Append(ShipOn).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" UnbilledAmount: ").Append(UnbilledAmount).Append("\n"); - sb.Append(" UndershipThreshold: ").Append(UndershipThreshold).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesOrderDetail); - } - - /// - /// Returns true if SalesOrderDetail instances are equal - /// - /// Instance of SalesOrderDetail to be compared - /// Boolean - public bool Equals(SalesOrderDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.AlternateID == input.AlternateID || - (this.AlternateID != null && - this.AlternateID.Equals(input.AlternateID)) - ) && base.Equals(input) && - ( - this.AutoCreateIssue == input.AutoCreateIssue || - (this.AutoCreateIssue != null && - this.AutoCreateIssue.Equals(input.AutoCreateIssue)) - ) && base.Equals(input) && - ( - this.AverageCost == input.AverageCost || - (this.AverageCost != null && - this.AverageCost.Equals(input.AverageCost)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.Commissionable == input.Commissionable || - (this.Commissionable != null && - this.Commissionable.Equals(input.Commissionable)) - ) && base.Equals(input) && - ( - this.Completed == input.Completed || - (this.Completed != null && - this.Completed.Equals(input.Completed)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.DiscountedUnitPrice == input.DiscountedUnitPrice || - (this.DiscountedUnitPrice != null && - this.DiscountedUnitPrice.Equals(input.DiscountedUnitPrice)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.ExtendedPrice == input.ExtendedPrice || - (this.ExtendedPrice != null && - this.ExtendedPrice.Equals(input.ExtendedPrice)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LastModifiedDate == input.LastModifiedDate || - (this.LastModifiedDate != null && - this.LastModifiedDate.Equals(input.LastModifiedDate)) - ) && base.Equals(input) && - ( - this.LineDescription == input.LineDescription || - (this.LineDescription != null && - this.LineDescription.Equals(input.LineDescription)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LineType == input.LineType || - (this.LineType != null && - this.LineType.Equals(input.LineType)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.MarkForPO == input.MarkForPO || - (this.MarkForPO != null && - this.MarkForPO.Equals(input.MarkForPO)) - ) && base.Equals(input) && - ( - this.OpenQty == input.OpenQty || - (this.OpenQty != null && - this.OpenQty.Equals(input.OpenQty)) - ) && base.Equals(input) && - ( - this.Operation == input.Operation || - (this.Operation != null && - this.Operation.Equals(input.Operation)) - ) && base.Equals(input) && - ( - this.OrderQty == input.OrderQty || - (this.OrderQty != null && - this.OrderQty.Equals(input.OrderQty)) - ) && base.Equals(input) && - ( - this.OvershipThreshold == input.OvershipThreshold || - (this.OvershipThreshold != null && - this.OvershipThreshold.Equals(input.OvershipThreshold)) - ) && base.Equals(input) && - ( - this.POSource == input.POSource || - (this.POSource != null && - this.POSource.Equals(input.POSource)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.PurchasingSettings == input.PurchasingSettings || - (this.PurchasingSettings != null && - this.PurchasingSettings.Equals(input.PurchasingSettings)) - ) && base.Equals(input) && - ( - this.QtyOnShipments == input.QtyOnShipments || - (this.QtyOnShipments != null && - this.QtyOnShipments.Equals(input.QtyOnShipments)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.RequestedOn == input.RequestedOn || - (this.RequestedOn != null && - this.RequestedOn.Equals(input.RequestedOn)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ) && base.Equals(input) && - ( - this.ShipOn == input.ShipOn || - (this.ShipOn != null && - this.ShipOn.Equals(input.ShipOn)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.UnbilledAmount == input.UnbilledAmount || - (this.UnbilledAmount != null && - this.UnbilledAmount.Equals(input.UnbilledAmount)) - ) && base.Equals(input) && - ( - this.UndershipThreshold == input.UndershipThreshold || - (this.UndershipThreshold != null && - this.UndershipThreshold.Equals(input.UndershipThreshold)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.AlternateID != null) - hashCode = hashCode * 59 + this.AlternateID.GetHashCode(); - if (this.AutoCreateIssue != null) - hashCode = hashCode * 59 + this.AutoCreateIssue.GetHashCode(); - if (this.AverageCost != null) - hashCode = hashCode * 59 + this.AverageCost.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.Commissionable != null) - hashCode = hashCode * 59 + this.Commissionable.GetHashCode(); - if (this.Completed != null) - hashCode = hashCode * 59 + this.Completed.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.DiscountedUnitPrice != null) - hashCode = hashCode * 59 + this.DiscountedUnitPrice.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.ExtendedPrice != null) - hashCode = hashCode * 59 + this.ExtendedPrice.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LastModifiedDate != null) - hashCode = hashCode * 59 + this.LastModifiedDate.GetHashCode(); - if (this.LineDescription != null) - hashCode = hashCode * 59 + this.LineDescription.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LineType != null) - hashCode = hashCode * 59 + this.LineType.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.MarkForPO != null) - hashCode = hashCode * 59 + this.MarkForPO.GetHashCode(); - if (this.OpenQty != null) - hashCode = hashCode * 59 + this.OpenQty.GetHashCode(); - if (this.Operation != null) - hashCode = hashCode * 59 + this.Operation.GetHashCode(); - if (this.OrderQty != null) - hashCode = hashCode * 59 + this.OrderQty.GetHashCode(); - if (this.OvershipThreshold != null) - hashCode = hashCode * 59 + this.OvershipThreshold.GetHashCode(); - if (this.POSource != null) - hashCode = hashCode * 59 + this.POSource.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.PurchasingSettings != null) - hashCode = hashCode * 59 + this.PurchasingSettings.GetHashCode(); - if (this.QtyOnShipments != null) - hashCode = hashCode * 59 + this.QtyOnShipments.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.RequestedOn != null) - hashCode = hashCode * 59 + this.RequestedOn.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - if (this.ShipOn != null) - hashCode = hashCode * 59 + this.ShipOn.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.UnbilledAmount != null) - hashCode = hashCode * 59 + this.UnbilledAmount.GetHashCode(); - if (this.UndershipThreshold != null) - hashCode = hashCode * 59 + this.UndershipThreshold.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class SalesOrderDetail : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } + + [DataMember(Name="AlternateID", EmitDefaultValue=false)] + public StringValue AlternateID { get; set; } + + [DataMember(Name="AutoCreateIssue", EmitDefaultValue=false)] + public BooleanValue AutoCreateIssue { get; set; } + + [DataMember(Name="AverageCost", EmitDefaultValue=false)] + public DecimalValue AverageCost { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="Commissionable", EmitDefaultValue=false)] + public BooleanValue Commissionable { get; set; } + + [DataMember(Name="Completed", EmitDefaultValue=false)] + public BooleanValue Completed { get; set; } + + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } + + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } + + [DataMember(Name="DiscountedUnitPrice", EmitDefaultValue=false)] + public DecimalValue DiscountedUnitPrice { get; set; } + + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } + + [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] + public DecimalValue ExtendedPrice { get; set; } + + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public BooleanValue FreeItem { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] + public StringValue LastModifiedDate { get; set; } + + [DataMember(Name="LineDescription", EmitDefaultValue=false)] + public StringValue LineDescription { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LineType", EmitDefaultValue=false)] + public StringValue LineType { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } + + [DataMember(Name="MarkForPO", EmitDefaultValue=false)] + public BooleanValue MarkForPO { get; set; } + + [DataMember(Name="OpenQty", EmitDefaultValue=false)] + public DecimalValue OpenQty { get; set; } + + [DataMember(Name="Operation", EmitDefaultValue=false)] + public StringValue Operation { get; set; } + + [DataMember(Name="OrderQty", EmitDefaultValue=false)] + public DecimalValue OrderQty { get; set; } + + [DataMember(Name="OvershipThreshold", EmitDefaultValue=false)] + public DecimalValue OvershipThreshold { get; set; } + + [DataMember(Name="POSource", EmitDefaultValue=false)] + public StringValue POSource { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="PurchasingSettings", EmitDefaultValue=false)] + public PurchaseSettings PurchasingSettings { get; set; } + + [DataMember(Name="QtyOnShipments", EmitDefaultValue=false)] + public DecimalValue QtyOnShipments { get; set; } + + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } + + [DataMember(Name="RequestedOn", EmitDefaultValue=false)] + public DateTimeValue RequestedOn { get; set; } + + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } + + [DataMember(Name="ShipOn", EmitDefaultValue=false)] + public DateTimeValue ShipOn { get; set; } + + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="UnbilledAmount", EmitDefaultValue=false)] + public DecimalValue UnbilledAmount { get; set; } + + [DataMember(Name="UndershipThreshold", EmitDefaultValue=false)] + public DecimalValue UndershipThreshold { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesOrderDetailAllocation.cs b/Acumatica.Default_17.200.001/Model/SalesOrderDetailAllocation.cs index 8cd29bcc..df348012 100644 --- a/Acumatica.Default_17.200.001/Model/SalesOrderDetailAllocation.cs +++ b/Acumatica.Default_17.200.001/Model/SalesOrderDetailAllocation.cs @@ -1,398 +1,66 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesOrderDetailAllocation - /// - [DataContract] - public partial class SalesOrderDetailAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocated. - /// allocWarehouseID. - /// completed. - /// expirationDate. - /// inventoryID. - /// lineNbr. - /// locationID. - /// lotSerialNbr. - /// orderNbr. - /// orderType. - /// qty. - /// qtyOnShipments. - /// qtyReceived. - /// relatedDocument. - /// shipOn. - /// splitLineNbr. - /// subitem. - /// uOM. - public SalesOrderDetailAllocation(BooleanValue allocated = default(BooleanValue), StringValue allocWarehouseID = default(StringValue), BooleanValue completed = default(BooleanValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), DecimalValue qty = default(DecimalValue), DecimalValue qtyOnShipments = default(DecimalValue), DecimalValue qtyReceived = default(DecimalValue), StringValue relatedDocument = default(StringValue), DateTimeValue shipOn = default(DateTimeValue), IntValue splitLineNbr = default(IntValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocated = allocated; - this.AllocWarehouseID = allocWarehouseID; - this.Completed = completed; - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.Qty = qty; - this.QtyOnShipments = qtyOnShipments; - this.QtyReceived = qtyReceived; - this.RelatedDocument = relatedDocument; - this.ShipOn = shipOn; - this.SplitLineNbr = splitLineNbr; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets Allocated - /// - [DataMember(Name="Allocated", EmitDefaultValue=false)] - public BooleanValue Allocated { get; set; } - - /// - /// Gets or Sets AllocWarehouseID - /// - [DataMember(Name="AllocWarehouseID", EmitDefaultValue=false)] - public StringValue AllocWarehouseID { get; set; } - - /// - /// Gets or Sets Completed - /// - [DataMember(Name="Completed", EmitDefaultValue=false)] - public BooleanValue Completed { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } + [DataContract] + public partial class SalesOrderDetailAllocation : Entity + { - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } + [DataMember(Name="Allocated", EmitDefaultValue=false)] + public BooleanValue Allocated { get; set; } - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataMember(Name="AllocWarehouseID", EmitDefaultValue=false)] + public StringValue AllocWarehouseID { get; set; } - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } + [DataMember(Name="Completed", EmitDefaultValue=false)] + public BooleanValue Completed { get; set; } - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets QtyOnShipments - /// - [DataMember(Name="QtyOnShipments", EmitDefaultValue=false)] - public DecimalValue QtyOnShipments { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets QtyReceived - /// - [DataMember(Name="QtyReceived", EmitDefaultValue=false)] - public DecimalValue QtyReceived { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Gets or Sets RelatedDocument - /// - [DataMember(Name="RelatedDocument", EmitDefaultValue=false)] - public StringValue RelatedDocument { get; set; } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Gets or Sets ShipOn - /// - [DataMember(Name="ShipOn", EmitDefaultValue=false)] - public DateTimeValue ShipOn { get; set; } + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } - /// - /// Gets or Sets SplitLineNbr - /// - [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] - public IntValue SplitLineNbr { get; set; } + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="QtyOnShipments", EmitDefaultValue=false)] + public DecimalValue QtyOnShipments { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesOrderDetailAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocated: ").Append(Allocated).Append("\n"); - sb.Append(" AllocWarehouseID: ").Append(AllocWarehouseID).Append("\n"); - sb.Append(" Completed: ").Append(Completed).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" QtyOnShipments: ").Append(QtyOnShipments).Append("\n"); - sb.Append(" QtyReceived: ").Append(QtyReceived).Append("\n"); - sb.Append(" RelatedDocument: ").Append(RelatedDocument).Append("\n"); - sb.Append(" ShipOn: ").Append(ShipOn).Append("\n"); - sb.Append(" SplitLineNbr: ").Append(SplitLineNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="QtyReceived", EmitDefaultValue=false)] + public DecimalValue QtyReceived { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesOrderDetailAllocation); - } + [DataMember(Name="RelatedDocument", EmitDefaultValue=false)] + public StringValue RelatedDocument { get; set; } - /// - /// Returns true if SalesOrderDetailAllocation instances are equal - /// - /// Instance of SalesOrderDetailAllocation to be compared - /// Boolean - public bool Equals(SalesOrderDetailAllocation input) - { - if (input == null) - return false; + [DataMember(Name="ShipOn", EmitDefaultValue=false)] + public DateTimeValue ShipOn { get; set; } - return base.Equals(input) && - ( - this.Allocated == input.Allocated || - (this.Allocated != null && - this.Allocated.Equals(input.Allocated)) - ) && base.Equals(input) && - ( - this.AllocWarehouseID == input.AllocWarehouseID || - (this.AllocWarehouseID != null && - this.AllocWarehouseID.Equals(input.AllocWarehouseID)) - ) && base.Equals(input) && - ( - this.Completed == input.Completed || - (this.Completed != null && - this.Completed.Equals(input.Completed)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.QtyOnShipments == input.QtyOnShipments || - (this.QtyOnShipments != null && - this.QtyOnShipments.Equals(input.QtyOnShipments)) - ) && base.Equals(input) && - ( - this.QtyReceived == input.QtyReceived || - (this.QtyReceived != null && - this.QtyReceived.Equals(input.QtyReceived)) - ) && base.Equals(input) && - ( - this.RelatedDocument == input.RelatedDocument || - (this.RelatedDocument != null && - this.RelatedDocument.Equals(input.RelatedDocument)) - ) && base.Equals(input) && - ( - this.ShipOn == input.ShipOn || - (this.ShipOn != null && - this.ShipOn.Equals(input.ShipOn)) - ) && base.Equals(input) && - ( - this.SplitLineNbr == input.SplitLineNbr || - (this.SplitLineNbr != null && - this.SplitLineNbr.Equals(input.SplitLineNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] + public IntValue SplitLineNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocated != null) - hashCode = hashCode * 59 + this.Allocated.GetHashCode(); - if (this.AllocWarehouseID != null) - hashCode = hashCode * 59 + this.AllocWarehouseID.GetHashCode(); - if (this.Completed != null) - hashCode = hashCode * 59 + this.Completed.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.QtyOnShipments != null) - hashCode = hashCode * 59 + this.QtyOnShipments.GetHashCode(); - if (this.QtyReceived != null) - hashCode = hashCode * 59 + this.QtyReceived.GetHashCode(); - if (this.RelatedDocument != null) - hashCode = hashCode * 59 + this.RelatedDocument.GetHashCode(); - if (this.ShipOn != null) - hashCode = hashCode * 59 + this.ShipOn.GetHashCode(); - if (this.SplitLineNbr != null) - hashCode = hashCode * 59 + this.SplitLineNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesOrderShipment.cs b/Acumatica.Default_17.200.001/Model/SalesOrderShipment.cs index c9bb352d..b30919ed 100644 --- a/Acumatica.Default_17.200.001/Model/SalesOrderShipment.cs +++ b/Acumatica.Default_17.200.001/Model/SalesOrderShipment.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesOrderShipment - /// - [DataContract] - public partial class SalesOrderShipment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// inventoryDocType. - /// inventoryRefNbr. - /// invoiceNbr. - /// invoiceType. - /// shipmentDate. - /// shipmentNbr. - /// shipmentType. - /// shippedQty. - /// shippedVolume. - /// shippedWeight. - /// status. - public SalesOrderShipment(StringValue inventoryDocType = default(StringValue), StringValue inventoryRefNbr = default(StringValue), StringValue invoiceNbr = default(StringValue), StringValue invoiceType = default(StringValue), DateTimeValue shipmentDate = default(DateTimeValue), StringValue shipmentNbr = default(StringValue), StringValue shipmentType = default(StringValue), DecimalValue shippedQty = default(DecimalValue), DecimalValue shippedVolume = default(DecimalValue), DecimalValue shippedWeight = default(DecimalValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.InventoryDocType = inventoryDocType; - this.InventoryRefNbr = inventoryRefNbr; - this.InvoiceNbr = invoiceNbr; - this.InvoiceType = invoiceType; - this.ShipmentDate = shipmentDate; - this.ShipmentNbr = shipmentNbr; - this.ShipmentType = shipmentType; - this.ShippedQty = shippedQty; - this.ShippedVolume = shippedVolume; - this.ShippedWeight = shippedWeight; - this.Status = status; - } - - /// - /// Gets or Sets InventoryDocType - /// - [DataMember(Name="InventoryDocType", EmitDefaultValue=false)] - public StringValue InventoryDocType { get; set; } - - /// - /// Gets or Sets InventoryRefNbr - /// - [DataMember(Name="InventoryRefNbr", EmitDefaultValue=false)] - public StringValue InventoryRefNbr { get; set; } - - /// - /// Gets or Sets InvoiceNbr - /// - [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] - public StringValue InvoiceNbr { get; set; } - - /// - /// Gets or Sets InvoiceType - /// - [DataMember(Name="InvoiceType", EmitDefaultValue=false)] - public StringValue InvoiceType { get; set; } - - /// - /// Gets or Sets ShipmentDate - /// - [DataMember(Name="ShipmentDate", EmitDefaultValue=false)] - public DateTimeValue ShipmentDate { get; set; } - - /// - /// Gets or Sets ShipmentNbr - /// - [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] - public StringValue ShipmentNbr { get; set; } + [DataContract] + public partial class SalesOrderShipment : Entity + { - /// - /// Gets or Sets ShipmentType - /// - [DataMember(Name="ShipmentType", EmitDefaultValue=false)] - public StringValue ShipmentType { get; set; } + [DataMember(Name="InventoryDocType", EmitDefaultValue=false)] + public StringValue InventoryDocType { get; set; } - /// - /// Gets or Sets ShippedQty - /// - [DataMember(Name="ShippedQty", EmitDefaultValue=false)] - public DecimalValue ShippedQty { get; set; } + [DataMember(Name="InventoryRefNbr", EmitDefaultValue=false)] + public StringValue InventoryRefNbr { get; set; } - /// - /// Gets or Sets ShippedVolume - /// - [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] - public DecimalValue ShippedVolume { get; set; } + [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] + public StringValue InvoiceNbr { get; set; } - /// - /// Gets or Sets ShippedWeight - /// - [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] - public DecimalValue ShippedWeight { get; set; } + [DataMember(Name="InvoiceType", EmitDefaultValue=false)] + public StringValue InvoiceType { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="ShipmentDate", EmitDefaultValue=false)] + public DateTimeValue ShipmentDate { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesOrderShipment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" InventoryDocType: ").Append(InventoryDocType).Append("\n"); - sb.Append(" InventoryRefNbr: ").Append(InventoryRefNbr).Append("\n"); - sb.Append(" InvoiceNbr: ").Append(InvoiceNbr).Append("\n"); - sb.Append(" InvoiceType: ").Append(InvoiceType).Append("\n"); - sb.Append(" ShipmentDate: ").Append(ShipmentDate).Append("\n"); - sb.Append(" ShipmentNbr: ").Append(ShipmentNbr).Append("\n"); - sb.Append(" ShipmentType: ").Append(ShipmentType).Append("\n"); - sb.Append(" ShippedQty: ").Append(ShippedQty).Append("\n"); - sb.Append(" ShippedVolume: ").Append(ShippedVolume).Append("\n"); - sb.Append(" ShippedWeight: ").Append(ShippedWeight).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] + public StringValue ShipmentNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesOrderShipment); - } + [DataMember(Name="ShipmentType", EmitDefaultValue=false)] + public StringValue ShipmentType { get; set; } - /// - /// Returns true if SalesOrderShipment instances are equal - /// - /// Instance of SalesOrderShipment to be compared - /// Boolean - public bool Equals(SalesOrderShipment input) - { - if (input == null) - return false; + [DataMember(Name="ShippedQty", EmitDefaultValue=false)] + public DecimalValue ShippedQty { get; set; } - return base.Equals(input) && - ( - this.InventoryDocType == input.InventoryDocType || - (this.InventoryDocType != null && - this.InventoryDocType.Equals(input.InventoryDocType)) - ) && base.Equals(input) && - ( - this.InventoryRefNbr == input.InventoryRefNbr || - (this.InventoryRefNbr != null && - this.InventoryRefNbr.Equals(input.InventoryRefNbr)) - ) && base.Equals(input) && - ( - this.InvoiceNbr == input.InvoiceNbr || - (this.InvoiceNbr != null && - this.InvoiceNbr.Equals(input.InvoiceNbr)) - ) && base.Equals(input) && - ( - this.InvoiceType == input.InvoiceType || - (this.InvoiceType != null && - this.InvoiceType.Equals(input.InvoiceType)) - ) && base.Equals(input) && - ( - this.ShipmentDate == input.ShipmentDate || - (this.ShipmentDate != null && - this.ShipmentDate.Equals(input.ShipmentDate)) - ) && base.Equals(input) && - ( - this.ShipmentNbr == input.ShipmentNbr || - (this.ShipmentNbr != null && - this.ShipmentNbr.Equals(input.ShipmentNbr)) - ) && base.Equals(input) && - ( - this.ShipmentType == input.ShipmentType || - (this.ShipmentType != null && - this.ShipmentType.Equals(input.ShipmentType)) - ) && base.Equals(input) && - ( - this.ShippedQty == input.ShippedQty || - (this.ShippedQty != null && - this.ShippedQty.Equals(input.ShippedQty)) - ) && base.Equals(input) && - ( - this.ShippedVolume == input.ShippedVolume || - (this.ShippedVolume != null && - this.ShippedVolume.Equals(input.ShippedVolume)) - ) && base.Equals(input) && - ( - this.ShippedWeight == input.ShippedWeight || - (this.ShippedWeight != null && - this.ShippedWeight.Equals(input.ShippedWeight)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } + [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] + public DecimalValue ShippedVolume { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.InventoryDocType != null) - hashCode = hashCode * 59 + this.InventoryDocType.GetHashCode(); - if (this.InventoryRefNbr != null) - hashCode = hashCode * 59 + this.InventoryRefNbr.GetHashCode(); - if (this.InvoiceNbr != null) - hashCode = hashCode * 59 + this.InvoiceNbr.GetHashCode(); - if (this.InvoiceType != null) - hashCode = hashCode * 59 + this.InvoiceType.GetHashCode(); - if (this.ShipmentDate != null) - hashCode = hashCode * 59 + this.ShipmentDate.GetHashCode(); - if (this.ShipmentNbr != null) - hashCode = hashCode * 59 + this.ShipmentNbr.GetHashCode(); - if (this.ShipmentType != null) - hashCode = hashCode * 59 + this.ShipmentType.GetHashCode(); - if (this.ShippedQty != null) - hashCode = hashCode * 59 + this.ShippedQty.GetHashCode(); - if (this.ShippedVolume != null) - hashCode = hashCode * 59 + this.ShippedVolume.GetHashCode(); - if (this.ShippedWeight != null) - hashCode = hashCode * 59 + this.ShippedWeight.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] + public DecimalValue ShippedWeight { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesOrdersDiscountDetails.cs b/Acumatica.Default_17.200.001/Model/SalesOrdersDiscountDetails.cs index 5099b5de..2089ebe5 100644 --- a/Acumatica.Default_17.200.001/Model/SalesOrdersDiscountDetails.cs +++ b/Acumatica.Default_17.200.001/Model/SalesOrdersDiscountDetails.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesOrdersDiscountDetails - /// - [DataContract] - public partial class SalesOrdersDiscountDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// discountableAmount. - /// discountableQty. - /// discountAmount. - /// discountCode. - /// discountPercent. - /// freeItem. - /// freeItemQty. - /// manualDiscount. - /// sequenceID. - /// skipDiscount. - /// type. - public SalesOrdersDiscountDetails(DecimalValue discountableAmount = default(DecimalValue), DecimalValue discountableQty = default(DecimalValue), DecimalValue discountAmount = default(DecimalValue), StringValue discountCode = default(StringValue), DecimalValue discountPercent = default(DecimalValue), StringValue freeItem = default(StringValue), DecimalValue freeItemQty = default(DecimalValue), BooleanValue manualDiscount = default(BooleanValue), StringValue sequenceID = default(StringValue), BooleanValue skipDiscount = default(BooleanValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DiscountableAmount = discountableAmount; - this.DiscountableQty = discountableQty; - this.DiscountAmount = discountAmount; - this.DiscountCode = discountCode; - this.DiscountPercent = discountPercent; - this.FreeItem = freeItem; - this.FreeItemQty = freeItemQty; - this.ManualDiscount = manualDiscount; - this.SequenceID = sequenceID; - this.SkipDiscount = skipDiscount; - this.Type = type; - } - - /// - /// Gets or Sets DiscountableAmount - /// - [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] - public DecimalValue DiscountableAmount { get; set; } - - /// - /// Gets or Sets DiscountableQty - /// - [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] - public DecimalValue DiscountableQty { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public StringValue FreeItem { get; set; } + [DataContract] + public partial class SalesOrdersDiscountDetails : Entity + { - /// - /// Gets or Sets FreeItemQty - /// - [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] - public DecimalValue FreeItemQty { get; set; } + [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] + public DecimalValue DiscountableAmount { get; set; } - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } + [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] + public DecimalValue DiscountableQty { get; set; } - /// - /// Gets or Sets SequenceID - /// - [DataMember(Name="SequenceID", EmitDefaultValue=false)] - public StringValue SequenceID { get; set; } + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } - /// - /// Gets or Sets SkipDiscount - /// - [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] - public BooleanValue SkipDiscount { get; set; } + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesOrdersDiscountDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DiscountableAmount: ").Append(DiscountableAmount).Append("\n"); - sb.Append(" DiscountableQty: ").Append(DiscountableQty).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" FreeItemQty: ").Append(FreeItemQty).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" SequenceID: ").Append(SequenceID).Append("\n"); - sb.Append(" SkipDiscount: ").Append(SkipDiscount).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public StringValue FreeItem { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesOrdersDiscountDetails); - } + [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] + public DecimalValue FreeItemQty { get; set; } - /// - /// Returns true if SalesOrdersDiscountDetails instances are equal - /// - /// Instance of SalesOrdersDiscountDetails to be compared - /// Boolean - public bool Equals(SalesOrdersDiscountDetails input) - { - if (input == null) - return false; + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } - return base.Equals(input) && - ( - this.DiscountableAmount == input.DiscountableAmount || - (this.DiscountableAmount != null && - this.DiscountableAmount.Equals(input.DiscountableAmount)) - ) && base.Equals(input) && - ( - this.DiscountableQty == input.DiscountableQty || - (this.DiscountableQty != null && - this.DiscountableQty.Equals(input.DiscountableQty)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.FreeItemQty == input.FreeItemQty || - (this.FreeItemQty != null && - this.FreeItemQty.Equals(input.FreeItemQty)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.SequenceID == input.SequenceID || - (this.SequenceID != null && - this.SequenceID.Equals(input.SequenceID)) - ) && base.Equals(input) && - ( - this.SkipDiscount == input.SkipDiscount || - (this.SkipDiscount != null && - this.SkipDiscount.Equals(input.SkipDiscount)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } + [DataMember(Name="SequenceID", EmitDefaultValue=false)] + public StringValue SequenceID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DiscountableAmount != null) - hashCode = hashCode * 59 + this.DiscountableAmount.GetHashCode(); - if (this.DiscountableQty != null) - hashCode = hashCode * 59 + this.DiscountableQty.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.FreeItemQty != null) - hashCode = hashCode * 59 + this.FreeItemQty.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.SequenceID != null) - hashCode = hashCode * 59 + this.SequenceID.GetHashCode(); - if (this.SkipDiscount != null) - hashCode = hashCode * 59 + this.SkipDiscount.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] + public BooleanValue SkipDiscount { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesPersonDetail.cs b/Acumatica.Default_17.200.001/Model/SalesPersonDetail.cs index beb2c69f..10fb3c9f 100644 --- a/Acumatica.Default_17.200.001/Model/SalesPersonDetail.cs +++ b/Acumatica.Default_17.200.001/Model/SalesPersonDetail.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesPersonDetail - /// - [DataContract] - public partial class SalesPersonDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// commissionableAmount. - /// commissionAmount. - /// commissionPercent. - /// salespersonID. - public SalesPersonDetail(DecimalValue commissionableAmount = default(DecimalValue), DecimalValue commissionAmount = default(DecimalValue), DecimalValue commissionPercent = default(DecimalValue), StringValue salespersonID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CommissionableAmount = commissionableAmount; - this.CommissionAmount = commissionAmount; - this.CommissionPercent = commissionPercent; - this.SalespersonID = salespersonID; - } - - /// - /// Gets or Sets CommissionableAmount - /// - [DataMember(Name="CommissionableAmount", EmitDefaultValue=false)] - public DecimalValue CommissionableAmount { get; set; } - - /// - /// Gets or Sets CommissionAmount - /// - [DataMember(Name="CommissionAmount", EmitDefaultValue=false)] - public DecimalValue CommissionAmount { get; set; } - - /// - /// Gets or Sets CommissionPercent - /// - [DataMember(Name="CommissionPercent", EmitDefaultValue=false)] - public DecimalValue CommissionPercent { get; set; } - - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesPersonDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CommissionableAmount: ").Append(CommissionableAmount).Append("\n"); - sb.Append(" CommissionAmount: ").Append(CommissionAmount).Append("\n"); - sb.Append(" CommissionPercent: ").Append(CommissionPercent).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesPersonDetail); - } + [DataContract] + public partial class SalesPersonDetail : Entity + { - /// - /// Returns true if SalesPersonDetail instances are equal - /// - /// Instance of SalesPersonDetail to be compared - /// Boolean - public bool Equals(SalesPersonDetail input) - { - if (input == null) - return false; + [DataMember(Name="CommissionableAmount", EmitDefaultValue=false)] + public DecimalValue CommissionableAmount { get; set; } - return base.Equals(input) && - ( - this.CommissionableAmount == input.CommissionableAmount || - (this.CommissionableAmount != null && - this.CommissionableAmount.Equals(input.CommissionableAmount)) - ) && base.Equals(input) && - ( - this.CommissionAmount == input.CommissionAmount || - (this.CommissionAmount != null && - this.CommissionAmount.Equals(input.CommissionAmount)) - ) && base.Equals(input) && - ( - this.CommissionPercent == input.CommissionPercent || - (this.CommissionPercent != null && - this.CommissionPercent.Equals(input.CommissionPercent)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ); - } + [DataMember(Name="CommissionAmount", EmitDefaultValue=false)] + public DecimalValue CommissionAmount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CommissionableAmount != null) - hashCode = hashCode * 59 + this.CommissionableAmount.GetHashCode(); - if (this.CommissionAmount != null) - hashCode = hashCode * 59 + this.CommissionAmount.GetHashCode(); - if (this.CommissionPercent != null) - hashCode = hashCode * 59 + this.CommissionPercent.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="CommissionPercent", EmitDefaultValue=false)] + public DecimalValue CommissionPercent { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesPriceDetail.cs b/Acumatica.Default_17.200.001/Model/SalesPriceDetail.cs index cb41b065..39d43131 100644 --- a/Acumatica.Default_17.200.001/Model/SalesPriceDetail.cs +++ b/Acumatica.Default_17.200.001/Model/SalesPriceDetail.cs @@ -1,350 +1,57 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesPriceDetail - /// - [DataContract] - public partial class SalesPriceDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakQty. - /// createdDateTime. - /// currencyID. - /// description. - /// effectiveDate. - /// expirationDate. - /// inventoryID. - /// lastModifiedDateTime. - /// price. - /// priceCode. - /// priceType. - /// promotion. - /// recordID. - /// tax. - /// uOM. - public SalesPriceDetail(DecimalValue breakQty = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue price = default(DecimalValue), StringValue priceCode = default(StringValue), StringValue priceType = default(StringValue), BooleanValue promotion = default(BooleanValue), IntValue recordID = default(IntValue), StringValue tax = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakQty = breakQty; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Price = price; - this.PriceCode = priceCode; - this.PriceType = priceType; - this.Promotion = promotion; - this.RecordID = recordID; - this.Tax = tax; - this.UOM = uOM; - } - - /// - /// Gets or Sets BreakQty - /// - [DataMember(Name="BreakQty", EmitDefaultValue=false)] - public DecimalValue BreakQty { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } + [DataContract] + public partial class SalesPriceDetail : Entity + { - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } + [DataMember(Name="BreakQty", EmitDefaultValue=false)] + public DecimalValue BreakQty { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets Price - /// - [DataMember(Name="Price", EmitDefaultValue=false)] - public DecimalValue Price { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets PriceCode - /// - [DataMember(Name="PriceCode", EmitDefaultValue=false)] - public StringValue PriceCode { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets PriceType - /// - [DataMember(Name="PriceType", EmitDefaultValue=false)] - public StringValue PriceType { get; set; } + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } - /// - /// Gets or Sets Promotion - /// - [DataMember(Name="Promotion", EmitDefaultValue=false)] - public BooleanValue Promotion { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets Tax - /// - [DataMember(Name="Tax", EmitDefaultValue=false)] - public StringValue Tax { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="Price", EmitDefaultValue=false)] + public DecimalValue Price { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesPriceDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakQty: ").Append(BreakQty).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Price: ").Append(Price).Append("\n"); - sb.Append(" PriceCode: ").Append(PriceCode).Append("\n"); - sb.Append(" PriceType: ").Append(PriceType).Append("\n"); - sb.Append(" Promotion: ").Append(Promotion).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" Tax: ").Append(Tax).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PriceCode", EmitDefaultValue=false)] + public StringValue PriceCode { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesPriceDetail); - } + [DataMember(Name="PriceType", EmitDefaultValue=false)] + public StringValue PriceType { get; set; } - /// - /// Returns true if SalesPriceDetail instances are equal - /// - /// Instance of SalesPriceDetail to be compared - /// Boolean - public bool Equals(SalesPriceDetail input) - { - if (input == null) - return false; + [DataMember(Name="Promotion", EmitDefaultValue=false)] + public BooleanValue Promotion { get; set; } - return base.Equals(input) && - ( - this.BreakQty == input.BreakQty || - (this.BreakQty != null && - this.BreakQty.Equals(input.BreakQty)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Price == input.Price || - (this.Price != null && - this.Price.Equals(input.Price)) - ) && base.Equals(input) && - ( - this.PriceCode == input.PriceCode || - (this.PriceCode != null && - this.PriceCode.Equals(input.PriceCode)) - ) && base.Equals(input) && - ( - this.PriceType == input.PriceType || - (this.PriceType != null && - this.PriceType.Equals(input.PriceType)) - ) && base.Equals(input) && - ( - this.Promotion == input.Promotion || - (this.Promotion != null && - this.Promotion.Equals(input.Promotion)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.Tax == input.Tax || - (this.Tax != null && - this.Tax.Equals(input.Tax)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakQty != null) - hashCode = hashCode * 59 + this.BreakQty.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Price != null) - hashCode = hashCode * 59 + this.Price.GetHashCode(); - if (this.PriceCode != null) - hashCode = hashCode * 59 + this.PriceCode.GetHashCode(); - if (this.PriceType != null) - hashCode = hashCode * 59 + this.PriceType.GetHashCode(); - if (this.Promotion != null) - hashCode = hashCode * 59 + this.Promotion.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Tax", EmitDefaultValue=false)] + public StringValue Tax { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesPriceWorksheet.cs b/Acumatica.Default_17.200.001/Model/SalesPriceWorksheet.cs index 12b20230..dbc53fc6 100644 --- a/Acumatica.Default_17.200.001/Model/SalesPriceWorksheet.cs +++ b/Acumatica.Default_17.200.001/Model/SalesPriceWorksheet.cs @@ -1,270 +1,42 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesPriceWorksheet - /// - [DataContract] - public partial class SalesPriceWorksheet : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// description. - /// effectiveDate. - /// expirationDate. - /// hold. - /// lastModifiedDateTime. - /// overwriteOverlappingPrices. - /// referenceNbr. - /// salesPrices. - /// status. - public SalesPriceWorksheet(DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), DateTimeValue expirationDate = default(DateTimeValue), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), BooleanValue overwriteOverlappingPrices = default(BooleanValue), StringValue referenceNbr = default(StringValue), List salesPrices = default(List), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExpirationDate = expirationDate; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.OverwriteOverlappingPrices = overwriteOverlappingPrices; - this.ReferenceNbr = referenceNbr; - this.SalesPrices = salesPrices; - this.Status = status; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataContract] + public partial class SalesPriceWorksheet : Entity + { - /// - /// Gets or Sets OverwriteOverlappingPrices - /// - [DataMember(Name="OverwriteOverlappingPrices", EmitDefaultValue=false)] - public BooleanValue OverwriteOverlappingPrices { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets SalesPrices - /// - [DataMember(Name="SalesPrices", EmitDefaultValue=false)] - public List SalesPrices { get; set; } + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesPriceWorksheet {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" OverwriteOverlappingPrices: ").Append(OverwriteOverlappingPrices).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" SalesPrices: ").Append(SalesPrices).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesPriceWorksheet); - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Returns true if SalesPriceWorksheet instances are equal - /// - /// Instance of SalesPriceWorksheet to be compared - /// Boolean - public bool Equals(SalesPriceWorksheet input) - { - if (input == null) - return false; + [DataMember(Name="OverwriteOverlappingPrices", EmitDefaultValue=false)] + public BooleanValue OverwriteOverlappingPrices { get; set; } - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.OverwriteOverlappingPrices == input.OverwriteOverlappingPrices || - (this.OverwriteOverlappingPrices != null && - this.OverwriteOverlappingPrices.Equals(input.OverwriteOverlappingPrices)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.SalesPrices == input.SalesPrices || - this.SalesPrices != null && - this.SalesPrices.SequenceEqual(input.SalesPrices) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.OverwriteOverlappingPrices != null) - hashCode = hashCode * 59 + this.OverwriteOverlappingPrices.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.SalesPrices != null) - hashCode = hashCode * 59 + this.SalesPrices.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="SalesPrices", EmitDefaultValue=false)] + public List SalesPrices { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesPricesInquiry.cs b/Acumatica.Default_17.200.001/Model/SalesPricesInquiry.cs index 51882596..2bbcbab2 100644 --- a/Acumatica.Default_17.200.001/Model/SalesPricesInquiry.cs +++ b/Acumatica.Default_17.200.001/Model/SalesPricesInquiry.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesPricesInquiry - /// - [DataContract] - public partial class SalesPricesInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// effectiveAsOf. - /// inventoryID. - /// itemClassID. - /// priceClass. - /// priceCode. - /// priceManager. - /// priceManagerIsMe. - /// priceType. - /// priceWorkgroup. - /// priceWorkgroupIsMine. - /// salesPriceDetails. - public SalesPricesInquiry(DateTimeValue effectiveAsOf = default(DateTimeValue), StringValue inventoryID = default(StringValue), StringValue itemClassID = default(StringValue), StringValue priceClass = default(StringValue), StringValue priceCode = default(StringValue), StringValue priceManager = default(StringValue), BooleanValue priceManagerIsMe = default(BooleanValue), StringValue priceType = default(StringValue), StringValue priceWorkgroup = default(StringValue), BooleanValue priceWorkgroupIsMine = default(BooleanValue), List salesPriceDetails = default(List), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.EffectiveAsOf = effectiveAsOf; - this.InventoryID = inventoryID; - this.ItemClassID = itemClassID; - this.PriceClass = priceClass; - this.PriceCode = priceCode; - this.PriceManager = priceManager; - this.PriceManagerIsMe = priceManagerIsMe; - this.PriceType = priceType; - this.PriceWorkgroup = priceWorkgroup; - this.PriceWorkgroupIsMine = priceWorkgroupIsMine; - this.SalesPriceDetails = salesPriceDetails; - } - - /// - /// Gets or Sets EffectiveAsOf - /// - [DataMember(Name="EffectiveAsOf", EmitDefaultValue=false)] - public DateTimeValue EffectiveAsOf { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets ItemClassID - /// - [DataMember(Name="ItemClassID", EmitDefaultValue=false)] - public StringValue ItemClassID { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets PriceCode - /// - [DataMember(Name="PriceCode", EmitDefaultValue=false)] - public StringValue PriceCode { get; set; } - - /// - /// Gets or Sets PriceManager - /// - [DataMember(Name="PriceManager", EmitDefaultValue=false)] - public StringValue PriceManager { get; set; } + [DataContract] + public partial class SalesPricesInquiry : Entity + { - /// - /// Gets or Sets PriceManagerIsMe - /// - [DataMember(Name="PriceManagerIsMe", EmitDefaultValue=false)] - public BooleanValue PriceManagerIsMe { get; set; } + [DataMember(Name="EffectiveAsOf", EmitDefaultValue=false)] + public DateTimeValue EffectiveAsOf { get; set; } - /// - /// Gets or Sets PriceType - /// - [DataMember(Name="PriceType", EmitDefaultValue=false)] - public StringValue PriceType { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets PriceWorkgroup - /// - [DataMember(Name="PriceWorkgroup", EmitDefaultValue=false)] - public StringValue PriceWorkgroup { get; set; } + [DataMember(Name="ItemClassID", EmitDefaultValue=false)] + public StringValue ItemClassID { get; set; } - /// - /// Gets or Sets PriceWorkgroupIsMine - /// - [DataMember(Name="PriceWorkgroupIsMine", EmitDefaultValue=false)] - public BooleanValue PriceWorkgroupIsMine { get; set; } + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } - /// - /// Gets or Sets SalesPriceDetails - /// - [DataMember(Name="SalesPriceDetails", EmitDefaultValue=false)] - public List SalesPriceDetails { get; set; } + [DataMember(Name="PriceCode", EmitDefaultValue=false)] + public StringValue PriceCode { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesPricesInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" EffectiveAsOf: ").Append(EffectiveAsOf).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" ItemClassID: ").Append(ItemClassID).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" PriceCode: ").Append(PriceCode).Append("\n"); - sb.Append(" PriceManager: ").Append(PriceManager).Append("\n"); - sb.Append(" PriceManagerIsMe: ").Append(PriceManagerIsMe).Append("\n"); - sb.Append(" PriceType: ").Append(PriceType).Append("\n"); - sb.Append(" PriceWorkgroup: ").Append(PriceWorkgroup).Append("\n"); - sb.Append(" PriceWorkgroupIsMine: ").Append(PriceWorkgroupIsMine).Append("\n"); - sb.Append(" SalesPriceDetails: ").Append(SalesPriceDetails).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PriceManager", EmitDefaultValue=false)] + public StringValue PriceManager { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesPricesInquiry); - } + [DataMember(Name="PriceManagerIsMe", EmitDefaultValue=false)] + public BooleanValue PriceManagerIsMe { get; set; } - /// - /// Returns true if SalesPricesInquiry instances are equal - /// - /// Instance of SalesPricesInquiry to be compared - /// Boolean - public bool Equals(SalesPricesInquiry input) - { - if (input == null) - return false; + [DataMember(Name="PriceType", EmitDefaultValue=false)] + public StringValue PriceType { get; set; } - return base.Equals(input) && - ( - this.EffectiveAsOf == input.EffectiveAsOf || - (this.EffectiveAsOf != null && - this.EffectiveAsOf.Equals(input.EffectiveAsOf)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.ItemClassID == input.ItemClassID || - (this.ItemClassID != null && - this.ItemClassID.Equals(input.ItemClassID)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.PriceCode == input.PriceCode || - (this.PriceCode != null && - this.PriceCode.Equals(input.PriceCode)) - ) && base.Equals(input) && - ( - this.PriceManager == input.PriceManager || - (this.PriceManager != null && - this.PriceManager.Equals(input.PriceManager)) - ) && base.Equals(input) && - ( - this.PriceManagerIsMe == input.PriceManagerIsMe || - (this.PriceManagerIsMe != null && - this.PriceManagerIsMe.Equals(input.PriceManagerIsMe)) - ) && base.Equals(input) && - ( - this.PriceType == input.PriceType || - (this.PriceType != null && - this.PriceType.Equals(input.PriceType)) - ) && base.Equals(input) && - ( - this.PriceWorkgroup == input.PriceWorkgroup || - (this.PriceWorkgroup != null && - this.PriceWorkgroup.Equals(input.PriceWorkgroup)) - ) && base.Equals(input) && - ( - this.PriceWorkgroupIsMine == input.PriceWorkgroupIsMine || - (this.PriceWorkgroupIsMine != null && - this.PriceWorkgroupIsMine.Equals(input.PriceWorkgroupIsMine)) - ) && base.Equals(input) && - ( - this.SalesPriceDetails == input.SalesPriceDetails || - this.SalesPriceDetails != null && - this.SalesPriceDetails.SequenceEqual(input.SalesPriceDetails) - ); - } + [DataMember(Name="PriceWorkgroup", EmitDefaultValue=false)] + public StringValue PriceWorkgroup { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.EffectiveAsOf != null) - hashCode = hashCode * 59 + this.EffectiveAsOf.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.ItemClassID != null) - hashCode = hashCode * 59 + this.ItemClassID.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.PriceCode != null) - hashCode = hashCode * 59 + this.PriceCode.GetHashCode(); - if (this.PriceManager != null) - hashCode = hashCode * 59 + this.PriceManager.GetHashCode(); - if (this.PriceManagerIsMe != null) - hashCode = hashCode * 59 + this.PriceManagerIsMe.GetHashCode(); - if (this.PriceType != null) - hashCode = hashCode * 59 + this.PriceType.GetHashCode(); - if (this.PriceWorkgroup != null) - hashCode = hashCode * 59 + this.PriceWorkgroup.GetHashCode(); - if (this.PriceWorkgroupIsMine != null) - hashCode = hashCode * 59 + this.PriceWorkgroupIsMine.GetHashCode(); - if (this.SalesPriceDetails != null) - hashCode = hashCode * 59 + this.SalesPriceDetails.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="PriceWorkgroupIsMine", EmitDefaultValue=false)] + public BooleanValue PriceWorkgroupIsMine { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="SalesPriceDetails", EmitDefaultValue=false)] + public List SalesPriceDetails { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SalesPricesWorksheetDetail.cs b/Acumatica.Default_17.200.001/Model/SalesPricesWorksheetDetail.cs index 1099de07..8c983aa3 100644 --- a/Acumatica.Default_17.200.001/Model/SalesPricesWorksheetDetail.cs +++ b/Acumatica.Default_17.200.001/Model/SalesPricesWorksheetDetail.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SalesPricesWorksheetDetail - /// - [DataContract] - public partial class SalesPricesWorksheetDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakQty. - /// currencyID. - /// description. - /// inventoryID. - /// lineID. - /// pendingPrice. - /// priceCode. - /// priceType. - /// referenceNbr. - /// sourcePrice. - /// tax. - /// uOM. - public SalesPricesWorksheetDetail(DecimalValue breakQty = default(DecimalValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), IntValue lineID = default(IntValue), DecimalValue pendingPrice = default(DecimalValue), StringValue priceCode = default(StringValue), StringValue priceType = default(StringValue), StringValue referenceNbr = default(StringValue), DecimalValue sourcePrice = default(DecimalValue), StringValue tax = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakQty = breakQty; - this.CurrencyID = currencyID; - this.Description = description; - this.InventoryID = inventoryID; - this.LineID = lineID; - this.PendingPrice = pendingPrice; - this.PriceCode = priceCode; - this.PriceType = priceType; - this.ReferenceNbr = referenceNbr; - this.SourcePrice = sourcePrice; - this.Tax = tax; - this.UOM = uOM; - } - - /// - /// Gets or Sets BreakQty - /// - [DataMember(Name="BreakQty", EmitDefaultValue=false)] - public DecimalValue BreakQty { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineID - /// - [DataMember(Name="LineID", EmitDefaultValue=false)] - public IntValue LineID { get; set; } - - /// - /// Gets or Sets PendingPrice - /// - [DataMember(Name="PendingPrice", EmitDefaultValue=false)] - public DecimalValue PendingPrice { get; set; } + [DataContract] + public partial class SalesPricesWorksheetDetail : Entity + { - /// - /// Gets or Sets PriceCode - /// - [DataMember(Name="PriceCode", EmitDefaultValue=false)] - public StringValue PriceCode { get; set; } + [DataMember(Name="BreakQty", EmitDefaultValue=false)] + public DecimalValue BreakQty { get; set; } - /// - /// Gets or Sets PriceType - /// - [DataMember(Name="PriceType", EmitDefaultValue=false)] - public StringValue PriceType { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets SourcePrice - /// - [DataMember(Name="SourcePrice", EmitDefaultValue=false)] - public DecimalValue SourcePrice { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets Tax - /// - [DataMember(Name="Tax", EmitDefaultValue=false)] - public StringValue Tax { get; set; } + [DataMember(Name="LineID", EmitDefaultValue=false)] + public IntValue LineID { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="PendingPrice", EmitDefaultValue=false)] + public DecimalValue PendingPrice { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesPricesWorksheetDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakQty: ").Append(BreakQty).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineID: ").Append(LineID).Append("\n"); - sb.Append(" PendingPrice: ").Append(PendingPrice).Append("\n"); - sb.Append(" PriceCode: ").Append(PriceCode).Append("\n"); - sb.Append(" PriceType: ").Append(PriceType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" SourcePrice: ").Append(SourcePrice).Append("\n"); - sb.Append(" Tax: ").Append(Tax).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PriceCode", EmitDefaultValue=false)] + public StringValue PriceCode { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesPricesWorksheetDetail); - } + [DataMember(Name="PriceType", EmitDefaultValue=false)] + public StringValue PriceType { get; set; } - /// - /// Returns true if SalesPricesWorksheetDetail instances are equal - /// - /// Instance of SalesPricesWorksheetDetail to be compared - /// Boolean - public bool Equals(SalesPricesWorksheetDetail input) - { - if (input == null) - return false; + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - return base.Equals(input) && - ( - this.BreakQty == input.BreakQty || - (this.BreakQty != null && - this.BreakQty.Equals(input.BreakQty)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineID == input.LineID || - (this.LineID != null && - this.LineID.Equals(input.LineID)) - ) && base.Equals(input) && - ( - this.PendingPrice == input.PendingPrice || - (this.PendingPrice != null && - this.PendingPrice.Equals(input.PendingPrice)) - ) && base.Equals(input) && - ( - this.PriceCode == input.PriceCode || - (this.PriceCode != null && - this.PriceCode.Equals(input.PriceCode)) - ) && base.Equals(input) && - ( - this.PriceType == input.PriceType || - (this.PriceType != null && - this.PriceType.Equals(input.PriceType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.SourcePrice == input.SourcePrice || - (this.SourcePrice != null && - this.SourcePrice.Equals(input.SourcePrice)) - ) && base.Equals(input) && - ( - this.Tax == input.Tax || - (this.Tax != null && - this.Tax.Equals(input.Tax)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="SourcePrice", EmitDefaultValue=false)] + public DecimalValue SourcePrice { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakQty != null) - hashCode = hashCode * 59 + this.BreakQty.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineID != null) - hashCode = hashCode * 59 + this.LineID.GetHashCode(); - if (this.PendingPrice != null) - hashCode = hashCode * 59 + this.PendingPrice.GetHashCode(); - if (this.PriceCode != null) - hashCode = hashCode * 59 + this.PriceCode.GetHashCode(); - if (this.PriceType != null) - hashCode = hashCode * 59 + this.PriceType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.SourcePrice != null) - hashCode = hashCode * 59 + this.SourcePrice.GetHashCode(); - if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Tax", EmitDefaultValue=false)] + public StringValue Tax { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Salesperson.cs b/Acumatica.Default_17.200.001/Model/Salesperson.cs index 3f801f72..ac8bd09d 100644 --- a/Acumatica.Default_17.200.001/Model/Salesperson.cs +++ b/Acumatica.Default_17.200.001/Model/Salesperson.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Salesperson - /// - [DataContract] - public partial class Salesperson : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// defaultCommission. - /// isActive. - /// lastModifiedDateTime. - /// name. - /// salespersonID. - /// salesSubaccount. - public Salesperson(DateTimeValue createdDateTime = default(DateTimeValue), DecimalValue defaultCommission = default(DecimalValue), BooleanValue isActive = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue name = default(StringValue), StringValue salespersonID = default(StringValue), StringValue salesSubaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.DefaultCommission = defaultCommission; - this.IsActive = isActive; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Name = name; - this.SalespersonID = salespersonID; - this.SalesSubaccount = salesSubaccount; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets DefaultCommission - /// - [DataMember(Name="DefaultCommission", EmitDefaultValue=false)] - public DecimalValue DefaultCommission { get; set; } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="IsActive", EmitDefaultValue=false)] - public BooleanValue IsActive { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } + [DataContract] + public partial class Salesperson : Entity + { - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Salesperson {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" DefaultCommission: ").Append(DefaultCommission).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="DefaultCommission", EmitDefaultValue=false)] + public DecimalValue DefaultCommission { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Salesperson); - } + [DataMember(Name="IsActive", EmitDefaultValue=false)] + public BooleanValue IsActive { get; set; } - /// - /// Returns true if Salesperson instances are equal - /// - /// Instance of Salesperson to be compared - /// Boolean - public bool Equals(Salesperson input) - { - if (input == null) - return false; + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.DefaultCommission == input.DefaultCommission || - (this.DefaultCommission != null && - this.DefaultCommission.Equals(input.DefaultCommission)) - ) && base.Equals(input) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ); - } + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.DefaultCommission != null) - hashCode = hashCode * 59 + this.DefaultCommission.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShipToSettings.cs b/Acumatica.Default_17.200.001/Model/ShipToSettings.cs index 07233eeb..685e652e 100644 --- a/Acumatica.Default_17.200.001/Model/ShipToSettings.cs +++ b/Acumatica.Default_17.200.001/Model/ShipToSettings.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShipToSettings - /// - [DataContract] - public partial class ShipToSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// shipToAddress. - /// shipToAddressOverride. - /// shipToContact. - /// shipToContactOverride. - /// validated. - public ShipToSettings(Address shipToAddress = default(Address), BooleanValue shipToAddressOverride = default(BooleanValue), DocContact shipToContact = default(DocContact), BooleanValue shipToContactOverride = default(BooleanValue), BooleanValue validated = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ShipToAddress = shipToAddress; - this.ShipToAddressOverride = shipToAddressOverride; - this.ShipToContact = shipToContact; - this.ShipToContactOverride = shipToContactOverride; - this.Validated = validated; - } - - /// - /// Gets or Sets ShipToAddress - /// - [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] - public Address ShipToAddress { get; set; } - - /// - /// Gets or Sets ShipToAddressOverride - /// - [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] - public BooleanValue ShipToAddressOverride { get; set; } - - /// - /// Gets or Sets ShipToContact - /// - [DataMember(Name="ShipToContact", EmitDefaultValue=false)] - public DocContact ShipToContact { get; set; } - - /// - /// Gets or Sets ShipToContactOverride - /// - [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] - public BooleanValue ShipToContactOverride { get; set; } - - /// - /// Gets or Sets Validated - /// - [DataMember(Name="Validated", EmitDefaultValue=false)] - public BooleanValue Validated { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipToSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ShipToAddress: ").Append(ShipToAddress).Append("\n"); - sb.Append(" ShipToAddressOverride: ").Append(ShipToAddressOverride).Append("\n"); - sb.Append(" ShipToContact: ").Append(ShipToContact).Append("\n"); - sb.Append(" ShipToContactOverride: ").Append(ShipToContactOverride).Append("\n"); - sb.Append(" Validated: ").Append(Validated).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class ShipToSettings : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipToSettings); - } + [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] + public Address ShipToAddress { get; set; } - /// - /// Returns true if ShipToSettings instances are equal - /// - /// Instance of ShipToSettings to be compared - /// Boolean - public bool Equals(ShipToSettings input) - { - if (input == null) - return false; + [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] + public BooleanValue ShipToAddressOverride { get; set; } - return base.Equals(input) && - ( - this.ShipToAddress == input.ShipToAddress || - (this.ShipToAddress != null && - this.ShipToAddress.Equals(input.ShipToAddress)) - ) && base.Equals(input) && - ( - this.ShipToAddressOverride == input.ShipToAddressOverride || - (this.ShipToAddressOverride != null && - this.ShipToAddressOverride.Equals(input.ShipToAddressOverride)) - ) && base.Equals(input) && - ( - this.ShipToContact == input.ShipToContact || - (this.ShipToContact != null && - this.ShipToContact.Equals(input.ShipToContact)) - ) && base.Equals(input) && - ( - this.ShipToContactOverride == input.ShipToContactOverride || - (this.ShipToContactOverride != null && - this.ShipToContactOverride.Equals(input.ShipToContactOverride)) - ) && base.Equals(input) && - ( - this.Validated == input.Validated || - (this.Validated != null && - this.Validated.Equals(input.Validated)) - ); - } + [DataMember(Name="ShipToContact", EmitDefaultValue=false)] + public DocContact ShipToContact { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ShipToAddress != null) - hashCode = hashCode * 59 + this.ShipToAddress.GetHashCode(); - if (this.ShipToAddressOverride != null) - hashCode = hashCode * 59 + this.ShipToAddressOverride.GetHashCode(); - if (this.ShipToContact != null) - hashCode = hashCode * 59 + this.ShipToContact.GetHashCode(); - if (this.ShipToContactOverride != null) - hashCode = hashCode * 59 + this.ShipToContactOverride.GetHashCode(); - if (this.Validated != null) - hashCode = hashCode * 59 + this.Validated.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] + public BooleanValue ShipToContactOverride { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Validated", EmitDefaultValue=false)] + public BooleanValue Validated { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShipVia.cs b/Acumatica.Default_17.200.001/Model/ShipVia.cs index 243bc840..d5ee2805 100644 --- a/Acumatica.Default_17.200.001/Model/ShipVia.cs +++ b/Acumatica.Default_17.200.001/Model/ShipVia.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShipVia - /// - [DataContract] - public partial class ShipVia : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// calculationMethod. - /// calendar. - /// carrierID. - /// commonCarrier. - /// description. - /// freightExpenseAccount. - /// freightExpenseSubaccount. - /// freightRates. - /// freightSalesAccount. - /// freightSalesSubaccount. - /// packages. - /// taxCategory. - public ShipVia(StringValue calculationMethod = default(StringValue), StringValue calendar = default(StringValue), StringValue carrierID = default(StringValue), BooleanValue commonCarrier = default(BooleanValue), StringValue description = default(StringValue), StringValue freightExpenseAccount = default(StringValue), StringValue freightExpenseSubaccount = default(StringValue), List freightRates = default(List), StringValue freightSalesAccount = default(StringValue), StringValue freightSalesSubaccount = default(StringValue), List packages = default(List), StringValue taxCategory = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CalculationMethod = calculationMethod; - this.Calendar = calendar; - this.CarrierID = carrierID; - this.CommonCarrier = commonCarrier; - this.Description = description; - this.FreightExpenseAccount = freightExpenseAccount; - this.FreightExpenseSubaccount = freightExpenseSubaccount; - this.FreightRates = freightRates; - this.FreightSalesAccount = freightSalesAccount; - this.FreightSalesSubaccount = freightSalesSubaccount; - this.Packages = packages; - this.TaxCategory = taxCategory; - } - - /// - /// Gets or Sets CalculationMethod - /// - [DataMember(Name="CalculationMethod", EmitDefaultValue=false)] - public StringValue CalculationMethod { get; set; } - - /// - /// Gets or Sets Calendar - /// - [DataMember(Name="Calendar", EmitDefaultValue=false)] - public StringValue Calendar { get; set; } - - /// - /// Gets or Sets CarrierID - /// - [DataMember(Name="CarrierID", EmitDefaultValue=false)] - public StringValue CarrierID { get; set; } - - /// - /// Gets or Sets CommonCarrier - /// - [DataMember(Name="CommonCarrier", EmitDefaultValue=false)] - public BooleanValue CommonCarrier { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets FreightExpenseAccount - /// - [DataMember(Name="FreightExpenseAccount", EmitDefaultValue=false)] - public StringValue FreightExpenseAccount { get; set; } + [DataContract] + public partial class ShipVia : Entity + { - /// - /// Gets or Sets FreightExpenseSubaccount - /// - [DataMember(Name="FreightExpenseSubaccount", EmitDefaultValue=false)] - public StringValue FreightExpenseSubaccount { get; set; } + [DataMember(Name="CalculationMethod", EmitDefaultValue=false)] + public StringValue CalculationMethod { get; set; } - /// - /// Gets or Sets FreightRates - /// - [DataMember(Name="FreightRates", EmitDefaultValue=false)] - public List FreightRates { get; set; } + [DataMember(Name="Calendar", EmitDefaultValue=false)] + public StringValue Calendar { get; set; } - /// - /// Gets or Sets FreightSalesAccount - /// - [DataMember(Name="FreightSalesAccount", EmitDefaultValue=false)] - public StringValue FreightSalesAccount { get; set; } + [DataMember(Name="CarrierID", EmitDefaultValue=false)] + public StringValue CarrierID { get; set; } - /// - /// Gets or Sets FreightSalesSubaccount - /// - [DataMember(Name="FreightSalesSubaccount", EmitDefaultValue=false)] - public StringValue FreightSalesSubaccount { get; set; } + [DataMember(Name="CommonCarrier", EmitDefaultValue=false)] + public BooleanValue CommonCarrier { get; set; } - /// - /// Gets or Sets Packages - /// - [DataMember(Name="Packages", EmitDefaultValue=false)] - public List Packages { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } + [DataMember(Name="FreightExpenseAccount", EmitDefaultValue=false)] + public StringValue FreightExpenseAccount { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipVia {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CalculationMethod: ").Append(CalculationMethod).Append("\n"); - sb.Append(" Calendar: ").Append(Calendar).Append("\n"); - sb.Append(" CarrierID: ").Append(CarrierID).Append("\n"); - sb.Append(" CommonCarrier: ").Append(CommonCarrier).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" FreightExpenseAccount: ").Append(FreightExpenseAccount).Append("\n"); - sb.Append(" FreightExpenseSubaccount: ").Append(FreightExpenseSubaccount).Append("\n"); - sb.Append(" FreightRates: ").Append(FreightRates).Append("\n"); - sb.Append(" FreightSalesAccount: ").Append(FreightSalesAccount).Append("\n"); - sb.Append(" FreightSalesSubaccount: ").Append(FreightSalesSubaccount).Append("\n"); - sb.Append(" Packages: ").Append(Packages).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="FreightExpenseSubaccount", EmitDefaultValue=false)] + public StringValue FreightExpenseSubaccount { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipVia); - } + [DataMember(Name="FreightRates", EmitDefaultValue=false)] + public List FreightRates { get; set; } - /// - /// Returns true if ShipVia instances are equal - /// - /// Instance of ShipVia to be compared - /// Boolean - public bool Equals(ShipVia input) - { - if (input == null) - return false; + [DataMember(Name="FreightSalesAccount", EmitDefaultValue=false)] + public StringValue FreightSalesAccount { get; set; } - return base.Equals(input) && - ( - this.CalculationMethod == input.CalculationMethod || - (this.CalculationMethod != null && - this.CalculationMethod.Equals(input.CalculationMethod)) - ) && base.Equals(input) && - ( - this.Calendar == input.Calendar || - (this.Calendar != null && - this.Calendar.Equals(input.Calendar)) - ) && base.Equals(input) && - ( - this.CarrierID == input.CarrierID || - (this.CarrierID != null && - this.CarrierID.Equals(input.CarrierID)) - ) && base.Equals(input) && - ( - this.CommonCarrier == input.CommonCarrier || - (this.CommonCarrier != null && - this.CommonCarrier.Equals(input.CommonCarrier)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.FreightExpenseAccount == input.FreightExpenseAccount || - (this.FreightExpenseAccount != null && - this.FreightExpenseAccount.Equals(input.FreightExpenseAccount)) - ) && base.Equals(input) && - ( - this.FreightExpenseSubaccount == input.FreightExpenseSubaccount || - (this.FreightExpenseSubaccount != null && - this.FreightExpenseSubaccount.Equals(input.FreightExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.FreightRates == input.FreightRates || - this.FreightRates != null && - this.FreightRates.SequenceEqual(input.FreightRates) - ) && base.Equals(input) && - ( - this.FreightSalesAccount == input.FreightSalesAccount || - (this.FreightSalesAccount != null && - this.FreightSalesAccount.Equals(input.FreightSalesAccount)) - ) && base.Equals(input) && - ( - this.FreightSalesSubaccount == input.FreightSalesSubaccount || - (this.FreightSalesSubaccount != null && - this.FreightSalesSubaccount.Equals(input.FreightSalesSubaccount)) - ) && base.Equals(input) && - ( - this.Packages == input.Packages || - this.Packages != null && - this.Packages.SequenceEqual(input.Packages) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ); - } + [DataMember(Name="FreightSalesSubaccount", EmitDefaultValue=false)] + public StringValue FreightSalesSubaccount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CalculationMethod != null) - hashCode = hashCode * 59 + this.CalculationMethod.GetHashCode(); - if (this.Calendar != null) - hashCode = hashCode * 59 + this.Calendar.GetHashCode(); - if (this.CarrierID != null) - hashCode = hashCode * 59 + this.CarrierID.GetHashCode(); - if (this.CommonCarrier != null) - hashCode = hashCode * 59 + this.CommonCarrier.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.FreightExpenseAccount != null) - hashCode = hashCode * 59 + this.FreightExpenseAccount.GetHashCode(); - if (this.FreightExpenseSubaccount != null) - hashCode = hashCode * 59 + this.FreightExpenseSubaccount.GetHashCode(); - if (this.FreightRates != null) - hashCode = hashCode * 59 + this.FreightRates.GetHashCode(); - if (this.FreightSalesAccount != null) - hashCode = hashCode * 59 + this.FreightSalesAccount.GetHashCode(); - if (this.FreightSalesSubaccount != null) - hashCode = hashCode * 59 + this.FreightSalesSubaccount.GetHashCode(); - if (this.Packages != null) - hashCode = hashCode * 59 + this.Packages.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Packages", EmitDefaultValue=false)] + public List Packages { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShipViaFreightRate.cs b/Acumatica.Default_17.200.001/Model/ShipViaFreightRate.cs index 46662591..3c4bd8a5 100644 --- a/Acumatica.Default_17.200.001/Model/ShipViaFreightRate.cs +++ b/Acumatica.Default_17.200.001/Model/ShipViaFreightRate.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShipViaFreightRate - /// - [DataContract] - public partial class ShipViaFreightRate : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// lineNbr. - /// rate. - /// volume. - /// weight. - /// zoneID. - public ShipViaFreightRate(IntValue lineNbr = default(IntValue), DecimalValue rate = default(DecimalValue), DecimalValue volume = default(DecimalValue), DecimalValue weight = default(DecimalValue), StringValue zoneID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.LineNbr = lineNbr; - this.Rate = rate; - this.Volume = volume; - this.Weight = weight; - this.ZoneID = zoneID; - } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Rate - /// - [DataMember(Name="Rate", EmitDefaultValue=false)] - public DecimalValue Rate { get; set; } - - /// - /// Gets or Sets Volume - /// - [DataMember(Name="Volume", EmitDefaultValue=false)] - public DecimalValue Volume { get; set; } - - /// - /// Gets or Sets Weight - /// - [DataMember(Name="Weight", EmitDefaultValue=false)] - public DecimalValue Weight { get; set; } - - /// - /// Gets or Sets ZoneID - /// - [DataMember(Name="ZoneID", EmitDefaultValue=false)] - public StringValue ZoneID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipViaFreightRate {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Rate: ").Append(Rate).Append("\n"); - sb.Append(" Volume: ").Append(Volume).Append("\n"); - sb.Append(" Weight: ").Append(Weight).Append("\n"); - sb.Append(" ZoneID: ").Append(ZoneID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class ShipViaFreightRate : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipViaFreightRate); - } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Returns true if ShipViaFreightRate instances are equal - /// - /// Instance of ShipViaFreightRate to be compared - /// Boolean - public bool Equals(ShipViaFreightRate input) - { - if (input == null) - return false; + [DataMember(Name="Rate", EmitDefaultValue=false)] + public DecimalValue Rate { get; set; } - return base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Rate == input.Rate || - (this.Rate != null && - this.Rate.Equals(input.Rate)) - ) && base.Equals(input) && - ( - this.Volume == input.Volume || - (this.Volume != null && - this.Volume.Equals(input.Volume)) - ) && base.Equals(input) && - ( - this.Weight == input.Weight || - (this.Weight != null && - this.Weight.Equals(input.Weight)) - ) && base.Equals(input) && - ( - this.ZoneID == input.ZoneID || - (this.ZoneID != null && - this.ZoneID.Equals(input.ZoneID)) - ); - } + [DataMember(Name="Volume", EmitDefaultValue=false)] + public DecimalValue Volume { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Rate != null) - hashCode = hashCode * 59 + this.Rate.GetHashCode(); - if (this.Volume != null) - hashCode = hashCode * 59 + this.Volume.GetHashCode(); - if (this.Weight != null) - hashCode = hashCode * 59 + this.Weight.GetHashCode(); - if (this.ZoneID != null) - hashCode = hashCode * 59 + this.ZoneID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Weight", EmitDefaultValue=false)] + public DecimalValue Weight { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ZoneID", EmitDefaultValue=false)] + public StringValue ZoneID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Shipment.cs b/Acumatica.Default_17.200.001/Model/Shipment.cs index f258d463..16e695ab 100644 --- a/Acumatica.Default_17.200.001/Model/Shipment.cs +++ b/Acumatica.Default_17.200.001/Model/Shipment.cs @@ -1,798 +1,141 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Shipment - /// - [DataContract] - public partial class Shipment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// baseCurrencyID. - /// controlQty. - /// createdDateTime. - /// currencyID. - /// currencyRate. - /// currencyRateTypeID. - /// currencyViewState. - /// customerID. - /// details. - /// effectiveDate. - /// fOBPoint. - /// freightAmount. - /// freightCost. - /// freightCurrency. - /// groundCollect. - /// hold. - /// insurance. - /// lastModifiedDateTime. - /// locationID. - /// operation. - /// orders. - /// owner. - /// packageCount. - /// packages. - /// packageWeight. - /// reciprocalRate. - /// residentialDelivery. - /// saturdayDelivery. - /// shipmentDate. - /// shipmentNbr. - /// shippedQty. - /// shippedVolume. - /// shippedWeight. - /// shippingSettings. - /// shippingTerms. - /// shippingZoneID. - /// shipVia. - /// status. - /// toWarehouseID. - /// type. - /// useCustomersAccount. - /// warehouseID. - /// workgroupID. - public Shipment(StringValue baseCurrencyID = default(StringValue), DecimalValue controlQty = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), DecimalValue currencyRate = default(DecimalValue), StringValue currencyRateTypeID = default(StringValue), BooleanValue currencyViewState = default(BooleanValue), StringValue customerID = default(StringValue), List details = default(List), DateTimeValue effectiveDate = default(DateTimeValue), StringValue fOBPoint = default(StringValue), DecimalValue freightAmount = default(DecimalValue), DecimalValue freightCost = default(DecimalValue), StringValue freightCurrency = default(StringValue), BooleanValue groundCollect = default(BooleanValue), BooleanValue hold = default(BooleanValue), BooleanValue insurance = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue locationID = default(StringValue), StringValue operation = default(StringValue), List orders = default(List), StringValue owner = default(StringValue), IntValue packageCount = default(IntValue), List packages = default(List), DecimalValue packageWeight = default(DecimalValue), DecimalValue reciprocalRate = default(DecimalValue), BooleanValue residentialDelivery = default(BooleanValue), BooleanValue saturdayDelivery = default(BooleanValue), DateTimeValue shipmentDate = default(DateTimeValue), StringValue shipmentNbr = default(StringValue), DecimalValue shippedQty = default(DecimalValue), DecimalValue shippedVolume = default(DecimalValue), DecimalValue shippedWeight = default(DecimalValue), ShipToSettings shippingSettings = default(ShipToSettings), StringValue shippingTerms = default(StringValue), StringValue shippingZoneID = default(StringValue), StringValue shipVia = default(StringValue), StringValue status = default(StringValue), StringValue toWarehouseID = default(StringValue), StringValue type = default(StringValue), BooleanValue useCustomersAccount = default(BooleanValue), StringValue warehouseID = default(StringValue), StringValue workgroupID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BaseCurrencyID = baseCurrencyID; - this.ControlQty = controlQty; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.CurrencyRate = currencyRate; - this.CurrencyRateTypeID = currencyRateTypeID; - this.CurrencyViewState = currencyViewState; - this.CustomerID = customerID; - this.Details = details; - this.EffectiveDate = effectiveDate; - this.FOBPoint = fOBPoint; - this.FreightAmount = freightAmount; - this.FreightCost = freightCost; - this.FreightCurrency = freightCurrency; - this.GroundCollect = groundCollect; - this.Hold = hold; - this.Insurance = insurance; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LocationID = locationID; - this.Operation = operation; - this.Orders = orders; - this.Owner = owner; - this.PackageCount = packageCount; - this.Packages = packages; - this.PackageWeight = packageWeight; - this.ReciprocalRate = reciprocalRate; - this.ResidentialDelivery = residentialDelivery; - this.SaturdayDelivery = saturdayDelivery; - this.ShipmentDate = shipmentDate; - this.ShipmentNbr = shipmentNbr; - this.ShippedQty = shippedQty; - this.ShippedVolume = shippedVolume; - this.ShippedWeight = shippedWeight; - this.ShippingSettings = shippingSettings; - this.ShippingTerms = shippingTerms; - this.ShippingZoneID = shippingZoneID; - this.ShipVia = shipVia; - this.Status = status; - this.ToWarehouseID = toWarehouseID; - this.Type = type; - this.UseCustomersAccount = useCustomersAccount; - this.WarehouseID = warehouseID; - this.WorkgroupID = workgroupID; - } - - /// - /// Gets or Sets BaseCurrencyID - /// - [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] - public StringValue BaseCurrencyID { get; set; } - - /// - /// Gets or Sets ControlQty - /// - [DataMember(Name="ControlQty", EmitDefaultValue=false)] - public DecimalValue ControlQty { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRate - /// - [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] - public DecimalValue CurrencyRate { get; set; } - - /// - /// Gets or Sets CurrencyRateTypeID - /// - [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] - public StringValue CurrencyRateTypeID { get; set; } - - /// - /// Gets or Sets CurrencyViewState - /// - [DataMember(Name="CurrencyViewState", EmitDefaultValue=false)] - public BooleanValue CurrencyViewState { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets FreightAmount - /// - [DataMember(Name="FreightAmount", EmitDefaultValue=false)] - public DecimalValue FreightAmount { get; set; } - - /// - /// Gets or Sets FreightCost - /// - [DataMember(Name="FreightCost", EmitDefaultValue=false)] - public DecimalValue FreightCost { get; set; } - - /// - /// Gets or Sets FreightCurrency - /// - [DataMember(Name="FreightCurrency", EmitDefaultValue=false)] - public StringValue FreightCurrency { get; set; } - - /// - /// Gets or Sets GroundCollect - /// - [DataMember(Name="GroundCollect", EmitDefaultValue=false)] - public BooleanValue GroundCollect { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets Insurance - /// - [DataMember(Name="Insurance", EmitDefaultValue=false)] - public BooleanValue Insurance { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets Operation - /// - [DataMember(Name="Operation", EmitDefaultValue=false)] - public StringValue Operation { get; set; } - - /// - /// Gets or Sets Orders - /// - [DataMember(Name="Orders", EmitDefaultValue=false)] - public List Orders { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets PackageCount - /// - [DataMember(Name="PackageCount", EmitDefaultValue=false)] - public IntValue PackageCount { get; set; } - - /// - /// Gets or Sets Packages - /// - [DataMember(Name="Packages", EmitDefaultValue=false)] - public List Packages { get; set; } - - /// - /// Gets or Sets PackageWeight - /// - [DataMember(Name="PackageWeight", EmitDefaultValue=false)] - public DecimalValue PackageWeight { get; set; } - - /// - /// Gets or Sets ReciprocalRate - /// - [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] - public DecimalValue ReciprocalRate { get; set; } - - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } - - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } - - /// - /// Gets or Sets ShipmentDate - /// - [DataMember(Name="ShipmentDate", EmitDefaultValue=false)] - public DateTimeValue ShipmentDate { get; set; } - - /// - /// Gets or Sets ShipmentNbr - /// - [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] - public StringValue ShipmentNbr { get; set; } - - /// - /// Gets or Sets ShippedQty - /// - [DataMember(Name="ShippedQty", EmitDefaultValue=false)] - public DecimalValue ShippedQty { get; set; } - - /// - /// Gets or Sets ShippedVolume - /// - [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] - public DecimalValue ShippedVolume { get; set; } - - /// - /// Gets or Sets ShippedWeight - /// - [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] - public DecimalValue ShippedWeight { get; set; } - - /// - /// Gets or Sets ShippingSettings - /// - [DataMember(Name="ShippingSettings", EmitDefaultValue=false)] - public ShipToSettings ShippingSettings { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShippingZoneID - /// - [DataMember(Name="ShippingZoneID", EmitDefaultValue=false)] - public StringValue ShippingZoneID { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets ToWarehouseID - /// - [DataMember(Name="ToWarehouseID", EmitDefaultValue=false)] - public StringValue ToWarehouseID { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UseCustomersAccount - /// - [DataMember(Name="UseCustomersAccount", EmitDefaultValue=false)] - public BooleanValue UseCustomersAccount { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Gets or Sets WorkgroupID - /// - [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] - public StringValue WorkgroupID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Shipment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BaseCurrencyID: ").Append(BaseCurrencyID).Append("\n"); - sb.Append(" ControlQty: ").Append(ControlQty).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n"); - sb.Append(" CurrencyRateTypeID: ").Append(CurrencyRateTypeID).Append("\n"); - sb.Append(" CurrencyViewState: ").Append(CurrencyViewState).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" FreightAmount: ").Append(FreightAmount).Append("\n"); - sb.Append(" FreightCost: ").Append(FreightCost).Append("\n"); - sb.Append(" FreightCurrency: ").Append(FreightCurrency).Append("\n"); - sb.Append(" GroundCollect: ").Append(GroundCollect).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" Insurance: ").Append(Insurance).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" Operation: ").Append(Operation).Append("\n"); - sb.Append(" Orders: ").Append(Orders).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PackageCount: ").Append(PackageCount).Append("\n"); - sb.Append(" Packages: ").Append(Packages).Append("\n"); - sb.Append(" PackageWeight: ").Append(PackageWeight).Append("\n"); - sb.Append(" ReciprocalRate: ").Append(ReciprocalRate).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" ShipmentDate: ").Append(ShipmentDate).Append("\n"); - sb.Append(" ShipmentNbr: ").Append(ShipmentNbr).Append("\n"); - sb.Append(" ShippedQty: ").Append(ShippedQty).Append("\n"); - sb.Append(" ShippedVolume: ").Append(ShippedVolume).Append("\n"); - sb.Append(" ShippedWeight: ").Append(ShippedWeight).Append("\n"); - sb.Append(" ShippingSettings: ").Append(ShippingSettings).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZoneID: ").Append(ShippingZoneID).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" ToWarehouseID: ").Append(ToWarehouseID).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UseCustomersAccount: ").Append(UseCustomersAccount).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append(" WorkgroupID: ").Append(WorkgroupID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Shipment); - } - - /// - /// Returns true if Shipment instances are equal - /// - /// Instance of Shipment to be compared - /// Boolean - public bool Equals(Shipment input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BaseCurrencyID == input.BaseCurrencyID || - (this.BaseCurrencyID != null && - this.BaseCurrencyID.Equals(input.BaseCurrencyID)) - ) && base.Equals(input) && - ( - this.ControlQty == input.ControlQty || - (this.ControlQty != null && - this.ControlQty.Equals(input.ControlQty)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRate == input.CurrencyRate || - (this.CurrencyRate != null && - this.CurrencyRate.Equals(input.CurrencyRate)) - ) && base.Equals(input) && - ( - this.CurrencyRateTypeID == input.CurrencyRateTypeID || - (this.CurrencyRateTypeID != null && - this.CurrencyRateTypeID.Equals(input.CurrencyRateTypeID)) - ) && base.Equals(input) && - ( - this.CurrencyViewState == input.CurrencyViewState || - (this.CurrencyViewState != null && - this.CurrencyViewState.Equals(input.CurrencyViewState)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.FreightAmount == input.FreightAmount || - (this.FreightAmount != null && - this.FreightAmount.Equals(input.FreightAmount)) - ) && base.Equals(input) && - ( - this.FreightCost == input.FreightCost || - (this.FreightCost != null && - this.FreightCost.Equals(input.FreightCost)) - ) && base.Equals(input) && - ( - this.FreightCurrency == input.FreightCurrency || - (this.FreightCurrency != null && - this.FreightCurrency.Equals(input.FreightCurrency)) - ) && base.Equals(input) && - ( - this.GroundCollect == input.GroundCollect || - (this.GroundCollect != null && - this.GroundCollect.Equals(input.GroundCollect)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.Insurance == input.Insurance || - (this.Insurance != null && - this.Insurance.Equals(input.Insurance)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.Operation == input.Operation || - (this.Operation != null && - this.Operation.Equals(input.Operation)) - ) && base.Equals(input) && - ( - this.Orders == input.Orders || - this.Orders != null && - this.Orders.SequenceEqual(input.Orders) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PackageCount == input.PackageCount || - (this.PackageCount != null && - this.PackageCount.Equals(input.PackageCount)) - ) && base.Equals(input) && - ( - this.Packages == input.Packages || - this.Packages != null && - this.Packages.SequenceEqual(input.Packages) - ) && base.Equals(input) && - ( - this.PackageWeight == input.PackageWeight || - (this.PackageWeight != null && - this.PackageWeight.Equals(input.PackageWeight)) - ) && base.Equals(input) && - ( - this.ReciprocalRate == input.ReciprocalRate || - (this.ReciprocalRate != null && - this.ReciprocalRate.Equals(input.ReciprocalRate)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.ShipmentDate == input.ShipmentDate || - (this.ShipmentDate != null && - this.ShipmentDate.Equals(input.ShipmentDate)) - ) && base.Equals(input) && - ( - this.ShipmentNbr == input.ShipmentNbr || - (this.ShipmentNbr != null && - this.ShipmentNbr.Equals(input.ShipmentNbr)) - ) && base.Equals(input) && - ( - this.ShippedQty == input.ShippedQty || - (this.ShippedQty != null && - this.ShippedQty.Equals(input.ShippedQty)) - ) && base.Equals(input) && - ( - this.ShippedVolume == input.ShippedVolume || - (this.ShippedVolume != null && - this.ShippedVolume.Equals(input.ShippedVolume)) - ) && base.Equals(input) && - ( - this.ShippedWeight == input.ShippedWeight || - (this.ShippedWeight != null && - this.ShippedWeight.Equals(input.ShippedWeight)) - ) && base.Equals(input) && - ( - this.ShippingSettings == input.ShippingSettings || - (this.ShippingSettings != null && - this.ShippingSettings.Equals(input.ShippingSettings)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZoneID == input.ShippingZoneID || - (this.ShippingZoneID != null && - this.ShippingZoneID.Equals(input.ShippingZoneID)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.ToWarehouseID == input.ToWarehouseID || - (this.ToWarehouseID != null && - this.ToWarehouseID.Equals(input.ToWarehouseID)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UseCustomersAccount == input.UseCustomersAccount || - (this.UseCustomersAccount != null && - this.UseCustomersAccount.Equals(input.UseCustomersAccount)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ) && base.Equals(input) && - ( - this.WorkgroupID == input.WorkgroupID || - (this.WorkgroupID != null && - this.WorkgroupID.Equals(input.WorkgroupID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BaseCurrencyID != null) - hashCode = hashCode * 59 + this.BaseCurrencyID.GetHashCode(); - if (this.ControlQty != null) - hashCode = hashCode * 59 + this.ControlQty.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRate != null) - hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode(); - if (this.CurrencyRateTypeID != null) - hashCode = hashCode * 59 + this.CurrencyRateTypeID.GetHashCode(); - if (this.CurrencyViewState != null) - hashCode = hashCode * 59 + this.CurrencyViewState.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.FreightAmount != null) - hashCode = hashCode * 59 + this.FreightAmount.GetHashCode(); - if (this.FreightCost != null) - hashCode = hashCode * 59 + this.FreightCost.GetHashCode(); - if (this.FreightCurrency != null) - hashCode = hashCode * 59 + this.FreightCurrency.GetHashCode(); - if (this.GroundCollect != null) - hashCode = hashCode * 59 + this.GroundCollect.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.Insurance != null) - hashCode = hashCode * 59 + this.Insurance.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.Operation != null) - hashCode = hashCode * 59 + this.Operation.GetHashCode(); - if (this.Orders != null) - hashCode = hashCode * 59 + this.Orders.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PackageCount != null) - hashCode = hashCode * 59 + this.PackageCount.GetHashCode(); - if (this.Packages != null) - hashCode = hashCode * 59 + this.Packages.GetHashCode(); - if (this.PackageWeight != null) - hashCode = hashCode * 59 + this.PackageWeight.GetHashCode(); - if (this.ReciprocalRate != null) - hashCode = hashCode * 59 + this.ReciprocalRate.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.ShipmentDate != null) - hashCode = hashCode * 59 + this.ShipmentDate.GetHashCode(); - if (this.ShipmentNbr != null) - hashCode = hashCode * 59 + this.ShipmentNbr.GetHashCode(); - if (this.ShippedQty != null) - hashCode = hashCode * 59 + this.ShippedQty.GetHashCode(); - if (this.ShippedVolume != null) - hashCode = hashCode * 59 + this.ShippedVolume.GetHashCode(); - if (this.ShippedWeight != null) - hashCode = hashCode * 59 + this.ShippedWeight.GetHashCode(); - if (this.ShippingSettings != null) - hashCode = hashCode * 59 + this.ShippingSettings.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZoneID != null) - hashCode = hashCode * 59 + this.ShippingZoneID.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.ToWarehouseID != null) - hashCode = hashCode * 59 + this.ToWarehouseID.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UseCustomersAccount != null) - hashCode = hashCode * 59 + this.UseCustomersAccount.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - if (this.WorkgroupID != null) - hashCode = hashCode * 59 + this.WorkgroupID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class Shipment : Entity + { + + [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] + public StringValue BaseCurrencyID { get; set; } + + [DataMember(Name="ControlQty", EmitDefaultValue=false)] + public DecimalValue ControlQty { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] + public DecimalValue CurrencyRate { get; set; } + + [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] + public StringValue CurrencyRateTypeID { get; set; } + + [DataMember(Name="CurrencyViewState", EmitDefaultValue=false)] + public BooleanValue CurrencyViewState { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="FreightAmount", EmitDefaultValue=false)] + public DecimalValue FreightAmount { get; set; } + + [DataMember(Name="FreightCost", EmitDefaultValue=false)] + public DecimalValue FreightCost { get; set; } + + [DataMember(Name="FreightCurrency", EmitDefaultValue=false)] + public StringValue FreightCurrency { get; set; } + + [DataMember(Name="GroundCollect", EmitDefaultValue=false)] + public BooleanValue GroundCollect { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="Insurance", EmitDefaultValue=false)] + public BooleanValue Insurance { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="Operation", EmitDefaultValue=false)] + public StringValue Operation { get; set; } + + [DataMember(Name="Orders", EmitDefaultValue=false)] + public List Orders { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="PackageCount", EmitDefaultValue=false)] + public IntValue PackageCount { get; set; } + + [DataMember(Name="Packages", EmitDefaultValue=false)] + public List Packages { get; set; } + + [DataMember(Name="PackageWeight", EmitDefaultValue=false)] + public DecimalValue PackageWeight { get; set; } + + [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] + public DecimalValue ReciprocalRate { get; set; } + + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } + + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } + + [DataMember(Name="ShipmentDate", EmitDefaultValue=false)] + public DateTimeValue ShipmentDate { get; set; } + + [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] + public StringValue ShipmentNbr { get; set; } + + [DataMember(Name="ShippedQty", EmitDefaultValue=false)] + public DecimalValue ShippedQty { get; set; } + + [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] + public DecimalValue ShippedVolume { get; set; } + + [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] + public DecimalValue ShippedWeight { get; set; } + + [DataMember(Name="ShippingSettings", EmitDefaultValue=false)] + public ShipToSettings ShippingSettings { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShippingZoneID", EmitDefaultValue=false)] + public StringValue ShippingZoneID { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="ToWarehouseID", EmitDefaultValue=false)] + public StringValue ToWarehouseID { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UseCustomersAccount", EmitDefaultValue=false)] + public BooleanValue UseCustomersAccount { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] + public StringValue WorkgroupID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShipmentDetail.cs b/Acumatica.Default_17.200.001/Model/ShipmentDetail.cs index 6a965710..f32d0c24 100644 --- a/Acumatica.Default_17.200.001/Model/ShipmentDetail.cs +++ b/Acumatica.Default_17.200.001/Model/ShipmentDetail.cs @@ -1,414 +1,69 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShipmentDetail - /// - [DataContract] - public partial class ShipmentDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocations. - /// description. - /// expirationDate. - /// freeItem. - /// inventoryID. - /// lineNbr. - /// locationID. - /// lotSerialNbr. - /// openQty. - /// orderedQty. - /// orderLineNbr. - /// orderNbr. - /// orderType. - /// originalQty. - /// reasonCode. - /// shippedQty. - /// subitem. - /// uOM. - /// warehouseID. - public ShipmentDetail(List allocations = default(List), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), BooleanValue freeItem = default(BooleanValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue openQty = default(DecimalValue), DecimalValue orderedQty = default(DecimalValue), IntValue orderLineNbr = default(IntValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), DecimalValue originalQty = default(DecimalValue), StringValue reasonCode = default(StringValue), DecimalValue shippedQty = default(DecimalValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocations = allocations; - this.Description = description; - this.ExpirationDate = expirationDate; - this.FreeItem = freeItem; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.OpenQty = openQty; - this.OrderedQty = orderedQty; - this.OrderLineNbr = orderLineNbr; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.OriginalQty = originalQty; - this.ReasonCode = reasonCode; - this.ShippedQty = shippedQty; - this.Subitem = subitem; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public List Allocations { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public BooleanValue FreeItem { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } + [DataContract] + public partial class ShipmentDetail : Entity + { - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets OpenQty - /// - [DataMember(Name="OpenQty", EmitDefaultValue=false)] - public DecimalValue OpenQty { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets OrderedQty - /// - [DataMember(Name="OrderedQty", EmitDefaultValue=false)] - public DecimalValue OrderedQty { get; set; } + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public BooleanValue FreeItem { get; set; } - /// - /// Gets or Sets OrderLineNbr - /// - [DataMember(Name="OrderLineNbr", EmitDefaultValue=false)] - public IntValue OrderLineNbr { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Gets or Sets OriginalQty - /// - [DataMember(Name="OriginalQty", EmitDefaultValue=false)] - public DecimalValue OriginalQty { get; set; } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } + [DataMember(Name="OpenQty", EmitDefaultValue=false)] + public DecimalValue OpenQty { get; set; } - /// - /// Gets or Sets ShippedQty - /// - [DataMember(Name="ShippedQty", EmitDefaultValue=false)] - public DecimalValue ShippedQty { get; set; } + [DataMember(Name="OrderedQty", EmitDefaultValue=false)] + public DecimalValue OrderedQty { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="OrderLineNbr", EmitDefaultValue=false)] + public IntValue OrderLineNbr { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipmentDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" OpenQty: ").Append(OpenQty).Append("\n"); - sb.Append(" OrderedQty: ").Append(OrderedQty).Append("\n"); - sb.Append(" OrderLineNbr: ").Append(OrderLineNbr).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" OriginalQty: ").Append(OriginalQty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" ShippedQty: ").Append(ShippedQty).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="OriginalQty", EmitDefaultValue=false)] + public DecimalValue OriginalQty { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipmentDetail); - } + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } - /// - /// Returns true if ShipmentDetail instances are equal - /// - /// Instance of ShipmentDetail to be compared - /// Boolean - public bool Equals(ShipmentDetail input) - { - if (input == null) - return false; + [DataMember(Name="ShippedQty", EmitDefaultValue=false)] + public DecimalValue ShippedQty { get; set; } - return base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.OpenQty == input.OpenQty || - (this.OpenQty != null && - this.OpenQty.Equals(input.OpenQty)) - ) && base.Equals(input) && - ( - this.OrderedQty == input.OrderedQty || - (this.OrderedQty != null && - this.OrderedQty.Equals(input.OrderedQty)) - ) && base.Equals(input) && - ( - this.OrderLineNbr == input.OrderLineNbr || - (this.OrderLineNbr != null && - this.OrderLineNbr.Equals(input.OrderLineNbr)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.OriginalQty == input.OriginalQty || - (this.OriginalQty != null && - this.OriginalQty.Equals(input.OriginalQty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.ShippedQty == input.ShippedQty || - (this.ShippedQty != null && - this.ShippedQty.Equals(input.ShippedQty)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.OpenQty != null) - hashCode = hashCode * 59 + this.OpenQty.GetHashCode(); - if (this.OrderedQty != null) - hashCode = hashCode * 59 + this.OrderedQty.GetHashCode(); - if (this.OrderLineNbr != null) - hashCode = hashCode * 59 + this.OrderLineNbr.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.OriginalQty != null) - hashCode = hashCode * 59 + this.OriginalQty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.ShippedQty != null) - hashCode = hashCode * 59 + this.ShippedQty.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShipmentDetailAllocation.cs b/Acumatica.Default_17.200.001/Model/ShipmentDetailAllocation.cs index facc0cef..f991f85e 100644 --- a/Acumatica.Default_17.200.001/Model/ShipmentDetailAllocation.cs +++ b/Acumatica.Default_17.200.001/Model/ShipmentDetailAllocation.cs @@ -1,270 +1,42 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShipmentDetailAllocation - /// - [DataContract] - public partial class ShipmentDetailAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// expirationDate. - /// inventoryID. - /// locationID. - /// lotSerialNbr. - /// orderNbr. - /// orderType. - /// qty. - /// subitem. - /// uOM. - public ShipmentDetailAllocation(StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.Qty = qty; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } + [DataContract] + public partial class ShipmentDetailAllocation : Entity + { - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipmentDetailAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipmentDetailAllocation); - } + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } - /// - /// Returns true if ShipmentDetailAllocation instances are equal - /// - /// Instance of ShipmentDetailAllocation to be compared - /// Boolean - public bool Equals(ShipmentDetailAllocation input) - { - if (input == null) - return false; + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShipmentOrderDetail.cs b/Acumatica.Default_17.200.001/Model/ShipmentOrderDetail.cs index 0056103f..8fc0d22c 100644 --- a/Acumatica.Default_17.200.001/Model/ShipmentOrderDetail.cs +++ b/Acumatica.Default_17.200.001/Model/ShipmentOrderDetail.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShipmentOrderDetail - /// - [DataContract] - public partial class ShipmentOrderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// inventoryDocType. - /// inventoryRefNbr. - /// invoiceNbr. - /// invoiceType. - /// orderNbr. - /// orderType. - /// shipmentNbr. - /// shipmentType. - /// shippedQty. - /// shippedVolume. - /// shippedWeight. - public ShipmentOrderDetail(StringValue inventoryDocType = default(StringValue), StringValue inventoryRefNbr = default(StringValue), StringValue invoiceNbr = default(StringValue), StringValue invoiceType = default(StringValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), StringValue shipmentNbr = default(StringValue), StringValue shipmentType = default(StringValue), DecimalValue shippedQty = default(DecimalValue), DecimalValue shippedVolume = default(DecimalValue), DecimalValue shippedWeight = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.InventoryDocType = inventoryDocType; - this.InventoryRefNbr = inventoryRefNbr; - this.InvoiceNbr = invoiceNbr; - this.InvoiceType = invoiceType; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.ShipmentNbr = shipmentNbr; - this.ShipmentType = shipmentType; - this.ShippedQty = shippedQty; - this.ShippedVolume = shippedVolume; - this.ShippedWeight = shippedWeight; - } - - /// - /// Gets or Sets InventoryDocType - /// - [DataMember(Name="InventoryDocType", EmitDefaultValue=false)] - public StringValue InventoryDocType { get; set; } - - /// - /// Gets or Sets InventoryRefNbr - /// - [DataMember(Name="InventoryRefNbr", EmitDefaultValue=false)] - public StringValue InventoryRefNbr { get; set; } - - /// - /// Gets or Sets InvoiceNbr - /// - [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] - public StringValue InvoiceNbr { get; set; } - - /// - /// Gets or Sets InvoiceType - /// - [DataMember(Name="InvoiceType", EmitDefaultValue=false)] - public StringValue InvoiceType { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } + [DataContract] + public partial class ShipmentOrderDetail : Entity + { - /// - /// Gets or Sets ShipmentNbr - /// - [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] - public StringValue ShipmentNbr { get; set; } + [DataMember(Name="InventoryDocType", EmitDefaultValue=false)] + public StringValue InventoryDocType { get; set; } - /// - /// Gets or Sets ShipmentType - /// - [DataMember(Name="ShipmentType", EmitDefaultValue=false)] - public StringValue ShipmentType { get; set; } + [DataMember(Name="InventoryRefNbr", EmitDefaultValue=false)] + public StringValue InventoryRefNbr { get; set; } - /// - /// Gets or Sets ShippedQty - /// - [DataMember(Name="ShippedQty", EmitDefaultValue=false)] - public DecimalValue ShippedQty { get; set; } + [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] + public StringValue InvoiceNbr { get; set; } - /// - /// Gets or Sets ShippedVolume - /// - [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] - public DecimalValue ShippedVolume { get; set; } + [DataMember(Name="InvoiceType", EmitDefaultValue=false)] + public StringValue InvoiceType { get; set; } - /// - /// Gets or Sets ShippedWeight - /// - [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] - public DecimalValue ShippedWeight { get; set; } + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipmentOrderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" InventoryDocType: ").Append(InventoryDocType).Append("\n"); - sb.Append(" InventoryRefNbr: ").Append(InventoryRefNbr).Append("\n"); - sb.Append(" InvoiceNbr: ").Append(InvoiceNbr).Append("\n"); - sb.Append(" InvoiceType: ").Append(InvoiceType).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" ShipmentNbr: ").Append(ShipmentNbr).Append("\n"); - sb.Append(" ShipmentType: ").Append(ShipmentType).Append("\n"); - sb.Append(" ShippedQty: ").Append(ShippedQty).Append("\n"); - sb.Append(" ShippedVolume: ").Append(ShippedVolume).Append("\n"); - sb.Append(" ShippedWeight: ").Append(ShippedWeight).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipmentOrderDetail); - } + [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] + public StringValue ShipmentNbr { get; set; } - /// - /// Returns true if ShipmentOrderDetail instances are equal - /// - /// Instance of ShipmentOrderDetail to be compared - /// Boolean - public bool Equals(ShipmentOrderDetail input) - { - if (input == null) - return false; + [DataMember(Name="ShipmentType", EmitDefaultValue=false)] + public StringValue ShipmentType { get; set; } - return base.Equals(input) && - ( - this.InventoryDocType == input.InventoryDocType || - (this.InventoryDocType != null && - this.InventoryDocType.Equals(input.InventoryDocType)) - ) && base.Equals(input) && - ( - this.InventoryRefNbr == input.InventoryRefNbr || - (this.InventoryRefNbr != null && - this.InventoryRefNbr.Equals(input.InventoryRefNbr)) - ) && base.Equals(input) && - ( - this.InvoiceNbr == input.InvoiceNbr || - (this.InvoiceNbr != null && - this.InvoiceNbr.Equals(input.InvoiceNbr)) - ) && base.Equals(input) && - ( - this.InvoiceType == input.InvoiceType || - (this.InvoiceType != null && - this.InvoiceType.Equals(input.InvoiceType)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.ShipmentNbr == input.ShipmentNbr || - (this.ShipmentNbr != null && - this.ShipmentNbr.Equals(input.ShipmentNbr)) - ) && base.Equals(input) && - ( - this.ShipmentType == input.ShipmentType || - (this.ShipmentType != null && - this.ShipmentType.Equals(input.ShipmentType)) - ) && base.Equals(input) && - ( - this.ShippedQty == input.ShippedQty || - (this.ShippedQty != null && - this.ShippedQty.Equals(input.ShippedQty)) - ) && base.Equals(input) && - ( - this.ShippedVolume == input.ShippedVolume || - (this.ShippedVolume != null && - this.ShippedVolume.Equals(input.ShippedVolume)) - ) && base.Equals(input) && - ( - this.ShippedWeight == input.ShippedWeight || - (this.ShippedWeight != null && - this.ShippedWeight.Equals(input.ShippedWeight)) - ); - } + [DataMember(Name="ShippedQty", EmitDefaultValue=false)] + public DecimalValue ShippedQty { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.InventoryDocType != null) - hashCode = hashCode * 59 + this.InventoryDocType.GetHashCode(); - if (this.InventoryRefNbr != null) - hashCode = hashCode * 59 + this.InventoryRefNbr.GetHashCode(); - if (this.InvoiceNbr != null) - hashCode = hashCode * 59 + this.InvoiceNbr.GetHashCode(); - if (this.InvoiceType != null) - hashCode = hashCode * 59 + this.InvoiceType.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.ShipmentNbr != null) - hashCode = hashCode * 59 + this.ShipmentNbr.GetHashCode(); - if (this.ShipmentType != null) - hashCode = hashCode * 59 + this.ShipmentType.GetHashCode(); - if (this.ShippedQty != null) - hashCode = hashCode * 59 + this.ShippedQty.GetHashCode(); - if (this.ShippedVolume != null) - hashCode = hashCode * 59 + this.ShippedVolume.GetHashCode(); - if (this.ShippedWeight != null) - hashCode = hashCode * 59 + this.ShippedWeight.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] + public DecimalValue ShippedVolume { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] + public DecimalValue ShippedWeight { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShipmentPackage.cs b/Acumatica.Default_17.200.001/Model/ShipmentPackage.cs index 61ce44bd..39f888b1 100644 --- a/Acumatica.Default_17.200.001/Model/ShipmentPackage.cs +++ b/Acumatica.Default_17.200.001/Model/ShipmentPackage.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShipmentPackage - /// - [DataContract] - public partial class ShipmentPackage : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// boxID. - /// cODAmount. - /// confirmed. - /// customRefNbr1. - /// customRefNbr2. - /// declaredValue. - /// description. - /// trackingNbr. - /// type. - /// uOM. - /// weight. - public ShipmentPackage(StringValue boxID = default(StringValue), DecimalValue cODAmount = default(DecimalValue), BooleanValue confirmed = default(BooleanValue), StringValue customRefNbr1 = default(StringValue), StringValue customRefNbr2 = default(StringValue), DecimalValue declaredValue = default(DecimalValue), StringValue description = default(StringValue), StringValue trackingNbr = default(StringValue), StringValue type = default(StringValue), StringValue uOM = default(StringValue), DecimalValue weight = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BoxID = boxID; - this.CODAmount = cODAmount; - this.Confirmed = confirmed; - this.CustomRefNbr1 = customRefNbr1; - this.CustomRefNbr2 = customRefNbr2; - this.DeclaredValue = declaredValue; - this.Description = description; - this.TrackingNbr = trackingNbr; - this.Type = type; - this.UOM = uOM; - this.Weight = weight; - } - - /// - /// Gets or Sets BoxID - /// - [DataMember(Name="BoxID", EmitDefaultValue=false)] - public StringValue BoxID { get; set; } - - /// - /// Gets or Sets CODAmount - /// - [DataMember(Name="CODAmount", EmitDefaultValue=false)] - public DecimalValue CODAmount { get; set; } - - /// - /// Gets or Sets Confirmed - /// - [DataMember(Name="Confirmed", EmitDefaultValue=false)] - public BooleanValue Confirmed { get; set; } - - /// - /// Gets or Sets CustomRefNbr1 - /// - [DataMember(Name="CustomRefNbr1", EmitDefaultValue=false)] - public StringValue CustomRefNbr1 { get; set; } - - /// - /// Gets or Sets CustomRefNbr2 - /// - [DataMember(Name="CustomRefNbr2", EmitDefaultValue=false)] - public StringValue CustomRefNbr2 { get; set; } - - /// - /// Gets or Sets DeclaredValue - /// - [DataMember(Name="DeclaredValue", EmitDefaultValue=false)] - public DecimalValue DeclaredValue { get; set; } + [DataContract] + public partial class ShipmentPackage : Entity + { - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="BoxID", EmitDefaultValue=false)] + public StringValue BoxID { get; set; } - /// - /// Gets or Sets TrackingNbr - /// - [DataMember(Name="TrackingNbr", EmitDefaultValue=false)] - public StringValue TrackingNbr { get; set; } + [DataMember(Name="CODAmount", EmitDefaultValue=false)] + public DecimalValue CODAmount { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Confirmed", EmitDefaultValue=false)] + public BooleanValue Confirmed { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="CustomRefNbr1", EmitDefaultValue=false)] + public StringValue CustomRefNbr1 { get; set; } - /// - /// Gets or Sets Weight - /// - [DataMember(Name="Weight", EmitDefaultValue=false)] - public DecimalValue Weight { get; set; } + [DataMember(Name="CustomRefNbr2", EmitDefaultValue=false)] + public StringValue CustomRefNbr2 { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipmentPackage {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BoxID: ").Append(BoxID).Append("\n"); - sb.Append(" CODAmount: ").Append(CODAmount).Append("\n"); - sb.Append(" Confirmed: ").Append(Confirmed).Append("\n"); - sb.Append(" CustomRefNbr1: ").Append(CustomRefNbr1).Append("\n"); - sb.Append(" CustomRefNbr2: ").Append(CustomRefNbr2).Append("\n"); - sb.Append(" DeclaredValue: ").Append(DeclaredValue).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" TrackingNbr: ").Append(TrackingNbr).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Weight: ").Append(Weight).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="DeclaredValue", EmitDefaultValue=false)] + public DecimalValue DeclaredValue { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipmentPackage); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if ShipmentPackage instances are equal - /// - /// Instance of ShipmentPackage to be compared - /// Boolean - public bool Equals(ShipmentPackage input) - { - if (input == null) - return false; + [DataMember(Name="TrackingNbr", EmitDefaultValue=false)] + public StringValue TrackingNbr { get; set; } - return base.Equals(input) && - ( - this.BoxID == input.BoxID || - (this.BoxID != null && - this.BoxID.Equals(input.BoxID)) - ) && base.Equals(input) && - ( - this.CODAmount == input.CODAmount || - (this.CODAmount != null && - this.CODAmount.Equals(input.CODAmount)) - ) && base.Equals(input) && - ( - this.Confirmed == input.Confirmed || - (this.Confirmed != null && - this.Confirmed.Equals(input.Confirmed)) - ) && base.Equals(input) && - ( - this.CustomRefNbr1 == input.CustomRefNbr1 || - (this.CustomRefNbr1 != null && - this.CustomRefNbr1.Equals(input.CustomRefNbr1)) - ) && base.Equals(input) && - ( - this.CustomRefNbr2 == input.CustomRefNbr2 || - (this.CustomRefNbr2 != null && - this.CustomRefNbr2.Equals(input.CustomRefNbr2)) - ) && base.Equals(input) && - ( - this.DeclaredValue == input.DeclaredValue || - (this.DeclaredValue != null && - this.DeclaredValue.Equals(input.DeclaredValue)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.TrackingNbr == input.TrackingNbr || - (this.TrackingNbr != null && - this.TrackingNbr.Equals(input.TrackingNbr)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Weight == input.Weight || - (this.Weight != null && - this.Weight.Equals(input.Weight)) - ); - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BoxID != null) - hashCode = hashCode * 59 + this.BoxID.GetHashCode(); - if (this.CODAmount != null) - hashCode = hashCode * 59 + this.CODAmount.GetHashCode(); - if (this.Confirmed != null) - hashCode = hashCode * 59 + this.Confirmed.GetHashCode(); - if (this.CustomRefNbr1 != null) - hashCode = hashCode * 59 + this.CustomRefNbr1.GetHashCode(); - if (this.CustomRefNbr2 != null) - hashCode = hashCode * 59 + this.CustomRefNbr2.GetHashCode(); - if (this.DeclaredValue != null) - hashCode = hashCode * 59 + this.DeclaredValue.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.TrackingNbr != null) - hashCode = hashCode * 59 + this.TrackingNbr.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Weight != null) - hashCode = hashCode * 59 + this.Weight.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Weight", EmitDefaultValue=false)] + public DecimalValue Weight { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShippingBox.cs b/Acumatica.Default_17.200.001/Model/ShippingBox.cs index 0bca7982..8d71a33b 100644 --- a/Acumatica.Default_17.200.001/Model/ShippingBox.cs +++ b/Acumatica.Default_17.200.001/Model/ShippingBox.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShippingBox - /// - [DataContract] - public partial class ShippingBox : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// activeByDefault. - /// boxID. - /// boxWeight. - /// carriersPackage. - /// description. - /// height. - /// length. - /// maxVolume. - /// maxWeight. - /// volumeUOM. - /// weightUOM. - /// width. - public ShippingBox(BooleanValue activeByDefault = default(BooleanValue), StringValue boxID = default(StringValue), DecimalValue boxWeight = default(DecimalValue), StringValue carriersPackage = default(StringValue), StringValue description = default(StringValue), IntValue height = default(IntValue), IntValue length = default(IntValue), DecimalValue maxVolume = default(DecimalValue), DecimalValue maxWeight = default(DecimalValue), StringValue volumeUOM = default(StringValue), StringValue weightUOM = default(StringValue), IntValue width = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ActiveByDefault = activeByDefault; - this.BoxID = boxID; - this.BoxWeight = boxWeight; - this.CarriersPackage = carriersPackage; - this.Description = description; - this.Height = height; - this.Length = length; - this.MaxVolume = maxVolume; - this.MaxWeight = maxWeight; - this.VolumeUOM = volumeUOM; - this.WeightUOM = weightUOM; - this.Width = width; - } - - /// - /// Gets or Sets ActiveByDefault - /// - [DataMember(Name="ActiveByDefault", EmitDefaultValue=false)] - public BooleanValue ActiveByDefault { get; set; } - - /// - /// Gets or Sets BoxID - /// - [DataMember(Name="BoxID", EmitDefaultValue=false)] - public StringValue BoxID { get; set; } - - /// - /// Gets or Sets BoxWeight - /// - [DataMember(Name="BoxWeight", EmitDefaultValue=false)] - public DecimalValue BoxWeight { get; set; } - - /// - /// Gets or Sets CarriersPackage - /// - [DataMember(Name="CarriersPackage", EmitDefaultValue=false)] - public StringValue CarriersPackage { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Height - /// - [DataMember(Name="Height", EmitDefaultValue=false)] - public IntValue Height { get; set; } + [DataContract] + public partial class ShippingBox : Entity + { - /// - /// Gets or Sets Length - /// - [DataMember(Name="Length", EmitDefaultValue=false)] - public IntValue Length { get; set; } + [DataMember(Name="ActiveByDefault", EmitDefaultValue=false)] + public BooleanValue ActiveByDefault { get; set; } - /// - /// Gets or Sets MaxVolume - /// - [DataMember(Name="MaxVolume", EmitDefaultValue=false)] - public DecimalValue MaxVolume { get; set; } + [DataMember(Name="BoxID", EmitDefaultValue=false)] + public StringValue BoxID { get; set; } - /// - /// Gets or Sets MaxWeight - /// - [DataMember(Name="MaxWeight", EmitDefaultValue=false)] - public DecimalValue MaxWeight { get; set; } + [DataMember(Name="BoxWeight", EmitDefaultValue=false)] + public DecimalValue BoxWeight { get; set; } - /// - /// Gets or Sets VolumeUOM - /// - [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] - public StringValue VolumeUOM { get; set; } + [DataMember(Name="CarriersPackage", EmitDefaultValue=false)] + public StringValue CarriersPackage { get; set; } - /// - /// Gets or Sets WeightUOM - /// - [DataMember(Name="WeightUOM", EmitDefaultValue=false)] - public StringValue WeightUOM { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Width - /// - [DataMember(Name="Width", EmitDefaultValue=false)] - public IntValue Width { get; set; } + [DataMember(Name="Height", EmitDefaultValue=false)] + public IntValue Height { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingBox {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ActiveByDefault: ").Append(ActiveByDefault).Append("\n"); - sb.Append(" BoxID: ").Append(BoxID).Append("\n"); - sb.Append(" BoxWeight: ").Append(BoxWeight).Append("\n"); - sb.Append(" CarriersPackage: ").Append(CarriersPackage).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Height: ").Append(Height).Append("\n"); - sb.Append(" Length: ").Append(Length).Append("\n"); - sb.Append(" MaxVolume: ").Append(MaxVolume).Append("\n"); - sb.Append(" MaxWeight: ").Append(MaxWeight).Append("\n"); - sb.Append(" VolumeUOM: ").Append(VolumeUOM).Append("\n"); - sb.Append(" WeightUOM: ").Append(WeightUOM).Append("\n"); - sb.Append(" Width: ").Append(Width).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Length", EmitDefaultValue=false)] + public IntValue Length { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingBox); - } + [DataMember(Name="MaxVolume", EmitDefaultValue=false)] + public DecimalValue MaxVolume { get; set; } - /// - /// Returns true if ShippingBox instances are equal - /// - /// Instance of ShippingBox to be compared - /// Boolean - public bool Equals(ShippingBox input) - { - if (input == null) - return false; + [DataMember(Name="MaxWeight", EmitDefaultValue=false)] + public DecimalValue MaxWeight { get; set; } - return base.Equals(input) && - ( - this.ActiveByDefault == input.ActiveByDefault || - (this.ActiveByDefault != null && - this.ActiveByDefault.Equals(input.ActiveByDefault)) - ) && base.Equals(input) && - ( - this.BoxID == input.BoxID || - (this.BoxID != null && - this.BoxID.Equals(input.BoxID)) - ) && base.Equals(input) && - ( - this.BoxWeight == input.BoxWeight || - (this.BoxWeight != null && - this.BoxWeight.Equals(input.BoxWeight)) - ) && base.Equals(input) && - ( - this.CarriersPackage == input.CarriersPackage || - (this.CarriersPackage != null && - this.CarriersPackage.Equals(input.CarriersPackage)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Height == input.Height || - (this.Height != null && - this.Height.Equals(input.Height)) - ) && base.Equals(input) && - ( - this.Length == input.Length || - (this.Length != null && - this.Length.Equals(input.Length)) - ) && base.Equals(input) && - ( - this.MaxVolume == input.MaxVolume || - (this.MaxVolume != null && - this.MaxVolume.Equals(input.MaxVolume)) - ) && base.Equals(input) && - ( - this.MaxWeight == input.MaxWeight || - (this.MaxWeight != null && - this.MaxWeight.Equals(input.MaxWeight)) - ) && base.Equals(input) && - ( - this.VolumeUOM == input.VolumeUOM || - (this.VolumeUOM != null && - this.VolumeUOM.Equals(input.VolumeUOM)) - ) && base.Equals(input) && - ( - this.WeightUOM == input.WeightUOM || - (this.WeightUOM != null && - this.WeightUOM.Equals(input.WeightUOM)) - ) && base.Equals(input) && - ( - this.Width == input.Width || - (this.Width != null && - this.Width.Equals(input.Width)) - ); - } + [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] + public StringValue VolumeUOM { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ActiveByDefault != null) - hashCode = hashCode * 59 + this.ActiveByDefault.GetHashCode(); - if (this.BoxID != null) - hashCode = hashCode * 59 + this.BoxID.GetHashCode(); - if (this.BoxWeight != null) - hashCode = hashCode * 59 + this.BoxWeight.GetHashCode(); - if (this.CarriersPackage != null) - hashCode = hashCode * 59 + this.CarriersPackage.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Height != null) - hashCode = hashCode * 59 + this.Height.GetHashCode(); - if (this.Length != null) - hashCode = hashCode * 59 + this.Length.GetHashCode(); - if (this.MaxVolume != null) - hashCode = hashCode * 59 + this.MaxVolume.GetHashCode(); - if (this.MaxWeight != null) - hashCode = hashCode * 59 + this.MaxWeight.GetHashCode(); - if (this.VolumeUOM != null) - hashCode = hashCode * 59 + this.VolumeUOM.GetHashCode(); - if (this.WeightUOM != null) - hashCode = hashCode * 59 + this.WeightUOM.GetHashCode(); - if (this.Width != null) - hashCode = hashCode * 59 + this.Width.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="WeightUOM", EmitDefaultValue=false)] + public StringValue WeightUOM { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Width", EmitDefaultValue=false)] + public IntValue Width { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShippingInstructions.cs b/Acumatica.Default_17.200.001/Model/ShippingInstructions.cs index 47f782e0..5d16d368 100644 --- a/Acumatica.Default_17.200.001/Model/ShippingInstructions.cs +++ b/Acumatica.Default_17.200.001/Model/ShippingInstructions.cs @@ -1,254 +1,39 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShippingInstructions - /// - [DataContract] - public partial class ShippingInstructions : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// shippingDestinationType. - /// shippingLocation. - /// shipTo. - /// shipToAddress. - /// shipToAddressOverride. - /// shipToAddressValidated. - /// shipToContact. - /// shipToContactOverride. - /// warehouse. - public ShippingInstructions(StringValue shippingDestinationType = default(StringValue), StringValue shippingLocation = default(StringValue), StringValue shipTo = default(StringValue), Address shipToAddress = default(Address), BooleanValue shipToAddressOverride = default(BooleanValue), BooleanValue shipToAddressValidated = default(BooleanValue), DocContact shipToContact = default(DocContact), BooleanValue shipToContactOverride = default(BooleanValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ShippingDestinationType = shippingDestinationType; - this.ShippingLocation = shippingLocation; - this.ShipTo = shipTo; - this.ShipToAddress = shipToAddress; - this.ShipToAddressOverride = shipToAddressOverride; - this.ShipToAddressValidated = shipToAddressValidated; - this.ShipToContact = shipToContact; - this.ShipToContactOverride = shipToContactOverride; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets ShippingDestinationType - /// - [DataMember(Name="ShippingDestinationType", EmitDefaultValue=false)] - public StringValue ShippingDestinationType { get; set; } - - /// - /// Gets or Sets ShippingLocation - /// - [DataMember(Name="ShippingLocation", EmitDefaultValue=false)] - public StringValue ShippingLocation { get; set; } - - /// - /// Gets or Sets ShipTo - /// - [DataMember(Name="ShipTo", EmitDefaultValue=false)] - public StringValue ShipTo { get; set; } - - /// - /// Gets or Sets ShipToAddress - /// - [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] - public Address ShipToAddress { get; set; } - - /// - /// Gets or Sets ShipToAddressOverride - /// - [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] - public BooleanValue ShipToAddressOverride { get; set; } - - /// - /// Gets or Sets ShipToAddressValidated - /// - [DataMember(Name="ShipToAddressValidated", EmitDefaultValue=false)] - public BooleanValue ShipToAddressValidated { get; set; } + [DataContract] + public partial class ShippingInstructions : Entity + { - /// - /// Gets or Sets ShipToContact - /// - [DataMember(Name="ShipToContact", EmitDefaultValue=false)] - public DocContact ShipToContact { get; set; } + [DataMember(Name="ShippingDestinationType", EmitDefaultValue=false)] + public StringValue ShippingDestinationType { get; set; } - /// - /// Gets or Sets ShipToContactOverride - /// - [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] - public BooleanValue ShipToContactOverride { get; set; } + [DataMember(Name="ShippingLocation", EmitDefaultValue=false)] + public StringValue ShippingLocation { get; set; } - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } + [DataMember(Name="ShipTo", EmitDefaultValue=false)] + public StringValue ShipTo { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingInstructions {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ShippingDestinationType: ").Append(ShippingDestinationType).Append("\n"); - sb.Append(" ShippingLocation: ").Append(ShippingLocation).Append("\n"); - sb.Append(" ShipTo: ").Append(ShipTo).Append("\n"); - sb.Append(" ShipToAddress: ").Append(ShipToAddress).Append("\n"); - sb.Append(" ShipToAddressOverride: ").Append(ShipToAddressOverride).Append("\n"); - sb.Append(" ShipToAddressValidated: ").Append(ShipToAddressValidated).Append("\n"); - sb.Append(" ShipToContact: ").Append(ShipToContact).Append("\n"); - sb.Append(" ShipToContactOverride: ").Append(ShipToContactOverride).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] + public Address ShipToAddress { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingInstructions); - } + [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] + public BooleanValue ShipToAddressOverride { get; set; } - /// - /// Returns true if ShippingInstructions instances are equal - /// - /// Instance of ShippingInstructions to be compared - /// Boolean - public bool Equals(ShippingInstructions input) - { - if (input == null) - return false; + [DataMember(Name="ShipToAddressValidated", EmitDefaultValue=false)] + public BooleanValue ShipToAddressValidated { get; set; } - return base.Equals(input) && - ( - this.ShippingDestinationType == input.ShippingDestinationType || - (this.ShippingDestinationType != null && - this.ShippingDestinationType.Equals(input.ShippingDestinationType)) - ) && base.Equals(input) && - ( - this.ShippingLocation == input.ShippingLocation || - (this.ShippingLocation != null && - this.ShippingLocation.Equals(input.ShippingLocation)) - ) && base.Equals(input) && - ( - this.ShipTo == input.ShipTo || - (this.ShipTo != null && - this.ShipTo.Equals(input.ShipTo)) - ) && base.Equals(input) && - ( - this.ShipToAddress == input.ShipToAddress || - (this.ShipToAddress != null && - this.ShipToAddress.Equals(input.ShipToAddress)) - ) && base.Equals(input) && - ( - this.ShipToAddressOverride == input.ShipToAddressOverride || - (this.ShipToAddressOverride != null && - this.ShipToAddressOverride.Equals(input.ShipToAddressOverride)) - ) && base.Equals(input) && - ( - this.ShipToAddressValidated == input.ShipToAddressValidated || - (this.ShipToAddressValidated != null && - this.ShipToAddressValidated.Equals(input.ShipToAddressValidated)) - ) && base.Equals(input) && - ( - this.ShipToContact == input.ShipToContact || - (this.ShipToContact != null && - this.ShipToContact.Equals(input.ShipToContact)) - ) && base.Equals(input) && - ( - this.ShipToContactOverride == input.ShipToContactOverride || - (this.ShipToContactOverride != null && - this.ShipToContactOverride.Equals(input.ShipToContactOverride)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } + [DataMember(Name="ShipToContact", EmitDefaultValue=false)] + public DocContact ShipToContact { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ShippingDestinationType != null) - hashCode = hashCode * 59 + this.ShippingDestinationType.GetHashCode(); - if (this.ShippingLocation != null) - hashCode = hashCode * 59 + this.ShippingLocation.GetHashCode(); - if (this.ShipTo != null) - hashCode = hashCode * 59 + this.ShipTo.GetHashCode(); - if (this.ShipToAddress != null) - hashCode = hashCode * 59 + this.ShipToAddress.GetHashCode(); - if (this.ShipToAddressOverride != null) - hashCode = hashCode * 59 + this.ShipToAddressOverride.GetHashCode(); - if (this.ShipToAddressValidated != null) - hashCode = hashCode * 59 + this.ShipToAddressValidated.GetHashCode(); - if (this.ShipToContact != null) - hashCode = hashCode * 59 + this.ShipToContact.GetHashCode(); - if (this.ShipToContactOverride != null) - hashCode = hashCode * 59 + this.ShipToContactOverride.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] + public BooleanValue ShipToContactOverride { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShippingSettings.cs b/Acumatica.Default_17.200.001/Model/ShippingSettings.cs index c28be879..597d0c8e 100644 --- a/Acumatica.Default_17.200.001/Model/ShippingSettings.cs +++ b/Acumatica.Default_17.200.001/Model/ShippingSettings.cs @@ -1,382 +1,63 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShippingSettings - /// - [DataContract] - public partial class ShippingSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// cancelByDate. - /// canceled. - /// fOBPoint. - /// groundCollect. - /// insurance. - /// preferredWarehouseID. - /// priority. - /// residentialDelivery. - /// saturdayDelivery. - /// scheduledShipmentDate. - /// shippingRule. - /// shippingTerms. - /// shippingZone. - /// shipSeparately. - /// shipVia. - /// shopForRates. - /// useCustomersAccount. - public ShippingSettings(DateTimeValue cancelByDate = default(DateTimeValue), BooleanValue canceled = default(BooleanValue), StringValue fOBPoint = default(StringValue), BooleanValue groundCollect = default(BooleanValue), BooleanValue insurance = default(BooleanValue), StringValue preferredWarehouseID = default(StringValue), ShortValue priority = default(ShortValue), BooleanValue residentialDelivery = default(BooleanValue), BooleanValue saturdayDelivery = default(BooleanValue), DateTimeValue scheduledShipmentDate = default(DateTimeValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shippingZone = default(StringValue), BooleanValue shipSeparately = default(BooleanValue), StringValue shipVia = default(StringValue), ShopForRates shopForRates = default(ShopForRates), BooleanValue useCustomersAccount = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CancelByDate = cancelByDate; - this.Canceled = canceled; - this.FOBPoint = fOBPoint; - this.GroundCollect = groundCollect; - this.Insurance = insurance; - this.PreferredWarehouseID = preferredWarehouseID; - this.Priority = priority; - this.ResidentialDelivery = residentialDelivery; - this.SaturdayDelivery = saturdayDelivery; - this.ScheduledShipmentDate = scheduledShipmentDate; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShippingZone = shippingZone; - this.ShipSeparately = shipSeparately; - this.ShipVia = shipVia; - this.ShopForRates = shopForRates; - this.UseCustomersAccount = useCustomersAccount; - } - - /// - /// Gets or Sets CancelByDate - /// - [DataMember(Name="CancelByDate", EmitDefaultValue=false)] - public DateTimeValue CancelByDate { get; set; } - - /// - /// Gets or Sets Canceled - /// - [DataMember(Name="Canceled", EmitDefaultValue=false)] - public BooleanValue Canceled { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets GroundCollect - /// - [DataMember(Name="GroundCollect", EmitDefaultValue=false)] - public BooleanValue GroundCollect { get; set; } - - /// - /// Gets or Sets Insurance - /// - [DataMember(Name="Insurance", EmitDefaultValue=false)] - public BooleanValue Insurance { get; set; } - - /// - /// Gets or Sets PreferredWarehouseID - /// - [DataMember(Name="PreferredWarehouseID", EmitDefaultValue=false)] - public StringValue PreferredWarehouseID { get; set; } + [DataContract] + public partial class ShippingSettings : Entity + { - /// - /// Gets or Sets Priority - /// - [DataMember(Name="Priority", EmitDefaultValue=false)] - public ShortValue Priority { get; set; } + [DataMember(Name="CancelByDate", EmitDefaultValue=false)] + public DateTimeValue CancelByDate { get; set; } - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } + [DataMember(Name="Canceled", EmitDefaultValue=false)] + public BooleanValue Canceled { get; set; } - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } - /// - /// Gets or Sets ScheduledShipmentDate - /// - [DataMember(Name="ScheduledShipmentDate", EmitDefaultValue=false)] - public DateTimeValue ScheduledShipmentDate { get; set; } + [DataMember(Name="GroundCollect", EmitDefaultValue=false)] + public BooleanValue GroundCollect { get; set; } - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } + [DataMember(Name="Insurance", EmitDefaultValue=false)] + public BooleanValue Insurance { get; set; } - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } + [DataMember(Name="PreferredWarehouseID", EmitDefaultValue=false)] + public StringValue PreferredWarehouseID { get; set; } - /// - /// Gets or Sets ShippingZone - /// - [DataMember(Name="ShippingZone", EmitDefaultValue=false)] - public StringValue ShippingZone { get; set; } + [DataMember(Name="Priority", EmitDefaultValue=false)] + public ShortValue Priority { get; set; } - /// - /// Gets or Sets ShipSeparately - /// - [DataMember(Name="ShipSeparately", EmitDefaultValue=false)] - public BooleanValue ShipSeparately { get; set; } + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } - /// - /// Gets or Sets ShopForRates - /// - [DataMember(Name="ShopForRates", EmitDefaultValue=false)] - public ShopForRates ShopForRates { get; set; } + [DataMember(Name="ScheduledShipmentDate", EmitDefaultValue=false)] + public DateTimeValue ScheduledShipmentDate { get; set; } - /// - /// Gets or Sets UseCustomersAccount - /// - [DataMember(Name="UseCustomersAccount", EmitDefaultValue=false)] - public BooleanValue UseCustomersAccount { get; set; } + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CancelByDate: ").Append(CancelByDate).Append("\n"); - sb.Append(" Canceled: ").Append(Canceled).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" GroundCollect: ").Append(GroundCollect).Append("\n"); - sb.Append(" Insurance: ").Append(Insurance).Append("\n"); - sb.Append(" PreferredWarehouseID: ").Append(PreferredWarehouseID).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" ScheduledShipmentDate: ").Append(ScheduledShipmentDate).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZone: ").Append(ShippingZone).Append("\n"); - sb.Append(" ShipSeparately: ").Append(ShipSeparately).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" ShopForRates: ").Append(ShopForRates).Append("\n"); - sb.Append(" UseCustomersAccount: ").Append(UseCustomersAccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingSettings); - } + [DataMember(Name="ShippingZone", EmitDefaultValue=false)] + public StringValue ShippingZone { get; set; } - /// - /// Returns true if ShippingSettings instances are equal - /// - /// Instance of ShippingSettings to be compared - /// Boolean - public bool Equals(ShippingSettings input) - { - if (input == null) - return false; + [DataMember(Name="ShipSeparately", EmitDefaultValue=false)] + public BooleanValue ShipSeparately { get; set; } - return base.Equals(input) && - ( - this.CancelByDate == input.CancelByDate || - (this.CancelByDate != null && - this.CancelByDate.Equals(input.CancelByDate)) - ) && base.Equals(input) && - ( - this.Canceled == input.Canceled || - (this.Canceled != null && - this.Canceled.Equals(input.Canceled)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.GroundCollect == input.GroundCollect || - (this.GroundCollect != null && - this.GroundCollect.Equals(input.GroundCollect)) - ) && base.Equals(input) && - ( - this.Insurance == input.Insurance || - (this.Insurance != null && - this.Insurance.Equals(input.Insurance)) - ) && base.Equals(input) && - ( - this.PreferredWarehouseID == input.PreferredWarehouseID || - (this.PreferredWarehouseID != null && - this.PreferredWarehouseID.Equals(input.PreferredWarehouseID)) - ) && base.Equals(input) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.ScheduledShipmentDate == input.ScheduledShipmentDate || - (this.ScheduledShipmentDate != null && - this.ScheduledShipmentDate.Equals(input.ScheduledShipmentDate)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZone == input.ShippingZone || - (this.ShippingZone != null && - this.ShippingZone.Equals(input.ShippingZone)) - ) && base.Equals(input) && - ( - this.ShipSeparately == input.ShipSeparately || - (this.ShipSeparately != null && - this.ShipSeparately.Equals(input.ShipSeparately)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.ShopForRates == input.ShopForRates || - (this.ShopForRates != null && - this.ShopForRates.Equals(input.ShopForRates)) - ) && base.Equals(input) && - ( - this.UseCustomersAccount == input.UseCustomersAccount || - (this.UseCustomersAccount != null && - this.UseCustomersAccount.Equals(input.UseCustomersAccount)) - ); - } + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CancelByDate != null) - hashCode = hashCode * 59 + this.CancelByDate.GetHashCode(); - if (this.Canceled != null) - hashCode = hashCode * 59 + this.Canceled.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.GroundCollect != null) - hashCode = hashCode * 59 + this.GroundCollect.GetHashCode(); - if (this.Insurance != null) - hashCode = hashCode * 59 + this.Insurance.GetHashCode(); - if (this.PreferredWarehouseID != null) - hashCode = hashCode * 59 + this.PreferredWarehouseID.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.ScheduledShipmentDate != null) - hashCode = hashCode * 59 + this.ScheduledShipmentDate.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZone != null) - hashCode = hashCode * 59 + this.ShippingZone.GetHashCode(); - if (this.ShipSeparately != null) - hashCode = hashCode * 59 + this.ShipSeparately.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.ShopForRates != null) - hashCode = hashCode * 59 + this.ShopForRates.GetHashCode(); - if (this.UseCustomersAccount != null) - hashCode = hashCode * 59 + this.UseCustomersAccount.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ShopForRates", EmitDefaultValue=false)] + public ShopForRates ShopForRates { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UseCustomersAccount", EmitDefaultValue=false)] + public BooleanValue UseCustomersAccount { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShippingTerm.cs b/Acumatica.Default_17.200.001/Model/ShippingTerm.cs index 3109f958..3efe8b8a 100644 --- a/Acumatica.Default_17.200.001/Model/ShippingTerm.cs +++ b/Acumatica.Default_17.200.001/Model/ShippingTerm.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShippingTerm - /// - [DataContract] - public partial class ShippingTerm : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// details. - /// termID. - public ShippingTerm(StringValue description = default(StringValue), List details = default(List), StringValue termID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.Details = details; - this.TermID = termID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets TermID - /// - [DataMember(Name="TermID", EmitDefaultValue=false)] - public StringValue TermID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingTerm {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" TermID: ").Append(TermID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingTerm); - } - - /// - /// Returns true if ShippingTerm instances are equal - /// - /// Instance of ShippingTerm to be compared - /// Boolean - public bool Equals(ShippingTerm input) - { - if (input == null) - return false; + [DataContract] + public partial class ShippingTerm : Entity + { - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.TermID == input.TermID || - (this.TermID != null && - this.TermID.Equals(input.TermID)) - ); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.TermID != null) - hashCode = hashCode * 59 + this.TermID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TermID", EmitDefaultValue=false)] + public StringValue TermID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShippingTermDetail.cs b/Acumatica.Default_17.200.001/Model/ShippingTermDetail.cs index f7b7318d..a62a6b8b 100644 --- a/Acumatica.Default_17.200.001/Model/ShippingTermDetail.cs +++ b/Acumatica.Default_17.200.001/Model/ShippingTermDetail.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShippingTermDetail - /// - [DataContract] - public partial class ShippingTermDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakAmount. - /// freightCost. - /// invoiceAmount. - /// lineHandling. - /// lineNbr. - /// shippingandHandling. - public ShippingTermDetail(DecimalValue breakAmount = default(DecimalValue), DecimalValue freightCost = default(DecimalValue), DecimalValue invoiceAmount = default(DecimalValue), DecimalValue lineHandling = default(DecimalValue), IntValue lineNbr = default(IntValue), DecimalValue shippingandHandling = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakAmount = breakAmount; - this.FreightCost = freightCost; - this.InvoiceAmount = invoiceAmount; - this.LineHandling = lineHandling; - this.LineNbr = lineNbr; - this.ShippingandHandling = shippingandHandling; - } - - /// - /// Gets or Sets BreakAmount - /// - [DataMember(Name="BreakAmount", EmitDefaultValue=false)] - public DecimalValue BreakAmount { get; set; } - - /// - /// Gets or Sets FreightCost - /// - [DataMember(Name="FreightCost", EmitDefaultValue=false)] - public DecimalValue FreightCost { get; set; } - - /// - /// Gets or Sets InvoiceAmount - /// - [DataMember(Name="InvoiceAmount", EmitDefaultValue=false)] - public DecimalValue InvoiceAmount { get; set; } - - /// - /// Gets or Sets LineHandling - /// - [DataMember(Name="LineHandling", EmitDefaultValue=false)] - public DecimalValue LineHandling { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets ShippingandHandling - /// - [DataMember(Name="ShippingandHandling", EmitDefaultValue=false)] - public DecimalValue ShippingandHandling { get; set; } + [DataContract] + public partial class ShippingTermDetail : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingTermDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakAmount: ").Append(BreakAmount).Append("\n"); - sb.Append(" FreightCost: ").Append(FreightCost).Append("\n"); - sb.Append(" InvoiceAmount: ").Append(InvoiceAmount).Append("\n"); - sb.Append(" LineHandling: ").Append(LineHandling).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" ShippingandHandling: ").Append(ShippingandHandling).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="BreakAmount", EmitDefaultValue=false)] + public DecimalValue BreakAmount { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingTermDetail); - } + [DataMember(Name="FreightCost", EmitDefaultValue=false)] + public DecimalValue FreightCost { get; set; } - /// - /// Returns true if ShippingTermDetail instances are equal - /// - /// Instance of ShippingTermDetail to be compared - /// Boolean - public bool Equals(ShippingTermDetail input) - { - if (input == null) - return false; + [DataMember(Name="InvoiceAmount", EmitDefaultValue=false)] + public DecimalValue InvoiceAmount { get; set; } - return base.Equals(input) && - ( - this.BreakAmount == input.BreakAmount || - (this.BreakAmount != null && - this.BreakAmount.Equals(input.BreakAmount)) - ) && base.Equals(input) && - ( - this.FreightCost == input.FreightCost || - (this.FreightCost != null && - this.FreightCost.Equals(input.FreightCost)) - ) && base.Equals(input) && - ( - this.InvoiceAmount == input.InvoiceAmount || - (this.InvoiceAmount != null && - this.InvoiceAmount.Equals(input.InvoiceAmount)) - ) && base.Equals(input) && - ( - this.LineHandling == input.LineHandling || - (this.LineHandling != null && - this.LineHandling.Equals(input.LineHandling)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.ShippingandHandling == input.ShippingandHandling || - (this.ShippingandHandling != null && - this.ShippingandHandling.Equals(input.ShippingandHandling)) - ); - } + [DataMember(Name="LineHandling", EmitDefaultValue=false)] + public DecimalValue LineHandling { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakAmount != null) - hashCode = hashCode * 59 + this.BreakAmount.GetHashCode(); - if (this.FreightCost != null) - hashCode = hashCode * 59 + this.FreightCost.GetHashCode(); - if (this.InvoiceAmount != null) - hashCode = hashCode * 59 + this.InvoiceAmount.GetHashCode(); - if (this.LineHandling != null) - hashCode = hashCode * 59 + this.LineHandling.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.ShippingandHandling != null) - hashCode = hashCode * 59 + this.ShippingandHandling.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ShippingandHandling", EmitDefaultValue=false)] + public DecimalValue ShippingandHandling { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShippingZones.cs b/Acumatica.Default_17.200.001/Model/ShippingZones.cs index 06f8b249..ff3dc84a 100644 --- a/Acumatica.Default_17.200.001/Model/ShippingZones.cs +++ b/Acumatica.Default_17.200.001/Model/ShippingZones.cs @@ -1,142 +1,18 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShippingZones - /// - [DataContract] - public partial class ShippingZones : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// zoneID. - public ShippingZones(StringValue description = default(StringValue), StringValue zoneID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.ZoneID = zoneID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ZoneID - /// - [DataMember(Name="ZoneID", EmitDefaultValue=false)] - public StringValue ZoneID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingZones {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ZoneID: ").Append(ZoneID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingZones); - } - - /// - /// Returns true if ShippingZones instances are equal - /// - /// Instance of ShippingZones to be compared - /// Boolean - public bool Equals(ShippingZones input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ZoneID == input.ZoneID || - (this.ZoneID != null && - this.ZoneID.Equals(input.ZoneID)) - ); - } + [DataContract] + public partial class ShippingZones : Entity + { - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ZoneID != null) - hashCode = hashCode * 59 + this.ZoneID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ZoneID", EmitDefaultValue=false)] + public StringValue ZoneID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/ShopForRates.cs b/Acumatica.Default_17.200.001/Model/ShopForRates.cs index f4d96b17..339b666c 100644 --- a/Acumatica.Default_17.200.001/Model/ShopForRates.cs +++ b/Acumatica.Default_17.200.001/Model/ShopForRates.cs @@ -1,158 +1,21 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// ShopForRates - /// - [DataContract] - public partial class ShopForRates : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// isManualPackage. - /// orderWeight. - /// packageWeight. - public ShopForRates(BooleanValue isManualPackage = default(BooleanValue), DecimalValue orderWeight = default(DecimalValue), DecimalValue packageWeight = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.IsManualPackage = isManualPackage; - this.OrderWeight = orderWeight; - this.PackageWeight = packageWeight; - } - - /// - /// Gets or Sets IsManualPackage - /// - [DataMember(Name="IsManualPackage", EmitDefaultValue=false)] - public BooleanValue IsManualPackage { get; set; } - - /// - /// Gets or Sets OrderWeight - /// - [DataMember(Name="OrderWeight", EmitDefaultValue=false)] - public DecimalValue OrderWeight { get; set; } - - /// - /// Gets or Sets PackageWeight - /// - [DataMember(Name="PackageWeight", EmitDefaultValue=false)] - public DecimalValue PackageWeight { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShopForRates {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" IsManualPackage: ").Append(IsManualPackage).Append("\n"); - sb.Append(" OrderWeight: ").Append(OrderWeight).Append("\n"); - sb.Append(" PackageWeight: ").Append(PackageWeight).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShopForRates); - } - - /// - /// Returns true if ShopForRates instances are equal - /// - /// Instance of ShopForRates to be compared - /// Boolean - public bool Equals(ShopForRates input) - { - if (input == null) - return false; + [DataContract] + public partial class ShopForRates : Entity + { - return base.Equals(input) && - ( - this.IsManualPackage == input.IsManualPackage || - (this.IsManualPackage != null && - this.IsManualPackage.Equals(input.IsManualPackage)) - ) && base.Equals(input) && - ( - this.OrderWeight == input.OrderWeight || - (this.OrderWeight != null && - this.OrderWeight.Equals(input.OrderWeight)) - ) && base.Equals(input) && - ( - this.PackageWeight == input.PackageWeight || - (this.PackageWeight != null && - this.PackageWeight.Equals(input.PackageWeight)) - ); - } + [DataMember(Name="IsManualPackage", EmitDefaultValue=false)] + public BooleanValue IsManualPackage { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.IsManualPackage != null) - hashCode = hashCode * 59 + this.IsManualPackage.GetHashCode(); - if (this.OrderWeight != null) - hashCode = hashCode * 59 + this.OrderWeight.GetHashCode(); - if (this.PackageWeight != null) - hashCode = hashCode * 59 + this.PackageWeight.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="OrderWeight", EmitDefaultValue=false)] + public DecimalValue OrderWeight { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="PackageWeight", EmitDefaultValue=false)] + public DecimalValue PackageWeight { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/StatementCycle.cs b/Acumatica.Default_17.200.001/Model/StatementCycle.cs index 5352c1e6..36269874 100644 --- a/Acumatica.Default_17.200.001/Model/StatementCycle.cs +++ b/Acumatica.Default_17.200.001/Model/StatementCycle.cs @@ -1,414 +1,69 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// StatementCycle - /// - [DataContract] - public partial class StatementCycle : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// agingPeriod1EndDay. - /// agingPeriod1Message. - /// agingPeriod2EndDay. - /// agingPeriod2Message. - /// agingPeriod3EndDay. - /// agingPeriod3Message. - /// agingPeriod4Message. - /// applyOverdueCharges. - /// createdDateTime. - /// cycleID. - /// dayOfMonth. - /// dayOfMonth1. - /// description. - /// lastModifiedDateTime. - /// lastStatementDate. - /// overdueChargeID. - /// prepareOn. - /// requireOverdueChargesCalculationBeforeStatement. - /// requirePaymentApplicationBeforeStatementProcessing. - public StatementCycle(ShortValue agingPeriod1EndDay = default(ShortValue), StringValue agingPeriod1Message = default(StringValue), ShortValue agingPeriod2EndDay = default(ShortValue), StringValue agingPeriod2Message = default(StringValue), ShortValue agingPeriod3EndDay = default(ShortValue), StringValue agingPeriod3Message = default(StringValue), StringValue agingPeriod4Message = default(StringValue), BooleanValue applyOverdueCharges = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue cycleID = default(StringValue), ShortValue dayOfMonth = default(ShortValue), ShortValue dayOfMonth1 = default(ShortValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DateTimeValue lastStatementDate = default(DateTimeValue), StringValue overdueChargeID = default(StringValue), StringValue prepareOn = default(StringValue), BooleanValue requireOverdueChargesCalculationBeforeStatement = default(BooleanValue), BooleanValue requirePaymentApplicationBeforeStatementProcessing = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AgingPeriod1EndDay = agingPeriod1EndDay; - this.AgingPeriod1Message = agingPeriod1Message; - this.AgingPeriod2EndDay = agingPeriod2EndDay; - this.AgingPeriod2Message = agingPeriod2Message; - this.AgingPeriod3EndDay = agingPeriod3EndDay; - this.AgingPeriod3Message = agingPeriod3Message; - this.AgingPeriod4Message = agingPeriod4Message; - this.ApplyOverdueCharges = applyOverdueCharges; - this.CreatedDateTime = createdDateTime; - this.CycleID = cycleID; - this.DayOfMonth = dayOfMonth; - this.DayOfMonth1 = dayOfMonth1; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LastStatementDate = lastStatementDate; - this.OverdueChargeID = overdueChargeID; - this.PrepareOn = prepareOn; - this.RequireOverdueChargesCalculationBeforeStatement = requireOverdueChargesCalculationBeforeStatement; - this.RequirePaymentApplicationBeforeStatementProcessing = requirePaymentApplicationBeforeStatementProcessing; - } - - /// - /// Gets or Sets AgingPeriod1EndDay - /// - [DataMember(Name="AgingPeriod1EndDay", EmitDefaultValue=false)] - public ShortValue AgingPeriod1EndDay { get; set; } - - /// - /// Gets or Sets AgingPeriod1Message - /// - [DataMember(Name="AgingPeriod1Message", EmitDefaultValue=false)] - public StringValue AgingPeriod1Message { get; set; } - - /// - /// Gets or Sets AgingPeriod2EndDay - /// - [DataMember(Name="AgingPeriod2EndDay", EmitDefaultValue=false)] - public ShortValue AgingPeriod2EndDay { get; set; } - - /// - /// Gets or Sets AgingPeriod2Message - /// - [DataMember(Name="AgingPeriod2Message", EmitDefaultValue=false)] - public StringValue AgingPeriod2Message { get; set; } - - /// - /// Gets or Sets AgingPeriod3EndDay - /// - [DataMember(Name="AgingPeriod3EndDay", EmitDefaultValue=false)] - public ShortValue AgingPeriod3EndDay { get; set; } - - /// - /// Gets or Sets AgingPeriod3Message - /// - [DataMember(Name="AgingPeriod3Message", EmitDefaultValue=false)] - public StringValue AgingPeriod3Message { get; set; } + [DataContract] + public partial class StatementCycle : Entity + { - /// - /// Gets or Sets AgingPeriod4Message - /// - [DataMember(Name="AgingPeriod4Message", EmitDefaultValue=false)] - public StringValue AgingPeriod4Message { get; set; } + [DataMember(Name="AgingPeriod1EndDay", EmitDefaultValue=false)] + public ShortValue AgingPeriod1EndDay { get; set; } - /// - /// Gets or Sets ApplyOverdueCharges - /// - [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] - public BooleanValue ApplyOverdueCharges { get; set; } + [DataMember(Name="AgingPeriod1Message", EmitDefaultValue=false)] + public StringValue AgingPeriod1Message { get; set; } - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } + [DataMember(Name="AgingPeriod2EndDay", EmitDefaultValue=false)] + public ShortValue AgingPeriod2EndDay { get; set; } - /// - /// Gets or Sets CycleID - /// - [DataMember(Name="CycleID", EmitDefaultValue=false)] - public StringValue CycleID { get; set; } + [DataMember(Name="AgingPeriod2Message", EmitDefaultValue=false)] + public StringValue AgingPeriod2Message { get; set; } - /// - /// Gets or Sets DayOfMonth - /// - [DataMember(Name="DayOfMonth", EmitDefaultValue=false)] - public ShortValue DayOfMonth { get; set; } + [DataMember(Name="AgingPeriod3EndDay", EmitDefaultValue=false)] + public ShortValue AgingPeriod3EndDay { get; set; } - /// - /// Gets or Sets DayOfMonth1 - /// - [DataMember(Name="DayOfMonth1", EmitDefaultValue=false)] - public ShortValue DayOfMonth1 { get; set; } + [DataMember(Name="AgingPeriod3Message", EmitDefaultValue=false)] + public StringValue AgingPeriod3Message { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="AgingPeriod4Message", EmitDefaultValue=false)] + public StringValue AgingPeriod4Message { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] + public BooleanValue ApplyOverdueCharges { get; set; } - /// - /// Gets or Sets LastStatementDate - /// - [DataMember(Name="LastStatementDate", EmitDefaultValue=false)] - public DateTimeValue LastStatementDate { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets OverdueChargeID - /// - [DataMember(Name="OverdueChargeID", EmitDefaultValue=false)] - public StringValue OverdueChargeID { get; set; } + [DataMember(Name="CycleID", EmitDefaultValue=false)] + public StringValue CycleID { get; set; } - /// - /// Gets or Sets PrepareOn - /// - [DataMember(Name="PrepareOn", EmitDefaultValue=false)] - public StringValue PrepareOn { get; set; } + [DataMember(Name="DayOfMonth", EmitDefaultValue=false)] + public ShortValue DayOfMonth { get; set; } - /// - /// Gets or Sets RequireOverdueChargesCalculationBeforeStatement - /// - [DataMember(Name="RequireOverdueChargesCalculationBeforeStatement", EmitDefaultValue=false)] - public BooleanValue RequireOverdueChargesCalculationBeforeStatement { get; set; } + [DataMember(Name="DayOfMonth1", EmitDefaultValue=false)] + public ShortValue DayOfMonth1 { get; set; } - /// - /// Gets or Sets RequirePaymentApplicationBeforeStatementProcessing - /// - [DataMember(Name="RequirePaymentApplicationBeforeStatementProcessing", EmitDefaultValue=false)] - public BooleanValue RequirePaymentApplicationBeforeStatementProcessing { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StatementCycle {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AgingPeriod1EndDay: ").Append(AgingPeriod1EndDay).Append("\n"); - sb.Append(" AgingPeriod1Message: ").Append(AgingPeriod1Message).Append("\n"); - sb.Append(" AgingPeriod2EndDay: ").Append(AgingPeriod2EndDay).Append("\n"); - sb.Append(" AgingPeriod2Message: ").Append(AgingPeriod2Message).Append("\n"); - sb.Append(" AgingPeriod3EndDay: ").Append(AgingPeriod3EndDay).Append("\n"); - sb.Append(" AgingPeriod3Message: ").Append(AgingPeriod3Message).Append("\n"); - sb.Append(" AgingPeriod4Message: ").Append(AgingPeriod4Message).Append("\n"); - sb.Append(" ApplyOverdueCharges: ").Append(ApplyOverdueCharges).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CycleID: ").Append(CycleID).Append("\n"); - sb.Append(" DayOfMonth: ").Append(DayOfMonth).Append("\n"); - sb.Append(" DayOfMonth1: ").Append(DayOfMonth1).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LastStatementDate: ").Append(LastStatementDate).Append("\n"); - sb.Append(" OverdueChargeID: ").Append(OverdueChargeID).Append("\n"); - sb.Append(" PrepareOn: ").Append(PrepareOn).Append("\n"); - sb.Append(" RequireOverdueChargesCalculationBeforeStatement: ").Append(RequireOverdueChargesCalculationBeforeStatement).Append("\n"); - sb.Append(" RequirePaymentApplicationBeforeStatementProcessing: ").Append(RequirePaymentApplicationBeforeStatementProcessing).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StatementCycle); - } + [DataMember(Name="LastStatementDate", EmitDefaultValue=false)] + public DateTimeValue LastStatementDate { get; set; } - /// - /// Returns true if StatementCycle instances are equal - /// - /// Instance of StatementCycle to be compared - /// Boolean - public bool Equals(StatementCycle input) - { - if (input == null) - return false; + [DataMember(Name="OverdueChargeID", EmitDefaultValue=false)] + public StringValue OverdueChargeID { get; set; } - return base.Equals(input) && - ( - this.AgingPeriod1EndDay == input.AgingPeriod1EndDay || - (this.AgingPeriod1EndDay != null && - this.AgingPeriod1EndDay.Equals(input.AgingPeriod1EndDay)) - ) && base.Equals(input) && - ( - this.AgingPeriod1Message == input.AgingPeriod1Message || - (this.AgingPeriod1Message != null && - this.AgingPeriod1Message.Equals(input.AgingPeriod1Message)) - ) && base.Equals(input) && - ( - this.AgingPeriod2EndDay == input.AgingPeriod2EndDay || - (this.AgingPeriod2EndDay != null && - this.AgingPeriod2EndDay.Equals(input.AgingPeriod2EndDay)) - ) && base.Equals(input) && - ( - this.AgingPeriod2Message == input.AgingPeriod2Message || - (this.AgingPeriod2Message != null && - this.AgingPeriod2Message.Equals(input.AgingPeriod2Message)) - ) && base.Equals(input) && - ( - this.AgingPeriod3EndDay == input.AgingPeriod3EndDay || - (this.AgingPeriod3EndDay != null && - this.AgingPeriod3EndDay.Equals(input.AgingPeriod3EndDay)) - ) && base.Equals(input) && - ( - this.AgingPeriod3Message == input.AgingPeriod3Message || - (this.AgingPeriod3Message != null && - this.AgingPeriod3Message.Equals(input.AgingPeriod3Message)) - ) && base.Equals(input) && - ( - this.AgingPeriod4Message == input.AgingPeriod4Message || - (this.AgingPeriod4Message != null && - this.AgingPeriod4Message.Equals(input.AgingPeriod4Message)) - ) && base.Equals(input) && - ( - this.ApplyOverdueCharges == input.ApplyOverdueCharges || - (this.ApplyOverdueCharges != null && - this.ApplyOverdueCharges.Equals(input.ApplyOverdueCharges)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CycleID == input.CycleID || - (this.CycleID != null && - this.CycleID.Equals(input.CycleID)) - ) && base.Equals(input) && - ( - this.DayOfMonth == input.DayOfMonth || - (this.DayOfMonth != null && - this.DayOfMonth.Equals(input.DayOfMonth)) - ) && base.Equals(input) && - ( - this.DayOfMonth1 == input.DayOfMonth1 || - (this.DayOfMonth1 != null && - this.DayOfMonth1.Equals(input.DayOfMonth1)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LastStatementDate == input.LastStatementDate || - (this.LastStatementDate != null && - this.LastStatementDate.Equals(input.LastStatementDate)) - ) && base.Equals(input) && - ( - this.OverdueChargeID == input.OverdueChargeID || - (this.OverdueChargeID != null && - this.OverdueChargeID.Equals(input.OverdueChargeID)) - ) && base.Equals(input) && - ( - this.PrepareOn == input.PrepareOn || - (this.PrepareOn != null && - this.PrepareOn.Equals(input.PrepareOn)) - ) && base.Equals(input) && - ( - this.RequireOverdueChargesCalculationBeforeStatement == input.RequireOverdueChargesCalculationBeforeStatement || - (this.RequireOverdueChargesCalculationBeforeStatement != null && - this.RequireOverdueChargesCalculationBeforeStatement.Equals(input.RequireOverdueChargesCalculationBeforeStatement)) - ) && base.Equals(input) && - ( - this.RequirePaymentApplicationBeforeStatementProcessing == input.RequirePaymentApplicationBeforeStatementProcessing || - (this.RequirePaymentApplicationBeforeStatementProcessing != null && - this.RequirePaymentApplicationBeforeStatementProcessing.Equals(input.RequirePaymentApplicationBeforeStatementProcessing)) - ); - } + [DataMember(Name="PrepareOn", EmitDefaultValue=false)] + public StringValue PrepareOn { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AgingPeriod1EndDay != null) - hashCode = hashCode * 59 + this.AgingPeriod1EndDay.GetHashCode(); - if (this.AgingPeriod1Message != null) - hashCode = hashCode * 59 + this.AgingPeriod1Message.GetHashCode(); - if (this.AgingPeriod2EndDay != null) - hashCode = hashCode * 59 + this.AgingPeriod2EndDay.GetHashCode(); - if (this.AgingPeriod2Message != null) - hashCode = hashCode * 59 + this.AgingPeriod2Message.GetHashCode(); - if (this.AgingPeriod3EndDay != null) - hashCode = hashCode * 59 + this.AgingPeriod3EndDay.GetHashCode(); - if (this.AgingPeriod3Message != null) - hashCode = hashCode * 59 + this.AgingPeriod3Message.GetHashCode(); - if (this.AgingPeriod4Message != null) - hashCode = hashCode * 59 + this.AgingPeriod4Message.GetHashCode(); - if (this.ApplyOverdueCharges != null) - hashCode = hashCode * 59 + this.ApplyOverdueCharges.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CycleID != null) - hashCode = hashCode * 59 + this.CycleID.GetHashCode(); - if (this.DayOfMonth != null) - hashCode = hashCode * 59 + this.DayOfMonth.GetHashCode(); - if (this.DayOfMonth1 != null) - hashCode = hashCode * 59 + this.DayOfMonth1.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LastStatementDate != null) - hashCode = hashCode * 59 + this.LastStatementDate.GetHashCode(); - if (this.OverdueChargeID != null) - hashCode = hashCode * 59 + this.OverdueChargeID.GetHashCode(); - if (this.PrepareOn != null) - hashCode = hashCode * 59 + this.PrepareOn.GetHashCode(); - if (this.RequireOverdueChargesCalculationBeforeStatement != null) - hashCode = hashCode * 59 + this.RequireOverdueChargesCalculationBeforeStatement.GetHashCode(); - if (this.RequirePaymentApplicationBeforeStatementProcessing != null) - hashCode = hashCode * 59 + this.RequirePaymentApplicationBeforeStatementProcessing.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="RequireOverdueChargesCalculationBeforeStatement", EmitDefaultValue=false)] + public BooleanValue RequireOverdueChargesCalculationBeforeStatement { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="RequirePaymentApplicationBeforeStatementProcessing", EmitDefaultValue=false)] + public BooleanValue RequirePaymentApplicationBeforeStatementProcessing { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/StockItem.cs b/Acumatica.Default_17.200.001/Model/StockItem.cs index 5b0c0f94..ea4f847f 100644 --- a/Acumatica.Default_17.200.001/Model/StockItem.cs +++ b/Acumatica.Default_17.200.001/Model/StockItem.cs @@ -1,1326 +1,240 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// StockItem - /// - [DataContract] - public partial class StockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aBCCode. - /// attributes. - /// autoIncrementalValue. - /// averageCost. - /// baseUOM. - /// boxes. - /// categories. - /// cOGSAccount. - /// cOGSSubaccount. - /// content. - /// crossReferences. - /// currentStdCost. - /// defaultIssueLocationID. - /// defaultPrice. - /// defaultReceiptLocationID. - /// defaultSubitem. - /// defaultWarehouseID. - /// deferralAccount. - /// deferralSubaccount. - /// description. - /// dimensionVolume. - /// dimensionWeight. - /// discountAccount. - /// discountSubaccount. - /// imageUrl. - /// inventoryAccount. - /// inventoryID. - /// inventorySubaccount. - /// isAKit. - /// itemClass. - /// itemStatus. - /// itemType. - /// landedCostVarianceAccount. - /// landedCostVarianceSubaccount. - /// lastCost. - /// lastModified. - /// lastStdCost. - /// lotSerialClass. - /// markup. - /// maxCost. - /// minCost. - /// minMarkup. - /// mSRP. - /// packagingOption. - /// packSeparately. - /// pendingStdCost. - /// pOAccrualAccount. - /// pOAccrualSubaccount. - /// postingClass. - /// priceClass. - /// priceManager. - /// priceWorkgroup. - /// productManager. - /// productWorkgroup. - /// purchasePriceVarianceAccount. - /// purchasePriceVarianceSubaccount. - /// purchaseUOM. - /// reasonCodeSubaccount. - /// replenishmentParameters. - /// salesAccount. - /// salesSubaccount. - /// salesUOM. - /// standardCostRevaluationAccount. - /// standardCostRevaluationSubaccount. - /// standardCostVarianceAccount. - /// standardCostVarianceSubaccount. - /// subItems. - /// subjectToCommission. - /// taxCategory. - /// uOMConversions. - /// useOnEntry. - /// valuationMethod. - /// vendorDetails. - /// volumeUOM. - /// warehouseDetails. - /// weightUOM. - public StockItem(StringValue aBCCode = default(StringValue), List attributes = default(List), StringValue autoIncrementalValue = default(StringValue), DecimalValue averageCost = default(DecimalValue), StringValue baseUOM = default(StringValue), List boxes = default(List), List categories = default(List), StringValue cOGSAccount = default(StringValue), StringValue cOGSSubaccount = default(StringValue), StringValue content = default(StringValue), List crossReferences = default(List), DecimalValue currentStdCost = default(DecimalValue), StringValue defaultIssueLocationID = default(StringValue), DecimalValue defaultPrice = default(DecimalValue), StringValue defaultReceiptLocationID = default(StringValue), StringValue defaultSubitem = default(StringValue), StringValue defaultWarehouseID = default(StringValue), StringValue deferralAccount = default(StringValue), StringValue deferralSubaccount = default(StringValue), StringValue description = default(StringValue), DecimalValue dimensionVolume = default(DecimalValue), DecimalValue dimensionWeight = default(DecimalValue), StringValue discountAccount = default(StringValue), StringValue discountSubaccount = default(StringValue), StringValue imageUrl = default(StringValue), StringValue inventoryAccount = default(StringValue), StringValue inventoryID = default(StringValue), StringValue inventorySubaccount = default(StringValue), BooleanValue isAKit = default(BooleanValue), StringValue itemClass = default(StringValue), StringValue itemStatus = default(StringValue), StringValue itemType = default(StringValue), StringValue landedCostVarianceAccount = default(StringValue), StringValue landedCostVarianceSubaccount = default(StringValue), DecimalValue lastCost = default(DecimalValue), DateTimeValue lastModified = default(DateTimeValue), DecimalValue lastStdCost = default(DecimalValue), StringValue lotSerialClass = default(StringValue), DecimalValue markup = default(DecimalValue), DecimalValue maxCost = default(DecimalValue), DecimalValue minCost = default(DecimalValue), DecimalValue minMarkup = default(DecimalValue), DecimalValue mSRP = default(DecimalValue), StringValue packagingOption = default(StringValue), BooleanValue packSeparately = default(BooleanValue), DecimalValue pendingStdCost = default(DecimalValue), StringValue pOAccrualAccount = default(StringValue), StringValue pOAccrualSubaccount = default(StringValue), StringValue postingClass = default(StringValue), StringValue priceClass = default(StringValue), StringValue priceManager = default(StringValue), StringValue priceWorkgroup = default(StringValue), StringValue productManager = default(StringValue), StringValue productWorkgroup = default(StringValue), StringValue purchasePriceVarianceAccount = default(StringValue), StringValue purchasePriceVarianceSubaccount = default(StringValue), StringValue purchaseUOM = default(StringValue), StringValue reasonCodeSubaccount = default(StringValue), List replenishmentParameters = default(List), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), StringValue salesUOM = default(StringValue), StringValue standardCostRevaluationAccount = default(StringValue), StringValue standardCostRevaluationSubaccount = default(StringValue), StringValue standardCostVarianceAccount = default(StringValue), StringValue standardCostVarianceSubaccount = default(StringValue), List subItems = default(List), BooleanValue subjectToCommission = default(BooleanValue), StringValue taxCategory = default(StringValue), List uOMConversions = default(List), BooleanValue useOnEntry = default(BooleanValue), StringValue valuationMethod = default(StringValue), List vendorDetails = default(List), StringValue volumeUOM = default(StringValue), List warehouseDetails = default(List), StringValue weightUOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ABCCode = aBCCode; - this.Attributes = attributes; - this.AutoIncrementalValue = autoIncrementalValue; - this.AverageCost = averageCost; - this.BaseUOM = baseUOM; - this.Boxes = boxes; - this.Categories = categories; - this.COGSAccount = cOGSAccount; - this.COGSSubaccount = cOGSSubaccount; - this.Content = content; - this.CrossReferences = crossReferences; - this.CurrentStdCost = currentStdCost; - this.DefaultIssueLocationID = defaultIssueLocationID; - this.DefaultPrice = defaultPrice; - this.DefaultReceiptLocationID = defaultReceiptLocationID; - this.DefaultSubitem = defaultSubitem; - this.DefaultWarehouseID = defaultWarehouseID; - this.DeferralAccount = deferralAccount; - this.DeferralSubaccount = deferralSubaccount; - this.Description = description; - this.DimensionVolume = dimensionVolume; - this.DimensionWeight = dimensionWeight; - this.DiscountAccount = discountAccount; - this.DiscountSubaccount = discountSubaccount; - this.ImageUrl = imageUrl; - this.InventoryAccount = inventoryAccount; - this.InventoryID = inventoryID; - this.InventorySubaccount = inventorySubaccount; - this.IsAKit = isAKit; - this.ItemClass = itemClass; - this.ItemStatus = itemStatus; - this.ItemType = itemType; - this.LandedCostVarianceAccount = landedCostVarianceAccount; - this.LandedCostVarianceSubaccount = landedCostVarianceSubaccount; - this.LastCost = lastCost; - this.LastModified = lastModified; - this.LastStdCost = lastStdCost; - this.LotSerialClass = lotSerialClass; - this.Markup = markup; - this.MaxCost = maxCost; - this.MinCost = minCost; - this.MinMarkup = minMarkup; - this.MSRP = mSRP; - this.PackagingOption = packagingOption; - this.PackSeparately = packSeparately; - this.PendingStdCost = pendingStdCost; - this.POAccrualAccount = pOAccrualAccount; - this.POAccrualSubaccount = pOAccrualSubaccount; - this.PostingClass = postingClass; - this.PriceClass = priceClass; - this.PriceManager = priceManager; - this.PriceWorkgroup = priceWorkgroup; - this.ProductManager = productManager; - this.ProductWorkgroup = productWorkgroup; - this.PurchasePriceVarianceAccount = purchasePriceVarianceAccount; - this.PurchasePriceVarianceSubaccount = purchasePriceVarianceSubaccount; - this.PurchaseUOM = purchaseUOM; - this.ReasonCodeSubaccount = reasonCodeSubaccount; - this.ReplenishmentParameters = replenishmentParameters; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.SalesUOM = salesUOM; - this.StandardCostRevaluationAccount = standardCostRevaluationAccount; - this.StandardCostRevaluationSubaccount = standardCostRevaluationSubaccount; - this.StandardCostVarianceAccount = standardCostVarianceAccount; - this.StandardCostVarianceSubaccount = standardCostVarianceSubaccount; - this.SubItems = subItems; - this.SubjectToCommission = subjectToCommission; - this.TaxCategory = taxCategory; - this.UOMConversions = uOMConversions; - this.UseOnEntry = useOnEntry; - this.ValuationMethod = valuationMethod; - this.VendorDetails = vendorDetails; - this.VolumeUOM = volumeUOM; - this.WarehouseDetails = warehouseDetails; - this.WeightUOM = weightUOM; - } - - /// - /// Gets or Sets ABCCode - /// - [DataMember(Name="ABCCode", EmitDefaultValue=false)] - public StringValue ABCCode { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets AutoIncrementalValue - /// - [DataMember(Name="AutoIncrementalValue", EmitDefaultValue=false)] - public StringValue AutoIncrementalValue { get; set; } - - /// - /// Gets or Sets AverageCost - /// - [DataMember(Name="AverageCost", EmitDefaultValue=false)] - public DecimalValue AverageCost { get; set; } - - /// - /// Gets or Sets BaseUOM - /// - [DataMember(Name="BaseUOM", EmitDefaultValue=false)] - public StringValue BaseUOM { get; set; } - - /// - /// Gets or Sets Boxes - /// - [DataMember(Name="Boxes", EmitDefaultValue=false)] - public List Boxes { get; set; } - - /// - /// Gets or Sets Categories - /// - [DataMember(Name="Categories", EmitDefaultValue=false)] - public List Categories { get; set; } - - /// - /// Gets or Sets COGSAccount - /// - [DataMember(Name="COGSAccount", EmitDefaultValue=false)] - public StringValue COGSAccount { get; set; } - - /// - /// Gets or Sets COGSSubaccount - /// - [DataMember(Name="COGSSubaccount", EmitDefaultValue=false)] - public StringValue COGSSubaccount { get; set; } - - /// - /// Gets or Sets Content - /// - [DataMember(Name="Content", EmitDefaultValue=false)] - public StringValue Content { get; set; } - - /// - /// Gets or Sets CrossReferences - /// - [DataMember(Name="CrossReferences", EmitDefaultValue=false)] - public List CrossReferences { get; set; } - - /// - /// Gets or Sets CurrentStdCost - /// - [DataMember(Name="CurrentStdCost", EmitDefaultValue=false)] - public DecimalValue CurrentStdCost { get; set; } - - /// - /// Gets or Sets DefaultIssueLocationID - /// - [DataMember(Name="DefaultIssueLocationID", EmitDefaultValue=false)] - public StringValue DefaultIssueLocationID { get; set; } - - /// - /// Gets or Sets DefaultPrice - /// - [DataMember(Name="DefaultPrice", EmitDefaultValue=false)] - public DecimalValue DefaultPrice { get; set; } - - /// - /// Gets or Sets DefaultReceiptLocationID - /// - [DataMember(Name="DefaultReceiptLocationID", EmitDefaultValue=false)] - public StringValue DefaultReceiptLocationID { get; set; } - - /// - /// Gets or Sets DefaultSubitem - /// - [DataMember(Name="DefaultSubitem", EmitDefaultValue=false)] - public StringValue DefaultSubitem { get; set; } - - /// - /// Gets or Sets DefaultWarehouseID - /// - [DataMember(Name="DefaultWarehouseID", EmitDefaultValue=false)] - public StringValue DefaultWarehouseID { get; set; } - - /// - /// Gets or Sets DeferralAccount - /// - [DataMember(Name="DeferralAccount", EmitDefaultValue=false)] - public StringValue DeferralAccount { get; set; } - - /// - /// Gets or Sets DeferralSubaccount - /// - [DataMember(Name="DeferralSubaccount", EmitDefaultValue=false)] - public StringValue DeferralSubaccount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DimensionVolume - /// - [DataMember(Name="DimensionVolume", EmitDefaultValue=false)] - public DecimalValue DimensionVolume { get; set; } - - /// - /// Gets or Sets DimensionWeight - /// - [DataMember(Name="DimensionWeight", EmitDefaultValue=false)] - public DecimalValue DimensionWeight { get; set; } - - /// - /// Gets or Sets DiscountAccount - /// - [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] - public StringValue DiscountAccount { get; set; } - - /// - /// Gets or Sets DiscountSubaccount - /// - [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] - public StringValue DiscountSubaccount { get; set; } - - /// - /// Gets or Sets ImageUrl - /// - [DataMember(Name="ImageUrl", EmitDefaultValue=false)] - public StringValue ImageUrl { get; set; } - - /// - /// Gets or Sets InventoryAccount - /// - [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] - public StringValue InventoryAccount { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets InventorySubaccount - /// - [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] - public StringValue InventorySubaccount { get; set; } - - /// - /// Gets or Sets IsAKit - /// - [DataMember(Name="IsAKit", EmitDefaultValue=false)] - public BooleanValue IsAKit { get; set; } - - /// - /// Gets or Sets ItemClass - /// - [DataMember(Name="ItemClass", EmitDefaultValue=false)] - public StringValue ItemClass { get; set; } - - /// - /// Gets or Sets ItemStatus - /// - [DataMember(Name="ItemStatus", EmitDefaultValue=false)] - public StringValue ItemStatus { get; set; } - - /// - /// Gets or Sets ItemType - /// - [DataMember(Name="ItemType", EmitDefaultValue=false)] - public StringValue ItemType { get; set; } - - /// - /// Gets or Sets LandedCostVarianceAccount - /// - [DataMember(Name="LandedCostVarianceAccount", EmitDefaultValue=false)] - public StringValue LandedCostVarianceAccount { get; set; } - - /// - /// Gets or Sets LandedCostVarianceSubaccount - /// - [DataMember(Name="LandedCostVarianceSubaccount", EmitDefaultValue=false)] - public StringValue LandedCostVarianceSubaccount { get; set; } - - /// - /// Gets or Sets LastCost - /// - [DataMember(Name="LastCost", EmitDefaultValue=false)] - public DecimalValue LastCost { get; set; } - - /// - /// Gets or Sets LastModified - /// - [DataMember(Name="LastModified", EmitDefaultValue=false)] - public DateTimeValue LastModified { get; set; } - - /// - /// Gets or Sets LastStdCost - /// - [DataMember(Name="LastStdCost", EmitDefaultValue=false)] - public DecimalValue LastStdCost { get; set; } - - /// - /// Gets or Sets LotSerialClass - /// - [DataMember(Name="LotSerialClass", EmitDefaultValue=false)] - public StringValue LotSerialClass { get; set; } - - /// - /// Gets or Sets Markup - /// - [DataMember(Name="Markup", EmitDefaultValue=false)] - public DecimalValue Markup { get; set; } - - /// - /// Gets or Sets MaxCost - /// - [DataMember(Name="MaxCost", EmitDefaultValue=false)] - public DecimalValue MaxCost { get; set; } - - /// - /// Gets or Sets MinCost - /// - [DataMember(Name="MinCost", EmitDefaultValue=false)] - public DecimalValue MinCost { get; set; } - - /// - /// Gets or Sets MinMarkup - /// - [DataMember(Name="MinMarkup", EmitDefaultValue=false)] - public DecimalValue MinMarkup { get; set; } - - /// - /// Gets or Sets MSRP - /// - [DataMember(Name="MSRP", EmitDefaultValue=false)] - public DecimalValue MSRP { get; set; } - - /// - /// Gets or Sets PackagingOption - /// - [DataMember(Name="PackagingOption", EmitDefaultValue=false)] - public StringValue PackagingOption { get; set; } - - /// - /// Gets or Sets PackSeparately - /// - [DataMember(Name="PackSeparately", EmitDefaultValue=false)] - public BooleanValue PackSeparately { get; set; } - - /// - /// Gets or Sets PendingStdCost - /// - [DataMember(Name="PendingStdCost", EmitDefaultValue=false)] - public DecimalValue PendingStdCost { get; set; } - - /// - /// Gets or Sets POAccrualAccount - /// - [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] - public StringValue POAccrualAccount { get; set; } - - /// - /// Gets or Sets POAccrualSubaccount - /// - [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] - public StringValue POAccrualSubaccount { get; set; } - - /// - /// Gets or Sets PostingClass - /// - [DataMember(Name="PostingClass", EmitDefaultValue=false)] - public StringValue PostingClass { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets PriceManager - /// - [DataMember(Name="PriceManager", EmitDefaultValue=false)] - public StringValue PriceManager { get; set; } - - /// - /// Gets or Sets PriceWorkgroup - /// - [DataMember(Name="PriceWorkgroup", EmitDefaultValue=false)] - public StringValue PriceWorkgroup { get; set; } - - /// - /// Gets or Sets ProductManager - /// - [DataMember(Name="ProductManager", EmitDefaultValue=false)] - public StringValue ProductManager { get; set; } - - /// - /// Gets or Sets ProductWorkgroup - /// - [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] - public StringValue ProductWorkgroup { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceAccount - /// - [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceAccount { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceSubaccount - /// - [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceSubaccount { get; set; } - - /// - /// Gets or Sets PurchaseUOM - /// - [DataMember(Name="PurchaseUOM", EmitDefaultValue=false)] - public StringValue PurchaseUOM { get; set; } - - /// - /// Gets or Sets ReasonCodeSubaccount - /// - [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] - public StringValue ReasonCodeSubaccount { get; set; } - - /// - /// Gets or Sets ReplenishmentParameters - /// - [DataMember(Name="ReplenishmentParameters", EmitDefaultValue=false)] - public List ReplenishmentParameters { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets SalesUOM - /// - [DataMember(Name="SalesUOM", EmitDefaultValue=false)] - public StringValue SalesUOM { get; set; } - - /// - /// Gets or Sets StandardCostRevaluationAccount - /// - [DataMember(Name="StandardCostRevaluationAccount", EmitDefaultValue=false)] - public StringValue StandardCostRevaluationAccount { get; set; } - - /// - /// Gets or Sets StandardCostRevaluationSubaccount - /// - [DataMember(Name="StandardCostRevaluationSubaccount", EmitDefaultValue=false)] - public StringValue StandardCostRevaluationSubaccount { get; set; } - - /// - /// Gets or Sets StandardCostVarianceAccount - /// - [DataMember(Name="StandardCostVarianceAccount", EmitDefaultValue=false)] - public StringValue StandardCostVarianceAccount { get; set; } - - /// - /// Gets or Sets StandardCostVarianceSubaccount - /// - [DataMember(Name="StandardCostVarianceSubaccount", EmitDefaultValue=false)] - public StringValue StandardCostVarianceSubaccount { get; set; } - - /// - /// Gets or Sets SubItems - /// - [DataMember(Name="SubItems", EmitDefaultValue=false)] - public List SubItems { get; set; } - - /// - /// Gets or Sets SubjectToCommission - /// - [DataMember(Name="SubjectToCommission", EmitDefaultValue=false)] - public BooleanValue SubjectToCommission { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets UOMConversions - /// - [DataMember(Name="UOMConversions", EmitDefaultValue=false)] - public List UOMConversions { get; set; } - - /// - /// Gets or Sets UseOnEntry - /// - [DataMember(Name="UseOnEntry", EmitDefaultValue=false)] - public BooleanValue UseOnEntry { get; set; } - - /// - /// Gets or Sets ValuationMethod - /// - [DataMember(Name="ValuationMethod", EmitDefaultValue=false)] - public StringValue ValuationMethod { get; set; } - - /// - /// Gets or Sets VendorDetails - /// - [DataMember(Name="VendorDetails", EmitDefaultValue=false)] - public List VendorDetails { get; set; } - - /// - /// Gets or Sets VolumeUOM - /// - [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] - public StringValue VolumeUOM { get; set; } - - /// - /// Gets or Sets WarehouseDetails - /// - [DataMember(Name="WarehouseDetails", EmitDefaultValue=false)] - public List WarehouseDetails { get; set; } - - /// - /// Gets or Sets WeightUOM - /// - [DataMember(Name="WeightUOM", EmitDefaultValue=false)] - public StringValue WeightUOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ABCCode: ").Append(ABCCode).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" AutoIncrementalValue: ").Append(AutoIncrementalValue).Append("\n"); - sb.Append(" AverageCost: ").Append(AverageCost).Append("\n"); - sb.Append(" BaseUOM: ").Append(BaseUOM).Append("\n"); - sb.Append(" Boxes: ").Append(Boxes).Append("\n"); - sb.Append(" Categories: ").Append(Categories).Append("\n"); - sb.Append(" COGSAccount: ").Append(COGSAccount).Append("\n"); - sb.Append(" COGSSubaccount: ").Append(COGSSubaccount).Append("\n"); - sb.Append(" Content: ").Append(Content).Append("\n"); - sb.Append(" CrossReferences: ").Append(CrossReferences).Append("\n"); - sb.Append(" CurrentStdCost: ").Append(CurrentStdCost).Append("\n"); - sb.Append(" DefaultIssueLocationID: ").Append(DefaultIssueLocationID).Append("\n"); - sb.Append(" DefaultPrice: ").Append(DefaultPrice).Append("\n"); - sb.Append(" DefaultReceiptLocationID: ").Append(DefaultReceiptLocationID).Append("\n"); - sb.Append(" DefaultSubitem: ").Append(DefaultSubitem).Append("\n"); - sb.Append(" DefaultWarehouseID: ").Append(DefaultWarehouseID).Append("\n"); - sb.Append(" DeferralAccount: ").Append(DeferralAccount).Append("\n"); - sb.Append(" DeferralSubaccount: ").Append(DeferralSubaccount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DimensionVolume: ").Append(DimensionVolume).Append("\n"); - sb.Append(" DimensionWeight: ").Append(DimensionWeight).Append("\n"); - sb.Append(" DiscountAccount: ").Append(DiscountAccount).Append("\n"); - sb.Append(" DiscountSubaccount: ").Append(DiscountSubaccount).Append("\n"); - sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); - sb.Append(" InventoryAccount: ").Append(InventoryAccount).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" InventorySubaccount: ").Append(InventorySubaccount).Append("\n"); - sb.Append(" IsAKit: ").Append(IsAKit).Append("\n"); - sb.Append(" ItemClass: ").Append(ItemClass).Append("\n"); - sb.Append(" ItemStatus: ").Append(ItemStatus).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" LandedCostVarianceAccount: ").Append(LandedCostVarianceAccount).Append("\n"); - sb.Append(" LandedCostVarianceSubaccount: ").Append(LandedCostVarianceSubaccount).Append("\n"); - sb.Append(" LastCost: ").Append(LastCost).Append("\n"); - sb.Append(" LastModified: ").Append(LastModified).Append("\n"); - sb.Append(" LastStdCost: ").Append(LastStdCost).Append("\n"); - sb.Append(" LotSerialClass: ").Append(LotSerialClass).Append("\n"); - sb.Append(" Markup: ").Append(Markup).Append("\n"); - sb.Append(" MaxCost: ").Append(MaxCost).Append("\n"); - sb.Append(" MinCost: ").Append(MinCost).Append("\n"); - sb.Append(" MinMarkup: ").Append(MinMarkup).Append("\n"); - sb.Append(" MSRP: ").Append(MSRP).Append("\n"); - sb.Append(" PackagingOption: ").Append(PackagingOption).Append("\n"); - sb.Append(" PackSeparately: ").Append(PackSeparately).Append("\n"); - sb.Append(" PendingStdCost: ").Append(PendingStdCost).Append("\n"); - sb.Append(" POAccrualAccount: ").Append(POAccrualAccount).Append("\n"); - sb.Append(" POAccrualSubaccount: ").Append(POAccrualSubaccount).Append("\n"); - sb.Append(" PostingClass: ").Append(PostingClass).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" PriceManager: ").Append(PriceManager).Append("\n"); - sb.Append(" PriceWorkgroup: ").Append(PriceWorkgroup).Append("\n"); - sb.Append(" ProductManager: ").Append(ProductManager).Append("\n"); - sb.Append(" ProductWorkgroup: ").Append(ProductWorkgroup).Append("\n"); - sb.Append(" PurchasePriceVarianceAccount: ").Append(PurchasePriceVarianceAccount).Append("\n"); - sb.Append(" PurchasePriceVarianceSubaccount: ").Append(PurchasePriceVarianceSubaccount).Append("\n"); - sb.Append(" PurchaseUOM: ").Append(PurchaseUOM).Append("\n"); - sb.Append(" ReasonCodeSubaccount: ").Append(ReasonCodeSubaccount).Append("\n"); - sb.Append(" ReplenishmentParameters: ").Append(ReplenishmentParameters).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" SalesUOM: ").Append(SalesUOM).Append("\n"); - sb.Append(" StandardCostRevaluationAccount: ").Append(StandardCostRevaluationAccount).Append("\n"); - sb.Append(" StandardCostRevaluationSubaccount: ").Append(StandardCostRevaluationSubaccount).Append("\n"); - sb.Append(" StandardCostVarianceAccount: ").Append(StandardCostVarianceAccount).Append("\n"); - sb.Append(" StandardCostVarianceSubaccount: ").Append(StandardCostVarianceSubaccount).Append("\n"); - sb.Append(" SubItems: ").Append(SubItems).Append("\n"); - sb.Append(" SubjectToCommission: ").Append(SubjectToCommission).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" UOMConversions: ").Append(UOMConversions).Append("\n"); - sb.Append(" UseOnEntry: ").Append(UseOnEntry).Append("\n"); - sb.Append(" ValuationMethod: ").Append(ValuationMethod).Append("\n"); - sb.Append(" VendorDetails: ").Append(VendorDetails).Append("\n"); - sb.Append(" VolumeUOM: ").Append(VolumeUOM).Append("\n"); - sb.Append(" WarehouseDetails: ").Append(WarehouseDetails).Append("\n"); - sb.Append(" WeightUOM: ").Append(WeightUOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StockItem); - } - - /// - /// Returns true if StockItem instances are equal - /// - /// Instance of StockItem to be compared - /// Boolean - public bool Equals(StockItem input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ABCCode == input.ABCCode || - (this.ABCCode != null && - this.ABCCode.Equals(input.ABCCode)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.AutoIncrementalValue == input.AutoIncrementalValue || - (this.AutoIncrementalValue != null && - this.AutoIncrementalValue.Equals(input.AutoIncrementalValue)) - ) && base.Equals(input) && - ( - this.AverageCost == input.AverageCost || - (this.AverageCost != null && - this.AverageCost.Equals(input.AverageCost)) - ) && base.Equals(input) && - ( - this.BaseUOM == input.BaseUOM || - (this.BaseUOM != null && - this.BaseUOM.Equals(input.BaseUOM)) - ) && base.Equals(input) && - ( - this.Boxes == input.Boxes || - this.Boxes != null && - this.Boxes.SequenceEqual(input.Boxes) - ) && base.Equals(input) && - ( - this.Categories == input.Categories || - this.Categories != null && - this.Categories.SequenceEqual(input.Categories) - ) && base.Equals(input) && - ( - this.COGSAccount == input.COGSAccount || - (this.COGSAccount != null && - this.COGSAccount.Equals(input.COGSAccount)) - ) && base.Equals(input) && - ( - this.COGSSubaccount == input.COGSSubaccount || - (this.COGSSubaccount != null && - this.COGSSubaccount.Equals(input.COGSSubaccount)) - ) && base.Equals(input) && - ( - this.Content == input.Content || - (this.Content != null && - this.Content.Equals(input.Content)) - ) && base.Equals(input) && - ( - this.CrossReferences == input.CrossReferences || - this.CrossReferences != null && - this.CrossReferences.SequenceEqual(input.CrossReferences) - ) && base.Equals(input) && - ( - this.CurrentStdCost == input.CurrentStdCost || - (this.CurrentStdCost != null && - this.CurrentStdCost.Equals(input.CurrentStdCost)) - ) && base.Equals(input) && - ( - this.DefaultIssueLocationID == input.DefaultIssueLocationID || - (this.DefaultIssueLocationID != null && - this.DefaultIssueLocationID.Equals(input.DefaultIssueLocationID)) - ) && base.Equals(input) && - ( - this.DefaultPrice == input.DefaultPrice || - (this.DefaultPrice != null && - this.DefaultPrice.Equals(input.DefaultPrice)) - ) && base.Equals(input) && - ( - this.DefaultReceiptLocationID == input.DefaultReceiptLocationID || - (this.DefaultReceiptLocationID != null && - this.DefaultReceiptLocationID.Equals(input.DefaultReceiptLocationID)) - ) && base.Equals(input) && - ( - this.DefaultSubitem == input.DefaultSubitem || - (this.DefaultSubitem != null && - this.DefaultSubitem.Equals(input.DefaultSubitem)) - ) && base.Equals(input) && - ( - this.DefaultWarehouseID == input.DefaultWarehouseID || - (this.DefaultWarehouseID != null && - this.DefaultWarehouseID.Equals(input.DefaultWarehouseID)) - ) && base.Equals(input) && - ( - this.DeferralAccount == input.DeferralAccount || - (this.DeferralAccount != null && - this.DeferralAccount.Equals(input.DeferralAccount)) - ) && base.Equals(input) && - ( - this.DeferralSubaccount == input.DeferralSubaccount || - (this.DeferralSubaccount != null && - this.DeferralSubaccount.Equals(input.DeferralSubaccount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DimensionVolume == input.DimensionVolume || - (this.DimensionVolume != null && - this.DimensionVolume.Equals(input.DimensionVolume)) - ) && base.Equals(input) && - ( - this.DimensionWeight == input.DimensionWeight || - (this.DimensionWeight != null && - this.DimensionWeight.Equals(input.DimensionWeight)) - ) && base.Equals(input) && - ( - this.DiscountAccount == input.DiscountAccount || - (this.DiscountAccount != null && - this.DiscountAccount.Equals(input.DiscountAccount)) - ) && base.Equals(input) && - ( - this.DiscountSubaccount == input.DiscountSubaccount || - (this.DiscountSubaccount != null && - this.DiscountSubaccount.Equals(input.DiscountSubaccount)) - ) && base.Equals(input) && - ( - this.ImageUrl == input.ImageUrl || - (this.ImageUrl != null && - this.ImageUrl.Equals(input.ImageUrl)) - ) && base.Equals(input) && - ( - this.InventoryAccount == input.InventoryAccount || - (this.InventoryAccount != null && - this.InventoryAccount.Equals(input.InventoryAccount)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.InventorySubaccount == input.InventorySubaccount || - (this.InventorySubaccount != null && - this.InventorySubaccount.Equals(input.InventorySubaccount)) - ) && base.Equals(input) && - ( - this.IsAKit == input.IsAKit || - (this.IsAKit != null && - this.IsAKit.Equals(input.IsAKit)) - ) && base.Equals(input) && - ( - this.ItemClass == input.ItemClass || - (this.ItemClass != null && - this.ItemClass.Equals(input.ItemClass)) - ) && base.Equals(input) && - ( - this.ItemStatus == input.ItemStatus || - (this.ItemStatus != null && - this.ItemStatus.Equals(input.ItemStatus)) - ) && base.Equals(input) && - ( - this.ItemType == input.ItemType || - (this.ItemType != null && - this.ItemType.Equals(input.ItemType)) - ) && base.Equals(input) && - ( - this.LandedCostVarianceAccount == input.LandedCostVarianceAccount || - (this.LandedCostVarianceAccount != null && - this.LandedCostVarianceAccount.Equals(input.LandedCostVarianceAccount)) - ) && base.Equals(input) && - ( - this.LandedCostVarianceSubaccount == input.LandedCostVarianceSubaccount || - (this.LandedCostVarianceSubaccount != null && - this.LandedCostVarianceSubaccount.Equals(input.LandedCostVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.LastCost == input.LastCost || - (this.LastCost != null && - this.LastCost.Equals(input.LastCost)) - ) && base.Equals(input) && - ( - this.LastModified == input.LastModified || - (this.LastModified != null && - this.LastModified.Equals(input.LastModified)) - ) && base.Equals(input) && - ( - this.LastStdCost == input.LastStdCost || - (this.LastStdCost != null && - this.LastStdCost.Equals(input.LastStdCost)) - ) && base.Equals(input) && - ( - this.LotSerialClass == input.LotSerialClass || - (this.LotSerialClass != null && - this.LotSerialClass.Equals(input.LotSerialClass)) - ) && base.Equals(input) && - ( - this.Markup == input.Markup || - (this.Markup != null && - this.Markup.Equals(input.Markup)) - ) && base.Equals(input) && - ( - this.MaxCost == input.MaxCost || - (this.MaxCost != null && - this.MaxCost.Equals(input.MaxCost)) - ) && base.Equals(input) && - ( - this.MinCost == input.MinCost || - (this.MinCost != null && - this.MinCost.Equals(input.MinCost)) - ) && base.Equals(input) && - ( - this.MinMarkup == input.MinMarkup || - (this.MinMarkup != null && - this.MinMarkup.Equals(input.MinMarkup)) - ) && base.Equals(input) && - ( - this.MSRP == input.MSRP || - (this.MSRP != null && - this.MSRP.Equals(input.MSRP)) - ) && base.Equals(input) && - ( - this.PackagingOption == input.PackagingOption || - (this.PackagingOption != null && - this.PackagingOption.Equals(input.PackagingOption)) - ) && base.Equals(input) && - ( - this.PackSeparately == input.PackSeparately || - (this.PackSeparately != null && - this.PackSeparately.Equals(input.PackSeparately)) - ) && base.Equals(input) && - ( - this.PendingStdCost == input.PendingStdCost || - (this.PendingStdCost != null && - this.PendingStdCost.Equals(input.PendingStdCost)) - ) && base.Equals(input) && - ( - this.POAccrualAccount == input.POAccrualAccount || - (this.POAccrualAccount != null && - this.POAccrualAccount.Equals(input.POAccrualAccount)) - ) && base.Equals(input) && - ( - this.POAccrualSubaccount == input.POAccrualSubaccount || - (this.POAccrualSubaccount != null && - this.POAccrualSubaccount.Equals(input.POAccrualSubaccount)) - ) && base.Equals(input) && - ( - this.PostingClass == input.PostingClass || - (this.PostingClass != null && - this.PostingClass.Equals(input.PostingClass)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.PriceManager == input.PriceManager || - (this.PriceManager != null && - this.PriceManager.Equals(input.PriceManager)) - ) && base.Equals(input) && - ( - this.PriceWorkgroup == input.PriceWorkgroup || - (this.PriceWorkgroup != null && - this.PriceWorkgroup.Equals(input.PriceWorkgroup)) - ) && base.Equals(input) && - ( - this.ProductManager == input.ProductManager || - (this.ProductManager != null && - this.ProductManager.Equals(input.ProductManager)) - ) && base.Equals(input) && - ( - this.ProductWorkgroup == input.ProductWorkgroup || - (this.ProductWorkgroup != null && - this.ProductWorkgroup.Equals(input.ProductWorkgroup)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceAccount == input.PurchasePriceVarianceAccount || - (this.PurchasePriceVarianceAccount != null && - this.PurchasePriceVarianceAccount.Equals(input.PurchasePriceVarianceAccount)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceSubaccount == input.PurchasePriceVarianceSubaccount || - (this.PurchasePriceVarianceSubaccount != null && - this.PurchasePriceVarianceSubaccount.Equals(input.PurchasePriceVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.PurchaseUOM == input.PurchaseUOM || - (this.PurchaseUOM != null && - this.PurchaseUOM.Equals(input.PurchaseUOM)) - ) && base.Equals(input) && - ( - this.ReasonCodeSubaccount == input.ReasonCodeSubaccount || - (this.ReasonCodeSubaccount != null && - this.ReasonCodeSubaccount.Equals(input.ReasonCodeSubaccount)) - ) && base.Equals(input) && - ( - this.ReplenishmentParameters == input.ReplenishmentParameters || - this.ReplenishmentParameters != null && - this.ReplenishmentParameters.SequenceEqual(input.ReplenishmentParameters) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.SalesUOM == input.SalesUOM || - (this.SalesUOM != null && - this.SalesUOM.Equals(input.SalesUOM)) - ) && base.Equals(input) && - ( - this.StandardCostRevaluationAccount == input.StandardCostRevaluationAccount || - (this.StandardCostRevaluationAccount != null && - this.StandardCostRevaluationAccount.Equals(input.StandardCostRevaluationAccount)) - ) && base.Equals(input) && - ( - this.StandardCostRevaluationSubaccount == input.StandardCostRevaluationSubaccount || - (this.StandardCostRevaluationSubaccount != null && - this.StandardCostRevaluationSubaccount.Equals(input.StandardCostRevaluationSubaccount)) - ) && base.Equals(input) && - ( - this.StandardCostVarianceAccount == input.StandardCostVarianceAccount || - (this.StandardCostVarianceAccount != null && - this.StandardCostVarianceAccount.Equals(input.StandardCostVarianceAccount)) - ) && base.Equals(input) && - ( - this.StandardCostVarianceSubaccount == input.StandardCostVarianceSubaccount || - (this.StandardCostVarianceSubaccount != null && - this.StandardCostVarianceSubaccount.Equals(input.StandardCostVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.SubItems == input.SubItems || - this.SubItems != null && - this.SubItems.SequenceEqual(input.SubItems) - ) && base.Equals(input) && - ( - this.SubjectToCommission == input.SubjectToCommission || - (this.SubjectToCommission != null && - this.SubjectToCommission.Equals(input.SubjectToCommission)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.UOMConversions == input.UOMConversions || - this.UOMConversions != null && - this.UOMConversions.SequenceEqual(input.UOMConversions) - ) && base.Equals(input) && - ( - this.UseOnEntry == input.UseOnEntry || - (this.UseOnEntry != null && - this.UseOnEntry.Equals(input.UseOnEntry)) - ) && base.Equals(input) && - ( - this.ValuationMethod == input.ValuationMethod || - (this.ValuationMethod != null && - this.ValuationMethod.Equals(input.ValuationMethod)) - ) && base.Equals(input) && - ( - this.VendorDetails == input.VendorDetails || - this.VendorDetails != null && - this.VendorDetails.SequenceEqual(input.VendorDetails) - ) && base.Equals(input) && - ( - this.VolumeUOM == input.VolumeUOM || - (this.VolumeUOM != null && - this.VolumeUOM.Equals(input.VolumeUOM)) - ) && base.Equals(input) && - ( - this.WarehouseDetails == input.WarehouseDetails || - this.WarehouseDetails != null && - this.WarehouseDetails.SequenceEqual(input.WarehouseDetails) - ) && base.Equals(input) && - ( - this.WeightUOM == input.WeightUOM || - (this.WeightUOM != null && - this.WeightUOM.Equals(input.WeightUOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ABCCode != null) - hashCode = hashCode * 59 + this.ABCCode.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.AutoIncrementalValue != null) - hashCode = hashCode * 59 + this.AutoIncrementalValue.GetHashCode(); - if (this.AverageCost != null) - hashCode = hashCode * 59 + this.AverageCost.GetHashCode(); - if (this.BaseUOM != null) - hashCode = hashCode * 59 + this.BaseUOM.GetHashCode(); - if (this.Boxes != null) - hashCode = hashCode * 59 + this.Boxes.GetHashCode(); - if (this.Categories != null) - hashCode = hashCode * 59 + this.Categories.GetHashCode(); - if (this.COGSAccount != null) - hashCode = hashCode * 59 + this.COGSAccount.GetHashCode(); - if (this.COGSSubaccount != null) - hashCode = hashCode * 59 + this.COGSSubaccount.GetHashCode(); - if (this.Content != null) - hashCode = hashCode * 59 + this.Content.GetHashCode(); - if (this.CrossReferences != null) - hashCode = hashCode * 59 + this.CrossReferences.GetHashCode(); - if (this.CurrentStdCost != null) - hashCode = hashCode * 59 + this.CurrentStdCost.GetHashCode(); - if (this.DefaultIssueLocationID != null) - hashCode = hashCode * 59 + this.DefaultIssueLocationID.GetHashCode(); - if (this.DefaultPrice != null) - hashCode = hashCode * 59 + this.DefaultPrice.GetHashCode(); - if (this.DefaultReceiptLocationID != null) - hashCode = hashCode * 59 + this.DefaultReceiptLocationID.GetHashCode(); - if (this.DefaultSubitem != null) - hashCode = hashCode * 59 + this.DefaultSubitem.GetHashCode(); - if (this.DefaultWarehouseID != null) - hashCode = hashCode * 59 + this.DefaultWarehouseID.GetHashCode(); - if (this.DeferralAccount != null) - hashCode = hashCode * 59 + this.DeferralAccount.GetHashCode(); - if (this.DeferralSubaccount != null) - hashCode = hashCode * 59 + this.DeferralSubaccount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DimensionVolume != null) - hashCode = hashCode * 59 + this.DimensionVolume.GetHashCode(); - if (this.DimensionWeight != null) - hashCode = hashCode * 59 + this.DimensionWeight.GetHashCode(); - if (this.DiscountAccount != null) - hashCode = hashCode * 59 + this.DiscountAccount.GetHashCode(); - if (this.DiscountSubaccount != null) - hashCode = hashCode * 59 + this.DiscountSubaccount.GetHashCode(); - if (this.ImageUrl != null) - hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); - if (this.InventoryAccount != null) - hashCode = hashCode * 59 + this.InventoryAccount.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.InventorySubaccount != null) - hashCode = hashCode * 59 + this.InventorySubaccount.GetHashCode(); - if (this.IsAKit != null) - hashCode = hashCode * 59 + this.IsAKit.GetHashCode(); - if (this.ItemClass != null) - hashCode = hashCode * 59 + this.ItemClass.GetHashCode(); - if (this.ItemStatus != null) - hashCode = hashCode * 59 + this.ItemStatus.GetHashCode(); - if (this.ItemType != null) - hashCode = hashCode * 59 + this.ItemType.GetHashCode(); - if (this.LandedCostVarianceAccount != null) - hashCode = hashCode * 59 + this.LandedCostVarianceAccount.GetHashCode(); - if (this.LandedCostVarianceSubaccount != null) - hashCode = hashCode * 59 + this.LandedCostVarianceSubaccount.GetHashCode(); - if (this.LastCost != null) - hashCode = hashCode * 59 + this.LastCost.GetHashCode(); - if (this.LastModified != null) - hashCode = hashCode * 59 + this.LastModified.GetHashCode(); - if (this.LastStdCost != null) - hashCode = hashCode * 59 + this.LastStdCost.GetHashCode(); - if (this.LotSerialClass != null) - hashCode = hashCode * 59 + this.LotSerialClass.GetHashCode(); - if (this.Markup != null) - hashCode = hashCode * 59 + this.Markup.GetHashCode(); - if (this.MaxCost != null) - hashCode = hashCode * 59 + this.MaxCost.GetHashCode(); - if (this.MinCost != null) - hashCode = hashCode * 59 + this.MinCost.GetHashCode(); - if (this.MinMarkup != null) - hashCode = hashCode * 59 + this.MinMarkup.GetHashCode(); - if (this.MSRP != null) - hashCode = hashCode * 59 + this.MSRP.GetHashCode(); - if (this.PackagingOption != null) - hashCode = hashCode * 59 + this.PackagingOption.GetHashCode(); - if (this.PackSeparately != null) - hashCode = hashCode * 59 + this.PackSeparately.GetHashCode(); - if (this.PendingStdCost != null) - hashCode = hashCode * 59 + this.PendingStdCost.GetHashCode(); - if (this.POAccrualAccount != null) - hashCode = hashCode * 59 + this.POAccrualAccount.GetHashCode(); - if (this.POAccrualSubaccount != null) - hashCode = hashCode * 59 + this.POAccrualSubaccount.GetHashCode(); - if (this.PostingClass != null) - hashCode = hashCode * 59 + this.PostingClass.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.PriceManager != null) - hashCode = hashCode * 59 + this.PriceManager.GetHashCode(); - if (this.PriceWorkgroup != null) - hashCode = hashCode * 59 + this.PriceWorkgroup.GetHashCode(); - if (this.ProductManager != null) - hashCode = hashCode * 59 + this.ProductManager.GetHashCode(); - if (this.ProductWorkgroup != null) - hashCode = hashCode * 59 + this.ProductWorkgroup.GetHashCode(); - if (this.PurchasePriceVarianceAccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceAccount.GetHashCode(); - if (this.PurchasePriceVarianceSubaccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceSubaccount.GetHashCode(); - if (this.PurchaseUOM != null) - hashCode = hashCode * 59 + this.PurchaseUOM.GetHashCode(); - if (this.ReasonCodeSubaccount != null) - hashCode = hashCode * 59 + this.ReasonCodeSubaccount.GetHashCode(); - if (this.ReplenishmentParameters != null) - hashCode = hashCode * 59 + this.ReplenishmentParameters.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.SalesUOM != null) - hashCode = hashCode * 59 + this.SalesUOM.GetHashCode(); - if (this.StandardCostRevaluationAccount != null) - hashCode = hashCode * 59 + this.StandardCostRevaluationAccount.GetHashCode(); - if (this.StandardCostRevaluationSubaccount != null) - hashCode = hashCode * 59 + this.StandardCostRevaluationSubaccount.GetHashCode(); - if (this.StandardCostVarianceAccount != null) - hashCode = hashCode * 59 + this.StandardCostVarianceAccount.GetHashCode(); - if (this.StandardCostVarianceSubaccount != null) - hashCode = hashCode * 59 + this.StandardCostVarianceSubaccount.GetHashCode(); - if (this.SubItems != null) - hashCode = hashCode * 59 + this.SubItems.GetHashCode(); - if (this.SubjectToCommission != null) - hashCode = hashCode * 59 + this.SubjectToCommission.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.UOMConversions != null) - hashCode = hashCode * 59 + this.UOMConversions.GetHashCode(); - if (this.UseOnEntry != null) - hashCode = hashCode * 59 + this.UseOnEntry.GetHashCode(); - if (this.ValuationMethod != null) - hashCode = hashCode * 59 + this.ValuationMethod.GetHashCode(); - if (this.VendorDetails != null) - hashCode = hashCode * 59 + this.VendorDetails.GetHashCode(); - if (this.VolumeUOM != null) - hashCode = hashCode * 59 + this.VolumeUOM.GetHashCode(); - if (this.WarehouseDetails != null) - hashCode = hashCode * 59 + this.WarehouseDetails.GetHashCode(); - if (this.WeightUOM != null) - hashCode = hashCode * 59 + this.WeightUOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class StockItem : Entity + { + + [DataMember(Name="ABCCode", EmitDefaultValue=false)] + public StringValue ABCCode { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="AutoIncrementalValue", EmitDefaultValue=false)] + public StringValue AutoIncrementalValue { get; set; } + + [DataMember(Name="AverageCost", EmitDefaultValue=false)] + public DecimalValue AverageCost { get; set; } + + [DataMember(Name="BaseUOM", EmitDefaultValue=false)] + public StringValue BaseUOM { get; set; } + + [DataMember(Name="Boxes", EmitDefaultValue=false)] + public List Boxes { get; set; } + + [DataMember(Name="Categories", EmitDefaultValue=false)] + public List Categories { get; set; } + + [DataMember(Name="COGSAccount", EmitDefaultValue=false)] + public StringValue COGSAccount { get; set; } + + [DataMember(Name="COGSSubaccount", EmitDefaultValue=false)] + public StringValue COGSSubaccount { get; set; } + + [DataMember(Name="Content", EmitDefaultValue=false)] + public StringValue Content { get; set; } + + [DataMember(Name="CrossReferences", EmitDefaultValue=false)] + public List CrossReferences { get; set; } + + [DataMember(Name="CurrentStdCost", EmitDefaultValue=false)] + public DecimalValue CurrentStdCost { get; set; } + + [DataMember(Name="DefaultIssueLocationID", EmitDefaultValue=false)] + public StringValue DefaultIssueLocationID { get; set; } + + [DataMember(Name="DefaultPrice", EmitDefaultValue=false)] + public DecimalValue DefaultPrice { get; set; } + + [DataMember(Name="DefaultReceiptLocationID", EmitDefaultValue=false)] + public StringValue DefaultReceiptLocationID { get; set; } + + [DataMember(Name="DefaultSubitem", EmitDefaultValue=false)] + public StringValue DefaultSubitem { get; set; } + + [DataMember(Name="DefaultWarehouseID", EmitDefaultValue=false)] + public StringValue DefaultWarehouseID { get; set; } + + [DataMember(Name="DeferralAccount", EmitDefaultValue=false)] + public StringValue DeferralAccount { get; set; } + + [DataMember(Name="DeferralSubaccount", EmitDefaultValue=false)] + public StringValue DeferralSubaccount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DimensionVolume", EmitDefaultValue=false)] + public DecimalValue DimensionVolume { get; set; } + + [DataMember(Name="DimensionWeight", EmitDefaultValue=false)] + public DecimalValue DimensionWeight { get; set; } + + [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] + public StringValue DiscountAccount { get; set; } + + [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] + public StringValue DiscountSubaccount { get; set; } + + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public StringValue ImageUrl { get; set; } + + [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] + public StringValue InventoryAccount { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] + public StringValue InventorySubaccount { get; set; } + + [DataMember(Name="IsAKit", EmitDefaultValue=false)] + public BooleanValue IsAKit { get; set; } + + [DataMember(Name="ItemClass", EmitDefaultValue=false)] + public StringValue ItemClass { get; set; } + + [DataMember(Name="ItemStatus", EmitDefaultValue=false)] + public StringValue ItemStatus { get; set; } + + [DataMember(Name="ItemType", EmitDefaultValue=false)] + public StringValue ItemType { get; set; } + + [DataMember(Name="LandedCostVarianceAccount", EmitDefaultValue=false)] + public StringValue LandedCostVarianceAccount { get; set; } + + [DataMember(Name="LandedCostVarianceSubaccount", EmitDefaultValue=false)] + public StringValue LandedCostVarianceSubaccount { get; set; } + + [DataMember(Name="LastCost", EmitDefaultValue=false)] + public DecimalValue LastCost { get; set; } + + [DataMember(Name="LastModified", EmitDefaultValue=false)] + public DateTimeValue LastModified { get; set; } + + [DataMember(Name="LastStdCost", EmitDefaultValue=false)] + public DecimalValue LastStdCost { get; set; } + + [DataMember(Name="LotSerialClass", EmitDefaultValue=false)] + public StringValue LotSerialClass { get; set; } + + [DataMember(Name="Markup", EmitDefaultValue=false)] + public DecimalValue Markup { get; set; } + + [DataMember(Name="MaxCost", EmitDefaultValue=false)] + public DecimalValue MaxCost { get; set; } + + [DataMember(Name="MinCost", EmitDefaultValue=false)] + public DecimalValue MinCost { get; set; } + + [DataMember(Name="MinMarkup", EmitDefaultValue=false)] + public DecimalValue MinMarkup { get; set; } + + [DataMember(Name="MSRP", EmitDefaultValue=false)] + public DecimalValue MSRP { get; set; } + + [DataMember(Name="PackagingOption", EmitDefaultValue=false)] + public StringValue PackagingOption { get; set; } + + [DataMember(Name="PackSeparately", EmitDefaultValue=false)] + public BooleanValue PackSeparately { get; set; } + + [DataMember(Name="PendingStdCost", EmitDefaultValue=false)] + public DecimalValue PendingStdCost { get; set; } + + [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] + public StringValue POAccrualAccount { get; set; } + + [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] + public StringValue POAccrualSubaccount { get; set; } + + [DataMember(Name="PostingClass", EmitDefaultValue=false)] + public StringValue PostingClass { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="PriceManager", EmitDefaultValue=false)] + public StringValue PriceManager { get; set; } + + [DataMember(Name="PriceWorkgroup", EmitDefaultValue=false)] + public StringValue PriceWorkgroup { get; set; } + + [DataMember(Name="ProductManager", EmitDefaultValue=false)] + public StringValue ProductManager { get; set; } + + [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] + public StringValue ProductWorkgroup { get; set; } + + [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceAccount { get; set; } + + [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceSubaccount { get; set; } + + [DataMember(Name="PurchaseUOM", EmitDefaultValue=false)] + public StringValue PurchaseUOM { get; set; } + + [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] + public StringValue ReasonCodeSubaccount { get; set; } + + [DataMember(Name="ReplenishmentParameters", EmitDefaultValue=false)] + public List ReplenishmentParameters { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="SalesUOM", EmitDefaultValue=false)] + public StringValue SalesUOM { get; set; } + + [DataMember(Name="StandardCostRevaluationAccount", EmitDefaultValue=false)] + public StringValue StandardCostRevaluationAccount { get; set; } + + [DataMember(Name="StandardCostRevaluationSubaccount", EmitDefaultValue=false)] + public StringValue StandardCostRevaluationSubaccount { get; set; } + + [DataMember(Name="StandardCostVarianceAccount", EmitDefaultValue=false)] + public StringValue StandardCostVarianceAccount { get; set; } + + [DataMember(Name="StandardCostVarianceSubaccount", EmitDefaultValue=false)] + public StringValue StandardCostVarianceSubaccount { get; set; } + + [DataMember(Name="SubItems", EmitDefaultValue=false)] + public List SubItems { get; set; } + + [DataMember(Name="SubjectToCommission", EmitDefaultValue=false)] + public BooleanValue SubjectToCommission { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="UOMConversions", EmitDefaultValue=false)] + public List UOMConversions { get; set; } + + [DataMember(Name="UseOnEntry", EmitDefaultValue=false)] + public BooleanValue UseOnEntry { get; set; } + + [DataMember(Name="ValuationMethod", EmitDefaultValue=false)] + public StringValue ValuationMethod { get; set; } + + [DataMember(Name="VendorDetails", EmitDefaultValue=false)] + public List VendorDetails { get; set; } + + [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] + public StringValue VolumeUOM { get; set; } + + [DataMember(Name="WarehouseDetails", EmitDefaultValue=false)] + public List WarehouseDetails { get; set; } + + [DataMember(Name="WeightUOM", EmitDefaultValue=false)] + public StringValue WeightUOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/StockItemVendorDetail.cs b/Acumatica.Default_17.200.001/Model/StockItemVendorDetail.cs index 270581a5..ee96c729 100644 --- a/Acumatica.Default_17.200.001/Model/StockItemVendorDetail.cs +++ b/Acumatica.Default_17.200.001/Model/StockItemVendorDetail.cs @@ -1,414 +1,69 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// StockItemVendorDetail - /// - [DataContract] - public partial class StockItemVendorDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// addLeadTimeDays. - /// currencyID. - /// _default. - /// eOQ. - /// lastVendorPrice. - /// leadTimeDays. - /// location. - /// lotSize. - /// maxOrderQty. - /// minOrderFrequencyInDays. - /// minOrderQty. - /// _override. - /// purchaseUnit. - /// recordID. - /// subitem. - /// vendorID. - /// vendorName. - /// warehouse. - public StockItemVendorDetail(BooleanValue active = default(BooleanValue), ShortValue addLeadTimeDays = default(ShortValue), StringValue currencyID = default(StringValue), BooleanValue _default = default(BooleanValue), DecimalValue eOQ = default(DecimalValue), DecimalValue lastVendorPrice = default(DecimalValue), ShortValue leadTimeDays = default(ShortValue), StringValue location = default(StringValue), DecimalValue lotSize = default(DecimalValue), DecimalValue maxOrderQty = default(DecimalValue), IntValue minOrderFrequencyInDays = default(IntValue), DecimalValue minOrderQty = default(DecimalValue), BooleanValue _override = default(BooleanValue), StringValue purchaseUnit = default(StringValue), IntValue recordID = default(IntValue), StringValue subitem = default(StringValue), StringValue vendorID = default(StringValue), StringValue vendorName = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AddLeadTimeDays = addLeadTimeDays; - this.CurrencyID = currencyID; - this.Default = _default; - this.EOQ = eOQ; - this.LastVendorPrice = lastVendorPrice; - this.LeadTimeDays = leadTimeDays; - this.Location = location; - this.LotSize = lotSize; - this.MaxOrderQty = maxOrderQty; - this.MinOrderFrequencyInDays = minOrderFrequencyInDays; - this.MinOrderQty = minOrderQty; - this.Override = _override; - this.PurchaseUnit = purchaseUnit; - this.RecordID = recordID; - this.Subitem = subitem; - this.VendorID = vendorID; - this.VendorName = vendorName; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AddLeadTimeDays - /// - [DataMember(Name="AddLeadTimeDays", EmitDefaultValue=false)] - public ShortValue AddLeadTimeDays { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Default - /// - [DataMember(Name="Default", EmitDefaultValue=false)] - public BooleanValue Default { get; set; } - - /// - /// Gets or Sets EOQ - /// - [DataMember(Name="EOQ", EmitDefaultValue=false)] - public DecimalValue EOQ { get; set; } - - /// - /// Gets or Sets LastVendorPrice - /// - [DataMember(Name="LastVendorPrice", EmitDefaultValue=false)] - public DecimalValue LastVendorPrice { get; set; } + [DataContract] + public partial class StockItemVendorDetail : Entity + { - /// - /// Gets or Sets LeadTimeDays - /// - [DataMember(Name="LeadTimeDays", EmitDefaultValue=false)] - public ShortValue LeadTimeDays { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } + [DataMember(Name="AddLeadTimeDays", EmitDefaultValue=false)] + public ShortValue AddLeadTimeDays { get; set; } - /// - /// Gets or Sets LotSize - /// - [DataMember(Name="LotSize", EmitDefaultValue=false)] - public DecimalValue LotSize { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets MaxOrderQty - /// - [DataMember(Name="MaxOrderQty", EmitDefaultValue=false)] - public DecimalValue MaxOrderQty { get; set; } + [DataMember(Name="Default", EmitDefaultValue=false)] + public BooleanValue Default { get; set; } - /// - /// Gets or Sets MinOrderFrequencyInDays - /// - [DataMember(Name="MinOrderFrequencyInDays", EmitDefaultValue=false)] - public IntValue MinOrderFrequencyInDays { get; set; } + [DataMember(Name="EOQ", EmitDefaultValue=false)] + public DecimalValue EOQ { get; set; } - /// - /// Gets or Sets MinOrderQty - /// - [DataMember(Name="MinOrderQty", EmitDefaultValue=false)] - public DecimalValue MinOrderQty { get; set; } + [DataMember(Name="LastVendorPrice", EmitDefaultValue=false)] + public DecimalValue LastVendorPrice { get; set; } - /// - /// Gets or Sets Override - /// - [DataMember(Name="Override", EmitDefaultValue=false)] - public BooleanValue Override { get; set; } + [DataMember(Name="LeadTimeDays", EmitDefaultValue=false)] + public ShortValue LeadTimeDays { get; set; } - /// - /// Gets or Sets PurchaseUnit - /// - [DataMember(Name="PurchaseUnit", EmitDefaultValue=false)] - public StringValue PurchaseUnit { get; set; } + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } + [DataMember(Name="LotSize", EmitDefaultValue=false)] + public DecimalValue LotSize { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="MaxOrderQty", EmitDefaultValue=false)] + public DecimalValue MaxOrderQty { get; set; } - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } + [DataMember(Name="MinOrderFrequencyInDays", EmitDefaultValue=false)] + public IntValue MinOrderFrequencyInDays { get; set; } - /// - /// Gets or Sets VendorName - /// - [DataMember(Name="VendorName", EmitDefaultValue=false)] - public StringValue VendorName { get; set; } + [DataMember(Name="MinOrderQty", EmitDefaultValue=false)] + public DecimalValue MinOrderQty { get; set; } - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } + [DataMember(Name="Override", EmitDefaultValue=false)] + public BooleanValue Override { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StockItemVendorDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AddLeadTimeDays: ").Append(AddLeadTimeDays).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append(" EOQ: ").Append(EOQ).Append("\n"); - sb.Append(" LastVendorPrice: ").Append(LastVendorPrice).Append("\n"); - sb.Append(" LeadTimeDays: ").Append(LeadTimeDays).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSize: ").Append(LotSize).Append("\n"); - sb.Append(" MaxOrderQty: ").Append(MaxOrderQty).Append("\n"); - sb.Append(" MinOrderFrequencyInDays: ").Append(MinOrderFrequencyInDays).Append("\n"); - sb.Append(" MinOrderQty: ").Append(MinOrderQty).Append("\n"); - sb.Append(" Override: ").Append(Override).Append("\n"); - sb.Append(" PurchaseUnit: ").Append(PurchaseUnit).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append(" VendorName: ").Append(VendorName).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PurchaseUnit", EmitDefaultValue=false)] + public StringValue PurchaseUnit { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StockItemVendorDetail); - } + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } - /// - /// Returns true if StockItemVendorDetail instances are equal - /// - /// Instance of StockItemVendorDetail to be compared - /// Boolean - public bool Equals(StockItemVendorDetail input) - { - if (input == null) - return false; + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AddLeadTimeDays == input.AddLeadTimeDays || - (this.AddLeadTimeDays != null && - this.AddLeadTimeDays.Equals(input.AddLeadTimeDays)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ) && base.Equals(input) && - ( - this.EOQ == input.EOQ || - (this.EOQ != null && - this.EOQ.Equals(input.EOQ)) - ) && base.Equals(input) && - ( - this.LastVendorPrice == input.LastVendorPrice || - (this.LastVendorPrice != null && - this.LastVendorPrice.Equals(input.LastVendorPrice)) - ) && base.Equals(input) && - ( - this.LeadTimeDays == input.LeadTimeDays || - (this.LeadTimeDays != null && - this.LeadTimeDays.Equals(input.LeadTimeDays)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSize == input.LotSize || - (this.LotSize != null && - this.LotSize.Equals(input.LotSize)) - ) && base.Equals(input) && - ( - this.MaxOrderQty == input.MaxOrderQty || - (this.MaxOrderQty != null && - this.MaxOrderQty.Equals(input.MaxOrderQty)) - ) && base.Equals(input) && - ( - this.MinOrderFrequencyInDays == input.MinOrderFrequencyInDays || - (this.MinOrderFrequencyInDays != null && - this.MinOrderFrequencyInDays.Equals(input.MinOrderFrequencyInDays)) - ) && base.Equals(input) && - ( - this.MinOrderQty == input.MinOrderQty || - (this.MinOrderQty != null && - this.MinOrderQty.Equals(input.MinOrderQty)) - ) && base.Equals(input) && - ( - this.Override == input.Override || - (this.Override != null && - this.Override.Equals(input.Override)) - ) && base.Equals(input) && - ( - this.PurchaseUnit == input.PurchaseUnit || - (this.PurchaseUnit != null && - this.PurchaseUnit.Equals(input.PurchaseUnit)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ) && base.Equals(input) && - ( - this.VendorName == input.VendorName || - (this.VendorName != null && - this.VendorName.Equals(input.VendorName)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AddLeadTimeDays != null) - hashCode = hashCode * 59 + this.AddLeadTimeDays.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - if (this.EOQ != null) - hashCode = hashCode * 59 + this.EOQ.GetHashCode(); - if (this.LastVendorPrice != null) - hashCode = hashCode * 59 + this.LastVendorPrice.GetHashCode(); - if (this.LeadTimeDays != null) - hashCode = hashCode * 59 + this.LeadTimeDays.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSize != null) - hashCode = hashCode * 59 + this.LotSize.GetHashCode(); - if (this.MaxOrderQty != null) - hashCode = hashCode * 59 + this.MaxOrderQty.GetHashCode(); - if (this.MinOrderFrequencyInDays != null) - hashCode = hashCode * 59 + this.MinOrderFrequencyInDays.GetHashCode(); - if (this.MinOrderQty != null) - hashCode = hashCode * 59 + this.MinOrderQty.GetHashCode(); - if (this.Override != null) - hashCode = hashCode * 59 + this.Override.GetHashCode(); - if (this.PurchaseUnit != null) - hashCode = hashCode * 59 + this.PurchaseUnit.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - if (this.VendorName != null) - hashCode = hashCode * 59 + this.VendorName.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="VendorName", EmitDefaultValue=false)] + public StringValue VendorName { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/StockItemWarehouseDetail.cs b/Acumatica.Default_17.200.001/Model/StockItemWarehouseDetail.cs index c1bf53e5..ca254933 100644 --- a/Acumatica.Default_17.200.001/Model/StockItemWarehouseDetail.cs +++ b/Acumatica.Default_17.200.001/Model/StockItemWarehouseDetail.cs @@ -1,478 +1,81 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// StockItemWarehouseDetail - /// - [DataContract] - public partial class StockItemWarehouseDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// dailyDemandForecast. - /// dailyDemandForecastErrorSTDEV. - /// defaultIssueLocationID. - /// defaultReceiptLocationID. - /// inventoryAccount. - /// inventorySubaccount. - /// isDefault. - /// lastForecastDate. - /// _override. - /// overridePreferredVendor. - /// overrideReplenishmentSettings. - /// overrideStdCost. - /// preferredVendor. - /// priceOverride. - /// productManager. - /// productWorkgroup. - /// qtyOnHand. - /// replenishmentSource. - /// replenishmentWarehouse. - /// seasonality. - /// serviceLevel. - /// status. - /// warehouseID. - public StockItemWarehouseDetail(DecimalValue dailyDemandForecast = default(DecimalValue), DecimalValue dailyDemandForecastErrorSTDEV = default(DecimalValue), StringValue defaultIssueLocationID = default(StringValue), StringValue defaultReceiptLocationID = default(StringValue), StringValue inventoryAccount = default(StringValue), StringValue inventorySubaccount = default(StringValue), BooleanValue isDefault = default(BooleanValue), DateTimeValue lastForecastDate = default(DateTimeValue), BooleanValue _override = default(BooleanValue), BooleanValue overridePreferredVendor = default(BooleanValue), BooleanValue overrideReplenishmentSettings = default(BooleanValue), BooleanValue overrideStdCost = default(BooleanValue), StringValue preferredVendor = default(StringValue), BooleanValue priceOverride = default(BooleanValue), StringValue productManager = default(StringValue), StringValue productWorkgroup = default(StringValue), DecimalValue qtyOnHand = default(DecimalValue), StringValue replenishmentSource = default(StringValue), StringValue replenishmentWarehouse = default(StringValue), StringValue seasonality = default(StringValue), DecimalValue serviceLevel = default(DecimalValue), StringValue status = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DailyDemandForecast = dailyDemandForecast; - this.DailyDemandForecastErrorSTDEV = dailyDemandForecastErrorSTDEV; - this.DefaultIssueLocationID = defaultIssueLocationID; - this.DefaultReceiptLocationID = defaultReceiptLocationID; - this.InventoryAccount = inventoryAccount; - this.InventorySubaccount = inventorySubaccount; - this.IsDefault = isDefault; - this.LastForecastDate = lastForecastDate; - this.Override = _override; - this.OverridePreferredVendor = overridePreferredVendor; - this.OverrideReplenishmentSettings = overrideReplenishmentSettings; - this.OverrideStdCost = overrideStdCost; - this.PreferredVendor = preferredVendor; - this.PriceOverride = priceOverride; - this.ProductManager = productManager; - this.ProductWorkgroup = productWorkgroup; - this.QtyOnHand = qtyOnHand; - this.ReplenishmentSource = replenishmentSource; - this.ReplenishmentWarehouse = replenishmentWarehouse; - this.Seasonality = seasonality; - this.ServiceLevel = serviceLevel; - this.Status = status; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets DailyDemandForecast - /// - [DataMember(Name="DailyDemandForecast", EmitDefaultValue=false)] - public DecimalValue DailyDemandForecast { get; set; } - - /// - /// Gets or Sets DailyDemandForecastErrorSTDEV - /// - [DataMember(Name="DailyDemandForecastErrorSTDEV", EmitDefaultValue=false)] - public DecimalValue DailyDemandForecastErrorSTDEV { get; set; } - - /// - /// Gets or Sets DefaultIssueLocationID - /// - [DataMember(Name="DefaultIssueLocationID", EmitDefaultValue=false)] - public StringValue DefaultIssueLocationID { get; set; } - - /// - /// Gets or Sets DefaultReceiptLocationID - /// - [DataMember(Name="DefaultReceiptLocationID", EmitDefaultValue=false)] - public StringValue DefaultReceiptLocationID { get; set; } - - /// - /// Gets or Sets InventoryAccount - /// - [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] - public StringValue InventoryAccount { get; set; } - - /// - /// Gets or Sets InventorySubaccount - /// - [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] - public StringValue InventorySubaccount { get; set; } + [DataContract] + public partial class StockItemWarehouseDetail : Entity + { - /// - /// Gets or Sets IsDefault - /// - [DataMember(Name="IsDefault", EmitDefaultValue=false)] - public BooleanValue IsDefault { get; set; } + [DataMember(Name="DailyDemandForecast", EmitDefaultValue=false)] + public DecimalValue DailyDemandForecast { get; set; } - /// - /// Gets or Sets LastForecastDate - /// - [DataMember(Name="LastForecastDate", EmitDefaultValue=false)] - public DateTimeValue LastForecastDate { get; set; } + [DataMember(Name="DailyDemandForecastErrorSTDEV", EmitDefaultValue=false)] + public DecimalValue DailyDemandForecastErrorSTDEV { get; set; } - /// - /// Gets or Sets Override - /// - [DataMember(Name="Override", EmitDefaultValue=false)] - public BooleanValue Override { get; set; } + [DataMember(Name="DefaultIssueLocationID", EmitDefaultValue=false)] + public StringValue DefaultIssueLocationID { get; set; } - /// - /// Gets or Sets OverridePreferredVendor - /// - [DataMember(Name="OverridePreferredVendor", EmitDefaultValue=false)] - public BooleanValue OverridePreferredVendor { get; set; } + [DataMember(Name="DefaultReceiptLocationID", EmitDefaultValue=false)] + public StringValue DefaultReceiptLocationID { get; set; } - /// - /// Gets or Sets OverrideReplenishmentSettings - /// - [DataMember(Name="OverrideReplenishmentSettings", EmitDefaultValue=false)] - public BooleanValue OverrideReplenishmentSettings { get; set; } + [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] + public StringValue InventoryAccount { get; set; } - /// - /// Gets or Sets OverrideStdCost - /// - [DataMember(Name="OverrideStdCost", EmitDefaultValue=false)] - public BooleanValue OverrideStdCost { get; set; } + [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] + public StringValue InventorySubaccount { get; set; } - /// - /// Gets or Sets PreferredVendor - /// - [DataMember(Name="PreferredVendor", EmitDefaultValue=false)] - public StringValue PreferredVendor { get; set; } + [DataMember(Name="IsDefault", EmitDefaultValue=false)] + public BooleanValue IsDefault { get; set; } - /// - /// Gets or Sets PriceOverride - /// - [DataMember(Name="PriceOverride", EmitDefaultValue=false)] - public BooleanValue PriceOverride { get; set; } + [DataMember(Name="LastForecastDate", EmitDefaultValue=false)] + public DateTimeValue LastForecastDate { get; set; } - /// - /// Gets or Sets ProductManager - /// - [DataMember(Name="ProductManager", EmitDefaultValue=false)] - public StringValue ProductManager { get; set; } + [DataMember(Name="Override", EmitDefaultValue=false)] + public BooleanValue Override { get; set; } - /// - /// Gets or Sets ProductWorkgroup - /// - [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] - public StringValue ProductWorkgroup { get; set; } + [DataMember(Name="OverridePreferredVendor", EmitDefaultValue=false)] + public BooleanValue OverridePreferredVendor { get; set; } - /// - /// Gets or Sets QtyOnHand - /// - [DataMember(Name="QtyOnHand", EmitDefaultValue=false)] - public DecimalValue QtyOnHand { get; set; } + [DataMember(Name="OverrideReplenishmentSettings", EmitDefaultValue=false)] + public BooleanValue OverrideReplenishmentSettings { get; set; } - /// - /// Gets or Sets ReplenishmentSource - /// - [DataMember(Name="ReplenishmentSource", EmitDefaultValue=false)] - public StringValue ReplenishmentSource { get; set; } + [DataMember(Name="OverrideStdCost", EmitDefaultValue=false)] + public BooleanValue OverrideStdCost { get; set; } - /// - /// Gets or Sets ReplenishmentWarehouse - /// - [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] - public StringValue ReplenishmentWarehouse { get; set; } + [DataMember(Name="PreferredVendor", EmitDefaultValue=false)] + public StringValue PreferredVendor { get; set; } - /// - /// Gets or Sets Seasonality - /// - [DataMember(Name="Seasonality", EmitDefaultValue=false)] - public StringValue Seasonality { get; set; } + [DataMember(Name="PriceOverride", EmitDefaultValue=false)] + public BooleanValue PriceOverride { get; set; } - /// - /// Gets or Sets ServiceLevel - /// - [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] - public DecimalValue ServiceLevel { get; set; } + [DataMember(Name="ProductManager", EmitDefaultValue=false)] + public StringValue ProductManager { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] + public StringValue ProductWorkgroup { get; set; } - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } + [DataMember(Name="QtyOnHand", EmitDefaultValue=false)] + public DecimalValue QtyOnHand { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StockItemWarehouseDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DailyDemandForecast: ").Append(DailyDemandForecast).Append("\n"); - sb.Append(" DailyDemandForecastErrorSTDEV: ").Append(DailyDemandForecastErrorSTDEV).Append("\n"); - sb.Append(" DefaultIssueLocationID: ").Append(DefaultIssueLocationID).Append("\n"); - sb.Append(" DefaultReceiptLocationID: ").Append(DefaultReceiptLocationID).Append("\n"); - sb.Append(" InventoryAccount: ").Append(InventoryAccount).Append("\n"); - sb.Append(" InventorySubaccount: ").Append(InventorySubaccount).Append("\n"); - sb.Append(" IsDefault: ").Append(IsDefault).Append("\n"); - sb.Append(" LastForecastDate: ").Append(LastForecastDate).Append("\n"); - sb.Append(" Override: ").Append(Override).Append("\n"); - sb.Append(" OverridePreferredVendor: ").Append(OverridePreferredVendor).Append("\n"); - sb.Append(" OverrideReplenishmentSettings: ").Append(OverrideReplenishmentSettings).Append("\n"); - sb.Append(" OverrideStdCost: ").Append(OverrideStdCost).Append("\n"); - sb.Append(" PreferredVendor: ").Append(PreferredVendor).Append("\n"); - sb.Append(" PriceOverride: ").Append(PriceOverride).Append("\n"); - sb.Append(" ProductManager: ").Append(ProductManager).Append("\n"); - sb.Append(" ProductWorkgroup: ").Append(ProductWorkgroup).Append("\n"); - sb.Append(" QtyOnHand: ").Append(QtyOnHand).Append("\n"); - sb.Append(" ReplenishmentSource: ").Append(ReplenishmentSource).Append("\n"); - sb.Append(" ReplenishmentWarehouse: ").Append(ReplenishmentWarehouse).Append("\n"); - sb.Append(" Seasonality: ").Append(Seasonality).Append("\n"); - sb.Append(" ServiceLevel: ").Append(ServiceLevel).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ReplenishmentSource", EmitDefaultValue=false)] + public StringValue ReplenishmentSource { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StockItemWarehouseDetail); - } + [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] + public StringValue ReplenishmentWarehouse { get; set; } - /// - /// Returns true if StockItemWarehouseDetail instances are equal - /// - /// Instance of StockItemWarehouseDetail to be compared - /// Boolean - public bool Equals(StockItemWarehouseDetail input) - { - if (input == null) - return false; + [DataMember(Name="Seasonality", EmitDefaultValue=false)] + public StringValue Seasonality { get; set; } - return base.Equals(input) && - ( - this.DailyDemandForecast == input.DailyDemandForecast || - (this.DailyDemandForecast != null && - this.DailyDemandForecast.Equals(input.DailyDemandForecast)) - ) && base.Equals(input) && - ( - this.DailyDemandForecastErrorSTDEV == input.DailyDemandForecastErrorSTDEV || - (this.DailyDemandForecastErrorSTDEV != null && - this.DailyDemandForecastErrorSTDEV.Equals(input.DailyDemandForecastErrorSTDEV)) - ) && base.Equals(input) && - ( - this.DefaultIssueLocationID == input.DefaultIssueLocationID || - (this.DefaultIssueLocationID != null && - this.DefaultIssueLocationID.Equals(input.DefaultIssueLocationID)) - ) && base.Equals(input) && - ( - this.DefaultReceiptLocationID == input.DefaultReceiptLocationID || - (this.DefaultReceiptLocationID != null && - this.DefaultReceiptLocationID.Equals(input.DefaultReceiptLocationID)) - ) && base.Equals(input) && - ( - this.InventoryAccount == input.InventoryAccount || - (this.InventoryAccount != null && - this.InventoryAccount.Equals(input.InventoryAccount)) - ) && base.Equals(input) && - ( - this.InventorySubaccount == input.InventorySubaccount || - (this.InventorySubaccount != null && - this.InventorySubaccount.Equals(input.InventorySubaccount)) - ) && base.Equals(input) && - ( - this.IsDefault == input.IsDefault || - (this.IsDefault != null && - this.IsDefault.Equals(input.IsDefault)) - ) && base.Equals(input) && - ( - this.LastForecastDate == input.LastForecastDate || - (this.LastForecastDate != null && - this.LastForecastDate.Equals(input.LastForecastDate)) - ) && base.Equals(input) && - ( - this.Override == input.Override || - (this.Override != null && - this.Override.Equals(input.Override)) - ) && base.Equals(input) && - ( - this.OverridePreferredVendor == input.OverridePreferredVendor || - (this.OverridePreferredVendor != null && - this.OverridePreferredVendor.Equals(input.OverridePreferredVendor)) - ) && base.Equals(input) && - ( - this.OverrideReplenishmentSettings == input.OverrideReplenishmentSettings || - (this.OverrideReplenishmentSettings != null && - this.OverrideReplenishmentSettings.Equals(input.OverrideReplenishmentSettings)) - ) && base.Equals(input) && - ( - this.OverrideStdCost == input.OverrideStdCost || - (this.OverrideStdCost != null && - this.OverrideStdCost.Equals(input.OverrideStdCost)) - ) && base.Equals(input) && - ( - this.PreferredVendor == input.PreferredVendor || - (this.PreferredVendor != null && - this.PreferredVendor.Equals(input.PreferredVendor)) - ) && base.Equals(input) && - ( - this.PriceOverride == input.PriceOverride || - (this.PriceOverride != null && - this.PriceOverride.Equals(input.PriceOverride)) - ) && base.Equals(input) && - ( - this.ProductManager == input.ProductManager || - (this.ProductManager != null && - this.ProductManager.Equals(input.ProductManager)) - ) && base.Equals(input) && - ( - this.ProductWorkgroup == input.ProductWorkgroup || - (this.ProductWorkgroup != null && - this.ProductWorkgroup.Equals(input.ProductWorkgroup)) - ) && base.Equals(input) && - ( - this.QtyOnHand == input.QtyOnHand || - (this.QtyOnHand != null && - this.QtyOnHand.Equals(input.QtyOnHand)) - ) && base.Equals(input) && - ( - this.ReplenishmentSource == input.ReplenishmentSource || - (this.ReplenishmentSource != null && - this.ReplenishmentSource.Equals(input.ReplenishmentSource)) - ) && base.Equals(input) && - ( - this.ReplenishmentWarehouse == input.ReplenishmentWarehouse || - (this.ReplenishmentWarehouse != null && - this.ReplenishmentWarehouse.Equals(input.ReplenishmentWarehouse)) - ) && base.Equals(input) && - ( - this.Seasonality == input.Seasonality || - (this.Seasonality != null && - this.Seasonality.Equals(input.Seasonality)) - ) && base.Equals(input) && - ( - this.ServiceLevel == input.ServiceLevel || - (this.ServiceLevel != null && - this.ServiceLevel.Equals(input.ServiceLevel)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } + [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] + public DecimalValue ServiceLevel { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DailyDemandForecast != null) - hashCode = hashCode * 59 + this.DailyDemandForecast.GetHashCode(); - if (this.DailyDemandForecastErrorSTDEV != null) - hashCode = hashCode * 59 + this.DailyDemandForecastErrorSTDEV.GetHashCode(); - if (this.DefaultIssueLocationID != null) - hashCode = hashCode * 59 + this.DefaultIssueLocationID.GetHashCode(); - if (this.DefaultReceiptLocationID != null) - hashCode = hashCode * 59 + this.DefaultReceiptLocationID.GetHashCode(); - if (this.InventoryAccount != null) - hashCode = hashCode * 59 + this.InventoryAccount.GetHashCode(); - if (this.InventorySubaccount != null) - hashCode = hashCode * 59 + this.InventorySubaccount.GetHashCode(); - if (this.IsDefault != null) - hashCode = hashCode * 59 + this.IsDefault.GetHashCode(); - if (this.LastForecastDate != null) - hashCode = hashCode * 59 + this.LastForecastDate.GetHashCode(); - if (this.Override != null) - hashCode = hashCode * 59 + this.Override.GetHashCode(); - if (this.OverridePreferredVendor != null) - hashCode = hashCode * 59 + this.OverridePreferredVendor.GetHashCode(); - if (this.OverrideReplenishmentSettings != null) - hashCode = hashCode * 59 + this.OverrideReplenishmentSettings.GetHashCode(); - if (this.OverrideStdCost != null) - hashCode = hashCode * 59 + this.OverrideStdCost.GetHashCode(); - if (this.PreferredVendor != null) - hashCode = hashCode * 59 + this.PreferredVendor.GetHashCode(); - if (this.PriceOverride != null) - hashCode = hashCode * 59 + this.PriceOverride.GetHashCode(); - if (this.ProductManager != null) - hashCode = hashCode * 59 + this.ProductManager.GetHashCode(); - if (this.ProductWorkgroup != null) - hashCode = hashCode * 59 + this.ProductWorkgroup.GetHashCode(); - if (this.QtyOnHand != null) - hashCode = hashCode * 59 + this.QtyOnHand.GetHashCode(); - if (this.ReplenishmentSource != null) - hashCode = hashCode * 59 + this.ReplenishmentSource.GetHashCode(); - if (this.ReplenishmentWarehouse != null) - hashCode = hashCode * 59 + this.ReplenishmentWarehouse.GetHashCode(); - if (this.Seasonality != null) - hashCode = hashCode * 59 + this.Seasonality.GetHashCode(); - if (this.ServiceLevel != null) - hashCode = hashCode * 59 + this.ServiceLevel.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/SubItemStockItem.cs b/Acumatica.Default_17.200.001/Model/SubItemStockItem.cs index d1225e54..d6064da8 100644 --- a/Acumatica.Default_17.200.001/Model/SubItemStockItem.cs +++ b/Acumatica.Default_17.200.001/Model/SubItemStockItem.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// SubItemStockItem - /// - [DataContract] - public partial class SubItemStockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// description. - /// segmentID. - /// value. - public SubItemStockItem(BooleanValue active = default(BooleanValue), StringValue description = default(StringValue), ShortValue segmentID = default(ShortValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Description = description; - this.SegmentID = segmentID; - this.Value = value; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets SegmentID - /// - [DataMember(Name="SegmentID", EmitDefaultValue=false)] - public ShortValue SegmentID { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SubItemStockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" SegmentID: ").Append(SegmentID).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SubItemStockItem); - } + [DataContract] + public partial class SubItemStockItem : Entity + { - /// - /// Returns true if SubItemStockItem instances are equal - /// - /// Instance of SubItemStockItem to be compared - /// Boolean - public bool Equals(SubItemStockItem input) - { - if (input == null) - return false; + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.SegmentID == input.SegmentID || - (this.SegmentID != null && - this.SegmentID.Equals(input.SegmentID)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.SegmentID != null) - hashCode = hashCode * 59 + this.SegmentID.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="SegmentID", EmitDefaultValue=false)] + public ShortValue SegmentID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Subaccount.cs b/Acumatica.Default_17.200.001/Model/Subaccount.cs index d349e35f..593c0e00 100644 --- a/Acumatica.Default_17.200.001/Model/Subaccount.cs +++ b/Acumatica.Default_17.200.001/Model/Subaccount.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Subaccount - /// - [DataContract] - public partial class Subaccount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// description. - /// secured. - /// subaccountCD. - /// subaccountID. - public Subaccount(BooleanValue active = default(BooleanValue), StringValue description = default(StringValue), BooleanValue secured = default(BooleanValue), StringValue subaccountCD = default(StringValue), IntValue subaccountID = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Description = description; - this.Secured = secured; - this.SubaccountCD = subaccountCD; - this.SubaccountID = subaccountID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Secured - /// - [DataMember(Name="Secured", EmitDefaultValue=false)] - public BooleanValue Secured { get; set; } - - /// - /// Gets or Sets SubaccountCD - /// - [DataMember(Name="SubaccountCD", EmitDefaultValue=false)] - public StringValue SubaccountCD { get; set; } - - /// - /// Gets or Sets SubaccountID - /// - [DataMember(Name="SubaccountID", EmitDefaultValue=false)] - public IntValue SubaccountID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Subaccount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Secured: ").Append(Secured).Append("\n"); - sb.Append(" SubaccountCD: ").Append(SubaccountCD).Append("\n"); - sb.Append(" SubaccountID: ").Append(SubaccountID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class Subaccount : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Subaccount); - } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Returns true if Subaccount instances are equal - /// - /// Instance of Subaccount to be compared - /// Boolean - public bool Equals(Subaccount input) - { - if (input == null) - return false; + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Secured == input.Secured || - (this.Secured != null && - this.Secured.Equals(input.Secured)) - ) && base.Equals(input) && - ( - this.SubaccountCD == input.SubaccountCD || - (this.SubaccountCD != null && - this.SubaccountCD.Equals(input.SubaccountCD)) - ) && base.Equals(input) && - ( - this.SubaccountID == input.SubaccountID || - (this.SubaccountID != null && - this.SubaccountID.Equals(input.SubaccountID)) - ); - } + [DataMember(Name="Secured", EmitDefaultValue=false)] + public BooleanValue Secured { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Secured != null) - hashCode = hashCode * 59 + this.Secured.GetHashCode(); - if (this.SubaccountCD != null) - hashCode = hashCode * 59 + this.SubaccountCD.GetHashCode(); - if (this.SubaccountID != null) - hashCode = hashCode * 59 + this.SubaccountID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="SubaccountCD", EmitDefaultValue=false)] + public StringValue SubaccountCD { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="SubaccountID", EmitDefaultValue=false)] + public IntValue SubaccountID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Task.cs b/Acumatica.Default_17.200.001/Model/Task.cs index 5451ae97..939a0ebe 100644 --- a/Acumatica.Default_17.200.001/Model/Task.cs +++ b/Acumatica.Default_17.200.001/Model/Task.cs @@ -1,430 +1,72 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Task - /// - [DataContract] - public partial class Task : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// body. - /// category. - /// completedAt. - /// completionPercentage. - /// dueDate. - /// _internal. - /// noteID. - /// owner. - /// parent. - /// parentSummary. - /// priority. - /// relatedActivities. - /// relatedEntityDescription. - /// relatedTasks. - /// reminder. - /// startDate. - /// status. - /// summary. - /// timeActivity. - /// workgroupID. - public Task(StringValue body = default(StringValue), StringValue category = default(StringValue), DateTimeValue completedAt = default(DateTimeValue), IntValue completionPercentage = default(IntValue), DateTimeValue dueDate = default(DateTimeValue), BooleanValue _internal = default(BooleanValue), GuidValue noteID = default(GuidValue), StringValue owner = default(StringValue), GuidValue parent = default(GuidValue), StringValue parentSummary = default(StringValue), StringValue priority = default(StringValue), List relatedActivities = default(List), StringValue relatedEntityDescription = default(StringValue), List relatedTasks = default(List), ReminderDetail reminder = default(ReminderDetail), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), TaskTimeActivity timeActivity = default(TaskTimeActivity), StringValue workgroupID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Body = body; - this.Category = category; - this.CompletedAt = completedAt; - this.CompletionPercentage = completionPercentage; - this.DueDate = dueDate; - this.Internal = _internal; - this.NoteID = noteID; - this.Owner = owner; - this.Parent = parent; - this.ParentSummary = parentSummary; - this.Priority = priority; - this.RelatedActivities = relatedActivities; - this.RelatedEntityDescription = relatedEntityDescription; - this.RelatedTasks = relatedTasks; - this.Reminder = reminder; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeActivity = timeActivity; - this.WorkgroupID = workgroupID; - } - - /// - /// Gets or Sets Body - /// - [DataMember(Name="Body", EmitDefaultValue=false)] - public StringValue Body { get; set; } - - /// - /// Gets or Sets Category - /// - [DataMember(Name="Category", EmitDefaultValue=false)] - public StringValue Category { get; set; } - - /// - /// Gets or Sets CompletedAt - /// - [DataMember(Name="CompletedAt", EmitDefaultValue=false)] - public DateTimeValue CompletedAt { get; set; } - - /// - /// Gets or Sets CompletionPercentage - /// - [DataMember(Name="CompletionPercentage", EmitDefaultValue=false)] - public IntValue CompletionPercentage { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets Internal - /// - [DataMember(Name="Internal", EmitDefaultValue=false)] - public BooleanValue Internal { get; set; } + [DataContract] + public partial class Task : Entity + { - /// - /// Gets or Sets NoteID - /// - [DataMember(Name="NoteID", EmitDefaultValue=false)] - public GuidValue NoteID { get; set; } + [DataMember(Name="Body", EmitDefaultValue=false)] + public StringValue Body { get; set; } - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataMember(Name="Category", EmitDefaultValue=false)] + public StringValue Category { get; set; } - /// - /// Gets or Sets Parent - /// - [DataMember(Name="Parent", EmitDefaultValue=false)] - public GuidValue Parent { get; set; } + [DataMember(Name="CompletedAt", EmitDefaultValue=false)] + public DateTimeValue CompletedAt { get; set; } - /// - /// Gets or Sets ParentSummary - /// - [DataMember(Name="ParentSummary", EmitDefaultValue=false)] - public StringValue ParentSummary { get; set; } + [DataMember(Name="CompletionPercentage", EmitDefaultValue=false)] + public IntValue CompletionPercentage { get; set; } - /// - /// Gets or Sets Priority - /// - [DataMember(Name="Priority", EmitDefaultValue=false)] - public StringValue Priority { get; set; } + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } - /// - /// Gets or Sets RelatedActivities - /// - [DataMember(Name="RelatedActivities", EmitDefaultValue=false)] - public List RelatedActivities { get; set; } + [DataMember(Name="Internal", EmitDefaultValue=false)] + public BooleanValue Internal { get; set; } - /// - /// Gets or Sets RelatedEntityDescription - /// - [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] - public StringValue RelatedEntityDescription { get; set; } + [DataMember(Name="NoteID", EmitDefaultValue=false)] + public GuidValue NoteID { get; set; } - /// - /// Gets or Sets RelatedTasks - /// - [DataMember(Name="RelatedTasks", EmitDefaultValue=false)] - public List RelatedTasks { get; set; } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Gets or Sets Reminder - /// - [DataMember(Name="Reminder", EmitDefaultValue=false)] - public ReminderDetail Reminder { get; set; } + [DataMember(Name="Parent", EmitDefaultValue=false)] + public GuidValue Parent { get; set; } - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataMember(Name="ParentSummary", EmitDefaultValue=false)] + public StringValue ParentSummary { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Priority", EmitDefaultValue=false)] + public StringValue Priority { get; set; } - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } + [DataMember(Name="RelatedActivities", EmitDefaultValue=false)] + public List RelatedActivities { get; set; } - /// - /// Gets or Sets TimeActivity - /// - [DataMember(Name="TimeActivity", EmitDefaultValue=false)] - public TaskTimeActivity TimeActivity { get; set; } + [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] + public StringValue RelatedEntityDescription { get; set; } - /// - /// Gets or Sets WorkgroupID - /// - [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] - public StringValue WorkgroupID { get; set; } + [DataMember(Name="RelatedTasks", EmitDefaultValue=false)] + public List RelatedTasks { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Task {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Body: ").Append(Body).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" CompletedAt: ").Append(CompletedAt).Append("\n"); - sb.Append(" CompletionPercentage: ").Append(CompletionPercentage).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" Internal: ").Append(Internal).Append("\n"); - sb.Append(" NoteID: ").Append(NoteID).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Parent: ").Append(Parent).Append("\n"); - sb.Append(" ParentSummary: ").Append(ParentSummary).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" RelatedActivities: ").Append(RelatedActivities).Append("\n"); - sb.Append(" RelatedEntityDescription: ").Append(RelatedEntityDescription).Append("\n"); - sb.Append(" RelatedTasks: ").Append(RelatedTasks).Append("\n"); - sb.Append(" Reminder: ").Append(Reminder).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeActivity: ").Append(TimeActivity).Append("\n"); - sb.Append(" WorkgroupID: ").Append(WorkgroupID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Reminder", EmitDefaultValue=false)] + public ReminderDetail Reminder { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Task); - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// Returns true if Task instances are equal - /// - /// Instance of Task to be compared - /// Boolean - public bool Equals(Task input) - { - if (input == null) - return false; + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - return base.Equals(input) && - ( - this.Body == input.Body || - (this.Body != null && - this.Body.Equals(input.Body)) - ) && base.Equals(input) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && base.Equals(input) && - ( - this.CompletedAt == input.CompletedAt || - (this.CompletedAt != null && - this.CompletedAt.Equals(input.CompletedAt)) - ) && base.Equals(input) && - ( - this.CompletionPercentage == input.CompletionPercentage || - (this.CompletionPercentage != null && - this.CompletionPercentage.Equals(input.CompletionPercentage)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.Internal == input.Internal || - (this.Internal != null && - this.Internal.Equals(input.Internal)) - ) && base.Equals(input) && - ( - this.NoteID == input.NoteID || - (this.NoteID != null && - this.NoteID.Equals(input.NoteID)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Parent == input.Parent || - (this.Parent != null && - this.Parent.Equals(input.Parent)) - ) && base.Equals(input) && - ( - this.ParentSummary == input.ParentSummary || - (this.ParentSummary != null && - this.ParentSummary.Equals(input.ParentSummary)) - ) && base.Equals(input) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && base.Equals(input) && - ( - this.RelatedActivities == input.RelatedActivities || - this.RelatedActivities != null && - this.RelatedActivities.SequenceEqual(input.RelatedActivities) - ) && base.Equals(input) && - ( - this.RelatedEntityDescription == input.RelatedEntityDescription || - (this.RelatedEntityDescription != null && - this.RelatedEntityDescription.Equals(input.RelatedEntityDescription)) - ) && base.Equals(input) && - ( - this.RelatedTasks == input.RelatedTasks || - this.RelatedTasks != null && - this.RelatedTasks.SequenceEqual(input.RelatedTasks) - ) && base.Equals(input) && - ( - this.Reminder == input.Reminder || - (this.Reminder != null && - this.Reminder.Equals(input.Reminder)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeActivity == input.TimeActivity || - (this.TimeActivity != null && - this.TimeActivity.Equals(input.TimeActivity)) - ) && base.Equals(input) && - ( - this.WorkgroupID == input.WorkgroupID || - (this.WorkgroupID != null && - this.WorkgroupID.Equals(input.WorkgroupID)) - ); - } + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Body != null) - hashCode = hashCode * 59 + this.Body.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.CompletedAt != null) - hashCode = hashCode * 59 + this.CompletedAt.GetHashCode(); - if (this.CompletionPercentage != null) - hashCode = hashCode * 59 + this.CompletionPercentage.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.Internal != null) - hashCode = hashCode * 59 + this.Internal.GetHashCode(); - if (this.NoteID != null) - hashCode = hashCode * 59 + this.NoteID.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Parent != null) - hashCode = hashCode * 59 + this.Parent.GetHashCode(); - if (this.ParentSummary != null) - hashCode = hashCode * 59 + this.ParentSummary.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.RelatedActivities != null) - hashCode = hashCode * 59 + this.RelatedActivities.GetHashCode(); - if (this.RelatedEntityDescription != null) - hashCode = hashCode * 59 + this.RelatedEntityDescription.GetHashCode(); - if (this.RelatedTasks != null) - hashCode = hashCode * 59 + this.RelatedTasks.GetHashCode(); - if (this.Reminder != null) - hashCode = hashCode * 59 + this.Reminder.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeActivity != null) - hashCode = hashCode * 59 + this.TimeActivity.GetHashCode(); - if (this.WorkgroupID != null) - hashCode = hashCode * 59 + this.WorkgroupID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TimeActivity", EmitDefaultValue=false)] + public TaskTimeActivity TimeActivity { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] + public StringValue WorkgroupID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TaskRelatedActivity.cs b/Acumatica.Default_17.200.001/Model/TaskRelatedActivity.cs index 371b09e0..db38866c 100644 --- a/Acumatica.Default_17.200.001/Model/TaskRelatedActivity.cs +++ b/Acumatica.Default_17.200.001/Model/TaskRelatedActivity.cs @@ -1,398 +1,66 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TaskRelatedActivity - /// - [DataContract] - public partial class TaskRelatedActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billable. - /// billableOvertime. - /// billableTime. - /// category. - /// createdAt. - /// createdBy. - /// isCompleteIcon. - /// overtime. - /// owner. - /// priorityIcon. - /// refNoteID. - /// released. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - /// workgroup. - public TaskRelatedActivity(BooleanValue billable = default(BooleanValue), StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue category = default(StringValue), DateTimeValue createdAt = default(DateTimeValue), StringValue createdBy = default(StringValue), StringValue isCompleteIcon = default(StringValue), StringValue overtime = default(StringValue), StringValue owner = default(StringValue), StringValue priorityIcon = default(StringValue), GuidValue refNoteID = default(GuidValue), BooleanValue released = default(BooleanValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.Category = category; - this.CreatedAt = createdAt; - this.CreatedBy = createdBy; - this.IsCompleteIcon = isCompleteIcon; - this.Overtime = overtime; - this.Owner = owner; - this.PriorityIcon = priorityIcon; - this.RefNoteID = refNoteID; - this.Released = released; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets Category - /// - [DataMember(Name="Category", EmitDefaultValue=false)] - public StringValue Category { get; set; } - - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name="CreatedAt", EmitDefaultValue=false)] - public DateTimeValue CreatedAt { get; set; } - - /// - /// Gets or Sets CreatedBy - /// - [DataMember(Name="CreatedBy", EmitDefaultValue=false)] - public StringValue CreatedBy { get; set; } + [DataContract] + public partial class TaskRelatedActivity : Entity + { - /// - /// Gets or Sets IsCompleteIcon - /// - [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] - public StringValue IsCompleteIcon { get; set; } + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } - /// - /// Gets or Sets PriorityIcon - /// - [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] - public StringValue PriorityIcon { get; set; } + [DataMember(Name="Category", EmitDefaultValue=false)] + public StringValue Category { get; set; } - /// - /// Gets or Sets RefNoteID - /// - [DataMember(Name="RefNoteID", EmitDefaultValue=false)] - public GuidValue RefNoteID { get; set; } + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTimeValue CreatedAt { get; set; } - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } + [DataMember(Name="CreatedBy", EmitDefaultValue=false)] + public StringValue CreatedBy { get; set; } - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] + public StringValue IsCompleteIcon { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } + [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] + public StringValue PriorityIcon { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="RefNoteID", EmitDefaultValue=false)] + public GuidValue RefNoteID { get; set; } - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskRelatedActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n"); - sb.Append(" IsCompleteIcon: ").Append(IsCompleteIcon).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PriorityIcon: ").Append(PriorityIcon).Append("\n"); - sb.Append(" RefNoteID: ").Append(RefNoteID).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskRelatedActivity); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Returns true if TaskRelatedActivity instances are equal - /// - /// Instance of TaskRelatedActivity to be compared - /// Boolean - public bool Equals(TaskRelatedActivity input) - { - if (input == null) - return false; + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } - return base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && base.Equals(input) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && base.Equals(input) && - ( - this.CreatedBy == input.CreatedBy || - (this.CreatedBy != null && - this.CreatedBy.Equals(input.CreatedBy)) - ) && base.Equals(input) && - ( - this.IsCompleteIcon == input.IsCompleteIcon || - (this.IsCompleteIcon != null && - this.IsCompleteIcon.Equals(input.IsCompleteIcon)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PriorityIcon == input.PriorityIcon || - (this.PriorityIcon != null && - this.PriorityIcon.Equals(input.PriorityIcon)) - ) && base.Equals(input) && - ( - this.RefNoteID == input.RefNoteID || - (this.RefNoteID != null && - this.RefNoteID.Equals(input.RefNoteID)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.CreatedBy != null) - hashCode = hashCode * 59 + this.CreatedBy.GetHashCode(); - if (this.IsCompleteIcon != null) - hashCode = hashCode * 59 + this.IsCompleteIcon.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PriorityIcon != null) - hashCode = hashCode * 59 + this.PriorityIcon.GetHashCode(); - if (this.RefNoteID != null) - hashCode = hashCode * 59 + this.RefNoteID.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TaskRelatedTask.cs b/Acumatica.Default_17.200.001/Model/TaskRelatedTask.cs index 1c6895fc..cbb01ef4 100644 --- a/Acumatica.Default_17.200.001/Model/TaskRelatedTask.cs +++ b/Acumatica.Default_17.200.001/Model/TaskRelatedTask.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TaskRelatedTask - /// - [DataContract] - public partial class TaskRelatedTask : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// completedAt. - /// dueDate. - /// recordID. - /// startDate. - /// status. - /// subject. - public TaskRelatedTask(DateTimeValue completedAt = default(DateTimeValue), DateTimeValue dueDate = default(DateTimeValue), IntValue recordID = default(IntValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CompletedAt = completedAt; - this.DueDate = dueDate; - this.RecordID = recordID; - this.StartDate = startDate; - this.Status = status; - this.Subject = subject; - } - - /// - /// Gets or Sets CompletedAt - /// - [DataMember(Name="CompletedAt", EmitDefaultValue=false)] - public DateTimeValue CompletedAt { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } + [DataContract] + public partial class TaskRelatedTask : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskRelatedTask {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CompletedAt: ").Append(CompletedAt).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CompletedAt", EmitDefaultValue=false)] + public DateTimeValue CompletedAt { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskRelatedTask); - } + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } - /// - /// Returns true if TaskRelatedTask instances are equal - /// - /// Instance of TaskRelatedTask to be compared - /// Boolean - public bool Equals(TaskRelatedTask input) - { - if (input == null) - return false; + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } - return base.Equals(input) && - ( - this.CompletedAt == input.CompletedAt || - (this.CompletedAt != null && - this.CompletedAt.Equals(input.CompletedAt)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ); - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CompletedAt != null) - hashCode = hashCode * 59 + this.CompletedAt.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TaskTimeActivity.cs b/Acumatica.Default_17.200.001/Model/TaskTimeActivity.cs index eec70734..5b9d5c13 100644 --- a/Acumatica.Default_17.200.001/Model/TaskTimeActivity.cs +++ b/Acumatica.Default_17.200.001/Model/TaskTimeActivity.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TaskTimeActivity - /// - [DataContract] - public partial class TaskTimeActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billableOvertime. - /// billableTime. - /// overtime. - /// project. - /// projectTask. - /// timeSpent. - public TaskTimeActivity(StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue overtime = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), StringValue timeSpent = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.Overtime = overtime; - this.Project = project; - this.ProjectTask = projectTask; - this.TimeSpent = timeSpent; - } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } + [DataContract] + public partial class TaskTimeActivity : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskTimeActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskTimeActivity); - } + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } - /// - /// Returns true if TaskTimeActivity instances are equal - /// - /// Instance of TaskTimeActivity to be compared - /// Boolean - public bool Equals(TaskTimeActivity input) - { - if (input == null) - return false; + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } - return base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ); - } + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Tax.cs b/Acumatica.Default_17.200.001/Model/Tax.cs index 84992861..c342943c 100644 --- a/Acumatica.Default_17.200.001/Model/Tax.cs +++ b/Acumatica.Default_17.200.001/Model/Tax.cs @@ -1,510 +1,87 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Tax - /// - [DataContract] - public partial class Tax : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// calculateOn. - /// cashDiscount. - /// createdDateTime. - /// deductibleVAT. - /// description. - /// enterFromTaxBill. - /// excludeFromTaxonTaxCalculation. - /// includeInVATExemptTotal. - /// includeInVATTaxableTotal. - /// lastModifiedDateTime. - /// notValidAfter. - /// pendingVAT. - /// reverseVAT. - /// statisticalVAT. - /// taxAgency. - /// taxClaimableAccount. - /// taxClaimableSubaccount. - /// taxExpenseAccount. - /// taxExpenseSubaccount. - /// taxID. - /// taxPayableAccount. - /// taxPayableSubaccount. - /// taxSchedule. - /// taxType. - /// zones. - public Tax(StringValue calculateOn = default(StringValue), StringValue cashDiscount = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), BooleanValue deductibleVAT = default(BooleanValue), StringValue description = default(StringValue), BooleanValue enterFromTaxBill = default(BooleanValue), BooleanValue excludeFromTaxonTaxCalculation = default(BooleanValue), BooleanValue includeInVATExemptTotal = default(BooleanValue), BooleanValue includeInVATTaxableTotal = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DateTimeValue notValidAfter = default(DateTimeValue), BooleanValue pendingVAT = default(BooleanValue), BooleanValue reverseVAT = default(BooleanValue), BooleanValue statisticalVAT = default(BooleanValue), StringValue taxAgency = default(StringValue), StringValue taxClaimableAccount = default(StringValue), StringValue taxClaimableSubaccount = default(StringValue), StringValue taxExpenseAccount = default(StringValue), StringValue taxExpenseSubaccount = default(StringValue), StringValue taxID = default(StringValue), StringValue taxPayableAccount = default(StringValue), StringValue taxPayableSubaccount = default(StringValue), List taxSchedule = default(List), StringValue taxType = default(StringValue), List zones = default(List), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CalculateOn = calculateOn; - this.CashDiscount = cashDiscount; - this.CreatedDateTime = createdDateTime; - this.DeductibleVAT = deductibleVAT; - this.Description = description; - this.EnterFromTaxBill = enterFromTaxBill; - this.ExcludeFromTaxonTaxCalculation = excludeFromTaxonTaxCalculation; - this.IncludeInVATExemptTotal = includeInVATExemptTotal; - this.IncludeInVATTaxableTotal = includeInVATTaxableTotal; - this.LastModifiedDateTime = lastModifiedDateTime; - this.NotValidAfter = notValidAfter; - this.PendingVAT = pendingVAT; - this.ReverseVAT = reverseVAT; - this.StatisticalVAT = statisticalVAT; - this.TaxAgency = taxAgency; - this.TaxClaimableAccount = taxClaimableAccount; - this.TaxClaimableSubaccount = taxClaimableSubaccount; - this.TaxExpenseAccount = taxExpenseAccount; - this.TaxExpenseSubaccount = taxExpenseSubaccount; - this.TaxID = taxID; - this.TaxPayableAccount = taxPayableAccount; - this.TaxPayableSubaccount = taxPayableSubaccount; - this.TaxSchedule = taxSchedule; - this.TaxType = taxType; - this.Zones = zones; - } - - /// - /// Gets or Sets CalculateOn - /// - [DataMember(Name="CalculateOn", EmitDefaultValue=false)] - public StringValue CalculateOn { get; set; } - - /// - /// Gets or Sets CashDiscount - /// - [DataMember(Name="CashDiscount", EmitDefaultValue=false)] - public StringValue CashDiscount { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets DeductibleVAT - /// - [DataMember(Name="DeductibleVAT", EmitDefaultValue=false)] - public BooleanValue DeductibleVAT { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EnterFromTaxBill - /// - [DataMember(Name="EnterFromTaxBill", EmitDefaultValue=false)] - public BooleanValue EnterFromTaxBill { get; set; } + [DataContract] + public partial class Tax : Entity + { - /// - /// Gets or Sets ExcludeFromTaxonTaxCalculation - /// - [DataMember(Name="ExcludeFromTaxonTaxCalculation", EmitDefaultValue=false)] - public BooleanValue ExcludeFromTaxonTaxCalculation { get; set; } + [DataMember(Name="CalculateOn", EmitDefaultValue=false)] + public StringValue CalculateOn { get; set; } - /// - /// Gets or Sets IncludeInVATExemptTotal - /// - [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] - public BooleanValue IncludeInVATExemptTotal { get; set; } + [DataMember(Name="CashDiscount", EmitDefaultValue=false)] + public StringValue CashDiscount { get; set; } - /// - /// Gets or Sets IncludeInVATTaxableTotal - /// - [DataMember(Name="IncludeInVATTaxableTotal", EmitDefaultValue=false)] - public BooleanValue IncludeInVATTaxableTotal { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="DeductibleVAT", EmitDefaultValue=false)] + public BooleanValue DeductibleVAT { get; set; } - /// - /// Gets or Sets NotValidAfter - /// - [DataMember(Name="NotValidAfter", EmitDefaultValue=false)] - public DateTimeValue NotValidAfter { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets PendingVAT - /// - [DataMember(Name="PendingVAT", EmitDefaultValue=false)] - public BooleanValue PendingVAT { get; set; } + [DataMember(Name="EnterFromTaxBill", EmitDefaultValue=false)] + public BooleanValue EnterFromTaxBill { get; set; } - /// - /// Gets or Sets ReverseVAT - /// - [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] - public BooleanValue ReverseVAT { get; set; } + [DataMember(Name="ExcludeFromTaxonTaxCalculation", EmitDefaultValue=false)] + public BooleanValue ExcludeFromTaxonTaxCalculation { get; set; } - /// - /// Gets or Sets StatisticalVAT - /// - [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] - public BooleanValue StatisticalVAT { get; set; } + [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] + public BooleanValue IncludeInVATExemptTotal { get; set; } - /// - /// Gets or Sets TaxAgency - /// - [DataMember(Name="TaxAgency", EmitDefaultValue=false)] - public StringValue TaxAgency { get; set; } + [DataMember(Name="IncludeInVATTaxableTotal", EmitDefaultValue=false)] + public BooleanValue IncludeInVATTaxableTotal { get; set; } - /// - /// Gets or Sets TaxClaimableAccount - /// - [DataMember(Name="TaxClaimableAccount", EmitDefaultValue=false)] - public StringValue TaxClaimableAccount { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets or Sets TaxClaimableSubaccount - /// - [DataMember(Name="TaxClaimableSubaccount", EmitDefaultValue=false)] - public StringValue TaxClaimableSubaccount { get; set; } + [DataMember(Name="NotValidAfter", EmitDefaultValue=false)] + public DateTimeValue NotValidAfter { get; set; } - /// - /// Gets or Sets TaxExpenseAccount - /// - [DataMember(Name="TaxExpenseAccount", EmitDefaultValue=false)] - public StringValue TaxExpenseAccount { get; set; } + [DataMember(Name="PendingVAT", EmitDefaultValue=false)] + public BooleanValue PendingVAT { get; set; } - /// - /// Gets or Sets TaxExpenseSubaccount - /// - [DataMember(Name="TaxExpenseSubaccount", EmitDefaultValue=false)] - public StringValue TaxExpenseSubaccount { get; set; } + [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] + public BooleanValue ReverseVAT { get; set; } - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } + [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] + public BooleanValue StatisticalVAT { get; set; } - /// - /// Gets or Sets TaxPayableAccount - /// - [DataMember(Name="TaxPayableAccount", EmitDefaultValue=false)] - public StringValue TaxPayableAccount { get; set; } + [DataMember(Name="TaxAgency", EmitDefaultValue=false)] + public StringValue TaxAgency { get; set; } - /// - /// Gets or Sets TaxPayableSubaccount - /// - [DataMember(Name="TaxPayableSubaccount", EmitDefaultValue=false)] - public StringValue TaxPayableSubaccount { get; set; } + [DataMember(Name="TaxClaimableAccount", EmitDefaultValue=false)] + public StringValue TaxClaimableAccount { get; set; } - /// - /// Gets or Sets TaxSchedule - /// - [DataMember(Name="TaxSchedule", EmitDefaultValue=false)] - public List TaxSchedule { get; set; } + [DataMember(Name="TaxClaimableSubaccount", EmitDefaultValue=false)] + public StringValue TaxClaimableSubaccount { get; set; } - /// - /// Gets or Sets TaxType - /// - [DataMember(Name="TaxType", EmitDefaultValue=false)] - public StringValue TaxType { get; set; } + [DataMember(Name="TaxExpenseAccount", EmitDefaultValue=false)] + public StringValue TaxExpenseAccount { get; set; } - /// - /// Gets or Sets Zones - /// - [DataMember(Name="Zones", EmitDefaultValue=false)] - public List Zones { get; set; } + [DataMember(Name="TaxExpenseSubaccount", EmitDefaultValue=false)] + public StringValue TaxExpenseSubaccount { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Tax {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CalculateOn: ").Append(CalculateOn).Append("\n"); - sb.Append(" CashDiscount: ").Append(CashDiscount).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" DeductibleVAT: ").Append(DeductibleVAT).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EnterFromTaxBill: ").Append(EnterFromTaxBill).Append("\n"); - sb.Append(" ExcludeFromTaxonTaxCalculation: ").Append(ExcludeFromTaxonTaxCalculation).Append("\n"); - sb.Append(" IncludeInVATExemptTotal: ").Append(IncludeInVATExemptTotal).Append("\n"); - sb.Append(" IncludeInVATTaxableTotal: ").Append(IncludeInVATTaxableTotal).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" NotValidAfter: ").Append(NotValidAfter).Append("\n"); - sb.Append(" PendingVAT: ").Append(PendingVAT).Append("\n"); - sb.Append(" ReverseVAT: ").Append(ReverseVAT).Append("\n"); - sb.Append(" StatisticalVAT: ").Append(StatisticalVAT).Append("\n"); - sb.Append(" TaxAgency: ").Append(TaxAgency).Append("\n"); - sb.Append(" TaxClaimableAccount: ").Append(TaxClaimableAccount).Append("\n"); - sb.Append(" TaxClaimableSubaccount: ").Append(TaxClaimableSubaccount).Append("\n"); - sb.Append(" TaxExpenseAccount: ").Append(TaxExpenseAccount).Append("\n"); - sb.Append(" TaxExpenseSubaccount: ").Append(TaxExpenseSubaccount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxPayableAccount: ").Append(TaxPayableAccount).Append("\n"); - sb.Append(" TaxPayableSubaccount: ").Append(TaxPayableSubaccount).Append("\n"); - sb.Append(" TaxSchedule: ").Append(TaxSchedule).Append("\n"); - sb.Append(" TaxType: ").Append(TaxType).Append("\n"); - sb.Append(" Zones: ").Append(Zones).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Tax); - } + [DataMember(Name="TaxPayableAccount", EmitDefaultValue=false)] + public StringValue TaxPayableAccount { get; set; } - /// - /// Returns true if Tax instances are equal - /// - /// Instance of Tax to be compared - /// Boolean - public bool Equals(Tax input) - { - if (input == null) - return false; + [DataMember(Name="TaxPayableSubaccount", EmitDefaultValue=false)] + public StringValue TaxPayableSubaccount { get; set; } - return base.Equals(input) && - ( - this.CalculateOn == input.CalculateOn || - (this.CalculateOn != null && - this.CalculateOn.Equals(input.CalculateOn)) - ) && base.Equals(input) && - ( - this.CashDiscount == input.CashDiscount || - (this.CashDiscount != null && - this.CashDiscount.Equals(input.CashDiscount)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.DeductibleVAT == input.DeductibleVAT || - (this.DeductibleVAT != null && - this.DeductibleVAT.Equals(input.DeductibleVAT)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EnterFromTaxBill == input.EnterFromTaxBill || - (this.EnterFromTaxBill != null && - this.EnterFromTaxBill.Equals(input.EnterFromTaxBill)) - ) && base.Equals(input) && - ( - this.ExcludeFromTaxonTaxCalculation == input.ExcludeFromTaxonTaxCalculation || - (this.ExcludeFromTaxonTaxCalculation != null && - this.ExcludeFromTaxonTaxCalculation.Equals(input.ExcludeFromTaxonTaxCalculation)) - ) && base.Equals(input) && - ( - this.IncludeInVATExemptTotal == input.IncludeInVATExemptTotal || - (this.IncludeInVATExemptTotal != null && - this.IncludeInVATExemptTotal.Equals(input.IncludeInVATExemptTotal)) - ) && base.Equals(input) && - ( - this.IncludeInVATTaxableTotal == input.IncludeInVATTaxableTotal || - (this.IncludeInVATTaxableTotal != null && - this.IncludeInVATTaxableTotal.Equals(input.IncludeInVATTaxableTotal)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.NotValidAfter == input.NotValidAfter || - (this.NotValidAfter != null && - this.NotValidAfter.Equals(input.NotValidAfter)) - ) && base.Equals(input) && - ( - this.PendingVAT == input.PendingVAT || - (this.PendingVAT != null && - this.PendingVAT.Equals(input.PendingVAT)) - ) && base.Equals(input) && - ( - this.ReverseVAT == input.ReverseVAT || - (this.ReverseVAT != null && - this.ReverseVAT.Equals(input.ReverseVAT)) - ) && base.Equals(input) && - ( - this.StatisticalVAT == input.StatisticalVAT || - (this.StatisticalVAT != null && - this.StatisticalVAT.Equals(input.StatisticalVAT)) - ) && base.Equals(input) && - ( - this.TaxAgency == input.TaxAgency || - (this.TaxAgency != null && - this.TaxAgency.Equals(input.TaxAgency)) - ) && base.Equals(input) && - ( - this.TaxClaimableAccount == input.TaxClaimableAccount || - (this.TaxClaimableAccount != null && - this.TaxClaimableAccount.Equals(input.TaxClaimableAccount)) - ) && base.Equals(input) && - ( - this.TaxClaimableSubaccount == input.TaxClaimableSubaccount || - (this.TaxClaimableSubaccount != null && - this.TaxClaimableSubaccount.Equals(input.TaxClaimableSubaccount)) - ) && base.Equals(input) && - ( - this.TaxExpenseAccount == input.TaxExpenseAccount || - (this.TaxExpenseAccount != null && - this.TaxExpenseAccount.Equals(input.TaxExpenseAccount)) - ) && base.Equals(input) && - ( - this.TaxExpenseSubaccount == input.TaxExpenseSubaccount || - (this.TaxExpenseSubaccount != null && - this.TaxExpenseSubaccount.Equals(input.TaxExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxPayableAccount == input.TaxPayableAccount || - (this.TaxPayableAccount != null && - this.TaxPayableAccount.Equals(input.TaxPayableAccount)) - ) && base.Equals(input) && - ( - this.TaxPayableSubaccount == input.TaxPayableSubaccount || - (this.TaxPayableSubaccount != null && - this.TaxPayableSubaccount.Equals(input.TaxPayableSubaccount)) - ) && base.Equals(input) && - ( - this.TaxSchedule == input.TaxSchedule || - this.TaxSchedule != null && - this.TaxSchedule.SequenceEqual(input.TaxSchedule) - ) && base.Equals(input) && - ( - this.TaxType == input.TaxType || - (this.TaxType != null && - this.TaxType.Equals(input.TaxType)) - ) && base.Equals(input) && - ( - this.Zones == input.Zones || - this.Zones != null && - this.Zones.SequenceEqual(input.Zones) - ); - } + [DataMember(Name="TaxSchedule", EmitDefaultValue=false)] + public List TaxSchedule { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CalculateOn != null) - hashCode = hashCode * 59 + this.CalculateOn.GetHashCode(); - if (this.CashDiscount != null) - hashCode = hashCode * 59 + this.CashDiscount.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.DeductibleVAT != null) - hashCode = hashCode * 59 + this.DeductibleVAT.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EnterFromTaxBill != null) - hashCode = hashCode * 59 + this.EnterFromTaxBill.GetHashCode(); - if (this.ExcludeFromTaxonTaxCalculation != null) - hashCode = hashCode * 59 + this.ExcludeFromTaxonTaxCalculation.GetHashCode(); - if (this.IncludeInVATExemptTotal != null) - hashCode = hashCode * 59 + this.IncludeInVATExemptTotal.GetHashCode(); - if (this.IncludeInVATTaxableTotal != null) - hashCode = hashCode * 59 + this.IncludeInVATTaxableTotal.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.NotValidAfter != null) - hashCode = hashCode * 59 + this.NotValidAfter.GetHashCode(); - if (this.PendingVAT != null) - hashCode = hashCode * 59 + this.PendingVAT.GetHashCode(); - if (this.ReverseVAT != null) - hashCode = hashCode * 59 + this.ReverseVAT.GetHashCode(); - if (this.StatisticalVAT != null) - hashCode = hashCode * 59 + this.StatisticalVAT.GetHashCode(); - if (this.TaxAgency != null) - hashCode = hashCode * 59 + this.TaxAgency.GetHashCode(); - if (this.TaxClaimableAccount != null) - hashCode = hashCode * 59 + this.TaxClaimableAccount.GetHashCode(); - if (this.TaxClaimableSubaccount != null) - hashCode = hashCode * 59 + this.TaxClaimableSubaccount.GetHashCode(); - if (this.TaxExpenseAccount != null) - hashCode = hashCode * 59 + this.TaxExpenseAccount.GetHashCode(); - if (this.TaxExpenseSubaccount != null) - hashCode = hashCode * 59 + this.TaxExpenseSubaccount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxPayableAccount != null) - hashCode = hashCode * 59 + this.TaxPayableAccount.GetHashCode(); - if (this.TaxPayableSubaccount != null) - hashCode = hashCode * 59 + this.TaxPayableSubaccount.GetHashCode(); - if (this.TaxSchedule != null) - hashCode = hashCode * 59 + this.TaxSchedule.GetHashCode(); - if (this.TaxType != null) - hashCode = hashCode * 59 + this.TaxType.GetHashCode(); - if (this.Zones != null) - hashCode = hashCode * 59 + this.Zones.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public StringValue TaxType { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Zones", EmitDefaultValue=false)] + public List Zones { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TaxCategory.cs b/Acumatica.Default_17.200.001/Model/TaxCategory.cs index de709423..b3e382df 100644 --- a/Acumatica.Default_17.200.001/Model/TaxCategory.cs +++ b/Acumatica.Default_17.200.001/Model/TaxCategory.cs @@ -1,222 +1,33 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TaxCategory - /// - [DataContract] - public partial class TaxCategory : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// createdDateTime. - /// description. - /// details. - /// excludeListedTaxes. - /// lastModifiedDateTime. - /// taxCategoryID. - public TaxCategory(BooleanValue active = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), List details = default(List), BooleanValue excludeListedTaxes = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue taxCategoryID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.Details = details; - this.ExcludeListedTaxes = excludeListedTaxes; - this.LastModifiedDateTime = lastModifiedDateTime; - this.TaxCategoryID = taxCategoryID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets ExcludeListedTaxes - /// - [DataMember(Name="ExcludeListedTaxes", EmitDefaultValue=false)] - public BooleanValue ExcludeListedTaxes { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataContract] + public partial class TaxCategory : Entity + { - /// - /// Gets or Sets TaxCategoryID - /// - [DataMember(Name="TaxCategoryID", EmitDefaultValue=false)] - public StringValue TaxCategoryID { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxCategory {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" ExcludeListedTaxes: ").Append(ExcludeListedTaxes).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" TaxCategoryID: ").Append(TaxCategoryID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxCategory); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if TaxCategory instances are equal - /// - /// Instance of TaxCategory to be compared - /// Boolean - public bool Equals(TaxCategory input) - { - if (input == null) - return false; + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.ExcludeListedTaxes == input.ExcludeListedTaxes || - (this.ExcludeListedTaxes != null && - this.ExcludeListedTaxes.Equals(input.ExcludeListedTaxes)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.TaxCategoryID == input.TaxCategoryID || - (this.TaxCategoryID != null && - this.TaxCategoryID.Equals(input.TaxCategoryID)) - ); - } + [DataMember(Name="ExcludeListedTaxes", EmitDefaultValue=false)] + public BooleanValue ExcludeListedTaxes { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.ExcludeListedTaxes != null) - hashCode = hashCode * 59 + this.ExcludeListedTaxes.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.TaxCategoryID != null) - hashCode = hashCode * 59 + this.TaxCategoryID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxCategoryID", EmitDefaultValue=false)] + public StringValue TaxCategoryID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TaxCategoryTaxDetail.cs b/Acumatica.Default_17.200.001/Model/TaxCategoryTaxDetail.cs index 664c032c..fe823bc7 100644 --- a/Acumatica.Default_17.200.001/Model/TaxCategoryTaxDetail.cs +++ b/Acumatica.Default_17.200.001/Model/TaxCategoryTaxDetail.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TaxCategoryTaxDetail - /// - [DataContract] - public partial class TaxCategoryTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// calculateOn. - /// cashDiscount. - /// description. - /// taxCategory. - /// taxID. - /// taxType. - public TaxCategoryTaxDetail(StringValue calculateOn = default(StringValue), StringValue cashDiscount = default(StringValue), StringValue description = default(StringValue), StringValue taxCategory = default(StringValue), StringValue taxID = default(StringValue), StringValue taxType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CalculateOn = calculateOn; - this.CashDiscount = cashDiscount; - this.Description = description; - this.TaxCategory = taxCategory; - this.TaxID = taxID; - this.TaxType = taxType; - } - - /// - /// Gets or Sets CalculateOn - /// - [DataMember(Name="CalculateOn", EmitDefaultValue=false)] - public StringValue CalculateOn { get; set; } - - /// - /// Gets or Sets CashDiscount - /// - [DataMember(Name="CashDiscount", EmitDefaultValue=false)] - public StringValue CashDiscount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxType - /// - [DataMember(Name="TaxType", EmitDefaultValue=false)] - public StringValue TaxType { get; set; } + [DataContract] + public partial class TaxCategoryTaxDetail : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxCategoryTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CalculateOn: ").Append(CalculateOn).Append("\n"); - sb.Append(" CashDiscount: ").Append(CashDiscount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxType: ").Append(TaxType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="CalculateOn", EmitDefaultValue=false)] + public StringValue CalculateOn { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxCategoryTaxDetail); - } + [DataMember(Name="CashDiscount", EmitDefaultValue=false)] + public StringValue CashDiscount { get; set; } - /// - /// Returns true if TaxCategoryTaxDetail instances are equal - /// - /// Instance of TaxCategoryTaxDetail to be compared - /// Boolean - public bool Equals(TaxCategoryTaxDetail input) - { - if (input == null) - return false; + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - return base.Equals(input) && - ( - this.CalculateOn == input.CalculateOn || - (this.CalculateOn != null && - this.CalculateOn.Equals(input.CalculateOn)) - ) && base.Equals(input) && - ( - this.CashDiscount == input.CashDiscount || - (this.CashDiscount != null && - this.CashDiscount.Equals(input.CashDiscount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxType == input.TaxType || - (this.TaxType != null && - this.TaxType.Equals(input.TaxType)) - ); - } + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CalculateOn != null) - hashCode = hashCode * 59 + this.CalculateOn.GetHashCode(); - if (this.CashDiscount != null) - hashCode = hashCode * 59 + this.CashDiscount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxType != null) - hashCode = hashCode * 59 + this.TaxType.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public StringValue TaxType { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TaxDetail.cs b/Acumatica.Default_17.200.001/Model/TaxDetail.cs index 7662c065..a1320dcd 100644 --- a/Acumatica.Default_17.200.001/Model/TaxDetail.cs +++ b/Acumatica.Default_17.200.001/Model/TaxDetail.cs @@ -1,318 +1,51 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TaxDetail - /// - [DataContract] - public partial class TaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// includeInVATExemptTotal. - /// lineNbr. - /// orderNbr. - /// orderType. - /// pendingVAT. - /// recordID. - /// reverseVAT. - /// statisticalVAT. - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - /// taxType. - public TaxDetail(BooleanValue includeInVATExemptTotal = default(BooleanValue), IntValue lineNbr = default(IntValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), BooleanValue pendingVAT = default(BooleanValue), IntValue recordID = default(IntValue), BooleanValue reverseVAT = default(BooleanValue), BooleanValue statisticalVAT = default(BooleanValue), DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), StringValue taxType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.IncludeInVATExemptTotal = includeInVATExemptTotal; - this.LineNbr = lineNbr; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.PendingVAT = pendingVAT; - this.RecordID = recordID; - this.ReverseVAT = reverseVAT; - this.StatisticalVAT = statisticalVAT; - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - this.TaxType = taxType; - } - - /// - /// Gets or Sets IncludeInVATExemptTotal - /// - [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] - public BooleanValue IncludeInVATExemptTotal { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets PendingVAT - /// - [DataMember(Name="PendingVAT", EmitDefaultValue=false)] - public BooleanValue PendingVAT { get; set; } - - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } + [DataContract] + public partial class TaxDetail : Entity + { - /// - /// Gets or Sets ReverseVAT - /// - [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] - public BooleanValue ReverseVAT { get; set; } + [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] + public BooleanValue IncludeInVATExemptTotal { get; set; } - /// - /// Gets or Sets StatisticalVAT - /// - [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] - public BooleanValue StatisticalVAT { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } + [DataMember(Name="PendingVAT", EmitDefaultValue=false)] + public BooleanValue PendingVAT { get; set; } - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } - /// - /// Gets or Sets TaxType - /// - [DataMember(Name="TaxType", EmitDefaultValue=false)] - public StringValue TaxType { get; set; } + [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] + public BooleanValue ReverseVAT { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" IncludeInVATExemptTotal: ").Append(IncludeInVATExemptTotal).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" PendingVAT: ").Append(PendingVAT).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" ReverseVAT: ").Append(ReverseVAT).Append("\n"); - sb.Append(" StatisticalVAT: ").Append(StatisticalVAT).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append(" TaxType: ").Append(TaxType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] + public BooleanValue StatisticalVAT { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxDetail); - } + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } - /// - /// Returns true if TaxDetail instances are equal - /// - /// Instance of TaxDetail to be compared - /// Boolean - public bool Equals(TaxDetail input) - { - if (input == null) - return false; + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } - return base.Equals(input) && - ( - this.IncludeInVATExemptTotal == input.IncludeInVATExemptTotal || - (this.IncludeInVATExemptTotal != null && - this.IncludeInVATExemptTotal.Equals(input.IncludeInVATExemptTotal)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.PendingVAT == input.PendingVAT || - (this.PendingVAT != null && - this.PendingVAT.Equals(input.PendingVAT)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.ReverseVAT == input.ReverseVAT || - (this.ReverseVAT != null && - this.ReverseVAT.Equals(input.ReverseVAT)) - ) && base.Equals(input) && - ( - this.StatisticalVAT == input.StatisticalVAT || - (this.StatisticalVAT != null && - this.StatisticalVAT.Equals(input.StatisticalVAT)) - ) && base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ) && base.Equals(input) && - ( - this.TaxType == input.TaxType || - (this.TaxType != null && - this.TaxType.Equals(input.TaxType)) - ); - } + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.IncludeInVATExemptTotal != null) - hashCode = hashCode * 59 + this.IncludeInVATExemptTotal.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.PendingVAT != null) - hashCode = hashCode * 59 + this.PendingVAT.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.ReverseVAT != null) - hashCode = hashCode * 59 + this.ReverseVAT.GetHashCode(); - if (this.StatisticalVAT != null) - hashCode = hashCode * 59 + this.StatisticalVAT.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - if (this.TaxType != null) - hashCode = hashCode * 59 + this.TaxType.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public StringValue TaxType { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TaxScheduleDetail.cs b/Acumatica.Default_17.200.001/Model/TaxScheduleDetail.cs index 0f7071d2..439c5260 100644 --- a/Acumatica.Default_17.200.001/Model/TaxScheduleDetail.cs +++ b/Acumatica.Default_17.200.001/Model/TaxScheduleDetail.cs @@ -1,238 +1,36 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TaxScheduleDetail - /// - [DataContract] - public partial class TaxScheduleDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// deductibleTaxRate. - /// maxTaxableAmount. - /// minTaxableAmount. - /// reportingGroup. - /// revisionID. - /// startDate. - /// taxID. - /// taxRate. - public TaxScheduleDetail(DecimalValue deductibleTaxRate = default(DecimalValue), DecimalValue maxTaxableAmount = default(DecimalValue), DecimalValue minTaxableAmount = default(DecimalValue), StringValue reportingGroup = default(StringValue), IntValue revisionID = default(IntValue), DateTimeValue startDate = default(DateTimeValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DeductibleTaxRate = deductibleTaxRate; - this.MaxTaxableAmount = maxTaxableAmount; - this.MinTaxableAmount = minTaxableAmount; - this.ReportingGroup = reportingGroup; - this.RevisionID = revisionID; - this.StartDate = startDate; - this.TaxID = taxID; - this.TaxRate = taxRate; - } - - /// - /// Gets or Sets DeductibleTaxRate - /// - [DataMember(Name="DeductibleTaxRate", EmitDefaultValue=false)] - public DecimalValue DeductibleTaxRate { get; set; } - - /// - /// Gets or Sets MaxTaxableAmount - /// - [DataMember(Name="MaxTaxableAmount", EmitDefaultValue=false)] - public DecimalValue MaxTaxableAmount { get; set; } - - /// - /// Gets or Sets MinTaxableAmount - /// - [DataMember(Name="MinTaxableAmount", EmitDefaultValue=false)] - public DecimalValue MinTaxableAmount { get; set; } - - /// - /// Gets or Sets ReportingGroup - /// - [DataMember(Name="ReportingGroup", EmitDefaultValue=false)] - public StringValue ReportingGroup { get; set; } - - /// - /// Gets or Sets RevisionID - /// - [DataMember(Name="RevisionID", EmitDefaultValue=false)] - public IntValue RevisionID { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } + [DataContract] + public partial class TaxScheduleDetail : Entity + { - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } + [DataMember(Name="DeductibleTaxRate", EmitDefaultValue=false)] + public DecimalValue DeductibleTaxRate { get; set; } - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } + [DataMember(Name="MaxTaxableAmount", EmitDefaultValue=false)] + public DecimalValue MaxTaxableAmount { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxScheduleDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DeductibleTaxRate: ").Append(DeductibleTaxRate).Append("\n"); - sb.Append(" MaxTaxableAmount: ").Append(MaxTaxableAmount).Append("\n"); - sb.Append(" MinTaxableAmount: ").Append(MinTaxableAmount).Append("\n"); - sb.Append(" ReportingGroup: ").Append(ReportingGroup).Append("\n"); - sb.Append(" RevisionID: ").Append(RevisionID).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="MinTaxableAmount", EmitDefaultValue=false)] + public DecimalValue MinTaxableAmount { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxScheduleDetail); - } + [DataMember(Name="ReportingGroup", EmitDefaultValue=false)] + public StringValue ReportingGroup { get; set; } - /// - /// Returns true if TaxScheduleDetail instances are equal - /// - /// Instance of TaxScheduleDetail to be compared - /// Boolean - public bool Equals(TaxScheduleDetail input) - { - if (input == null) - return false; + [DataMember(Name="RevisionID", EmitDefaultValue=false)] + public IntValue RevisionID { get; set; } - return base.Equals(input) && - ( - this.DeductibleTaxRate == input.DeductibleTaxRate || - (this.DeductibleTaxRate != null && - this.DeductibleTaxRate.Equals(input.DeductibleTaxRate)) - ) && base.Equals(input) && - ( - this.MaxTaxableAmount == input.MaxTaxableAmount || - (this.MaxTaxableAmount != null && - this.MaxTaxableAmount.Equals(input.MaxTaxableAmount)) - ) && base.Equals(input) && - ( - this.MinTaxableAmount == input.MinTaxableAmount || - (this.MinTaxableAmount != null && - this.MinTaxableAmount.Equals(input.MinTaxableAmount)) - ) && base.Equals(input) && - ( - this.ReportingGroup == input.ReportingGroup || - (this.ReportingGroup != null && - this.ReportingGroup.Equals(input.ReportingGroup)) - ) && base.Equals(input) && - ( - this.RevisionID == input.RevisionID || - (this.RevisionID != null && - this.RevisionID.Equals(input.RevisionID)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ); - } + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DeductibleTaxRate != null) - hashCode = hashCode * 59 + this.DeductibleTaxRate.GetHashCode(); - if (this.MaxTaxableAmount != null) - hashCode = hashCode * 59 + this.MaxTaxableAmount.GetHashCode(); - if (this.MinTaxableAmount != null) - hashCode = hashCode * 59 + this.MinTaxableAmount.GetHashCode(); - if (this.ReportingGroup != null) - hashCode = hashCode * 59 + this.ReportingGroup.GetHashCode(); - if (this.RevisionID != null) - hashCode = hashCode * 59 + this.RevisionID.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TaxZone.cs b/Acumatica.Default_17.200.001/Model/TaxZone.cs index 1d4c3a8d..4d646859 100644 --- a/Acumatica.Default_17.200.001/Model/TaxZone.cs +++ b/Acumatica.Default_17.200.001/Model/TaxZone.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TaxZone - /// - [DataContract] - public partial class TaxZone : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// applicableTaxes. - /// createdDateTime. - /// description. - /// lastModifiedDateTime. - /// taxZoneID. - public TaxZone(List applicableTaxes = default(List), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue taxZoneID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApplicableTaxes = applicableTaxes; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.TaxZoneID = taxZoneID; - } - - /// - /// Gets or Sets ApplicableTaxes - /// - [DataMember(Name="ApplicableTaxes", EmitDefaultValue=false)] - public List ApplicableTaxes { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets TaxZoneID - /// - [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] - public StringValue TaxZoneID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxZone {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApplicableTaxes: ").Append(ApplicableTaxes).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" TaxZoneID: ").Append(TaxZoneID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class TaxZone : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxZone); - } + [DataMember(Name="ApplicableTaxes", EmitDefaultValue=false)] + public List ApplicableTaxes { get; set; } - /// - /// Returns true if TaxZone instances are equal - /// - /// Instance of TaxZone to be compared - /// Boolean - public bool Equals(TaxZone input) - { - if (input == null) - return false; + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - return base.Equals(input) && - ( - this.ApplicableTaxes == input.ApplicableTaxes || - this.ApplicableTaxes != null && - this.ApplicableTaxes.SequenceEqual(input.ApplicableTaxes) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.TaxZoneID == input.TaxZoneID || - (this.TaxZoneID != null && - this.TaxZoneID.Equals(input.TaxZoneID)) - ); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApplicableTaxes != null) - hashCode = hashCode * 59 + this.ApplicableTaxes.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.TaxZoneID != null) - hashCode = hashCode * 59 + this.TaxZoneID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] + public StringValue TaxZoneID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TaxZoneApplicableTaxDetail.cs b/Acumatica.Default_17.200.001/Model/TaxZoneApplicableTaxDetail.cs index 7bfb1a3b..03631794 100644 --- a/Acumatica.Default_17.200.001/Model/TaxZoneApplicableTaxDetail.cs +++ b/Acumatica.Default_17.200.001/Model/TaxZoneApplicableTaxDetail.cs @@ -1,126 +1,15 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TaxZoneApplicableTaxDetail - /// - [DataContract] - public partial class TaxZoneApplicableTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// taxID. - public TaxZoneApplicableTaxDetail(StringValue taxID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.TaxID = taxID; - } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxZoneApplicableTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxZoneApplicableTaxDetail); - } - - /// - /// Returns true if TaxZoneApplicableTaxDetail instances are equal - /// - /// Instance of TaxZoneApplicableTaxDetail to be compared - /// Boolean - public bool Equals(TaxZoneApplicableTaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - return hashCode; - } - } + [DataContract] + public partial class TaxZoneApplicableTaxDetail : Entity + { - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TaxZoneDetail.cs b/Acumatica.Default_17.200.001/Model/TaxZoneDetail.cs index c0fc0d3a..ac04f0b1 100644 --- a/Acumatica.Default_17.200.001/Model/TaxZoneDetail.cs +++ b/Acumatica.Default_17.200.001/Model/TaxZoneDetail.cs @@ -1,174 +1,24 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TaxZoneDetail - /// - [DataContract] - public partial class TaxZoneDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// defaultTaxCategory. - /// description. - /// taxID. - /// taxZoneID. - public TaxZoneDetail(StringValue defaultTaxCategory = default(StringValue), StringValue description = default(StringValue), StringValue taxID = default(StringValue), StringValue taxZoneID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DefaultTaxCategory = defaultTaxCategory; - this.Description = description; - this.TaxID = taxID; - this.TaxZoneID = taxZoneID; - } - - /// - /// Gets or Sets DefaultTaxCategory - /// - [DataMember(Name="DefaultTaxCategory", EmitDefaultValue=false)] - public StringValue DefaultTaxCategory { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxZoneID - /// - [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] - public StringValue TaxZoneID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxZoneDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DefaultTaxCategory: ").Append(DefaultTaxCategory).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxZoneID: ").Append(TaxZoneID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxZoneDetail); - } + [DataContract] + public partial class TaxZoneDetail : Entity + { - /// - /// Returns true if TaxZoneDetail instances are equal - /// - /// Instance of TaxZoneDetail to be compared - /// Boolean - public bool Equals(TaxZoneDetail input) - { - if (input == null) - return false; + [DataMember(Name="DefaultTaxCategory", EmitDefaultValue=false)] + public StringValue DefaultTaxCategory { get; set; } - return base.Equals(input) && - ( - this.DefaultTaxCategory == input.DefaultTaxCategory || - (this.DefaultTaxCategory != null && - this.DefaultTaxCategory.Equals(input.DefaultTaxCategory)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxZoneID == input.TaxZoneID || - (this.TaxZoneID != null && - this.TaxZoneID.Equals(input.TaxZoneID)) - ); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DefaultTaxCategory != null) - hashCode = hashCode * 59 + this.DefaultTaxCategory.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxZoneID != null) - hashCode = hashCode * 59 + this.TaxZoneID.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] + public StringValue TaxZoneID { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Totals.cs b/Acumatica.Default_17.200.001/Model/Totals.cs index d4d74d3a..5c449176 100644 --- a/Acumatica.Default_17.200.001/Model/Totals.cs +++ b/Acumatica.Default_17.200.001/Model/Totals.cs @@ -1,350 +1,57 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Totals - /// - [DataContract] - public partial class Totals : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// discountTotal. - /// freight. - /// freightCost. - /// freightCostIsuptodate. - /// freightTaxCategory. - /// lineTotalAmount. - /// miscTotalAmount. - /// orderVolume. - /// orderWeight. - /// packageWeight. - /// premiumFreight. - /// taxTotal. - /// unbilledAmount. - /// unbilledQty. - /// unpaidBalance. - public Totals(DecimalValue discountTotal = default(DecimalValue), DecimalValue freight = default(DecimalValue), DecimalValue freightCost = default(DecimalValue), BooleanValue freightCostIsuptodate = default(BooleanValue), StringValue freightTaxCategory = default(StringValue), DecimalValue lineTotalAmount = default(DecimalValue), DecimalValue miscTotalAmount = default(DecimalValue), DecimalValue orderVolume = default(DecimalValue), DecimalValue orderWeight = default(DecimalValue), DecimalValue packageWeight = default(DecimalValue), DecimalValue premiumFreight = default(DecimalValue), DecimalValue taxTotal = default(DecimalValue), DecimalValue unbilledAmount = default(DecimalValue), DecimalValue unbilledQty = default(DecimalValue), DecimalValue unpaidBalance = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DiscountTotal = discountTotal; - this.Freight = freight; - this.FreightCost = freightCost; - this.FreightCostIsuptodate = freightCostIsuptodate; - this.FreightTaxCategory = freightTaxCategory; - this.LineTotalAmount = lineTotalAmount; - this.MiscTotalAmount = miscTotalAmount; - this.OrderVolume = orderVolume; - this.OrderWeight = orderWeight; - this.PackageWeight = packageWeight; - this.PremiumFreight = premiumFreight; - this.TaxTotal = taxTotal; - this.UnbilledAmount = unbilledAmount; - this.UnbilledQty = unbilledQty; - this.UnpaidBalance = unpaidBalance; - } - - /// - /// Gets or Sets DiscountTotal - /// - [DataMember(Name="DiscountTotal", EmitDefaultValue=false)] - public DecimalValue DiscountTotal { get; set; } - - /// - /// Gets or Sets Freight - /// - [DataMember(Name="Freight", EmitDefaultValue=false)] - public DecimalValue Freight { get; set; } - - /// - /// Gets or Sets FreightCost - /// - [DataMember(Name="FreightCost", EmitDefaultValue=false)] - public DecimalValue FreightCost { get; set; } - - /// - /// Gets or Sets FreightCostIsuptodate - /// - [DataMember(Name="FreightCostIsuptodate", EmitDefaultValue=false)] - public BooleanValue FreightCostIsuptodate { get; set; } - - /// - /// Gets or Sets FreightTaxCategory - /// - [DataMember(Name="FreightTaxCategory", EmitDefaultValue=false)] - public StringValue FreightTaxCategory { get; set; } - - /// - /// Gets or Sets LineTotalAmount - /// - [DataMember(Name="LineTotalAmount", EmitDefaultValue=false)] - public DecimalValue LineTotalAmount { get; set; } + [DataContract] + public partial class Totals : Entity + { - /// - /// Gets or Sets MiscTotalAmount - /// - [DataMember(Name="MiscTotalAmount", EmitDefaultValue=false)] - public DecimalValue MiscTotalAmount { get; set; } + [DataMember(Name="DiscountTotal", EmitDefaultValue=false)] + public DecimalValue DiscountTotal { get; set; } - /// - /// Gets or Sets OrderVolume - /// - [DataMember(Name="OrderVolume", EmitDefaultValue=false)] - public DecimalValue OrderVolume { get; set; } + [DataMember(Name="Freight", EmitDefaultValue=false)] + public DecimalValue Freight { get; set; } - /// - /// Gets or Sets OrderWeight - /// - [DataMember(Name="OrderWeight", EmitDefaultValue=false)] - public DecimalValue OrderWeight { get; set; } + [DataMember(Name="FreightCost", EmitDefaultValue=false)] + public DecimalValue FreightCost { get; set; } - /// - /// Gets or Sets PackageWeight - /// - [DataMember(Name="PackageWeight", EmitDefaultValue=false)] - public DecimalValue PackageWeight { get; set; } + [DataMember(Name="FreightCostIsuptodate", EmitDefaultValue=false)] + public BooleanValue FreightCostIsuptodate { get; set; } - /// - /// Gets or Sets PremiumFreight - /// - [DataMember(Name="PremiumFreight", EmitDefaultValue=false)] - public DecimalValue PremiumFreight { get; set; } + [DataMember(Name="FreightTaxCategory", EmitDefaultValue=false)] + public StringValue FreightTaxCategory { get; set; } - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } + [DataMember(Name="LineTotalAmount", EmitDefaultValue=false)] + public DecimalValue LineTotalAmount { get; set; } - /// - /// Gets or Sets UnbilledAmount - /// - [DataMember(Name="UnbilledAmount", EmitDefaultValue=false)] - public DecimalValue UnbilledAmount { get; set; } + [DataMember(Name="MiscTotalAmount", EmitDefaultValue=false)] + public DecimalValue MiscTotalAmount { get; set; } - /// - /// Gets or Sets UnbilledQty - /// - [DataMember(Name="UnbilledQty", EmitDefaultValue=false)] - public DecimalValue UnbilledQty { get; set; } + [DataMember(Name="OrderVolume", EmitDefaultValue=false)] + public DecimalValue OrderVolume { get; set; } - /// - /// Gets or Sets UnpaidBalance - /// - [DataMember(Name="UnpaidBalance", EmitDefaultValue=false)] - public DecimalValue UnpaidBalance { get; set; } + [DataMember(Name="OrderWeight", EmitDefaultValue=false)] + public DecimalValue OrderWeight { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Totals {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DiscountTotal: ").Append(DiscountTotal).Append("\n"); - sb.Append(" Freight: ").Append(Freight).Append("\n"); - sb.Append(" FreightCost: ").Append(FreightCost).Append("\n"); - sb.Append(" FreightCostIsuptodate: ").Append(FreightCostIsuptodate).Append("\n"); - sb.Append(" FreightTaxCategory: ").Append(FreightTaxCategory).Append("\n"); - sb.Append(" LineTotalAmount: ").Append(LineTotalAmount).Append("\n"); - sb.Append(" MiscTotalAmount: ").Append(MiscTotalAmount).Append("\n"); - sb.Append(" OrderVolume: ").Append(OrderVolume).Append("\n"); - sb.Append(" OrderWeight: ").Append(OrderWeight).Append("\n"); - sb.Append(" PackageWeight: ").Append(PackageWeight).Append("\n"); - sb.Append(" PremiumFreight: ").Append(PremiumFreight).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" UnbilledAmount: ").Append(UnbilledAmount).Append("\n"); - sb.Append(" UnbilledQty: ").Append(UnbilledQty).Append("\n"); - sb.Append(" UnpaidBalance: ").Append(UnpaidBalance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PackageWeight", EmitDefaultValue=false)] + public DecimalValue PackageWeight { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Totals); - } + [DataMember(Name="PremiumFreight", EmitDefaultValue=false)] + public DecimalValue PremiumFreight { get; set; } - /// - /// Returns true if Totals instances are equal - /// - /// Instance of Totals to be compared - /// Boolean - public bool Equals(Totals input) - { - if (input == null) - return false; + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } - return base.Equals(input) && - ( - this.DiscountTotal == input.DiscountTotal || - (this.DiscountTotal != null && - this.DiscountTotal.Equals(input.DiscountTotal)) - ) && base.Equals(input) && - ( - this.Freight == input.Freight || - (this.Freight != null && - this.Freight.Equals(input.Freight)) - ) && base.Equals(input) && - ( - this.FreightCost == input.FreightCost || - (this.FreightCost != null && - this.FreightCost.Equals(input.FreightCost)) - ) && base.Equals(input) && - ( - this.FreightCostIsuptodate == input.FreightCostIsuptodate || - (this.FreightCostIsuptodate != null && - this.FreightCostIsuptodate.Equals(input.FreightCostIsuptodate)) - ) && base.Equals(input) && - ( - this.FreightTaxCategory == input.FreightTaxCategory || - (this.FreightTaxCategory != null && - this.FreightTaxCategory.Equals(input.FreightTaxCategory)) - ) && base.Equals(input) && - ( - this.LineTotalAmount == input.LineTotalAmount || - (this.LineTotalAmount != null && - this.LineTotalAmount.Equals(input.LineTotalAmount)) - ) && base.Equals(input) && - ( - this.MiscTotalAmount == input.MiscTotalAmount || - (this.MiscTotalAmount != null && - this.MiscTotalAmount.Equals(input.MiscTotalAmount)) - ) && base.Equals(input) && - ( - this.OrderVolume == input.OrderVolume || - (this.OrderVolume != null && - this.OrderVolume.Equals(input.OrderVolume)) - ) && base.Equals(input) && - ( - this.OrderWeight == input.OrderWeight || - (this.OrderWeight != null && - this.OrderWeight.Equals(input.OrderWeight)) - ) && base.Equals(input) && - ( - this.PackageWeight == input.PackageWeight || - (this.PackageWeight != null && - this.PackageWeight.Equals(input.PackageWeight)) - ) && base.Equals(input) && - ( - this.PremiumFreight == input.PremiumFreight || - (this.PremiumFreight != null && - this.PremiumFreight.Equals(input.PremiumFreight)) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.UnbilledAmount == input.UnbilledAmount || - (this.UnbilledAmount != null && - this.UnbilledAmount.Equals(input.UnbilledAmount)) - ) && base.Equals(input) && - ( - this.UnbilledQty == input.UnbilledQty || - (this.UnbilledQty != null && - this.UnbilledQty.Equals(input.UnbilledQty)) - ) && base.Equals(input) && - ( - this.UnpaidBalance == input.UnpaidBalance || - (this.UnpaidBalance != null && - this.UnpaidBalance.Equals(input.UnpaidBalance)) - ); - } + [DataMember(Name="UnbilledAmount", EmitDefaultValue=false)] + public DecimalValue UnbilledAmount { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DiscountTotal != null) - hashCode = hashCode * 59 + this.DiscountTotal.GetHashCode(); - if (this.Freight != null) - hashCode = hashCode * 59 + this.Freight.GetHashCode(); - if (this.FreightCost != null) - hashCode = hashCode * 59 + this.FreightCost.GetHashCode(); - if (this.FreightCostIsuptodate != null) - hashCode = hashCode * 59 + this.FreightCostIsuptodate.GetHashCode(); - if (this.FreightTaxCategory != null) - hashCode = hashCode * 59 + this.FreightTaxCategory.GetHashCode(); - if (this.LineTotalAmount != null) - hashCode = hashCode * 59 + this.LineTotalAmount.GetHashCode(); - if (this.MiscTotalAmount != null) - hashCode = hashCode * 59 + this.MiscTotalAmount.GetHashCode(); - if (this.OrderVolume != null) - hashCode = hashCode * 59 + this.OrderVolume.GetHashCode(); - if (this.OrderWeight != null) - hashCode = hashCode * 59 + this.OrderWeight.GetHashCode(); - if (this.PackageWeight != null) - hashCode = hashCode * 59 + this.PackageWeight.GetHashCode(); - if (this.PremiumFreight != null) - hashCode = hashCode * 59 + this.PremiumFreight.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.UnbilledAmount != null) - hashCode = hashCode * 59 + this.UnbilledAmount.GetHashCode(); - if (this.UnbilledQty != null) - hashCode = hashCode * 59 + this.UnbilledQty.GetHashCode(); - if (this.UnpaidBalance != null) - hashCode = hashCode * 59 + this.UnpaidBalance.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UnbilledQty", EmitDefaultValue=false)] + public DecimalValue UnbilledQty { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UnpaidBalance", EmitDefaultValue=false)] + public DecimalValue UnpaidBalance { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TransferOrder.cs b/Acumatica.Default_17.200.001/Model/TransferOrder.cs index 1b30bd9a..0f67cd1b 100644 --- a/Acumatica.Default_17.200.001/Model/TransferOrder.cs +++ b/Acumatica.Default_17.200.001/Model/TransferOrder.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TransferOrder - /// - [DataContract] - public partial class TransferOrder : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// date. - /// description. - /// details. - /// externalRef. - /// fromWarehouseID. - /// hold. - /// postPeriod. - /// referenceNbr. - /// status. - /// totalQty. - /// toWarehouseID. - /// transferType. - public TransferOrder(DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), List details = default(List), StringValue externalRef = default(StringValue), StringValue fromWarehouseID = default(StringValue), BooleanValue hold = default(BooleanValue), StringValue postPeriod = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalQty = default(DecimalValue), StringValue toWarehouseID = default(StringValue), StringValue transferType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Date = date; - this.Description = description; - this.Details = details; - this.ExternalRef = externalRef; - this.FromWarehouseID = fromWarehouseID; - this.Hold = hold; - this.PostPeriod = postPeriod; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TotalQty = totalQty; - this.ToWarehouseID = toWarehouseID; - this.TransferType = transferType; - } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } - - /// - /// Gets or Sets ExternalRef - /// - [DataMember(Name="ExternalRef", EmitDefaultValue=false)] - public StringValue ExternalRef { get; set; } - - /// - /// Gets or Sets FromWarehouseID - /// - [DataMember(Name="FromWarehouseID", EmitDefaultValue=false)] - public StringValue FromWarehouseID { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataContract] + public partial class TransferOrder : Entity + { - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets TotalQty - /// - [DataMember(Name="TotalQty", EmitDefaultValue=false)] - public DecimalValue TotalQty { get; set; } + [DataMember(Name="ExternalRef", EmitDefaultValue=false)] + public StringValue ExternalRef { get; set; } - /// - /// Gets or Sets ToWarehouseID - /// - [DataMember(Name="ToWarehouseID", EmitDefaultValue=false)] - public StringValue ToWarehouseID { get; set; } + [DataMember(Name="FromWarehouseID", EmitDefaultValue=false)] + public StringValue FromWarehouseID { get; set; } - /// - /// Gets or Sets TransferType - /// - [DataMember(Name="TransferType", EmitDefaultValue=false)] - public StringValue TransferType { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TransferOrder {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" ExternalRef: ").Append(ExternalRef).Append("\n"); - sb.Append(" FromWarehouseID: ").Append(FromWarehouseID).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalQty: ").Append(TotalQty).Append("\n"); - sb.Append(" ToWarehouseID: ").Append(ToWarehouseID).Append("\n"); - sb.Append(" TransferType: ").Append(TransferType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TransferOrder); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Returns true if TransferOrder instances are equal - /// - /// Instance of TransferOrder to be compared - /// Boolean - public bool Equals(TransferOrder input) - { - if (input == null) - return false; + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - return base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.ExternalRef == input.ExternalRef || - (this.ExternalRef != null && - this.ExternalRef.Equals(input.ExternalRef)) - ) && base.Equals(input) && - ( - this.FromWarehouseID == input.FromWarehouseID || - (this.FromWarehouseID != null && - this.FromWarehouseID.Equals(input.FromWarehouseID)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalQty == input.TotalQty || - (this.TotalQty != null && - this.TotalQty.Equals(input.TotalQty)) - ) && base.Equals(input) && - ( - this.ToWarehouseID == input.ToWarehouseID || - (this.ToWarehouseID != null && - this.ToWarehouseID.Equals(input.ToWarehouseID)) - ) && base.Equals(input) && - ( - this.TransferType == input.TransferType || - (this.TransferType != null && - this.TransferType.Equals(input.TransferType)) - ); - } + [DataMember(Name="TotalQty", EmitDefaultValue=false)] + public DecimalValue TotalQty { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.ExternalRef != null) - hashCode = hashCode * 59 + this.ExternalRef.GetHashCode(); - if (this.FromWarehouseID != null) - hashCode = hashCode * 59 + this.FromWarehouseID.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalQty != null) - hashCode = hashCode * 59 + this.TotalQty.GetHashCode(); - if (this.ToWarehouseID != null) - hashCode = hashCode * 59 + this.ToWarehouseID.GetHashCode(); - if (this.TransferType != null) - hashCode = hashCode * 59 + this.TransferType.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ToWarehouseID", EmitDefaultValue=false)] + public StringValue ToWarehouseID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TransferType", EmitDefaultValue=false)] + public StringValue TransferType { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TransferOrderDetail.cs b/Acumatica.Default_17.200.001/Model/TransferOrderDetail.cs index 2d26be22..3d96c44b 100644 --- a/Acumatica.Default_17.200.001/Model/TransferOrderDetail.cs +++ b/Acumatica.Default_17.200.001/Model/TransferOrderDetail.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TransferOrderDetail - /// - [DataContract] - public partial class TransferOrderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocations. - /// description. - /// expirationDate. - /// fromLocationID. - /// inventoryID. - /// lineNbr. - /// lotSerialNbr. - /// qty. - /// reasonCode. - /// subitem. - /// toLocationID. - /// uOM. - public TransferOrderDetail(List allocations = default(List), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue fromLocationID = default(StringValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue reasonCode = default(StringValue), StringValue subitem = default(StringValue), StringValue toLocationID = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocations = allocations; - this.Description = description; - this.ExpirationDate = expirationDate; - this.FromLocationID = fromLocationID; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.ReasonCode = reasonCode; - this.Subitem = subitem; - this.ToLocationID = toLocationID; - this.UOM = uOM; - } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public List Allocations { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets FromLocationID - /// - [DataMember(Name="FromLocationID", EmitDefaultValue=false)] - public StringValue FromLocationID { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } + [DataContract] + public partial class TransferOrderDetail : Entity + { - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } + [DataMember(Name="FromLocationID", EmitDefaultValue=false)] + public StringValue FromLocationID { get; set; } - /// - /// Gets or Sets ToLocationID - /// - [DataMember(Name="ToLocationID", EmitDefaultValue=false)] - public StringValue ToLocationID { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TransferOrderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" FromLocationID: ").Append(FromLocationID).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" ToLocationID: ").Append(ToLocationID).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TransferOrderDetail); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Returns true if TransferOrderDetail instances are equal - /// - /// Instance of TransferOrderDetail to be compared - /// Boolean - public bool Equals(TransferOrderDetail input) - { - if (input == null) - return false; + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } - return base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.FromLocationID == input.FromLocationID || - (this.FromLocationID != null && - this.FromLocationID.Equals(input.FromLocationID)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.ToLocationID == input.ToLocationID || - (this.ToLocationID != null && - this.ToLocationID.Equals(input.ToLocationID)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.FromLocationID != null) - hashCode = hashCode * 59 + this.FromLocationID.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.ToLocationID != null) - hashCode = hashCode * 59 + this.ToLocationID.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ToLocationID", EmitDefaultValue=false)] + public StringValue ToLocationID { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TransferOrderDetailAllocation.cs b/Acumatica.Default_17.200.001/Model/TransferOrderDetailAllocation.cs index cf63ea72..ed537c63 100644 --- a/Acumatica.Default_17.200.001/Model/TransferOrderDetailAllocation.cs +++ b/Acumatica.Default_17.200.001/Model/TransferOrderDetailAllocation.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TransferOrderDetailAllocation - /// - [DataContract] - public partial class TransferOrderDetailAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// locationID. - /// lotSerialNbr. - /// qty. - /// splitLineNumber. - /// subitem. - public TransferOrderDetailAllocation(StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), IntValue splitLineNumber = default(IntValue), StringValue subitem = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.SplitLineNumber = splitLineNumber; - this.Subitem = subitem; - } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets SplitLineNumber - /// - [DataMember(Name="SplitLineNumber", EmitDefaultValue=false)] - public IntValue SplitLineNumber { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TransferOrderDetailAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" SplitLineNumber: ").Append(SplitLineNumber).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class TransferOrderDetailAllocation : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TransferOrderDetailAllocation); - } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Returns true if TransferOrderDetailAllocation instances are equal - /// - /// Instance of TransferOrderDetailAllocation to be compared - /// Boolean - public bool Equals(TransferOrderDetailAllocation input) - { - if (input == null) - return false; + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } - return base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.SplitLineNumber == input.SplitLineNumber || - (this.SplitLineNumber != null && - this.SplitLineNumber.Equals(input.SplitLineNumber)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ); - } + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.SplitLineNumber != null) - hashCode = hashCode * 59 + this.SplitLineNumber.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="SplitLineNumber", EmitDefaultValue=false)] + public IntValue SplitLineNumber { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TrialBalance.cs b/Acumatica.Default_17.200.001/Model/TrialBalance.cs index 6d309090..785bf1b6 100644 --- a/Acumatica.Default_17.200.001/Model/TrialBalance.cs +++ b/Acumatica.Default_17.200.001/Model/TrialBalance.cs @@ -1,350 +1,57 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TrialBalance - /// - [DataContract] - public partial class TrialBalance : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// batchNbr. - /// branch. - /// controlTotal. - /// createdDateTime. - /// creditTotal. - /// debitTotal. - /// description. - /// details. - /// hold. - /// importDate. - /// importNbr. - /// lastModifiedDateTime. - /// ledger. - /// period. - /// status. - public TrialBalance(StringValue batchNbr = default(StringValue), StringValue branch = default(StringValue), DecimalValue controlTotal = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), DecimalValue creditTotal = default(DecimalValue), DecimalValue debitTotal = default(DecimalValue), StringValue description = default(StringValue), List details = default(List), BooleanValue hold = default(BooleanValue), DateTimeValue importDate = default(DateTimeValue), StringValue importNbr = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue ledger = default(StringValue), StringValue period = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BatchNbr = batchNbr; - this.Branch = branch; - this.ControlTotal = controlTotal; - this.CreatedDateTime = createdDateTime; - this.CreditTotal = creditTotal; - this.DebitTotal = debitTotal; - this.Description = description; - this.Details = details; - this.Hold = hold; - this.ImportDate = importDate; - this.ImportNbr = importNbr; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Ledger = ledger; - this.Period = period; - this.Status = status; - } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ControlTotal - /// - [DataMember(Name="ControlTotal", EmitDefaultValue=false)] - public DecimalValue ControlTotal { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CreditTotal - /// - [DataMember(Name="CreditTotal", EmitDefaultValue=false)] - public DecimalValue CreditTotal { get; set; } - - /// - /// Gets or Sets DebitTotal - /// - [DataMember(Name="DebitTotal", EmitDefaultValue=false)] - public DecimalValue DebitTotal { get; set; } + [DataContract] + public partial class TrialBalance : Entity + { - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public List Details { get; set; } + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } + [DataMember(Name="ControlTotal", EmitDefaultValue=false)] + public DecimalValue ControlTotal { get; set; } - /// - /// Gets or Sets ImportDate - /// - [DataMember(Name="ImportDate", EmitDefaultValue=false)] - public DateTimeValue ImportDate { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets ImportNbr - /// - [DataMember(Name="ImportNbr", EmitDefaultValue=false)] - public StringValue ImportNbr { get; set; } + [DataMember(Name="CreditTotal", EmitDefaultValue=false)] + public DecimalValue CreditTotal { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="DebitTotal", EmitDefaultValue=false)] + public DecimalValue DebitTotal { get; set; } - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Period - /// - [DataMember(Name="Period", EmitDefaultValue=false)] - public StringValue Period { get; set; } + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TrialBalance {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ControlTotal: ").Append(ControlTotal).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CreditTotal: ").Append(CreditTotal).Append("\n"); - sb.Append(" DebitTotal: ").Append(DebitTotal).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" ImportDate: ").Append(ImportDate).Append("\n"); - sb.Append(" ImportNbr: ").Append(ImportNbr).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ImportDate", EmitDefaultValue=false)] + public DateTimeValue ImportDate { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TrialBalance); - } + [DataMember(Name="ImportNbr", EmitDefaultValue=false)] + public StringValue ImportNbr { get; set; } - /// - /// Returns true if TrialBalance instances are equal - /// - /// Instance of TrialBalance to be compared - /// Boolean - public bool Equals(TrialBalance input) - { - if (input == null) - return false; + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - return base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ControlTotal == input.ControlTotal || - (this.ControlTotal != null && - this.ControlTotal.Equals(input.ControlTotal)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CreditTotal == input.CreditTotal || - (this.CreditTotal != null && - this.CreditTotal.Equals(input.CreditTotal)) - ) && base.Equals(input) && - ( - this.DebitTotal == input.DebitTotal || - (this.DebitTotal != null && - this.DebitTotal.Equals(input.DebitTotal)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.ImportDate == input.ImportDate || - (this.ImportDate != null && - this.ImportDate.Equals(input.ImportDate)) - ) && base.Equals(input) && - ( - this.ImportNbr == input.ImportNbr || - (this.ImportNbr != null && - this.ImportNbr.Equals(input.ImportNbr)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ControlTotal != null) - hashCode = hashCode * 59 + this.ControlTotal.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CreditTotal != null) - hashCode = hashCode * 59 + this.CreditTotal.GetHashCode(); - if (this.DebitTotal != null) - hashCode = hashCode * 59 + this.DebitTotal.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.ImportDate != null) - hashCode = hashCode * 59 + this.ImportDate.GetHashCode(); - if (this.ImportNbr != null) - hashCode = hashCode * 59 + this.ImportNbr.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Period", EmitDefaultValue=false)] + public StringValue Period { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/TrialBalanceDetail.cs b/Acumatica.Default_17.200.001/Model/TrialBalanceDetail.cs index 4cf0601d..05a26903 100644 --- a/Acumatica.Default_17.200.001/Model/TrialBalanceDetail.cs +++ b/Acumatica.Default_17.200.001/Model/TrialBalanceDetail.cs @@ -1,302 +1,48 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// TrialBalanceDetail - /// - [DataContract] - public partial class TrialBalanceDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// currencyYTDBalance. - /// description. - /// importedAccount. - /// importedSubaccount. - /// line. - /// mapNbr. - /// mappedAccount. - /// mappedSubaccount. - /// selected. - /// status. - /// type. - /// yTDBalance. - public TrialBalanceDetail(DecimalValue currencyYTDBalance = default(DecimalValue), StringValue description = default(StringValue), StringValue importedAccount = default(StringValue), StringValue importedSubaccount = default(StringValue), IntValue line = default(IntValue), StringValue mapNbr = default(StringValue), StringValue mappedAccount = default(StringValue), StringValue mappedSubaccount = default(StringValue), BooleanValue selected = default(BooleanValue), StringValue status = default(StringValue), StringValue type = default(StringValue), DecimalValue yTDBalance = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CurrencyYTDBalance = currencyYTDBalance; - this.Description = description; - this.ImportedAccount = importedAccount; - this.ImportedSubaccount = importedSubaccount; - this.Line = line; - this.MapNbr = mapNbr; - this.MappedAccount = mappedAccount; - this.MappedSubaccount = mappedSubaccount; - this.Selected = selected; - this.Status = status; - this.Type = type; - this.YTDBalance = yTDBalance; - } - - /// - /// Gets or Sets CurrencyYTDBalance - /// - [DataMember(Name="CurrencyYTDBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyYTDBalance { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ImportedAccount - /// - [DataMember(Name="ImportedAccount", EmitDefaultValue=false)] - public StringValue ImportedAccount { get; set; } - - /// - /// Gets or Sets ImportedSubaccount - /// - [DataMember(Name="ImportedSubaccount", EmitDefaultValue=false)] - public StringValue ImportedSubaccount { get; set; } - - /// - /// Gets or Sets Line - /// - [DataMember(Name="Line", EmitDefaultValue=false)] - public IntValue Line { get; set; } - - /// - /// Gets or Sets MapNbr - /// - [DataMember(Name="MapNbr", EmitDefaultValue=false)] - public StringValue MapNbr { get; set; } + [DataContract] + public partial class TrialBalanceDetail : Entity + { - /// - /// Gets or Sets MappedAccount - /// - [DataMember(Name="MappedAccount", EmitDefaultValue=false)] - public StringValue MappedAccount { get; set; } + [DataMember(Name="CurrencyYTDBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyYTDBalance { get; set; } - /// - /// Gets or Sets MappedSubaccount - /// - [DataMember(Name="MappedSubaccount", EmitDefaultValue=false)] - public StringValue MappedSubaccount { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } + [DataMember(Name="ImportedAccount", EmitDefaultValue=false)] + public StringValue ImportedAccount { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="ImportedSubaccount", EmitDefaultValue=false)] + public StringValue ImportedSubaccount { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } + [DataMember(Name="Line", EmitDefaultValue=false)] + public IntValue Line { get; set; } - /// - /// Gets or Sets YTDBalance - /// - [DataMember(Name="YTDBalance", EmitDefaultValue=false)] - public DecimalValue YTDBalance { get; set; } + [DataMember(Name="MapNbr", EmitDefaultValue=false)] + public StringValue MapNbr { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TrialBalanceDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CurrencyYTDBalance: ").Append(CurrencyYTDBalance).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ImportedAccount: ").Append(ImportedAccount).Append("\n"); - sb.Append(" ImportedSubaccount: ").Append(ImportedSubaccount).Append("\n"); - sb.Append(" Line: ").Append(Line).Append("\n"); - sb.Append(" MapNbr: ").Append(MapNbr).Append("\n"); - sb.Append(" MappedAccount: ").Append(MappedAccount).Append("\n"); - sb.Append(" MappedSubaccount: ").Append(MappedSubaccount).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" YTDBalance: ").Append(YTDBalance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="MappedAccount", EmitDefaultValue=false)] + public StringValue MappedAccount { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TrialBalanceDetail); - } + [DataMember(Name="MappedSubaccount", EmitDefaultValue=false)] + public StringValue MappedSubaccount { get; set; } - /// - /// Returns true if TrialBalanceDetail instances are equal - /// - /// Instance of TrialBalanceDetail to be compared - /// Boolean - public bool Equals(TrialBalanceDetail input) - { - if (input == null) - return false; + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } - return base.Equals(input) && - ( - this.CurrencyYTDBalance == input.CurrencyYTDBalance || - (this.CurrencyYTDBalance != null && - this.CurrencyYTDBalance.Equals(input.CurrencyYTDBalance)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ImportedAccount == input.ImportedAccount || - (this.ImportedAccount != null && - this.ImportedAccount.Equals(input.ImportedAccount)) - ) && base.Equals(input) && - ( - this.ImportedSubaccount == input.ImportedSubaccount || - (this.ImportedSubaccount != null && - this.ImportedSubaccount.Equals(input.ImportedSubaccount)) - ) && base.Equals(input) && - ( - this.Line == input.Line || - (this.Line != null && - this.Line.Equals(input.Line)) - ) && base.Equals(input) && - ( - this.MapNbr == input.MapNbr || - (this.MapNbr != null && - this.MapNbr.Equals(input.MapNbr)) - ) && base.Equals(input) && - ( - this.MappedAccount == input.MappedAccount || - (this.MappedAccount != null && - this.MappedAccount.Equals(input.MappedAccount)) - ) && base.Equals(input) && - ( - this.MappedSubaccount == input.MappedSubaccount || - (this.MappedSubaccount != null && - this.MappedSubaccount.Equals(input.MappedSubaccount)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.YTDBalance == input.YTDBalance || - (this.YTDBalance != null && - this.YTDBalance.Equals(input.YTDBalance)) - ); - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CurrencyYTDBalance != null) - hashCode = hashCode * 59 + this.CurrencyYTDBalance.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ImportedAccount != null) - hashCode = hashCode * 59 + this.ImportedAccount.GetHashCode(); - if (this.ImportedSubaccount != null) - hashCode = hashCode * 59 + this.ImportedSubaccount.GetHashCode(); - if (this.Line != null) - hashCode = hashCode * 59 + this.Line.GetHashCode(); - if (this.MapNbr != null) - hashCode = hashCode * 59 + this.MapNbr.GetHashCode(); - if (this.MappedAccount != null) - hashCode = hashCode * 59 + this.MappedAccount.GetHashCode(); - if (this.MappedSubaccount != null) - hashCode = hashCode * 59 + this.MappedSubaccount.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.YTDBalance != null) - hashCode = hashCode * 59 + this.YTDBalance.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="YTDBalance", EmitDefaultValue=false)] + public DecimalValue YTDBalance { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/UnitsOfMeasure.cs b/Acumatica.Default_17.200.001/Model/UnitsOfMeasure.cs index 39dcdb15..dc72ec5c 100644 --- a/Acumatica.Default_17.200.001/Model/UnitsOfMeasure.cs +++ b/Acumatica.Default_17.200.001/Model/UnitsOfMeasure.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// UnitsOfMeasure - /// - [DataContract] - public partial class UnitsOfMeasure : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// conversionFactor. - /// createdDateTime. - /// fromUOM. - /// lastModifiedDateTime. - /// multiplyOrDivide. - /// toUOM. - public UnitsOfMeasure(DecimalValue conversionFactor = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue fromUOM = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue multiplyOrDivide = default(StringValue), StringValue toUOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ConversionFactor = conversionFactor; - this.CreatedDateTime = createdDateTime; - this.FromUOM = fromUOM; - this.LastModifiedDateTime = lastModifiedDateTime; - this.MultiplyOrDivide = multiplyOrDivide; - this.ToUOM = toUOM; - } - - /// - /// Gets or Sets ConversionFactor - /// - [DataMember(Name="ConversionFactor", EmitDefaultValue=false)] - public DecimalValue ConversionFactor { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets FromUOM - /// - [DataMember(Name="FromUOM", EmitDefaultValue=false)] - public StringValue FromUOM { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets MultiplyOrDivide - /// - [DataMember(Name="MultiplyOrDivide", EmitDefaultValue=false)] - public StringValue MultiplyOrDivide { get; set; } - - /// - /// Gets or Sets ToUOM - /// - [DataMember(Name="ToUOM", EmitDefaultValue=false)] - public StringValue ToUOM { get; set; } + [DataContract] + public partial class UnitsOfMeasure : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UnitsOfMeasure {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ConversionFactor: ").Append(ConversionFactor).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" FromUOM: ").Append(FromUOM).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" MultiplyOrDivide: ").Append(MultiplyOrDivide).Append("\n"); - sb.Append(" ToUOM: ").Append(ToUOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="ConversionFactor", EmitDefaultValue=false)] + public DecimalValue ConversionFactor { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UnitsOfMeasure); - } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Returns true if UnitsOfMeasure instances are equal - /// - /// Instance of UnitsOfMeasure to be compared - /// Boolean - public bool Equals(UnitsOfMeasure input) - { - if (input == null) - return false; + [DataMember(Name="FromUOM", EmitDefaultValue=false)] + public StringValue FromUOM { get; set; } - return base.Equals(input) && - ( - this.ConversionFactor == input.ConversionFactor || - (this.ConversionFactor != null && - this.ConversionFactor.Equals(input.ConversionFactor)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.FromUOM == input.FromUOM || - (this.FromUOM != null && - this.FromUOM.Equals(input.FromUOM)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.MultiplyOrDivide == input.MultiplyOrDivide || - (this.MultiplyOrDivide != null && - this.MultiplyOrDivide.Equals(input.MultiplyOrDivide)) - ) && base.Equals(input) && - ( - this.ToUOM == input.ToUOM || - (this.ToUOM != null && - this.ToUOM.Equals(input.ToUOM)) - ); - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ConversionFactor != null) - hashCode = hashCode * 59 + this.ConversionFactor.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.FromUOM != null) - hashCode = hashCode * 59 + this.FromUOM.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.MultiplyOrDivide != null) - hashCode = hashCode * 59 + this.MultiplyOrDivide.GetHashCode(); - if (this.ToUOM != null) - hashCode = hashCode * 59 + this.ToUOM.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="MultiplyOrDivide", EmitDefaultValue=false)] + public StringValue MultiplyOrDivide { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="ToUOM", EmitDefaultValue=false)] + public StringValue ToUOM { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Vendor.cs b/Acumatica.Default_17.200.001/Model/Vendor.cs index 350f7e7c..ef017d7c 100644 --- a/Acumatica.Default_17.200.001/Model/Vendor.cs +++ b/Acumatica.Default_17.200.001/Model/Vendor.cs @@ -1,958 +1,171 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Vendor - /// - [DataContract] - public partial class Vendor : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountRef. - /// aPAccount. - /// aPSubaccount. - /// attributes. - /// cashAccount. - /// contacts. - /// createdDateTime. - /// currencyID. - /// currencyRateType. - /// enableCurrencyOverride. - /// enableRateOverride. - /// f1099Box. - /// f1099Vendor. - /// fATCA. - /// fOBPoint. - /// foreignEntity. - /// landedCostVendor. - /// lastModifiedDateTime. - /// leadTimedays. - /// locationName. - /// mainContact. - /// maxReceipt. - /// minReceipt. - /// parentAccount. - /// paymentBy. - /// paymentInstructions. - /// paymentLeadTimedays. - /// paymentMethod. - /// paySeparately. - /// printOrders. - /// receiptAction. - /// receivingBranch. - /// remittanceAddressSameasMain. - /// remittanceContact. - /// remittanceContactSameasMain. - /// sendOrdersbyEmail. - /// shippersContactSameasMain. - /// shippingAddressSameasMain. - /// shippingContact. - /// shippingTerms. - /// shipVia. - /// status. - /// taxCalculationMode. - /// taxRegistrationID. - /// taxZone. - /// terms. - /// thresholdReceipt. - /// vendorClass. - /// vendorID. - /// vendorIsLaborUnion. - /// vendorIsTaxAgency. - /// vendorName. - /// warehouse. - public Vendor(StringValue accountRef = default(StringValue), StringValue aPAccount = default(StringValue), StringValue aPSubaccount = default(StringValue), List attributes = default(List), StringValue cashAccount = default(StringValue), List contacts = default(List), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue currencyRateType = default(StringValue), BooleanValue enableCurrencyOverride = default(BooleanValue), BooleanValue enableRateOverride = default(BooleanValue), StringValue f1099Box = default(StringValue), BooleanValue f1099Vendor = default(BooleanValue), BooleanValue fATCA = default(BooleanValue), StringValue fOBPoint = default(StringValue), BooleanValue foreignEntity = default(BooleanValue), BooleanValue landedCostVendor = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ShortValue leadTimedays = default(ShortValue), StringValue locationName = default(StringValue), Contact mainContact = default(Contact), DecimalValue maxReceipt = default(DecimalValue), DecimalValue minReceipt = default(DecimalValue), StringValue parentAccount = default(StringValue), StringValue paymentBy = default(StringValue), List paymentInstructions = default(List), ShortValue paymentLeadTimedays = default(ShortValue), StringValue paymentMethod = default(StringValue), BooleanValue paySeparately = default(BooleanValue), BooleanValue printOrders = default(BooleanValue), StringValue receiptAction = default(StringValue), StringValue receivingBranch = default(StringValue), BooleanValue remittanceAddressSameasMain = default(BooleanValue), Contact remittanceContact = default(Contact), BooleanValue remittanceContactSameasMain = default(BooleanValue), BooleanValue sendOrdersbyEmail = default(BooleanValue), BooleanValue shippersContactSameasMain = default(BooleanValue), BooleanValue shippingAddressSameasMain = default(BooleanValue), Contact shippingContact = default(Contact), StringValue shippingTerms = default(StringValue), StringValue shipVia = default(StringValue), StringValue status = default(StringValue), StringValue taxCalculationMode = default(StringValue), StringValue taxRegistrationID = default(StringValue), StringValue taxZone = default(StringValue), StringValue terms = default(StringValue), DecimalValue thresholdReceipt = default(DecimalValue), StringValue vendorClass = default(StringValue), StringValue vendorID = default(StringValue), BooleanValue vendorIsLaborUnion = default(BooleanValue), BooleanValue vendorIsTaxAgency = default(BooleanValue), StringValue vendorName = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountRef = accountRef; - this.APAccount = aPAccount; - this.APSubaccount = aPSubaccount; - this.Attributes = attributes; - this.CashAccount = cashAccount; - this.Contacts = contacts; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.CurrencyRateType = currencyRateType; - this.EnableCurrencyOverride = enableCurrencyOverride; - this.EnableRateOverride = enableRateOverride; - this.F1099Box = f1099Box; - this.F1099Vendor = f1099Vendor; - this.FATCA = fATCA; - this.FOBPoint = fOBPoint; - this.ForeignEntity = foreignEntity; - this.LandedCostVendor = landedCostVendor; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LeadTimedays = leadTimedays; - this.LocationName = locationName; - this.MainContact = mainContact; - this.MaxReceipt = maxReceipt; - this.MinReceipt = minReceipt; - this.ParentAccount = parentAccount; - this.PaymentBy = paymentBy; - this.PaymentInstructions = paymentInstructions; - this.PaymentLeadTimedays = paymentLeadTimedays; - this.PaymentMethod = paymentMethod; - this.PaySeparately = paySeparately; - this.PrintOrders = printOrders; - this.ReceiptAction = receiptAction; - this.ReceivingBranch = receivingBranch; - this.RemittanceAddressSameasMain = remittanceAddressSameasMain; - this.RemittanceContact = remittanceContact; - this.RemittanceContactSameasMain = remittanceContactSameasMain; - this.SendOrdersbyEmail = sendOrdersbyEmail; - this.ShippersContactSameasMain = shippersContactSameasMain; - this.ShippingAddressSameasMain = shippingAddressSameasMain; - this.ShippingContact = shippingContact; - this.ShippingTerms = shippingTerms; - this.ShipVia = shipVia; - this.Status = status; - this.TaxCalculationMode = taxCalculationMode; - this.TaxRegistrationID = taxRegistrationID; - this.TaxZone = taxZone; - this.Terms = terms; - this.ThresholdReceipt = thresholdReceipt; - this.VendorClass = vendorClass; - this.VendorID = vendorID; - this.VendorIsLaborUnion = vendorIsLaborUnion; - this.VendorIsTaxAgency = vendorIsTaxAgency; - this.VendorName = vendorName; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets AccountRef - /// - [DataMember(Name="AccountRef", EmitDefaultValue=false)] - public StringValue AccountRef { get; set; } - - /// - /// Gets or Sets APAccount - /// - [DataMember(Name="APAccount", EmitDefaultValue=false)] - public StringValue APAccount { get; set; } - - /// - /// Gets or Sets APSubaccount - /// - [DataMember(Name="APSubaccount", EmitDefaultValue=false)] - public StringValue APSubaccount { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets Contacts - /// - [DataMember(Name="Contacts", EmitDefaultValue=false)] - public List Contacts { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRateType - /// - [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] - public StringValue CurrencyRateType { get; set; } - - /// - /// Gets or Sets EnableCurrencyOverride - /// - [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] - public BooleanValue EnableCurrencyOverride { get; set; } - - /// - /// Gets or Sets EnableRateOverride - /// - [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] - public BooleanValue EnableRateOverride { get; set; } - - /// - /// Gets or Sets F1099Box - /// - [DataMember(Name="F1099Box", EmitDefaultValue=false)] - public StringValue F1099Box { get; set; } - - /// - /// Gets or Sets F1099Vendor - /// - [DataMember(Name="F1099Vendor", EmitDefaultValue=false)] - public BooleanValue F1099Vendor { get; set; } - - /// - /// Gets or Sets FATCA - /// - [DataMember(Name="FATCA", EmitDefaultValue=false)] - public BooleanValue FATCA { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets ForeignEntity - /// - [DataMember(Name="ForeignEntity", EmitDefaultValue=false)] - public BooleanValue ForeignEntity { get; set; } - - /// - /// Gets or Sets LandedCostVendor - /// - [DataMember(Name="LandedCostVendor", EmitDefaultValue=false)] - public BooleanValue LandedCostVendor { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LeadTimedays - /// - [DataMember(Name="LeadTimedays", EmitDefaultValue=false)] - public ShortValue LeadTimedays { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets MainContact - /// - [DataMember(Name="MainContact", EmitDefaultValue=false)] - public Contact MainContact { get; set; } - - /// - /// Gets or Sets MaxReceipt - /// - [DataMember(Name="MaxReceipt", EmitDefaultValue=false)] - public DecimalValue MaxReceipt { get; set; } - - /// - /// Gets or Sets MinReceipt - /// - [DataMember(Name="MinReceipt", EmitDefaultValue=false)] - public DecimalValue MinReceipt { get; set; } - - /// - /// Gets or Sets ParentAccount - /// - [DataMember(Name="ParentAccount", EmitDefaultValue=false)] - public StringValue ParentAccount { get; set; } - - /// - /// Gets or Sets PaymentBy - /// - [DataMember(Name="PaymentBy", EmitDefaultValue=false)] - public StringValue PaymentBy { get; set; } - - /// - /// Gets or Sets PaymentInstructions - /// - [DataMember(Name="PaymentInstructions", EmitDefaultValue=false)] - public List PaymentInstructions { get; set; } - - /// - /// Gets or Sets PaymentLeadTimedays - /// - [DataMember(Name="PaymentLeadTimedays", EmitDefaultValue=false)] - public ShortValue PaymentLeadTimedays { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets PaySeparately - /// - [DataMember(Name="PaySeparately", EmitDefaultValue=false)] - public BooleanValue PaySeparately { get; set; } - - /// - /// Gets or Sets PrintOrders - /// - [DataMember(Name="PrintOrders", EmitDefaultValue=false)] - public BooleanValue PrintOrders { get; set; } - - /// - /// Gets or Sets ReceiptAction - /// - [DataMember(Name="ReceiptAction", EmitDefaultValue=false)] - public StringValue ReceiptAction { get; set; } - - /// - /// Gets or Sets ReceivingBranch - /// - [DataMember(Name="ReceivingBranch", EmitDefaultValue=false)] - public StringValue ReceivingBranch { get; set; } - - /// - /// Gets or Sets RemittanceAddressSameasMain - /// - [DataMember(Name="RemittanceAddressSameasMain", EmitDefaultValue=false)] - public BooleanValue RemittanceAddressSameasMain { get; set; } - - /// - /// Gets or Sets RemittanceContact - /// - [DataMember(Name="RemittanceContact", EmitDefaultValue=false)] - public Contact RemittanceContact { get; set; } - - /// - /// Gets or Sets RemittanceContactSameasMain - /// - [DataMember(Name="RemittanceContactSameasMain", EmitDefaultValue=false)] - public BooleanValue RemittanceContactSameasMain { get; set; } - - /// - /// Gets or Sets SendOrdersbyEmail - /// - [DataMember(Name="SendOrdersbyEmail", EmitDefaultValue=false)] - public BooleanValue SendOrdersbyEmail { get; set; } - - /// - /// Gets or Sets ShippersContactSameasMain - /// - [DataMember(Name="ShippersContactSameasMain", EmitDefaultValue=false)] - public BooleanValue ShippersContactSameasMain { get; set; } - - /// - /// Gets or Sets ShippingAddressSameasMain - /// - [DataMember(Name="ShippingAddressSameasMain", EmitDefaultValue=false)] - public BooleanValue ShippingAddressSameasMain { get; set; } - - /// - /// Gets or Sets ShippingContact - /// - [DataMember(Name="ShippingContact", EmitDefaultValue=false)] - public Contact ShippingContact { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxCalculationMode - /// - [DataMember(Name="TaxCalculationMode", EmitDefaultValue=false)] - public StringValue TaxCalculationMode { get; set; } - - /// - /// Gets or Sets TaxRegistrationID - /// - [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] - public StringValue TaxRegistrationID { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets ThresholdReceipt - /// - [DataMember(Name="ThresholdReceipt", EmitDefaultValue=false)] - public DecimalValue ThresholdReceipt { get; set; } - - /// - /// Gets or Sets VendorClass - /// - [DataMember(Name="VendorClass", EmitDefaultValue=false)] - public StringValue VendorClass { get; set; } - - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } - - /// - /// Gets or Sets VendorIsLaborUnion - /// - [DataMember(Name="VendorIsLaborUnion", EmitDefaultValue=false)] - public BooleanValue VendorIsLaborUnion { get; set; } - - /// - /// Gets or Sets VendorIsTaxAgency - /// - [DataMember(Name="VendorIsTaxAgency", EmitDefaultValue=false)] - public BooleanValue VendorIsTaxAgency { get; set; } - - /// - /// Gets or Sets VendorName - /// - [DataMember(Name="VendorName", EmitDefaultValue=false)] - public StringValue VendorName { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Vendor {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountRef: ").Append(AccountRef).Append("\n"); - sb.Append(" APAccount: ").Append(APAccount).Append("\n"); - sb.Append(" APSubaccount: ").Append(APSubaccount).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" Contacts: ").Append(Contacts).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRateType: ").Append(CurrencyRateType).Append("\n"); - sb.Append(" EnableCurrencyOverride: ").Append(EnableCurrencyOverride).Append("\n"); - sb.Append(" EnableRateOverride: ").Append(EnableRateOverride).Append("\n"); - sb.Append(" F1099Box: ").Append(F1099Box).Append("\n"); - sb.Append(" F1099Vendor: ").Append(F1099Vendor).Append("\n"); - sb.Append(" FATCA: ").Append(FATCA).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" ForeignEntity: ").Append(ForeignEntity).Append("\n"); - sb.Append(" LandedCostVendor: ").Append(LandedCostVendor).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LeadTimedays: ").Append(LeadTimedays).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" MainContact: ").Append(MainContact).Append("\n"); - sb.Append(" MaxReceipt: ").Append(MaxReceipt).Append("\n"); - sb.Append(" MinReceipt: ").Append(MinReceipt).Append("\n"); - sb.Append(" ParentAccount: ").Append(ParentAccount).Append("\n"); - sb.Append(" PaymentBy: ").Append(PaymentBy).Append("\n"); - sb.Append(" PaymentInstructions: ").Append(PaymentInstructions).Append("\n"); - sb.Append(" PaymentLeadTimedays: ").Append(PaymentLeadTimedays).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaySeparately: ").Append(PaySeparately).Append("\n"); - sb.Append(" PrintOrders: ").Append(PrintOrders).Append("\n"); - sb.Append(" ReceiptAction: ").Append(ReceiptAction).Append("\n"); - sb.Append(" ReceivingBranch: ").Append(ReceivingBranch).Append("\n"); - sb.Append(" RemittanceAddressSameasMain: ").Append(RemittanceAddressSameasMain).Append("\n"); - sb.Append(" RemittanceContact: ").Append(RemittanceContact).Append("\n"); - sb.Append(" RemittanceContactSameasMain: ").Append(RemittanceContactSameasMain).Append("\n"); - sb.Append(" SendOrdersbyEmail: ").Append(SendOrdersbyEmail).Append("\n"); - sb.Append(" ShippersContactSameasMain: ").Append(ShippersContactSameasMain).Append("\n"); - sb.Append(" ShippingAddressSameasMain: ").Append(ShippingAddressSameasMain).Append("\n"); - sb.Append(" ShippingContact: ").Append(ShippingContact).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxCalculationMode: ").Append(TaxCalculationMode).Append("\n"); - sb.Append(" TaxRegistrationID: ").Append(TaxRegistrationID).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" ThresholdReceipt: ").Append(ThresholdReceipt).Append("\n"); - sb.Append(" VendorClass: ").Append(VendorClass).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append(" VendorIsLaborUnion: ").Append(VendorIsLaborUnion).Append("\n"); - sb.Append(" VendorIsTaxAgency: ").Append(VendorIsTaxAgency).Append("\n"); - sb.Append(" VendorName: ").Append(VendorName).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Vendor); - } - - /// - /// Returns true if Vendor instances are equal - /// - /// Instance of Vendor to be compared - /// Boolean - public bool Equals(Vendor input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountRef == input.AccountRef || - (this.AccountRef != null && - this.AccountRef.Equals(input.AccountRef)) - ) && base.Equals(input) && - ( - this.APAccount == input.APAccount || - (this.APAccount != null && - this.APAccount.Equals(input.APAccount)) - ) && base.Equals(input) && - ( - this.APSubaccount == input.APSubaccount || - (this.APSubaccount != null && - this.APSubaccount.Equals(input.APSubaccount)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.Contacts == input.Contacts || - this.Contacts != null && - this.Contacts.SequenceEqual(input.Contacts) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRateType == input.CurrencyRateType || - (this.CurrencyRateType != null && - this.CurrencyRateType.Equals(input.CurrencyRateType)) - ) && base.Equals(input) && - ( - this.EnableCurrencyOverride == input.EnableCurrencyOverride || - (this.EnableCurrencyOverride != null && - this.EnableCurrencyOverride.Equals(input.EnableCurrencyOverride)) - ) && base.Equals(input) && - ( - this.EnableRateOverride == input.EnableRateOverride || - (this.EnableRateOverride != null && - this.EnableRateOverride.Equals(input.EnableRateOverride)) - ) && base.Equals(input) && - ( - this.F1099Box == input.F1099Box || - (this.F1099Box != null && - this.F1099Box.Equals(input.F1099Box)) - ) && base.Equals(input) && - ( - this.F1099Vendor == input.F1099Vendor || - (this.F1099Vendor != null && - this.F1099Vendor.Equals(input.F1099Vendor)) - ) && base.Equals(input) && - ( - this.FATCA == input.FATCA || - (this.FATCA != null && - this.FATCA.Equals(input.FATCA)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.ForeignEntity == input.ForeignEntity || - (this.ForeignEntity != null && - this.ForeignEntity.Equals(input.ForeignEntity)) - ) && base.Equals(input) && - ( - this.LandedCostVendor == input.LandedCostVendor || - (this.LandedCostVendor != null && - this.LandedCostVendor.Equals(input.LandedCostVendor)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LeadTimedays == input.LeadTimedays || - (this.LeadTimedays != null && - this.LeadTimedays.Equals(input.LeadTimedays)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.MainContact == input.MainContact || - (this.MainContact != null && - this.MainContact.Equals(input.MainContact)) - ) && base.Equals(input) && - ( - this.MaxReceipt == input.MaxReceipt || - (this.MaxReceipt != null && - this.MaxReceipt.Equals(input.MaxReceipt)) - ) && base.Equals(input) && - ( - this.MinReceipt == input.MinReceipt || - (this.MinReceipt != null && - this.MinReceipt.Equals(input.MinReceipt)) - ) && base.Equals(input) && - ( - this.ParentAccount == input.ParentAccount || - (this.ParentAccount != null && - this.ParentAccount.Equals(input.ParentAccount)) - ) && base.Equals(input) && - ( - this.PaymentBy == input.PaymentBy || - (this.PaymentBy != null && - this.PaymentBy.Equals(input.PaymentBy)) - ) && base.Equals(input) && - ( - this.PaymentInstructions == input.PaymentInstructions || - this.PaymentInstructions != null && - this.PaymentInstructions.SequenceEqual(input.PaymentInstructions) - ) && base.Equals(input) && - ( - this.PaymentLeadTimedays == input.PaymentLeadTimedays || - (this.PaymentLeadTimedays != null && - this.PaymentLeadTimedays.Equals(input.PaymentLeadTimedays)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaySeparately == input.PaySeparately || - (this.PaySeparately != null && - this.PaySeparately.Equals(input.PaySeparately)) - ) && base.Equals(input) && - ( - this.PrintOrders == input.PrintOrders || - (this.PrintOrders != null && - this.PrintOrders.Equals(input.PrintOrders)) - ) && base.Equals(input) && - ( - this.ReceiptAction == input.ReceiptAction || - (this.ReceiptAction != null && - this.ReceiptAction.Equals(input.ReceiptAction)) - ) && base.Equals(input) && - ( - this.ReceivingBranch == input.ReceivingBranch || - (this.ReceivingBranch != null && - this.ReceivingBranch.Equals(input.ReceivingBranch)) - ) && base.Equals(input) && - ( - this.RemittanceAddressSameasMain == input.RemittanceAddressSameasMain || - (this.RemittanceAddressSameasMain != null && - this.RemittanceAddressSameasMain.Equals(input.RemittanceAddressSameasMain)) - ) && base.Equals(input) && - ( - this.RemittanceContact == input.RemittanceContact || - (this.RemittanceContact != null && - this.RemittanceContact.Equals(input.RemittanceContact)) - ) && base.Equals(input) && - ( - this.RemittanceContactSameasMain == input.RemittanceContactSameasMain || - (this.RemittanceContactSameasMain != null && - this.RemittanceContactSameasMain.Equals(input.RemittanceContactSameasMain)) - ) && base.Equals(input) && - ( - this.SendOrdersbyEmail == input.SendOrdersbyEmail || - (this.SendOrdersbyEmail != null && - this.SendOrdersbyEmail.Equals(input.SendOrdersbyEmail)) - ) && base.Equals(input) && - ( - this.ShippersContactSameasMain == input.ShippersContactSameasMain || - (this.ShippersContactSameasMain != null && - this.ShippersContactSameasMain.Equals(input.ShippersContactSameasMain)) - ) && base.Equals(input) && - ( - this.ShippingAddressSameasMain == input.ShippingAddressSameasMain || - (this.ShippingAddressSameasMain != null && - this.ShippingAddressSameasMain.Equals(input.ShippingAddressSameasMain)) - ) && base.Equals(input) && - ( - this.ShippingContact == input.ShippingContact || - (this.ShippingContact != null && - this.ShippingContact.Equals(input.ShippingContact)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxCalculationMode == input.TaxCalculationMode || - (this.TaxCalculationMode != null && - this.TaxCalculationMode.Equals(input.TaxCalculationMode)) - ) && base.Equals(input) && - ( - this.TaxRegistrationID == input.TaxRegistrationID || - (this.TaxRegistrationID != null && - this.TaxRegistrationID.Equals(input.TaxRegistrationID)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.ThresholdReceipt == input.ThresholdReceipt || - (this.ThresholdReceipt != null && - this.ThresholdReceipt.Equals(input.ThresholdReceipt)) - ) && base.Equals(input) && - ( - this.VendorClass == input.VendorClass || - (this.VendorClass != null && - this.VendorClass.Equals(input.VendorClass)) - ) && base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ) && base.Equals(input) && - ( - this.VendorIsLaborUnion == input.VendorIsLaborUnion || - (this.VendorIsLaborUnion != null && - this.VendorIsLaborUnion.Equals(input.VendorIsLaborUnion)) - ) && base.Equals(input) && - ( - this.VendorIsTaxAgency == input.VendorIsTaxAgency || - (this.VendorIsTaxAgency != null && - this.VendorIsTaxAgency.Equals(input.VendorIsTaxAgency)) - ) && base.Equals(input) && - ( - this.VendorName == input.VendorName || - (this.VendorName != null && - this.VendorName.Equals(input.VendorName)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountRef != null) - hashCode = hashCode * 59 + this.AccountRef.GetHashCode(); - if (this.APAccount != null) - hashCode = hashCode * 59 + this.APAccount.GetHashCode(); - if (this.APSubaccount != null) - hashCode = hashCode * 59 + this.APSubaccount.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.Contacts != null) - hashCode = hashCode * 59 + this.Contacts.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRateType != null) - hashCode = hashCode * 59 + this.CurrencyRateType.GetHashCode(); - if (this.EnableCurrencyOverride != null) - hashCode = hashCode * 59 + this.EnableCurrencyOverride.GetHashCode(); - if (this.EnableRateOverride != null) - hashCode = hashCode * 59 + this.EnableRateOverride.GetHashCode(); - if (this.F1099Box != null) - hashCode = hashCode * 59 + this.F1099Box.GetHashCode(); - if (this.F1099Vendor != null) - hashCode = hashCode * 59 + this.F1099Vendor.GetHashCode(); - if (this.FATCA != null) - hashCode = hashCode * 59 + this.FATCA.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.ForeignEntity != null) - hashCode = hashCode * 59 + this.ForeignEntity.GetHashCode(); - if (this.LandedCostVendor != null) - hashCode = hashCode * 59 + this.LandedCostVendor.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LeadTimedays != null) - hashCode = hashCode * 59 + this.LeadTimedays.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.MainContact != null) - hashCode = hashCode * 59 + this.MainContact.GetHashCode(); - if (this.MaxReceipt != null) - hashCode = hashCode * 59 + this.MaxReceipt.GetHashCode(); - if (this.MinReceipt != null) - hashCode = hashCode * 59 + this.MinReceipt.GetHashCode(); - if (this.ParentAccount != null) - hashCode = hashCode * 59 + this.ParentAccount.GetHashCode(); - if (this.PaymentBy != null) - hashCode = hashCode * 59 + this.PaymentBy.GetHashCode(); - if (this.PaymentInstructions != null) - hashCode = hashCode * 59 + this.PaymentInstructions.GetHashCode(); - if (this.PaymentLeadTimedays != null) - hashCode = hashCode * 59 + this.PaymentLeadTimedays.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaySeparately != null) - hashCode = hashCode * 59 + this.PaySeparately.GetHashCode(); - if (this.PrintOrders != null) - hashCode = hashCode * 59 + this.PrintOrders.GetHashCode(); - if (this.ReceiptAction != null) - hashCode = hashCode * 59 + this.ReceiptAction.GetHashCode(); - if (this.ReceivingBranch != null) - hashCode = hashCode * 59 + this.ReceivingBranch.GetHashCode(); - if (this.RemittanceAddressSameasMain != null) - hashCode = hashCode * 59 + this.RemittanceAddressSameasMain.GetHashCode(); - if (this.RemittanceContact != null) - hashCode = hashCode * 59 + this.RemittanceContact.GetHashCode(); - if (this.RemittanceContactSameasMain != null) - hashCode = hashCode * 59 + this.RemittanceContactSameasMain.GetHashCode(); - if (this.SendOrdersbyEmail != null) - hashCode = hashCode * 59 + this.SendOrdersbyEmail.GetHashCode(); - if (this.ShippersContactSameasMain != null) - hashCode = hashCode * 59 + this.ShippersContactSameasMain.GetHashCode(); - if (this.ShippingAddressSameasMain != null) - hashCode = hashCode * 59 + this.ShippingAddressSameasMain.GetHashCode(); - if (this.ShippingContact != null) - hashCode = hashCode * 59 + this.ShippingContact.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxCalculationMode != null) - hashCode = hashCode * 59 + this.TaxCalculationMode.GetHashCode(); - if (this.TaxRegistrationID != null) - hashCode = hashCode * 59 + this.TaxRegistrationID.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.ThresholdReceipt != null) - hashCode = hashCode * 59 + this.ThresholdReceipt.GetHashCode(); - if (this.VendorClass != null) - hashCode = hashCode * 59 + this.VendorClass.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - if (this.VendorIsLaborUnion != null) - hashCode = hashCode * 59 + this.VendorIsLaborUnion.GetHashCode(); - if (this.VendorIsTaxAgency != null) - hashCode = hashCode * 59 + this.VendorIsTaxAgency.GetHashCode(); - if (this.VendorName != null) - hashCode = hashCode * 59 + this.VendorName.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class Vendor : Entity + { + + [DataMember(Name="AccountRef", EmitDefaultValue=false)] + public StringValue AccountRef { get; set; } + + [DataMember(Name="APAccount", EmitDefaultValue=false)] + public StringValue APAccount { get; set; } + + [DataMember(Name="APSubaccount", EmitDefaultValue=false)] + public StringValue APSubaccount { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="Contacts", EmitDefaultValue=false)] + public List Contacts { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] + public StringValue CurrencyRateType { get; set; } + + [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] + public BooleanValue EnableCurrencyOverride { get; set; } + + [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] + public BooleanValue EnableRateOverride { get; set; } + + [DataMember(Name="F1099Box", EmitDefaultValue=false)] + public StringValue F1099Box { get; set; } + + [DataMember(Name="F1099Vendor", EmitDefaultValue=false)] + public BooleanValue F1099Vendor { get; set; } + + [DataMember(Name="FATCA", EmitDefaultValue=false)] + public BooleanValue FATCA { get; set; } + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="ForeignEntity", EmitDefaultValue=false)] + public BooleanValue ForeignEntity { get; set; } + + [DataMember(Name="LandedCostVendor", EmitDefaultValue=false)] + public BooleanValue LandedCostVendor { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LeadTimedays", EmitDefaultValue=false)] + public ShortValue LeadTimedays { get; set; } + + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } + + [DataMember(Name="MainContact", EmitDefaultValue=false)] + public Contact MainContact { get; set; } + + [DataMember(Name="MaxReceipt", EmitDefaultValue=false)] + public DecimalValue MaxReceipt { get; set; } + + [DataMember(Name="MinReceipt", EmitDefaultValue=false)] + public DecimalValue MinReceipt { get; set; } + + [DataMember(Name="ParentAccount", EmitDefaultValue=false)] + public StringValue ParentAccount { get; set; } + + [DataMember(Name="PaymentBy", EmitDefaultValue=false)] + public StringValue PaymentBy { get; set; } + + [DataMember(Name="PaymentInstructions", EmitDefaultValue=false)] + public List PaymentInstructions { get; set; } + + [DataMember(Name="PaymentLeadTimedays", EmitDefaultValue=false)] + public ShortValue PaymentLeadTimedays { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="PaySeparately", EmitDefaultValue=false)] + public BooleanValue PaySeparately { get; set; } + + [DataMember(Name="PrintOrders", EmitDefaultValue=false)] + public BooleanValue PrintOrders { get; set; } + + [DataMember(Name="ReceiptAction", EmitDefaultValue=false)] + public StringValue ReceiptAction { get; set; } + + [DataMember(Name="ReceivingBranch", EmitDefaultValue=false)] + public StringValue ReceivingBranch { get; set; } + + [DataMember(Name="RemittanceAddressSameasMain", EmitDefaultValue=false)] + public BooleanValue RemittanceAddressSameasMain { get; set; } + + [DataMember(Name="RemittanceContact", EmitDefaultValue=false)] + public Contact RemittanceContact { get; set; } + + [DataMember(Name="RemittanceContactSameasMain", EmitDefaultValue=false)] + public BooleanValue RemittanceContactSameasMain { get; set; } + + [DataMember(Name="SendOrdersbyEmail", EmitDefaultValue=false)] + public BooleanValue SendOrdersbyEmail { get; set; } + + [DataMember(Name="ShippersContactSameasMain", EmitDefaultValue=false)] + public BooleanValue ShippersContactSameasMain { get; set; } + + [DataMember(Name="ShippingAddressSameasMain", EmitDefaultValue=false)] + public BooleanValue ShippingAddressSameasMain { get; set; } + + [DataMember(Name="ShippingContact", EmitDefaultValue=false)] + public Contact ShippingContact { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxCalculationMode", EmitDefaultValue=false)] + public StringValue TaxCalculationMode { get; set; } + + [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] + public StringValue TaxRegistrationID { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="ThresholdReceipt", EmitDefaultValue=false)] + public DecimalValue ThresholdReceipt { get; set; } + + [DataMember(Name="VendorClass", EmitDefaultValue=false)] + public StringValue VendorClass { get; set; } + + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } + + [DataMember(Name="VendorIsLaborUnion", EmitDefaultValue=false)] + public BooleanValue VendorIsLaborUnion { get; set; } + + [DataMember(Name="VendorIsTaxAgency", EmitDefaultValue=false)] + public BooleanValue VendorIsTaxAgency { get; set; } + + [DataMember(Name="VendorName", EmitDefaultValue=false)] + public StringValue VendorName { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/VendorClass.cs b/Acumatica.Default_17.200.001/Model/VendorClass.cs index efeb5e71..5ddf7861 100644 --- a/Acumatica.Default_17.200.001/Model/VendorClass.cs +++ b/Acumatica.Default_17.200.001/Model/VendorClass.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// VendorClass - /// - [DataContract] - public partial class VendorClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributes. - /// classID. - /// createdDateTime. - /// description. - /// lastModifiedDateTime. - public VendorClass(List attributes = default(List), StringValue classID = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attributes = attributes; - this.ClassID = classID; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public List Attributes { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VendorClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class VendorClass : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VendorClass); - } + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } - /// - /// Returns true if VendorClass instances are equal - /// - /// Instance of VendorClass to be compared - /// Boolean - public bool Equals(VendorClass input) - { - if (input == null) - return false; + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } - return base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ); - } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/VendorPriceDetail.cs b/Acumatica.Default_17.200.001/Model/VendorPriceDetail.cs index 24fcd32f..c1d77fb9 100644 --- a/Acumatica.Default_17.200.001/Model/VendorPriceDetail.cs +++ b/Acumatica.Default_17.200.001/Model/VendorPriceDetail.cs @@ -1,334 +1,54 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// VendorPriceDetail - /// - [DataContract] - public partial class VendorPriceDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakQty. - /// createdDateTime. - /// currencyID. - /// description. - /// effectiveDate. - /// expirationDate. - /// inventoryID. - /// lastModifiedDateTime. - /// price. - /// promotional. - /// recordID. - /// uOM. - /// vendor. - /// vendorName. - public VendorPriceDetail(DecimalValue breakQty = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue price = default(DecimalValue), BooleanValue promotional = default(BooleanValue), IntValue recordID = default(IntValue), StringValue uOM = default(StringValue), StringValue vendor = default(StringValue), StringValue vendorName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakQty = breakQty; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Price = price; - this.Promotional = promotional; - this.RecordID = recordID; - this.UOM = uOM; - this.Vendor = vendor; - this.VendorName = vendorName; - } - - /// - /// Gets or Sets BreakQty - /// - [DataMember(Name="BreakQty", EmitDefaultValue=false)] - public DecimalValue BreakQty { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } + [DataContract] + public partial class VendorPriceDetail : Entity + { - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } + [DataMember(Name="BreakQty", EmitDefaultValue=false)] + public DecimalValue BreakQty { get; set; } - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets Price - /// - [DataMember(Name="Price", EmitDefaultValue=false)] - public DecimalValue Price { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets Promotional - /// - [DataMember(Name="Promotional", EmitDefaultValue=false)] - public BooleanValue Promotional { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets VendorName - /// - [DataMember(Name="VendorName", EmitDefaultValue=false)] - public StringValue VendorName { get; set; } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VendorPriceDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakQty: ").Append(BreakQty).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Price: ").Append(Price).Append("\n"); - sb.Append(" Promotional: ").Append(Promotional).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append(" VendorName: ").Append(VendorName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Price", EmitDefaultValue=false)] + public DecimalValue Price { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VendorPriceDetail); - } + [DataMember(Name="Promotional", EmitDefaultValue=false)] + public BooleanValue Promotional { get; set; } - /// - /// Returns true if VendorPriceDetail instances are equal - /// - /// Instance of VendorPriceDetail to be compared - /// Boolean - public bool Equals(VendorPriceDetail input) - { - if (input == null) - return false; + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } - return base.Equals(input) && - ( - this.BreakQty == input.BreakQty || - (this.BreakQty != null && - this.BreakQty.Equals(input.BreakQty)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Price == input.Price || - (this.Price != null && - this.Price.Equals(input.Price)) - ) && base.Equals(input) && - ( - this.Promotional == input.Promotional || - (this.Promotional != null && - this.Promotional.Equals(input.Promotional)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ) && base.Equals(input) && - ( - this.VendorName == input.VendorName || - (this.VendorName != null && - this.VendorName.Equals(input.VendorName)) - ); - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakQty != null) - hashCode = hashCode * 59 + this.BreakQty.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Price != null) - hashCode = hashCode * 59 + this.Price.GetHashCode(); - if (this.Promotional != null) - hashCode = hashCode * 59 + this.Promotional.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - if (this.VendorName != null) - hashCode = hashCode * 59 + this.VendorName.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorName", EmitDefaultValue=false)] + public StringValue VendorName { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/VendorPriceWorksheet.cs b/Acumatica.Default_17.200.001/Model/VendorPriceWorksheet.cs index 1cc44dfa..2d8ff5f1 100644 --- a/Acumatica.Default_17.200.001/Model/VendorPriceWorksheet.cs +++ b/Acumatica.Default_17.200.001/Model/VendorPriceWorksheet.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// VendorPriceWorksheet - /// - [DataContract] - public partial class VendorPriceWorksheet : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// description. - /// effectiveDate. - /// expirationDate. - /// hold. - /// lastModifiedDateTime. - /// overwriteOverlappingPrices. - /// promotional. - /// referenceNbr. - /// status. - /// vendorSalesPrices. - public VendorPriceWorksheet(DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), DateTimeValue expirationDate = default(DateTimeValue), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), BooleanValue overwriteOverlappingPrices = default(BooleanValue), BooleanValue promotional = default(BooleanValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), List vendorSalesPrices = default(List), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExpirationDate = expirationDate; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.OverwriteOverlappingPrices = overwriteOverlappingPrices; - this.Promotional = promotional; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.VendorSalesPrices = vendorSalesPrices; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } + [DataContract] + public partial class VendorPriceWorksheet : Entity + { - /// - /// Gets or Sets OverwriteOverlappingPrices - /// - [DataMember(Name="OverwriteOverlappingPrices", EmitDefaultValue=false)] - public BooleanValue OverwriteOverlappingPrices { get; set; } + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } - /// - /// Gets or Sets Promotional - /// - [DataMember(Name="Promotional", EmitDefaultValue=false)] - public BooleanValue Promotional { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } - /// - /// Gets or Sets VendorSalesPrices - /// - [DataMember(Name="VendorSalesPrices", EmitDefaultValue=false)] - public List VendorSalesPrices { get; set; } + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VendorPriceWorksheet {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" OverwriteOverlappingPrices: ").Append(OverwriteOverlappingPrices).Append("\n"); - sb.Append(" Promotional: ").Append(Promotional).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" VendorSalesPrices: ").Append(VendorSalesPrices).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VendorPriceWorksheet); - } + [DataMember(Name="OverwriteOverlappingPrices", EmitDefaultValue=false)] + public BooleanValue OverwriteOverlappingPrices { get; set; } - /// - /// Returns true if VendorPriceWorksheet instances are equal - /// - /// Instance of VendorPriceWorksheet to be compared - /// Boolean - public bool Equals(VendorPriceWorksheet input) - { - if (input == null) - return false; + [DataMember(Name="Promotional", EmitDefaultValue=false)] + public BooleanValue Promotional { get; set; } - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.OverwriteOverlappingPrices == input.OverwriteOverlappingPrices || - (this.OverwriteOverlappingPrices != null && - this.OverwriteOverlappingPrices.Equals(input.OverwriteOverlappingPrices)) - ) && base.Equals(input) && - ( - this.Promotional == input.Promotional || - (this.Promotional != null && - this.Promotional.Equals(input.Promotional)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.VendorSalesPrices == input.VendorSalesPrices || - this.VendorSalesPrices != null && - this.VendorSalesPrices.SequenceEqual(input.VendorSalesPrices) - ); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.OverwriteOverlappingPrices != null) - hashCode = hashCode * 59 + this.OverwriteOverlappingPrices.GetHashCode(); - if (this.Promotional != null) - hashCode = hashCode * 59 + this.Promotional.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.VendorSalesPrices != null) - hashCode = hashCode * 59 + this.VendorSalesPrices.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorSalesPrices", EmitDefaultValue=false)] + public List VendorSalesPrices { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/VendorPriceWorksheetDetail.cs b/Acumatica.Default_17.200.001/Model/VendorPriceWorksheetDetail.cs index 5c6855d8..d3a241dd 100644 --- a/Acumatica.Default_17.200.001/Model/VendorPriceWorksheetDetail.cs +++ b/Acumatica.Default_17.200.001/Model/VendorPriceWorksheetDetail.cs @@ -1,286 +1,45 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// VendorPriceWorksheetDetail - /// - [DataContract] - public partial class VendorPriceWorksheetDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakQty. - /// currencyID. - /// description. - /// inventoryID. - /// lineID. - /// pendingPrice. - /// referenceNbr. - /// sourcePrice. - /// tax. - /// uOM. - /// vendor. - public VendorPriceWorksheetDetail(DecimalValue breakQty = default(DecimalValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), IntValue lineID = default(IntValue), DecimalValue pendingPrice = default(DecimalValue), StringValue referenceNbr = default(StringValue), DecimalValue sourcePrice = default(DecimalValue), StringValue tax = default(StringValue), StringValue uOM = default(StringValue), StringValue vendor = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakQty = breakQty; - this.CurrencyID = currencyID; - this.Description = description; - this.InventoryID = inventoryID; - this.LineID = lineID; - this.PendingPrice = pendingPrice; - this.ReferenceNbr = referenceNbr; - this.SourcePrice = sourcePrice; - this.Tax = tax; - this.UOM = uOM; - this.Vendor = vendor; - } - - /// - /// Gets or Sets BreakQty - /// - [DataMember(Name="BreakQty", EmitDefaultValue=false)] - public DecimalValue BreakQty { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineID - /// - [DataMember(Name="LineID", EmitDefaultValue=false)] - public IntValue LineID { get; set; } - - /// - /// Gets or Sets PendingPrice - /// - [DataMember(Name="PendingPrice", EmitDefaultValue=false)] - public DecimalValue PendingPrice { get; set; } + [DataContract] + public partial class VendorPriceWorksheetDetail : Entity + { - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } + [DataMember(Name="BreakQty", EmitDefaultValue=false)] + public DecimalValue BreakQty { get; set; } - /// - /// Gets or Sets SourcePrice - /// - [DataMember(Name="SourcePrice", EmitDefaultValue=false)] - public DecimalValue SourcePrice { get; set; } + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } - /// - /// Gets or Sets Tax - /// - [DataMember(Name="Tax", EmitDefaultValue=false)] - public StringValue Tax { get; set; } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } + [DataMember(Name="LineID", EmitDefaultValue=false)] + public IntValue LineID { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VendorPriceWorksheetDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakQty: ").Append(BreakQty).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineID: ").Append(LineID).Append("\n"); - sb.Append(" PendingPrice: ").Append(PendingPrice).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" SourcePrice: ").Append(SourcePrice).Append("\n"); - sb.Append(" Tax: ").Append(Tax).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="PendingPrice", EmitDefaultValue=false)] + public DecimalValue PendingPrice { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VendorPriceWorksheetDetail); - } + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } - /// - /// Returns true if VendorPriceWorksheetDetail instances are equal - /// - /// Instance of VendorPriceWorksheetDetail to be compared - /// Boolean - public bool Equals(VendorPriceWorksheetDetail input) - { - if (input == null) - return false; + [DataMember(Name="SourcePrice", EmitDefaultValue=false)] + public DecimalValue SourcePrice { get; set; } - return base.Equals(input) && - ( - this.BreakQty == input.BreakQty || - (this.BreakQty != null && - this.BreakQty.Equals(input.BreakQty)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineID == input.LineID || - (this.LineID != null && - this.LineID.Equals(input.LineID)) - ) && base.Equals(input) && - ( - this.PendingPrice == input.PendingPrice || - (this.PendingPrice != null && - this.PendingPrice.Equals(input.PendingPrice)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.SourcePrice == input.SourcePrice || - (this.SourcePrice != null && - this.SourcePrice.Equals(input.SourcePrice)) - ) && base.Equals(input) && - ( - this.Tax == input.Tax || - (this.Tax != null && - this.Tax.Equals(input.Tax)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ); - } + [DataMember(Name="Tax", EmitDefaultValue=false)] + public StringValue Tax { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakQty != null) - hashCode = hashCode * 59 + this.BreakQty.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineID != null) - hashCode = hashCode * 59 + this.LineID.GetHashCode(); - if (this.PendingPrice != null) - hashCode = hashCode * 59 + this.PendingPrice.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.SourcePrice != null) - hashCode = hashCode * 59 + this.SourcePrice.GetHashCode(); - if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/VendorPricesInquiry.cs b/Acumatica.Default_17.200.001/Model/VendorPricesInquiry.cs index eca038eb..9fd8c976 100644 --- a/Acumatica.Default_17.200.001/Model/VendorPricesInquiry.cs +++ b/Acumatica.Default_17.200.001/Model/VendorPricesInquiry.cs @@ -1,206 +1,30 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// VendorPricesInquiry - /// - [DataContract] - public partial class VendorPricesInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// inventoryID. - /// itemClass. - /// productManager. - /// productWorkgroup. - /// vendor. - /// vendorPriceDetails. - public VendorPricesInquiry(StringValue inventoryID = default(StringValue), StringValue itemClass = default(StringValue), StringValue productManager = default(StringValue), StringValue productWorkgroup = default(StringValue), StringValue vendor = default(StringValue), List vendorPriceDetails = default(List), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.InventoryID = inventoryID; - this.ItemClass = itemClass; - this.ProductManager = productManager; - this.ProductWorkgroup = productWorkgroup; - this.Vendor = vendor; - this.VendorPriceDetails = vendorPriceDetails; - } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets ItemClass - /// - [DataMember(Name="ItemClass", EmitDefaultValue=false)] - public StringValue ItemClass { get; set; } - - /// - /// Gets or Sets ProductManager - /// - [DataMember(Name="ProductManager", EmitDefaultValue=false)] - public StringValue ProductManager { get; set; } - - /// - /// Gets or Sets ProductWorkgroup - /// - [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] - public StringValue ProductWorkgroup { get; set; } - - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } - - /// - /// Gets or Sets VendorPriceDetails - /// - [DataMember(Name="VendorPriceDetails", EmitDefaultValue=false)] - public List VendorPriceDetails { get; set; } + [DataContract] + public partial class VendorPricesInquiry : Entity + { - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VendorPricesInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" ItemClass: ").Append(ItemClass).Append("\n"); - sb.Append(" ProductManager: ").Append(ProductManager).Append("\n"); - sb.Append(" ProductWorkgroup: ").Append(ProductWorkgroup).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append(" VendorPriceDetails: ").Append(VendorPriceDetails).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VendorPricesInquiry); - } + [DataMember(Name="ItemClass", EmitDefaultValue=false)] + public StringValue ItemClass { get; set; } - /// - /// Returns true if VendorPricesInquiry instances are equal - /// - /// Instance of VendorPricesInquiry to be compared - /// Boolean - public bool Equals(VendorPricesInquiry input) - { - if (input == null) - return false; + [DataMember(Name="ProductManager", EmitDefaultValue=false)] + public StringValue ProductManager { get; set; } - return base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.ItemClass == input.ItemClass || - (this.ItemClass != null && - this.ItemClass.Equals(input.ItemClass)) - ) && base.Equals(input) && - ( - this.ProductManager == input.ProductManager || - (this.ProductManager != null && - this.ProductManager.Equals(input.ProductManager)) - ) && base.Equals(input) && - ( - this.ProductWorkgroup == input.ProductWorkgroup || - (this.ProductWorkgroup != null && - this.ProductWorkgroup.Equals(input.ProductWorkgroup)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ) && base.Equals(input) && - ( - this.VendorPriceDetails == input.VendorPriceDetails || - this.VendorPriceDetails != null && - this.VendorPriceDetails.SequenceEqual(input.VendorPriceDetails) - ); - } + [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] + public StringValue ProductWorkgroup { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.ItemClass != null) - hashCode = hashCode * 59 + this.ItemClass.GetHashCode(); - if (this.ProductManager != null) - hashCode = hashCode * 59 + this.ProductManager.GetHashCode(); - if (this.ProductWorkgroup != null) - hashCode = hashCode * 59 + this.ProductWorkgroup.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - if (this.VendorPriceDetails != null) - hashCode = hashCode * 59 + this.VendorPriceDetails.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="VendorPriceDetails", EmitDefaultValue=false)] + public List VendorPriceDetails { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/VoucherEntryCode.cs b/Acumatica.Default_17.200.001/Model/VoucherEntryCode.cs index d2e25890..4c2c454b 100644 --- a/Acumatica.Default_17.200.001/Model/VoucherEntryCode.cs +++ b/Acumatica.Default_17.200.001/Model/VoucherEntryCode.cs @@ -1,190 +1,27 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// VoucherEntryCode - /// - [DataContract] - public partial class VoucherEntryCode : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// description. - /// module. - /// moduleTransactionType. - /// uniqueTransactionCode. - public VoucherEntryCode(BooleanValue active = default(BooleanValue), StringValue description = default(StringValue), StringValue module = default(StringValue), StringValue moduleTransactionType = default(StringValue), StringValue uniqueTransactionCode = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Description = description; - this.Module = module; - this.ModuleTransactionType = moduleTransactionType; - this.UniqueTransactionCode = uniqueTransactionCode; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } - - /// - /// Gets or Sets ModuleTransactionType - /// - [DataMember(Name="ModuleTransactionType", EmitDefaultValue=false)] - public StringValue ModuleTransactionType { get; set; } - - /// - /// Gets or Sets UniqueTransactionCode - /// - [DataMember(Name="UniqueTransactionCode", EmitDefaultValue=false)] - public StringValue UniqueTransactionCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VoucherEntryCode {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" ModuleTransactionType: ").Append(ModuleTransactionType).Append("\n"); - sb.Append(" UniqueTransactionCode: ").Append(UniqueTransactionCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataContract] + public partial class VoucherEntryCode : Entity + { - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VoucherEntryCode); - } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Returns true if VoucherEntryCode instances are equal - /// - /// Instance of VoucherEntryCode to be compared - /// Boolean - public bool Equals(VoucherEntryCode input) - { - if (input == null) - return false; + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.ModuleTransactionType == input.ModuleTransactionType || - (this.ModuleTransactionType != null && - this.ModuleTransactionType.Equals(input.ModuleTransactionType)) - ) && base.Equals(input) && - ( - this.UniqueTransactionCode == input.UniqueTransactionCode || - (this.UniqueTransactionCode != null && - this.UniqueTransactionCode.Equals(input.UniqueTransactionCode)) - ); - } + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.ModuleTransactionType != null) - hashCode = hashCode * 59 + this.ModuleTransactionType.GetHashCode(); - if (this.UniqueTransactionCode != null) - hashCode = hashCode * 59 + this.UniqueTransactionCode.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="ModuleTransactionType", EmitDefaultValue=false)] + public StringValue ModuleTransactionType { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="UniqueTransactionCode", EmitDefaultValue=false)] + public StringValue UniqueTransactionCode { get; set; } -} + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/Warehouse.cs b/Acumatica.Default_17.200.001/Model/Warehouse.cs index c2cd10a4..8c2e4414 100644 --- a/Acumatica.Default_17.200.001/Model/Warehouse.cs +++ b/Acumatica.Default_17.200.001/Model/Warehouse.cs @@ -1,622 +1,108 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// Warehouse - /// - [DataContract] - public partial class Warehouse : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// cOGSExpenseAccount. - /// cOGSExpenseSubaccount. - /// description. - /// discountAccount. - /// discountSubaccount. - /// dropShipLocationID. - /// freightChargeAccount. - /// freightChargeSubaccount. - /// inventoryAccount. - /// inventorySubaccount. - /// landedCostVarianceAccount. - /// landedCostVarianceSubaccount. - /// locations. - /// miscChargeAccount. - /// miscChargeSubaccount. - /// overrideInventoryAccountSubaccount. - /// pOAccrualAccount. - /// pOAccrualSubaccount. - /// purchasePriceVarianceAccount. - /// purchasePriceVarianceSubaccount. - /// reasonCodeSubaccount. - /// receivingLocationID. - /// rMALocationID. - /// salesAccount. - /// salesSubaccount. - /// shippingLocationID. - /// standardCostRevaluationAccount. - /// standardCostRevaluationSubaccount. - /// standardCostVarianceAccount. - /// standardCostVarianceSubaccount. - /// warehouseID. - public Warehouse(BooleanValue active = default(BooleanValue), StringValue cOGSExpenseAccount = default(StringValue), StringValue cOGSExpenseSubaccount = default(StringValue), StringValue description = default(StringValue), StringValue discountAccount = default(StringValue), StringValue discountSubaccount = default(StringValue), StringValue dropShipLocationID = default(StringValue), StringValue freightChargeAccount = default(StringValue), StringValue freightChargeSubaccount = default(StringValue), StringValue inventoryAccount = default(StringValue), StringValue inventorySubaccount = default(StringValue), StringValue landedCostVarianceAccount = default(StringValue), StringValue landedCostVarianceSubaccount = default(StringValue), List locations = default(List), StringValue miscChargeAccount = default(StringValue), StringValue miscChargeSubaccount = default(StringValue), BooleanValue overrideInventoryAccountSubaccount = default(BooleanValue), StringValue pOAccrualAccount = default(StringValue), StringValue pOAccrualSubaccount = default(StringValue), StringValue purchasePriceVarianceAccount = default(StringValue), StringValue purchasePriceVarianceSubaccount = default(StringValue), StringValue reasonCodeSubaccount = default(StringValue), StringValue receivingLocationID = default(StringValue), StringValue rMALocationID = default(StringValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), StringValue shippingLocationID = default(StringValue), StringValue standardCostRevaluationAccount = default(StringValue), StringValue standardCostRevaluationSubaccount = default(StringValue), StringValue standardCostVarianceAccount = default(StringValue), StringValue standardCostVarianceSubaccount = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.COGSExpenseAccount = cOGSExpenseAccount; - this.COGSExpenseSubaccount = cOGSExpenseSubaccount; - this.Description = description; - this.DiscountAccount = discountAccount; - this.DiscountSubaccount = discountSubaccount; - this.DropShipLocationID = dropShipLocationID; - this.FreightChargeAccount = freightChargeAccount; - this.FreightChargeSubaccount = freightChargeSubaccount; - this.InventoryAccount = inventoryAccount; - this.InventorySubaccount = inventorySubaccount; - this.LandedCostVarianceAccount = landedCostVarianceAccount; - this.LandedCostVarianceSubaccount = landedCostVarianceSubaccount; - this.Locations = locations; - this.MiscChargeAccount = miscChargeAccount; - this.MiscChargeSubaccount = miscChargeSubaccount; - this.OverrideInventoryAccountSubaccount = overrideInventoryAccountSubaccount; - this.POAccrualAccount = pOAccrualAccount; - this.POAccrualSubaccount = pOAccrualSubaccount; - this.PurchasePriceVarianceAccount = purchasePriceVarianceAccount; - this.PurchasePriceVarianceSubaccount = purchasePriceVarianceSubaccount; - this.ReasonCodeSubaccount = reasonCodeSubaccount; - this.ReceivingLocationID = receivingLocationID; - this.RMALocationID = rMALocationID; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.ShippingLocationID = shippingLocationID; - this.StandardCostRevaluationAccount = standardCostRevaluationAccount; - this.StandardCostRevaluationSubaccount = standardCostRevaluationSubaccount; - this.StandardCostVarianceAccount = standardCostVarianceAccount; - this.StandardCostVarianceSubaccount = standardCostVarianceSubaccount; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets COGSExpenseAccount - /// - [DataMember(Name="COGSExpenseAccount", EmitDefaultValue=false)] - public StringValue COGSExpenseAccount { get; set; } - - /// - /// Gets or Sets COGSExpenseSubaccount - /// - [DataMember(Name="COGSExpenseSubaccount", EmitDefaultValue=false)] - public StringValue COGSExpenseSubaccount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DiscountAccount - /// - [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] - public StringValue DiscountAccount { get; set; } - - /// - /// Gets or Sets DiscountSubaccount - /// - [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] - public StringValue DiscountSubaccount { get; set; } - - /// - /// Gets or Sets DropShipLocationID - /// - [DataMember(Name="DropShipLocationID", EmitDefaultValue=false)] - public StringValue DropShipLocationID { get; set; } - - /// - /// Gets or Sets FreightChargeAccount - /// - [DataMember(Name="FreightChargeAccount", EmitDefaultValue=false)] - public StringValue FreightChargeAccount { get; set; } - - /// - /// Gets or Sets FreightChargeSubaccount - /// - [DataMember(Name="FreightChargeSubaccount", EmitDefaultValue=false)] - public StringValue FreightChargeSubaccount { get; set; } - - /// - /// Gets or Sets InventoryAccount - /// - [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] - public StringValue InventoryAccount { get; set; } - - /// - /// Gets or Sets InventorySubaccount - /// - [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] - public StringValue InventorySubaccount { get; set; } - - /// - /// Gets or Sets LandedCostVarianceAccount - /// - [DataMember(Name="LandedCostVarianceAccount", EmitDefaultValue=false)] - public StringValue LandedCostVarianceAccount { get; set; } - - /// - /// Gets or Sets LandedCostVarianceSubaccount - /// - [DataMember(Name="LandedCostVarianceSubaccount", EmitDefaultValue=false)] - public StringValue LandedCostVarianceSubaccount { get; set; } - - /// - /// Gets or Sets Locations - /// - [DataMember(Name="Locations", EmitDefaultValue=false)] - public List Locations { get; set; } - - /// - /// Gets or Sets MiscChargeAccount - /// - [DataMember(Name="MiscChargeAccount", EmitDefaultValue=false)] - public StringValue MiscChargeAccount { get; set; } - - /// - /// Gets or Sets MiscChargeSubaccount - /// - [DataMember(Name="MiscChargeSubaccount", EmitDefaultValue=false)] - public StringValue MiscChargeSubaccount { get; set; } - - /// - /// Gets or Sets OverrideInventoryAccountSubaccount - /// - [DataMember(Name="OverrideInventoryAccountSubaccount", EmitDefaultValue=false)] - public BooleanValue OverrideInventoryAccountSubaccount { get; set; } - - /// - /// Gets or Sets POAccrualAccount - /// - [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] - public StringValue POAccrualAccount { get; set; } - - /// - /// Gets or Sets POAccrualSubaccount - /// - [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] - public StringValue POAccrualSubaccount { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceAccount - /// - [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceAccount { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceSubaccount - /// - [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceSubaccount { get; set; } - - /// - /// Gets or Sets ReasonCodeSubaccount - /// - [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] - public StringValue ReasonCodeSubaccount { get; set; } - - /// - /// Gets or Sets ReceivingLocationID - /// - [DataMember(Name="ReceivingLocationID", EmitDefaultValue=false)] - public StringValue ReceivingLocationID { get; set; } - - /// - /// Gets or Sets RMALocationID - /// - [DataMember(Name="RMALocationID", EmitDefaultValue=false)] - public StringValue RMALocationID { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets ShippingLocationID - /// - [DataMember(Name="ShippingLocationID", EmitDefaultValue=false)] - public StringValue ShippingLocationID { get; set; } - - /// - /// Gets or Sets StandardCostRevaluationAccount - /// - [DataMember(Name="StandardCostRevaluationAccount", EmitDefaultValue=false)] - public StringValue StandardCostRevaluationAccount { get; set; } - - /// - /// Gets or Sets StandardCostRevaluationSubaccount - /// - [DataMember(Name="StandardCostRevaluationSubaccount", EmitDefaultValue=false)] - public StringValue StandardCostRevaluationSubaccount { get; set; } - - /// - /// Gets or Sets StandardCostVarianceAccount - /// - [DataMember(Name="StandardCostVarianceAccount", EmitDefaultValue=false)] - public StringValue StandardCostVarianceAccount { get; set; } - - /// - /// Gets or Sets StandardCostVarianceSubaccount - /// - [DataMember(Name="StandardCostVarianceSubaccount", EmitDefaultValue=false)] - public StringValue StandardCostVarianceSubaccount { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Warehouse {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" COGSExpenseAccount: ").Append(COGSExpenseAccount).Append("\n"); - sb.Append(" COGSExpenseSubaccount: ").Append(COGSExpenseSubaccount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountAccount: ").Append(DiscountAccount).Append("\n"); - sb.Append(" DiscountSubaccount: ").Append(DiscountSubaccount).Append("\n"); - sb.Append(" DropShipLocationID: ").Append(DropShipLocationID).Append("\n"); - sb.Append(" FreightChargeAccount: ").Append(FreightChargeAccount).Append("\n"); - sb.Append(" FreightChargeSubaccount: ").Append(FreightChargeSubaccount).Append("\n"); - sb.Append(" InventoryAccount: ").Append(InventoryAccount).Append("\n"); - sb.Append(" InventorySubaccount: ").Append(InventorySubaccount).Append("\n"); - sb.Append(" LandedCostVarianceAccount: ").Append(LandedCostVarianceAccount).Append("\n"); - sb.Append(" LandedCostVarianceSubaccount: ").Append(LandedCostVarianceSubaccount).Append("\n"); - sb.Append(" Locations: ").Append(Locations).Append("\n"); - sb.Append(" MiscChargeAccount: ").Append(MiscChargeAccount).Append("\n"); - sb.Append(" MiscChargeSubaccount: ").Append(MiscChargeSubaccount).Append("\n"); - sb.Append(" OverrideInventoryAccountSubaccount: ").Append(OverrideInventoryAccountSubaccount).Append("\n"); - sb.Append(" POAccrualAccount: ").Append(POAccrualAccount).Append("\n"); - sb.Append(" POAccrualSubaccount: ").Append(POAccrualSubaccount).Append("\n"); - sb.Append(" PurchasePriceVarianceAccount: ").Append(PurchasePriceVarianceAccount).Append("\n"); - sb.Append(" PurchasePriceVarianceSubaccount: ").Append(PurchasePriceVarianceSubaccount).Append("\n"); - sb.Append(" ReasonCodeSubaccount: ").Append(ReasonCodeSubaccount).Append("\n"); - sb.Append(" ReceivingLocationID: ").Append(ReceivingLocationID).Append("\n"); - sb.Append(" RMALocationID: ").Append(RMALocationID).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" ShippingLocationID: ").Append(ShippingLocationID).Append("\n"); - sb.Append(" StandardCostRevaluationAccount: ").Append(StandardCostRevaluationAccount).Append("\n"); - sb.Append(" StandardCostRevaluationSubaccount: ").Append(StandardCostRevaluationSubaccount).Append("\n"); - sb.Append(" StandardCostVarianceAccount: ").Append(StandardCostVarianceAccount).Append("\n"); - sb.Append(" StandardCostVarianceSubaccount: ").Append(StandardCostVarianceSubaccount).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Warehouse); - } - - /// - /// Returns true if Warehouse instances are equal - /// - /// Instance of Warehouse to be compared - /// Boolean - public bool Equals(Warehouse input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.COGSExpenseAccount == input.COGSExpenseAccount || - (this.COGSExpenseAccount != null && - this.COGSExpenseAccount.Equals(input.COGSExpenseAccount)) - ) && base.Equals(input) && - ( - this.COGSExpenseSubaccount == input.COGSExpenseSubaccount || - (this.COGSExpenseSubaccount != null && - this.COGSExpenseSubaccount.Equals(input.COGSExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountAccount == input.DiscountAccount || - (this.DiscountAccount != null && - this.DiscountAccount.Equals(input.DiscountAccount)) - ) && base.Equals(input) && - ( - this.DiscountSubaccount == input.DiscountSubaccount || - (this.DiscountSubaccount != null && - this.DiscountSubaccount.Equals(input.DiscountSubaccount)) - ) && base.Equals(input) && - ( - this.DropShipLocationID == input.DropShipLocationID || - (this.DropShipLocationID != null && - this.DropShipLocationID.Equals(input.DropShipLocationID)) - ) && base.Equals(input) && - ( - this.FreightChargeAccount == input.FreightChargeAccount || - (this.FreightChargeAccount != null && - this.FreightChargeAccount.Equals(input.FreightChargeAccount)) - ) && base.Equals(input) && - ( - this.FreightChargeSubaccount == input.FreightChargeSubaccount || - (this.FreightChargeSubaccount != null && - this.FreightChargeSubaccount.Equals(input.FreightChargeSubaccount)) - ) && base.Equals(input) && - ( - this.InventoryAccount == input.InventoryAccount || - (this.InventoryAccount != null && - this.InventoryAccount.Equals(input.InventoryAccount)) - ) && base.Equals(input) && - ( - this.InventorySubaccount == input.InventorySubaccount || - (this.InventorySubaccount != null && - this.InventorySubaccount.Equals(input.InventorySubaccount)) - ) && base.Equals(input) && - ( - this.LandedCostVarianceAccount == input.LandedCostVarianceAccount || - (this.LandedCostVarianceAccount != null && - this.LandedCostVarianceAccount.Equals(input.LandedCostVarianceAccount)) - ) && base.Equals(input) && - ( - this.LandedCostVarianceSubaccount == input.LandedCostVarianceSubaccount || - (this.LandedCostVarianceSubaccount != null && - this.LandedCostVarianceSubaccount.Equals(input.LandedCostVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.Locations == input.Locations || - this.Locations != null && - this.Locations.SequenceEqual(input.Locations) - ) && base.Equals(input) && - ( - this.MiscChargeAccount == input.MiscChargeAccount || - (this.MiscChargeAccount != null && - this.MiscChargeAccount.Equals(input.MiscChargeAccount)) - ) && base.Equals(input) && - ( - this.MiscChargeSubaccount == input.MiscChargeSubaccount || - (this.MiscChargeSubaccount != null && - this.MiscChargeSubaccount.Equals(input.MiscChargeSubaccount)) - ) && base.Equals(input) && - ( - this.OverrideInventoryAccountSubaccount == input.OverrideInventoryAccountSubaccount || - (this.OverrideInventoryAccountSubaccount != null && - this.OverrideInventoryAccountSubaccount.Equals(input.OverrideInventoryAccountSubaccount)) - ) && base.Equals(input) && - ( - this.POAccrualAccount == input.POAccrualAccount || - (this.POAccrualAccount != null && - this.POAccrualAccount.Equals(input.POAccrualAccount)) - ) && base.Equals(input) && - ( - this.POAccrualSubaccount == input.POAccrualSubaccount || - (this.POAccrualSubaccount != null && - this.POAccrualSubaccount.Equals(input.POAccrualSubaccount)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceAccount == input.PurchasePriceVarianceAccount || - (this.PurchasePriceVarianceAccount != null && - this.PurchasePriceVarianceAccount.Equals(input.PurchasePriceVarianceAccount)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceSubaccount == input.PurchasePriceVarianceSubaccount || - (this.PurchasePriceVarianceSubaccount != null && - this.PurchasePriceVarianceSubaccount.Equals(input.PurchasePriceVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.ReasonCodeSubaccount == input.ReasonCodeSubaccount || - (this.ReasonCodeSubaccount != null && - this.ReasonCodeSubaccount.Equals(input.ReasonCodeSubaccount)) - ) && base.Equals(input) && - ( - this.ReceivingLocationID == input.ReceivingLocationID || - (this.ReceivingLocationID != null && - this.ReceivingLocationID.Equals(input.ReceivingLocationID)) - ) && base.Equals(input) && - ( - this.RMALocationID == input.RMALocationID || - (this.RMALocationID != null && - this.RMALocationID.Equals(input.RMALocationID)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.ShippingLocationID == input.ShippingLocationID || - (this.ShippingLocationID != null && - this.ShippingLocationID.Equals(input.ShippingLocationID)) - ) && base.Equals(input) && - ( - this.StandardCostRevaluationAccount == input.StandardCostRevaluationAccount || - (this.StandardCostRevaluationAccount != null && - this.StandardCostRevaluationAccount.Equals(input.StandardCostRevaluationAccount)) - ) && base.Equals(input) && - ( - this.StandardCostRevaluationSubaccount == input.StandardCostRevaluationSubaccount || - (this.StandardCostRevaluationSubaccount != null && - this.StandardCostRevaluationSubaccount.Equals(input.StandardCostRevaluationSubaccount)) - ) && base.Equals(input) && - ( - this.StandardCostVarianceAccount == input.StandardCostVarianceAccount || - (this.StandardCostVarianceAccount != null && - this.StandardCostVarianceAccount.Equals(input.StandardCostVarianceAccount)) - ) && base.Equals(input) && - ( - this.StandardCostVarianceSubaccount == input.StandardCostVarianceSubaccount || - (this.StandardCostVarianceSubaccount != null && - this.StandardCostVarianceSubaccount.Equals(input.StandardCostVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.COGSExpenseAccount != null) - hashCode = hashCode * 59 + this.COGSExpenseAccount.GetHashCode(); - if (this.COGSExpenseSubaccount != null) - hashCode = hashCode * 59 + this.COGSExpenseSubaccount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountAccount != null) - hashCode = hashCode * 59 + this.DiscountAccount.GetHashCode(); - if (this.DiscountSubaccount != null) - hashCode = hashCode * 59 + this.DiscountSubaccount.GetHashCode(); - if (this.DropShipLocationID != null) - hashCode = hashCode * 59 + this.DropShipLocationID.GetHashCode(); - if (this.FreightChargeAccount != null) - hashCode = hashCode * 59 + this.FreightChargeAccount.GetHashCode(); - if (this.FreightChargeSubaccount != null) - hashCode = hashCode * 59 + this.FreightChargeSubaccount.GetHashCode(); - if (this.InventoryAccount != null) - hashCode = hashCode * 59 + this.InventoryAccount.GetHashCode(); - if (this.InventorySubaccount != null) - hashCode = hashCode * 59 + this.InventorySubaccount.GetHashCode(); - if (this.LandedCostVarianceAccount != null) - hashCode = hashCode * 59 + this.LandedCostVarianceAccount.GetHashCode(); - if (this.LandedCostVarianceSubaccount != null) - hashCode = hashCode * 59 + this.LandedCostVarianceSubaccount.GetHashCode(); - if (this.Locations != null) - hashCode = hashCode * 59 + this.Locations.GetHashCode(); - if (this.MiscChargeAccount != null) - hashCode = hashCode * 59 + this.MiscChargeAccount.GetHashCode(); - if (this.MiscChargeSubaccount != null) - hashCode = hashCode * 59 + this.MiscChargeSubaccount.GetHashCode(); - if (this.OverrideInventoryAccountSubaccount != null) - hashCode = hashCode * 59 + this.OverrideInventoryAccountSubaccount.GetHashCode(); - if (this.POAccrualAccount != null) - hashCode = hashCode * 59 + this.POAccrualAccount.GetHashCode(); - if (this.POAccrualSubaccount != null) - hashCode = hashCode * 59 + this.POAccrualSubaccount.GetHashCode(); - if (this.PurchasePriceVarianceAccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceAccount.GetHashCode(); - if (this.PurchasePriceVarianceSubaccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceSubaccount.GetHashCode(); - if (this.ReasonCodeSubaccount != null) - hashCode = hashCode * 59 + this.ReasonCodeSubaccount.GetHashCode(); - if (this.ReceivingLocationID != null) - hashCode = hashCode * 59 + this.ReceivingLocationID.GetHashCode(); - if (this.RMALocationID != null) - hashCode = hashCode * 59 + this.RMALocationID.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.ShippingLocationID != null) - hashCode = hashCode * 59 + this.ShippingLocationID.GetHashCode(); - if (this.StandardCostRevaluationAccount != null) - hashCode = hashCode * 59 + this.StandardCostRevaluationAccount.GetHashCode(); - if (this.StandardCostRevaluationSubaccount != null) - hashCode = hashCode * 59 + this.StandardCostRevaluationSubaccount.GetHashCode(); - if (this.StandardCostVarianceAccount != null) - hashCode = hashCode * 59 + this.StandardCostVarianceAccount.GetHashCode(); - if (this.StandardCostVarianceSubaccount != null) - hashCode = hashCode * 59 + this.StandardCostVarianceSubaccount.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} + [DataContract] + public partial class Warehouse : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="COGSExpenseAccount", EmitDefaultValue=false)] + public StringValue COGSExpenseAccount { get; set; } + + [DataMember(Name="COGSExpenseSubaccount", EmitDefaultValue=false)] + public StringValue COGSExpenseSubaccount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] + public StringValue DiscountAccount { get; set; } + + [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] + public StringValue DiscountSubaccount { get; set; } + + [DataMember(Name="DropShipLocationID", EmitDefaultValue=false)] + public StringValue DropShipLocationID { get; set; } + + [DataMember(Name="FreightChargeAccount", EmitDefaultValue=false)] + public StringValue FreightChargeAccount { get; set; } + + [DataMember(Name="FreightChargeSubaccount", EmitDefaultValue=false)] + public StringValue FreightChargeSubaccount { get; set; } + + [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] + public StringValue InventoryAccount { get; set; } + + [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] + public StringValue InventorySubaccount { get; set; } + + [DataMember(Name="LandedCostVarianceAccount", EmitDefaultValue=false)] + public StringValue LandedCostVarianceAccount { get; set; } + + [DataMember(Name="LandedCostVarianceSubaccount", EmitDefaultValue=false)] + public StringValue LandedCostVarianceSubaccount { get; set; } + + [DataMember(Name="Locations", EmitDefaultValue=false)] + public List Locations { get; set; } + + [DataMember(Name="MiscChargeAccount", EmitDefaultValue=false)] + public StringValue MiscChargeAccount { get; set; } + + [DataMember(Name="MiscChargeSubaccount", EmitDefaultValue=false)] + public StringValue MiscChargeSubaccount { get; set; } + + [DataMember(Name="OverrideInventoryAccountSubaccount", EmitDefaultValue=false)] + public BooleanValue OverrideInventoryAccountSubaccount { get; set; } + + [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] + public StringValue POAccrualAccount { get; set; } + + [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] + public StringValue POAccrualSubaccount { get; set; } + + [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceAccount { get; set; } + + [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceSubaccount { get; set; } + + [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] + public StringValue ReasonCodeSubaccount { get; set; } + + [DataMember(Name="ReceivingLocationID", EmitDefaultValue=false)] + public StringValue ReceivingLocationID { get; set; } + + [DataMember(Name="RMALocationID", EmitDefaultValue=false)] + public StringValue RMALocationID { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="ShippingLocationID", EmitDefaultValue=false)] + public StringValue ShippingLocationID { get; set; } + + [DataMember(Name="StandardCostRevaluationAccount", EmitDefaultValue=false)] + public StringValue StandardCostRevaluationAccount { get; set; } + + [DataMember(Name="StandardCostRevaluationSubaccount", EmitDefaultValue=false)] + public StringValue StandardCostRevaluationSubaccount { get; set; } + + [DataMember(Name="StandardCostVarianceAccount", EmitDefaultValue=false)] + public StringValue StandardCostVarianceAccount { get; set; } + + [DataMember(Name="StandardCostVarianceSubaccount", EmitDefaultValue=false)] + public StringValue StandardCostVarianceSubaccount { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_17.200.001/Model/WarehouseLocation.cs b/Acumatica.Default_17.200.001/Model/WarehouseLocation.cs index 4817d094..45aa2d87 100644 --- a/Acumatica.Default_17.200.001/Model/WarehouseLocation.cs +++ b/Acumatica.Default_17.200.001/Model/WarehouseLocation.cs @@ -1,238 +1,36 @@ -/* - * Default/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; +using Acumatica.RESTClient.Model; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using Newtonsoft.Json; -using Acumatica.RESTClient.Model; -using System.ComponentModel.DataAnnotations; - namespace Acumatica.Default_17_200_001.Model { - /// - /// WarehouseLocation - /// - [DataContract] - public partial class WarehouseLocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// assemblyAllowed. - /// description. - /// locationID. - /// pickPriority. - /// receiptsAllowed. - /// salesAllowed. - /// transfersAllowed. - public WarehouseLocation(BooleanValue active = default(BooleanValue), BooleanValue assemblyAllowed = default(BooleanValue), StringValue description = default(StringValue), StringValue locationID = default(StringValue), ShortValue pickPriority = default(ShortValue), BooleanValue receiptsAllowed = default(BooleanValue), BooleanValue salesAllowed = default(BooleanValue), BooleanValue transfersAllowed = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AssemblyAllowed = assemblyAllowed; - this.Description = description; - this.LocationID = locationID; - this.PickPriority = pickPriority; - this.ReceiptsAllowed = receiptsAllowed; - this.SalesAllowed = salesAllowed; - this.TransfersAllowed = transfersAllowed; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AssemblyAllowed - /// - [DataMember(Name="AssemblyAllowed", EmitDefaultValue=false)] - public BooleanValue AssemblyAllowed { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets PickPriority - /// - [DataMember(Name="PickPriority", EmitDefaultValue=false)] - public ShortValue PickPriority { get; set; } - - /// - /// Gets or Sets ReceiptsAllowed - /// - [DataMember(Name="ReceiptsAllowed", EmitDefaultValue=false)] - public BooleanValue ReceiptsAllowed { get; set; } + [DataContract] + public partial class WarehouseLocation : Entity + { - /// - /// Gets or Sets SalesAllowed - /// - [DataMember(Name="SalesAllowed", EmitDefaultValue=false)] - public BooleanValue SalesAllowed { get; set; } + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } - /// - /// Gets or Sets TransfersAllowed - /// - [DataMember(Name="TransfersAllowed", EmitDefaultValue=false)] - public BooleanValue TransfersAllowed { get; set; } + [DataMember(Name="AssemblyAllowed", EmitDefaultValue=false)] + public BooleanValue AssemblyAllowed { get; set; } - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WarehouseLocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AssemblyAllowed: ").Append(AssemblyAllowed).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" PickPriority: ").Append(PickPriority).Append("\n"); - sb.Append(" ReceiptsAllowed: ").Append(ReceiptsAllowed).Append("\n"); - sb.Append(" SalesAllowed: ").Append(SalesAllowed).Append("\n"); - sb.Append(" TransfersAllowed: ").Append(TransfersAllowed).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WarehouseLocation); - } + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } - /// - /// Returns true if WarehouseLocation instances are equal - /// - /// Instance of WarehouseLocation to be compared - /// Boolean - public bool Equals(WarehouseLocation input) - { - if (input == null) - return false; + [DataMember(Name="PickPriority", EmitDefaultValue=false)] + public ShortValue PickPriority { get; set; } - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AssemblyAllowed == input.AssemblyAllowed || - (this.AssemblyAllowed != null && - this.AssemblyAllowed.Equals(input.AssemblyAllowed)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.PickPriority == input.PickPriority || - (this.PickPriority != null && - this.PickPriority.Equals(input.PickPriority)) - ) && base.Equals(input) && - ( - this.ReceiptsAllowed == input.ReceiptsAllowed || - (this.ReceiptsAllowed != null && - this.ReceiptsAllowed.Equals(input.ReceiptsAllowed)) - ) && base.Equals(input) && - ( - this.SalesAllowed == input.SalesAllowed || - (this.SalesAllowed != null && - this.SalesAllowed.Equals(input.SalesAllowed)) - ) && base.Equals(input) && - ( - this.TransfersAllowed == input.TransfersAllowed || - (this.TransfersAllowed != null && - this.TransfersAllowed.Equals(input.TransfersAllowed)) - ); - } + [DataMember(Name="ReceiptsAllowed", EmitDefaultValue=false)] + public BooleanValue ReceiptsAllowed { get; set; } - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AssemblyAllowed != null) - hashCode = hashCode * 59 + this.AssemblyAllowed.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.PickPriority != null) - hashCode = hashCode * 59 + this.PickPriority.GetHashCode(); - if (this.ReceiptsAllowed != null) - hashCode = hashCode * 59 + this.ReceiptsAllowed.GetHashCode(); - if (this.SalesAllowed != null) - hashCode = hashCode * 59 + this.SalesAllowed.GetHashCode(); - if (this.TransfersAllowed != null) - hashCode = hashCode * 59 + this.TransfersAllowed.GetHashCode(); - return hashCode; - } - } + [DataMember(Name="SalesAllowed", EmitDefaultValue=false)] + public BooleanValue SalesAllowed { get; set; } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } + [DataMember(Name="TransfersAllowed", EmitDefaultValue=false)] + public BooleanValue TransfersAllowed { get; set; } -} + } +} \ No newline at end of file diff --git a/Default.18.200.001/Acumatica.Default_18.200.001.csproj b/Acumatica.Default_18.200.001/Acumatica.Default_18.200.001.csproj similarity index 98% rename from Default.18.200.001/Acumatica.Default_18.200.001.csproj rename to Acumatica.Default_18.200.001/Acumatica.Default_18.200.001.csproj index 7edc82b5..bf60ce06 100644 --- a/Default.18.200.001/Acumatica.Default_18.200.001.csproj +++ b/Acumatica.Default_18.200.001/Acumatica.Default_18.200.001.csproj @@ -1,643 +1,643 @@ - - - - - Debug - AnyCPU - {B26A386B-F5DA-4679-ACBA-1541251B696B} - Library - Properties - Acumatica.DefaultEndpoint_18_200_001 - DefaultEndpoint_18.200.001 - v4.7.2 - 512 - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\JsonSubTypes.1.6.0\lib\net47\JsonSubTypes.dll - - - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\RestSharp.106.10.1\lib\net452\RestSharp.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {25008d3f-3d78-4bb9-b14b-0a792ae97892} - Acumatica.RESTClient - - - - - - - + + + + + Debug + AnyCPU + {B26A386B-F5DA-4679-ACBA-1541251B696B} + Library + Properties + Acumatica.DefaultEndpoint_18_200_001 + DefaultEndpoint_18.200.001 + v4.7.2 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\JsonSubTypes.1.6.0\lib\net47\JsonSubTypes.dll + + + ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll + + + ..\packages\RestSharp.106.10.1\lib\net452\RestSharp.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {25008d3f-3d78-4bb9-b14b-0a792ae97892} + Acumatica.RESTClient + + + + + + + \ No newline at end of file diff --git a/Default.18.200.001/Api/AccountApi.cs b/Acumatica.Default_18.200.001/Api/AccountApi.cs similarity index 100% rename from Default.18.200.001/Api/AccountApi.cs rename to Acumatica.Default_18.200.001/Api/AccountApi.cs diff --git a/Default.18.200.001/Api/AccountByPeriodInquiryApi.cs b/Acumatica.Default_18.200.001/Api/AccountByPeriodInquiryApi.cs similarity index 100% rename from Default.18.200.001/Api/AccountByPeriodInquiryApi.cs rename to Acumatica.Default_18.200.001/Api/AccountByPeriodInquiryApi.cs diff --git a/Default.18.200.001/Api/AccountBySubaccountInquiryApi.cs b/Acumatica.Default_18.200.001/Api/AccountBySubaccountInquiryApi.cs similarity index 100% rename from Default.18.200.001/Api/AccountBySubaccountInquiryApi.cs rename to Acumatica.Default_18.200.001/Api/AccountBySubaccountInquiryApi.cs diff --git a/Default.18.200.001/Api/AccountDetailsInquiryApi.cs b/Acumatica.Default_18.200.001/Api/AccountDetailsInquiryApi.cs similarity index 100% rename from Default.18.200.001/Api/AccountDetailsInquiryApi.cs rename to Acumatica.Default_18.200.001/Api/AccountDetailsInquiryApi.cs diff --git a/Default.18.200.001/Api/AccountGroupApi.cs b/Acumatica.Default_18.200.001/Api/AccountGroupApi.cs similarity index 100% rename from Default.18.200.001/Api/AccountGroupApi.cs rename to Acumatica.Default_18.200.001/Api/AccountGroupApi.cs diff --git a/Default.18.200.001/Api/AccountLocationApi.cs b/Acumatica.Default_18.200.001/Api/AccountLocationApi.cs similarity index 100% rename from Default.18.200.001/Api/AccountLocationApi.cs rename to Acumatica.Default_18.200.001/Api/AccountLocationApi.cs diff --git a/Default.18.200.001/Api/AccountSummaryInquiryApi.cs b/Acumatica.Default_18.200.001/Api/AccountSummaryInquiryApi.cs similarity index 100% rename from Default.18.200.001/Api/AccountSummaryInquiryApi.cs rename to Acumatica.Default_18.200.001/Api/AccountSummaryInquiryApi.cs diff --git a/Default.18.200.001/Api/ActivityApi.cs b/Acumatica.Default_18.200.001/Api/ActivityApi.cs similarity index 100% rename from Default.18.200.001/Api/ActivityApi.cs rename to Acumatica.Default_18.200.001/Api/ActivityApi.cs diff --git a/Default.18.200.001/Api/AdjustmentApi.cs b/Acumatica.Default_18.200.001/Api/AdjustmentApi.cs similarity index 100% rename from Default.18.200.001/Api/AdjustmentApi.cs rename to Acumatica.Default_18.200.001/Api/AdjustmentApi.cs diff --git a/Default.18.200.001/Api/AllocationRuleApi.cs b/Acumatica.Default_18.200.001/Api/AllocationRuleApi.cs similarity index 100% rename from Default.18.200.001/Api/AllocationRuleApi.cs rename to Acumatica.Default_18.200.001/Api/AllocationRuleApi.cs diff --git a/Default.18.200.001/Api/AttributeDefinitionApi.cs b/Acumatica.Default_18.200.001/Api/AttributeDefinitionApi.cs similarity index 100% rename from Default.18.200.001/Api/AttributeDefinitionApi.cs rename to Acumatica.Default_18.200.001/Api/AttributeDefinitionApi.cs diff --git a/Default.18.200.001/Api/BillApi.cs b/Acumatica.Default_18.200.001/Api/BillApi.cs similarity index 100% rename from Default.18.200.001/Api/BillApi.cs rename to Acumatica.Default_18.200.001/Api/BillApi.cs diff --git a/Default.18.200.001/Api/BusinessAccountApi.cs b/Acumatica.Default_18.200.001/Api/BusinessAccountApi.cs similarity index 100% rename from Default.18.200.001/Api/BusinessAccountApi.cs rename to Acumatica.Default_18.200.001/Api/BusinessAccountApi.cs diff --git a/Default.18.200.001/Api/CarrierApi.cs b/Acumatica.Default_18.200.001/Api/CarrierApi.cs similarity index 100% rename from Default.18.200.001/Api/CarrierApi.cs rename to Acumatica.Default_18.200.001/Api/CarrierApi.cs diff --git a/Default.18.200.001/Api/CaseApi.cs b/Acumatica.Default_18.200.001/Api/CaseApi.cs similarity index 100% rename from Default.18.200.001/Api/CaseApi.cs rename to Acumatica.Default_18.200.001/Api/CaseApi.cs diff --git a/Default.18.200.001/Api/CashSaleApi.cs b/Acumatica.Default_18.200.001/Api/CashSaleApi.cs similarity index 100% rename from Default.18.200.001/Api/CashSaleApi.cs rename to Acumatica.Default_18.200.001/Api/CashSaleApi.cs diff --git a/Default.18.200.001/Api/ChangeOrderApi.cs b/Acumatica.Default_18.200.001/Api/ChangeOrderApi.cs similarity index 99% rename from Default.18.200.001/Api/ChangeOrderApi.cs rename to Acumatica.Default_18.200.001/Api/ChangeOrderApi.cs index de845251..de938495 100644 --- a/Default.18.200.001/Api/ChangeOrderApi.cs +++ b/Acumatica.Default_18.200.001/Api/ChangeOrderApi.cs @@ -12,7 +12,7 @@ public partial class ChangeOrderApi : EntityAPI { public ChangeOrderApi(Configuration configuration) : base(configuration) { - } + } public string InvokeApproveChangeOrderAction(ChangeOrder changeOrder) { return InvokeAction(new ApproveChangeOrder(changeOrder)); diff --git a/Default.18.200.001/Api/ChangeOrderClassApi.cs b/Acumatica.Default_18.200.001/Api/ChangeOrderClassApi.cs similarity index 100% rename from Default.18.200.001/Api/ChangeOrderClassApi.cs rename to Acumatica.Default_18.200.001/Api/ChangeOrderClassApi.cs diff --git a/Default.18.200.001/Api/CheckApi.cs b/Acumatica.Default_18.200.001/Api/CheckApi.cs similarity index 100% rename from Default.18.200.001/Api/CheckApi.cs rename to Acumatica.Default_18.200.001/Api/CheckApi.cs diff --git a/Default.18.200.001/Api/CommonTaskApi.cs b/Acumatica.Default_18.200.001/Api/CommonTaskApi.cs similarity index 100% rename from Default.18.200.001/Api/CommonTaskApi.cs rename to Acumatica.Default_18.200.001/Api/CommonTaskApi.cs diff --git a/Default.18.200.001/Api/CompanyFinancialPeriodApi.cs b/Acumatica.Default_18.200.001/Api/CompanyFinancialPeriodApi.cs similarity index 100% rename from Default.18.200.001/Api/CompanyFinancialPeriodApi.cs rename to Acumatica.Default_18.200.001/Api/CompanyFinancialPeriodApi.cs diff --git a/Default.18.200.001/Api/ContactApi.cs b/Acumatica.Default_18.200.001/Api/ContactApi.cs similarity index 100% rename from Default.18.200.001/Api/ContactApi.cs rename to Acumatica.Default_18.200.001/Api/ContactApi.cs diff --git a/Default.18.200.001/Api/ContractUsageApi.cs b/Acumatica.Default_18.200.001/Api/ContractUsageApi.cs similarity index 100% rename from Default.18.200.001/Api/ContractUsageApi.cs rename to Acumatica.Default_18.200.001/Api/ContractUsageApi.cs diff --git a/Default.18.200.001/Api/CostCodeApi.cs b/Acumatica.Default_18.200.001/Api/CostCodeApi.cs similarity index 100% rename from Default.18.200.001/Api/CostCodeApi.cs rename to Acumatica.Default_18.200.001/Api/CostCodeApi.cs diff --git a/Default.18.200.001/Api/CurrencyApi.cs b/Acumatica.Default_18.200.001/Api/CurrencyApi.cs similarity index 100% rename from Default.18.200.001/Api/CurrencyApi.cs rename to Acumatica.Default_18.200.001/Api/CurrencyApi.cs diff --git a/Default.18.200.001/Api/CustomerApi.cs b/Acumatica.Default_18.200.001/Api/CustomerApi.cs similarity index 100% rename from Default.18.200.001/Api/CustomerApi.cs rename to Acumatica.Default_18.200.001/Api/CustomerApi.cs diff --git a/Default.18.200.001/Api/CustomerClassApi.cs b/Acumatica.Default_18.200.001/Api/CustomerClassApi.cs similarity index 100% rename from Default.18.200.001/Api/CustomerClassApi.cs rename to Acumatica.Default_18.200.001/Api/CustomerClassApi.cs diff --git a/Default.18.200.001/Api/CustomerLocationApi.cs b/Acumatica.Default_18.200.001/Api/CustomerLocationApi.cs similarity index 100% rename from Default.18.200.001/Api/CustomerLocationApi.cs rename to Acumatica.Default_18.200.001/Api/CustomerLocationApi.cs diff --git a/Default.18.200.001/Api/CustomerPaymentMethodApi.cs b/Acumatica.Default_18.200.001/Api/CustomerPaymentMethodApi.cs similarity index 100% rename from Default.18.200.001/Api/CustomerPaymentMethodApi.cs rename to Acumatica.Default_18.200.001/Api/CustomerPaymentMethodApi.cs diff --git a/Default.18.200.001/Api/CustomerPriceClassApi.cs b/Acumatica.Default_18.200.001/Api/CustomerPriceClassApi.cs similarity index 100% rename from Default.18.200.001/Api/CustomerPriceClassApi.cs rename to Acumatica.Default_18.200.001/Api/CustomerPriceClassApi.cs diff --git a/Default.18.200.001/Api/DiscountApi.cs b/Acumatica.Default_18.200.001/Api/DiscountApi.cs similarity index 100% rename from Default.18.200.001/Api/DiscountApi.cs rename to Acumatica.Default_18.200.001/Api/DiscountApi.cs diff --git a/Default.18.200.001/Api/DiscountCodeApi.cs b/Acumatica.Default_18.200.001/Api/DiscountCodeApi.cs similarity index 100% rename from Default.18.200.001/Api/DiscountCodeApi.cs rename to Acumatica.Default_18.200.001/Api/DiscountCodeApi.cs diff --git a/Default.18.200.001/Api/EmailApi.cs b/Acumatica.Default_18.200.001/Api/EmailApi.cs similarity index 100% rename from Default.18.200.001/Api/EmailApi.cs rename to Acumatica.Default_18.200.001/Api/EmailApi.cs diff --git a/Default.18.200.001/Api/EmailProcessingApi.cs b/Acumatica.Default_18.200.001/Api/EmailProcessingApi.cs similarity index 100% rename from Default.18.200.001/Api/EmailProcessingApi.cs rename to Acumatica.Default_18.200.001/Api/EmailProcessingApi.cs diff --git a/Default.18.200.001/Api/EmployeeApi.cs b/Acumatica.Default_18.200.001/Api/EmployeeApi.cs similarity index 100% rename from Default.18.200.001/Api/EmployeeApi.cs rename to Acumatica.Default_18.200.001/Api/EmployeeApi.cs diff --git a/Default.18.200.001/Api/EventApi.cs b/Acumatica.Default_18.200.001/Api/EventApi.cs similarity index 99% rename from Default.18.200.001/Api/EventApi.cs rename to Acumatica.Default_18.200.001/Api/EventApi.cs index 9d71b632..a034fadb 100644 --- a/Default.18.200.001/Api/EventApi.cs +++ b/Acumatica.Default_18.200.001/Api/EventApi.cs @@ -12,11 +12,11 @@ public partial class EventApi : EntityAPI { public EventApi(Configuration configuration) : base(configuration) { - } + } public string InvokeAcceptInvitationEventAction(Event eventEntity) { return InvokeAction(new AcceptInvitationEvent(eventEntity)); - } + } public string InvokeCancelActivityEventAction(Event eventEntity) { return InvokeAction(new CancelActivityEvent(eventEntity)); diff --git a/Default.18.200.001/Api/ExpenseClaimApi.cs b/Acumatica.Default_18.200.001/Api/ExpenseClaimApi.cs similarity index 99% rename from Default.18.200.001/Api/ExpenseClaimApi.cs rename to Acumatica.Default_18.200.001/Api/ExpenseClaimApi.cs index e65a142d..8291060a 100644 --- a/Default.18.200.001/Api/ExpenseClaimApi.cs +++ b/Acumatica.Default_18.200.001/Api/ExpenseClaimApi.cs @@ -12,8 +12,8 @@ public partial class ExpenseClaimApi : EntityAPI { public ExpenseClaimApi(Configuration configuration) : base(configuration) { - } - + } + public string InvokeApproveExpenseClaimAction(ExpenseClaim expenseClaim) { return InvokeAction(new ApproveExpenseClaim(expenseClaim)); diff --git a/Default.18.200.001/Api/ExpenseReceiptApi.cs b/Acumatica.Default_18.200.001/Api/ExpenseReceiptApi.cs similarity index 99% rename from Default.18.200.001/Api/ExpenseReceiptApi.cs rename to Acumatica.Default_18.200.001/Api/ExpenseReceiptApi.cs index 36c80ca9..b3c2cf58 100644 --- a/Default.18.200.001/Api/ExpenseReceiptApi.cs +++ b/Acumatica.Default_18.200.001/Api/ExpenseReceiptApi.cs @@ -12,8 +12,8 @@ public partial class ExpenseReceiptApi : EntityAPI { public ExpenseReceiptApi(Configuration configuration) : base(configuration) { - } - + } + public string InvokeApproveExpenseReceiptAction(ExpenseReceipt expenseReceipt) { return InvokeAction(new ApproveExpenseReceipt(expenseReceipt)); diff --git a/Default.18.200.001/Api/ExternalCommitmentApi.cs b/Acumatica.Default_18.200.001/Api/ExternalCommitmentApi.cs similarity index 100% rename from Default.18.200.001/Api/ExternalCommitmentApi.cs rename to Acumatica.Default_18.200.001/Api/ExternalCommitmentApi.cs diff --git a/Default.18.200.001/Api/FOBPointApi.cs b/Acumatica.Default_18.200.001/Api/FOBPointApi.cs similarity index 100% rename from Default.18.200.001/Api/FOBPointApi.cs rename to Acumatica.Default_18.200.001/Api/FOBPointApi.cs diff --git a/Default.18.200.001/Api/FinancialPeriodApi.cs b/Acumatica.Default_18.200.001/Api/FinancialPeriodApi.cs similarity index 100% rename from Default.18.200.001/Api/FinancialPeriodApi.cs rename to Acumatica.Default_18.200.001/Api/FinancialPeriodApi.cs diff --git a/Default.18.200.001/Api/FinancialYearApi.cs b/Acumatica.Default_18.200.001/Api/FinancialYearApi.cs similarity index 100% rename from Default.18.200.001/Api/FinancialYearApi.cs rename to Acumatica.Default_18.200.001/Api/FinancialYearApi.cs diff --git a/Default.18.200.001/Api/InterBranchAccountMappingApi.cs b/Acumatica.Default_18.200.001/Api/InterBranchAccountMappingApi.cs similarity index 100% rename from Default.18.200.001/Api/InterBranchAccountMappingApi.cs rename to Acumatica.Default_18.200.001/Api/InterBranchAccountMappingApi.cs diff --git a/Default.18.200.001/Api/InventoryAllocationInquiryApi.cs b/Acumatica.Default_18.200.001/Api/InventoryAllocationInquiryApi.cs similarity index 100% rename from Default.18.200.001/Api/InventoryAllocationInquiryApi.cs rename to Acumatica.Default_18.200.001/Api/InventoryAllocationInquiryApi.cs diff --git a/Default.18.200.001/Api/InventoryReceiptApi.cs b/Acumatica.Default_18.200.001/Api/InventoryReceiptApi.cs similarity index 100% rename from Default.18.200.001/Api/InventoryReceiptApi.cs rename to Acumatica.Default_18.200.001/Api/InventoryReceiptApi.cs diff --git a/Default.18.200.001/Api/InventorySummaryInquiryApi.cs b/Acumatica.Default_18.200.001/Api/InventorySummaryInquiryApi.cs similarity index 100% rename from Default.18.200.001/Api/InventorySummaryInquiryApi.cs rename to Acumatica.Default_18.200.001/Api/InventorySummaryInquiryApi.cs diff --git a/Default.18.200.001/Api/InvoiceApi.cs b/Acumatica.Default_18.200.001/Api/InvoiceApi.cs similarity index 100% rename from Default.18.200.001/Api/InvoiceApi.cs rename to Acumatica.Default_18.200.001/Api/InvoiceApi.cs diff --git a/Default.18.200.001/Api/ItemClassApi.cs b/Acumatica.Default_18.200.001/Api/ItemClassApi.cs similarity index 100% rename from Default.18.200.001/Api/ItemClassApi.cs rename to Acumatica.Default_18.200.001/Api/ItemClassApi.cs diff --git a/Default.18.200.001/Api/ItemSalesCategoryApi.cs b/Acumatica.Default_18.200.001/Api/ItemSalesCategoryApi.cs similarity index 100% rename from Default.18.200.001/Api/ItemSalesCategoryApi.cs rename to Acumatica.Default_18.200.001/Api/ItemSalesCategoryApi.cs diff --git a/Default.18.200.001/Api/ItemWarehouseApi.cs b/Acumatica.Default_18.200.001/Api/ItemWarehouseApi.cs similarity index 100% rename from Default.18.200.001/Api/ItemWarehouseApi.cs rename to Acumatica.Default_18.200.001/Api/ItemWarehouseApi.cs diff --git a/Default.18.200.001/Api/JournalTransactionApi.cs b/Acumatica.Default_18.200.001/Api/JournalTransactionApi.cs similarity index 100% rename from Default.18.200.001/Api/JournalTransactionApi.cs rename to Acumatica.Default_18.200.001/Api/JournalTransactionApi.cs diff --git a/Default.18.200.001/Api/JournalVoucherApi.cs b/Acumatica.Default_18.200.001/Api/JournalVoucherApi.cs similarity index 100% rename from Default.18.200.001/Api/JournalVoucherApi.cs rename to Acumatica.Default_18.200.001/Api/JournalVoucherApi.cs diff --git a/Default.18.200.001/Api/KitAssemblyApi.cs b/Acumatica.Default_18.200.001/Api/KitAssemblyApi.cs similarity index 100% rename from Default.18.200.001/Api/KitAssemblyApi.cs rename to Acumatica.Default_18.200.001/Api/KitAssemblyApi.cs diff --git a/Default.18.200.001/Api/KitSpecificationApi.cs b/Acumatica.Default_18.200.001/Api/KitSpecificationApi.cs similarity index 100% rename from Default.18.200.001/Api/KitSpecificationApi.cs rename to Acumatica.Default_18.200.001/Api/KitSpecificationApi.cs diff --git a/Default.18.200.001/Api/LaborCostRateApi.cs b/Acumatica.Default_18.200.001/Api/LaborCostRateApi.cs similarity index 100% rename from Default.18.200.001/Api/LaborCostRateApi.cs rename to Acumatica.Default_18.200.001/Api/LaborCostRateApi.cs diff --git a/Default.18.200.001/Api/LeadApi.cs b/Acumatica.Default_18.200.001/Api/LeadApi.cs similarity index 100% rename from Default.18.200.001/Api/LeadApi.cs rename to Acumatica.Default_18.200.001/Api/LeadApi.cs diff --git a/Default.18.200.001/Api/LotSerialClassApi.cs b/Acumatica.Default_18.200.001/Api/LotSerialClassApi.cs similarity index 100% rename from Default.18.200.001/Api/LotSerialClassApi.cs rename to Acumatica.Default_18.200.001/Api/LotSerialClassApi.cs diff --git a/Default.18.200.001/Api/ManageFinancialPeriodsApi.cs b/Acumatica.Default_18.200.001/Api/ManageFinancialPeriodsApi.cs similarity index 100% rename from Default.18.200.001/Api/ManageFinancialPeriodsApi.cs rename to Acumatica.Default_18.200.001/Api/ManageFinancialPeriodsApi.cs diff --git a/Default.18.200.001/Api/NonStockItemApi.cs b/Acumatica.Default_18.200.001/Api/NonStockItemApi.cs similarity index 100% rename from Default.18.200.001/Api/NonStockItemApi.cs rename to Acumatica.Default_18.200.001/Api/NonStockItemApi.cs diff --git a/Default.18.200.001/Api/OpportunityApi.cs b/Acumatica.Default_18.200.001/Api/OpportunityApi.cs similarity index 100% rename from Default.18.200.001/Api/OpportunityApi.cs rename to Acumatica.Default_18.200.001/Api/OpportunityApi.cs diff --git a/Default.18.200.001/Api/PaymentApi.cs b/Acumatica.Default_18.200.001/Api/PaymentApi.cs similarity index 100% rename from Default.18.200.001/Api/PaymentApi.cs rename to Acumatica.Default_18.200.001/Api/PaymentApi.cs diff --git a/Default.18.200.001/Api/PaymentMethodApi.cs b/Acumatica.Default_18.200.001/Api/PaymentMethodApi.cs similarity index 100% rename from Default.18.200.001/Api/PaymentMethodApi.cs rename to Acumatica.Default_18.200.001/Api/PaymentMethodApi.cs diff --git a/Default.18.200.001/Api/PhysicalInventoryCountApi.cs b/Acumatica.Default_18.200.001/Api/PhysicalInventoryCountApi.cs similarity index 100% rename from Default.18.200.001/Api/PhysicalInventoryCountApi.cs rename to Acumatica.Default_18.200.001/Api/PhysicalInventoryCountApi.cs diff --git a/Default.18.200.001/Api/PhysicalInventoryReviewApi.cs b/Acumatica.Default_18.200.001/Api/PhysicalInventoryReviewApi.cs similarity index 100% rename from Default.18.200.001/Api/PhysicalInventoryReviewApi.cs rename to Acumatica.Default_18.200.001/Api/PhysicalInventoryReviewApi.cs diff --git a/Default.18.200.001/Api/ProFormaInvoiceApi.cs b/Acumatica.Default_18.200.001/Api/ProFormaInvoiceApi.cs similarity index 99% rename from Default.18.200.001/Api/ProFormaInvoiceApi.cs rename to Acumatica.Default_18.200.001/Api/ProFormaInvoiceApi.cs index cbe00776..26e57531 100644 --- a/Default.18.200.001/Api/ProFormaInvoiceApi.cs +++ b/Acumatica.Default_18.200.001/Api/ProFormaInvoiceApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class ProFormaInvoiceApi : EntityAPI diff --git a/Default.18.200.001/Api/ProjectApi.cs b/Acumatica.Default_18.200.001/Api/ProjectApi.cs similarity index 100% rename from Default.18.200.001/Api/ProjectApi.cs rename to Acumatica.Default_18.200.001/Api/ProjectApi.cs diff --git a/Default.18.200.001/Api/ProjectBillingApi.cs b/Acumatica.Default_18.200.001/Api/ProjectBillingApi.cs similarity index 100% rename from Default.18.200.001/Api/ProjectBillingApi.cs rename to Acumatica.Default_18.200.001/Api/ProjectBillingApi.cs diff --git a/Default.18.200.001/Api/ProjectBillingRulesApi.cs b/Acumatica.Default_18.200.001/Api/ProjectBillingRulesApi.cs similarity index 100% rename from Default.18.200.001/Api/ProjectBillingRulesApi.cs rename to Acumatica.Default_18.200.001/Api/ProjectBillingRulesApi.cs diff --git a/Default.18.200.001/Api/ProjectBudgetApi.cs b/Acumatica.Default_18.200.001/Api/ProjectBudgetApi.cs similarity index 100% rename from Default.18.200.001/Api/ProjectBudgetApi.cs rename to Acumatica.Default_18.200.001/Api/ProjectBudgetApi.cs diff --git a/Default.18.200.001/Api/ProjectTaskApi.cs b/Acumatica.Default_18.200.001/Api/ProjectTaskApi.cs similarity index 100% rename from Default.18.200.001/Api/ProjectTaskApi.cs rename to Acumatica.Default_18.200.001/Api/ProjectTaskApi.cs diff --git a/Default.18.200.001/Api/ProjectTemplateApi.cs b/Acumatica.Default_18.200.001/Api/ProjectTemplateApi.cs similarity index 100% rename from Default.18.200.001/Api/ProjectTemplateApi.cs rename to Acumatica.Default_18.200.001/Api/ProjectTemplateApi.cs diff --git a/Default.18.200.001/Api/ProjectTemplateTaskApi.cs b/Acumatica.Default_18.200.001/Api/ProjectTemplateTaskApi.cs similarity index 100% rename from Default.18.200.001/Api/ProjectTemplateTaskApi.cs rename to Acumatica.Default_18.200.001/Api/ProjectTemplateTaskApi.cs diff --git a/Default.18.200.001/Api/ProjectTransactionApi.cs b/Acumatica.Default_18.200.001/Api/ProjectTransactionApi.cs similarity index 100% rename from Default.18.200.001/Api/ProjectTransactionApi.cs rename to Acumatica.Default_18.200.001/Api/ProjectTransactionApi.cs diff --git a/Default.18.200.001/Api/PurchaseOrderApi.cs b/Acumatica.Default_18.200.001/Api/PurchaseOrderApi.cs similarity index 100% rename from Default.18.200.001/Api/PurchaseOrderApi.cs rename to Acumatica.Default_18.200.001/Api/PurchaseOrderApi.cs diff --git a/Default.18.200.001/Api/PurchaseReceiptApi.cs b/Acumatica.Default_18.200.001/Api/PurchaseReceiptApi.cs similarity index 100% rename from Default.18.200.001/Api/PurchaseReceiptApi.cs rename to Acumatica.Default_18.200.001/Api/PurchaseReceiptApi.cs diff --git a/Default.18.200.001/Api/ReportingSettingsApi.cs b/Acumatica.Default_18.200.001/Api/ReportingSettingsApi.cs similarity index 100% rename from Default.18.200.001/Api/ReportingSettingsApi.cs rename to Acumatica.Default_18.200.001/Api/ReportingSettingsApi.cs diff --git a/Default.18.200.001/Api/SalesInvoiceApi.cs b/Acumatica.Default_18.200.001/Api/SalesInvoiceApi.cs similarity index 100% rename from Default.18.200.001/Api/SalesInvoiceApi.cs rename to Acumatica.Default_18.200.001/Api/SalesInvoiceApi.cs diff --git a/Default.18.200.001/Api/SalesOrderApi.cs b/Acumatica.Default_18.200.001/Api/SalesOrderApi.cs similarity index 99% rename from Default.18.200.001/Api/SalesOrderApi.cs rename to Acumatica.Default_18.200.001/Api/SalesOrderApi.cs index 30cf2567..1e897851 100644 --- a/Default.18.200.001/Api/SalesOrderApi.cs +++ b/Acumatica.Default_18.200.001/Api/SalesOrderApi.cs @@ -12,8 +12,8 @@ public partial class SalesOrderApi : EntityAPI { public SalesOrderApi(Configuration configuration) : base(configuration) { - } - + } + public string InvokeAutoRecalculateDiscountsAction(SalesOrder salesOrder) { return InvokeAction(new AutoRecalculateDiscounts(salesOrder)); diff --git a/Default.18.200.001/Api/SalesPriceWorksheetApi.cs b/Acumatica.Default_18.200.001/Api/SalesPriceWorksheetApi.cs similarity index 100% rename from Default.18.200.001/Api/SalesPriceWorksheetApi.cs rename to Acumatica.Default_18.200.001/Api/SalesPriceWorksheetApi.cs diff --git a/Default.18.200.001/Api/SalesPricesInquiryApi.cs b/Acumatica.Default_18.200.001/Api/SalesPricesInquiryApi.cs similarity index 100% rename from Default.18.200.001/Api/SalesPricesInquiryApi.cs rename to Acumatica.Default_18.200.001/Api/SalesPricesInquiryApi.cs diff --git a/Default.18.200.001/Api/SalespersonApi.cs b/Acumatica.Default_18.200.001/Api/SalespersonApi.cs similarity index 100% rename from Default.18.200.001/Api/SalespersonApi.cs rename to Acumatica.Default_18.200.001/Api/SalespersonApi.cs diff --git a/Default.18.200.001/Api/ShipViaApi.cs b/Acumatica.Default_18.200.001/Api/ShipViaApi.cs similarity index 100% rename from Default.18.200.001/Api/ShipViaApi.cs rename to Acumatica.Default_18.200.001/Api/ShipViaApi.cs diff --git a/Default.18.200.001/Api/ShipmentApi.cs b/Acumatica.Default_18.200.001/Api/ShipmentApi.cs similarity index 96% rename from Default.18.200.001/Api/ShipmentApi.cs rename to Acumatica.Default_18.200.001/Api/ShipmentApi.cs index 0474fb4b..e40f7c61 100644 --- a/Default.18.200.001/Api/ShipmentApi.cs +++ b/Acumatica.Default_18.200.001/Api/ShipmentApi.cs @@ -1,25 +1,25 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using Acumatica.RESTClient.Api; -using Acumatica.RESTClient.Client; -using Acumatica.Default_18_200_001.Model; - -namespace Acumatica.Default_18_200_001.Api -{ - public partial class ShipmentApi : EntityAPI - { - public ShipmentApi(Configuration configuration) : base(configuration) - { - } - public string InvokeConfirmShipmentAction(Shipment shipment) - { - return InvokeAction(new ConfirmShipment(shipment)); - } - public string InvokeCorrectShipmentAction(Shipment shipment) - { - return InvokeAction(new CorrectShipment(shipment)); - } - } -} +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using Acumatica.RESTClient.Api; +using Acumatica.RESTClient.Client; +using Acumatica.Default_18_200_001.Model; + +namespace Acumatica.Default_18_200_001.Api +{ + public partial class ShipmentApi : EntityAPI + { + public ShipmentApi(Configuration configuration) : base(configuration) + { + } + public string InvokeConfirmShipmentAction(Shipment shipment) + { + return InvokeAction(new ConfirmShipment(shipment)); + } + public string InvokeCorrectShipmentAction(Shipment shipment) + { + return InvokeAction(new CorrectShipment(shipment)); + } + } +} diff --git a/Default.18.200.001/Api/ShippingBoxApi.cs b/Acumatica.Default_18.200.001/Api/ShippingBoxApi.cs similarity index 100% rename from Default.18.200.001/Api/ShippingBoxApi.cs rename to Acumatica.Default_18.200.001/Api/ShippingBoxApi.cs diff --git a/Default.18.200.001/Api/ShippingTermApi.cs b/Acumatica.Default_18.200.001/Api/ShippingTermApi.cs similarity index 100% rename from Default.18.200.001/Api/ShippingTermApi.cs rename to Acumatica.Default_18.200.001/Api/ShippingTermApi.cs diff --git a/Default.18.200.001/Api/ShippingZonesApi.cs b/Acumatica.Default_18.200.001/Api/ShippingZonesApi.cs similarity index 100% rename from Default.18.200.001/Api/ShippingZonesApi.cs rename to Acumatica.Default_18.200.001/Api/ShippingZonesApi.cs diff --git a/Default.18.200.001/Api/StatementCycleApi.cs b/Acumatica.Default_18.200.001/Api/StatementCycleApi.cs similarity index 100% rename from Default.18.200.001/Api/StatementCycleApi.cs rename to Acumatica.Default_18.200.001/Api/StatementCycleApi.cs diff --git a/Default.18.200.001/Api/StockItemApi.cs b/Acumatica.Default_18.200.001/Api/StockItemApi.cs similarity index 100% rename from Default.18.200.001/Api/StockItemApi.cs rename to Acumatica.Default_18.200.001/Api/StockItemApi.cs diff --git a/Default.18.200.001/Api/SubaccountApi.cs b/Acumatica.Default_18.200.001/Api/SubaccountApi.cs similarity index 100% rename from Default.18.200.001/Api/SubaccountApi.cs rename to Acumatica.Default_18.200.001/Api/SubaccountApi.cs diff --git a/Default.18.200.001/Api/TaskApi.cs b/Acumatica.Default_18.200.001/Api/TaskApi.cs similarity index 99% rename from Default.18.200.001/Api/TaskApi.cs rename to Acumatica.Default_18.200.001/Api/TaskApi.cs index e00bfbb8..166a870c 100644 --- a/Default.18.200.001/Api/TaskApi.cs +++ b/Acumatica.Default_18.200.001/Api/TaskApi.cs @@ -4,8 +4,8 @@ using System.Linq; using Acumatica.RESTClient.Api; using Acumatica.RESTClient.Client; -using Acumatica.Default_18_200_001.Model; - +using Acumatica.Default_18_200_001.Model; + namespace Acumatica.Default_18_200_001.Api { public partial class TaskApi : EntityAPI diff --git a/Default.18.200.001/Api/TaxApi.cs b/Acumatica.Default_18.200.001/Api/TaxApi.cs similarity index 100% rename from Default.18.200.001/Api/TaxApi.cs rename to Acumatica.Default_18.200.001/Api/TaxApi.cs diff --git a/Default.18.200.001/Api/TaxCategoryApi.cs b/Acumatica.Default_18.200.001/Api/TaxCategoryApi.cs similarity index 99% rename from Default.18.200.001/Api/TaxCategoryApi.cs rename to Acumatica.Default_18.200.001/Api/TaxCategoryApi.cs index f4d27947..d1375dd9 100644 --- a/Default.18.200.001/Api/TaxCategoryApi.cs +++ b/Acumatica.Default_18.200.001/Api/TaxCategoryApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class TaxCategoryApi : EntityAPI diff --git a/Default.18.200.001/Api/TaxZoneApi.cs b/Acumatica.Default_18.200.001/Api/TaxZoneApi.cs similarity index 99% rename from Default.18.200.001/Api/TaxZoneApi.cs rename to Acumatica.Default_18.200.001/Api/TaxZoneApi.cs index c3d93950..57775011 100644 --- a/Default.18.200.001/Api/TaxZoneApi.cs +++ b/Acumatica.Default_18.200.001/Api/TaxZoneApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class TaxZoneApi : EntityAPI diff --git a/Default.18.200.001/Api/TimeEntryApi.cs b/Acumatica.Default_18.200.001/Api/TimeEntryApi.cs similarity index 99% rename from Default.18.200.001/Api/TimeEntryApi.cs rename to Acumatica.Default_18.200.001/Api/TimeEntryApi.cs index 01aafdeb..7d66a8c5 100644 --- a/Default.18.200.001/Api/TimeEntryApi.cs +++ b/Acumatica.Default_18.200.001/Api/TimeEntryApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class TimeEntryApi : EntityAPI diff --git a/Default.18.200.001/Api/TransferOrderApi.cs b/Acumatica.Default_18.200.001/Api/TransferOrderApi.cs similarity index 99% rename from Default.18.200.001/Api/TransferOrderApi.cs rename to Acumatica.Default_18.200.001/Api/TransferOrderApi.cs index 4142c883..464980da 100644 --- a/Default.18.200.001/Api/TransferOrderApi.cs +++ b/Acumatica.Default_18.200.001/Api/TransferOrderApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class TransferOrderApi : EntityAPI diff --git a/Default.18.200.001/Api/TrialBalanceApi.cs b/Acumatica.Default_18.200.001/Api/TrialBalanceApi.cs similarity index 99% rename from Default.18.200.001/Api/TrialBalanceApi.cs rename to Acumatica.Default_18.200.001/Api/TrialBalanceApi.cs index 15fc943b..a4e19c71 100644 --- a/Default.18.200.001/Api/TrialBalanceApi.cs +++ b/Acumatica.Default_18.200.001/Api/TrialBalanceApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class TrialBalanceApi : EntityAPI diff --git a/Default.18.200.001/Api/UnionLocalApi.cs b/Acumatica.Default_18.200.001/Api/UnionLocalApi.cs similarity index 99% rename from Default.18.200.001/Api/UnionLocalApi.cs rename to Acumatica.Default_18.200.001/Api/UnionLocalApi.cs index 1713c2b6..0feedcbc 100644 --- a/Default.18.200.001/Api/UnionLocalApi.cs +++ b/Acumatica.Default_18.200.001/Api/UnionLocalApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class UnionLocalApi : EntityAPI diff --git a/Default.18.200.001/Api/UnitsOfMeasureApi.cs b/Acumatica.Default_18.200.001/Api/UnitsOfMeasureApi.cs similarity index 99% rename from Default.18.200.001/Api/UnitsOfMeasureApi.cs rename to Acumatica.Default_18.200.001/Api/UnitsOfMeasureApi.cs index eee53cb1..0e0e3536 100644 --- a/Default.18.200.001/Api/UnitsOfMeasureApi.cs +++ b/Acumatica.Default_18.200.001/Api/UnitsOfMeasureApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class UnitsOfMeasureApi : EntityAPI diff --git a/Default.18.200.001/Api/VendorApi.cs b/Acumatica.Default_18.200.001/Api/VendorApi.cs similarity index 99% rename from Default.18.200.001/Api/VendorApi.cs rename to Acumatica.Default_18.200.001/Api/VendorApi.cs index 4f2923e9..abfac016 100644 --- a/Default.18.200.001/Api/VendorApi.cs +++ b/Acumatica.Default_18.200.001/Api/VendorApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class VendorApi : EntityAPI diff --git a/Default.18.200.001/Api/VendorClassApi.cs b/Acumatica.Default_18.200.001/Api/VendorClassApi.cs similarity index 99% rename from Default.18.200.001/Api/VendorClassApi.cs rename to Acumatica.Default_18.200.001/Api/VendorClassApi.cs index 72ee64a5..8b83c84f 100644 --- a/Default.18.200.001/Api/VendorClassApi.cs +++ b/Acumatica.Default_18.200.001/Api/VendorClassApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class VendorClassApi : EntityAPI diff --git a/Default.18.200.001/Api/VendorPriceWorksheetApi.cs b/Acumatica.Default_18.200.001/Api/VendorPriceWorksheetApi.cs similarity index 99% rename from Default.18.200.001/Api/VendorPriceWorksheetApi.cs rename to Acumatica.Default_18.200.001/Api/VendorPriceWorksheetApi.cs index ee20cf0e..57540126 100644 --- a/Default.18.200.001/Api/VendorPriceWorksheetApi.cs +++ b/Acumatica.Default_18.200.001/Api/VendorPriceWorksheetApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class VendorPriceWorksheetApi : EntityAPI diff --git a/Default.18.200.001/Api/VendorPricesInquiryApi.cs b/Acumatica.Default_18.200.001/Api/VendorPricesInquiryApi.cs similarity index 99% rename from Default.18.200.001/Api/VendorPricesInquiryApi.cs rename to Acumatica.Default_18.200.001/Api/VendorPricesInquiryApi.cs index 5fb71342..e56fdba6 100644 --- a/Default.18.200.001/Api/VendorPricesInquiryApi.cs +++ b/Acumatica.Default_18.200.001/Api/VendorPricesInquiryApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class VendorPricesInquiryApi : EntityAPI diff --git a/Default.18.200.001/Api/VoucherEntryCodeApi.cs b/Acumatica.Default_18.200.001/Api/VoucherEntryCodeApi.cs similarity index 99% rename from Default.18.200.001/Api/VoucherEntryCodeApi.cs rename to Acumatica.Default_18.200.001/Api/VoucherEntryCodeApi.cs index ddffc4ac..a70d77a6 100644 --- a/Default.18.200.001/Api/VoucherEntryCodeApi.cs +++ b/Acumatica.Default_18.200.001/Api/VoucherEntryCodeApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class VoucherEntryCodeApi : EntityAPI diff --git a/Default.18.200.001/Api/WarehouseApi.cs b/Acumatica.Default_18.200.001/Api/WarehouseApi.cs similarity index 99% rename from Default.18.200.001/Api/WarehouseApi.cs rename to Acumatica.Default_18.200.001/Api/WarehouseApi.cs index e9b9493f..89280cbf 100644 --- a/Default.18.200.001/Api/WarehouseApi.cs +++ b/Acumatica.Default_18.200.001/Api/WarehouseApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class WarehouseApi : EntityAPI diff --git a/Default.18.200.001/Api/WorkClassCompensationCodeApi.cs b/Acumatica.Default_18.200.001/Api/WorkClassCompensationCodeApi.cs similarity index 99% rename from Default.18.200.001/Api/WorkClassCompensationCodeApi.cs rename to Acumatica.Default_18.200.001/Api/WorkClassCompensationCodeApi.cs index fffae30e..36a542fa 100644 --- a/Default.18.200.001/Api/WorkClassCompensationCodeApi.cs +++ b/Acumatica.Default_18.200.001/Api/WorkClassCompensationCodeApi.cs @@ -5,8 +5,8 @@ using RestSharp; using Acumatica.RESTClient.Client; using Acumatica.Default_18_200_001.Model; -using Acumatica.RESTClient.Api; - +using Acumatica.RESTClient.Api; + namespace Acumatica.Default_18_200_001.Api { public partial class WorkClassCompensationCodeApi : EntityAPI diff --git a/Default.18.200.001/EndpointHelper.cs b/Acumatica.Default_18.200.001/EndpointHelper.cs similarity index 96% rename from Default.18.200.001/EndpointHelper.cs rename to Acumatica.Default_18.200.001/EndpointHelper.cs index 4fa0c476..c7c14192 100644 --- a/Default.18.200.001/EndpointHelper.cs +++ b/Acumatica.Default_18.200.001/EndpointHelper.cs @@ -1,18 +1,18 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DefaultEndpoint_18_200_001 -{ - public static class EndpointHelper - { - const string EndpointName = "Default"; - const string EndpointVersion = "18.200.001"; - public static string CombineEndpointURL(string siteURL) - { - return siteURL + "/entity/" + EndpointName + "/" + EndpointVersion + "/"; - } - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DefaultEndpoint_18_200_001 +{ + public static class EndpointHelper + { + const string EndpointName = "Default"; + const string EndpointVersion = "18.200.001"; + public static string CombineEndpointURL(string siteURL) + { + return siteURL + "/entity/" + EndpointName + "/" + EndpointVersion + "/"; + } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Account.cs b/Acumatica.Default_18.200.001/Model/Account.cs new file mode 100644 index 00000000..61af9394 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Account.cs @@ -0,0 +1,69 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Account : Entity + { + + [DataMember(Name="AccountCD", EmitDefaultValue=false)] + public StringValue AccountCD { get; set; } + + [DataMember(Name="AccountClass", EmitDefaultValue=false)] + public StringValue AccountClass { get; set; } + + [DataMember(Name="AccountGroup", EmitDefaultValue=false)] + public StringValue AccountGroup { get; set; } + + [DataMember(Name="AccountID", EmitDefaultValue=false)] + public IntValue AccountID { get; set; } + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public BooleanValue CashAccount { get; set; } + + [DataMember(Name="ChartOfAccountsOrder", EmitDefaultValue=false)] + public IntValue ChartOfAccountsOrder { get; set; } + + [DataMember(Name="ConsolidationAccount", EmitDefaultValue=false)] + public StringValue ConsolidationAccount { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="PostOption", EmitDefaultValue=false)] + public StringValue PostOption { get; set; } + + [DataMember(Name="RequireUnits", EmitDefaultValue=false)] + public BooleanValue RequireUnits { get; set; } + + [DataMember(Name="RevaluationRateType", EmitDefaultValue=false)] + public StringValue RevaluationRateType { get; set; } + + [DataMember(Name="Secured", EmitDefaultValue=false)] + public BooleanValue Secured { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UseDefaultSubaccount", EmitDefaultValue=false)] + public BooleanValue UseDefaultSubaccount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountByPeriodInquiry.cs b/Acumatica.Default_18.200.001/Model/AccountByPeriodInquiry.cs new file mode 100644 index 00000000..e006780c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountByPeriodInquiry.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountByPeriodInquiry : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } + + [DataMember(Name="FinancialYear", EmitDefaultValue=false)] + public StringValue FinancialYear { get; set; } + + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } + + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountByPeriodRow.cs b/Acumatica.Default_18.200.001/Model/AccountByPeriodRow.cs new file mode 100644 index 00000000..90897100 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountByPeriodRow.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountByPeriodRow : Entity + { + + [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] + public DecimalValue BeginingBalance { get; set; } + + [DataMember(Name="CreditTotal", EmitDefaultValue=false)] + public DecimalValue CreditTotal { get; set; } + + [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyBeginingBalance { get; set; } + + [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyCreditTotal { get; set; } + + [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyDebitTotal { get; set; } + + [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyEndingBalance { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyPtdTotal { get; set; } + + [DataMember(Name="DebitTotal", EmitDefaultValue=false)] + public DecimalValue DebitTotal { get; set; } + + [DataMember(Name="EndingBalance", EmitDefaultValue=false)] + public DecimalValue EndingBalance { get; set; } + + [DataMember(Name="LedgerID", EmitDefaultValue=false)] + public IntValue LedgerID { get; set; } + + [DataMember(Name="Period", EmitDefaultValue=false)] + public StringValue Period { get; set; } + + [DataMember(Name="PtdTotal", EmitDefaultValue=false)] + public DecimalValue PtdTotal { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountBySubaccountInquiry.cs b/Acumatica.Default_18.200.001/Model/AccountBySubaccountInquiry.cs new file mode 100644 index 00000000..a3918a59 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountBySubaccountInquiry.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountBySubaccountInquiry : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } + + [DataMember(Name="Period", EmitDefaultValue=false)] + public StringValue Period { get; set; } + + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountBySubaccountRow.cs b/Acumatica.Default_18.200.001/Model/AccountBySubaccountRow.cs new file mode 100644 index 00000000..beed8c6e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountBySubaccountRow.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountBySubaccountRow : Entity + { + + [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] + public DecimalValue BeginingBalance { get; set; } + + [DataMember(Name="CreditTotal", EmitDefaultValue=false)] + public DecimalValue CreditTotal { get; set; } + + [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyBeginingBalance { get; set; } + + [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyCreditTotal { get; set; } + + [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyDebitTotal { get; set; } + + [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyEndingBalance { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyPtdTotal { get; set; } + + [DataMember(Name="DebitTotal", EmitDefaultValue=false)] + public DecimalValue DebitTotal { get; set; } + + [DataMember(Name="EndingBalance", EmitDefaultValue=false)] + public DecimalValue EndingBalance { get; set; } + + [DataMember(Name="LedgerID", EmitDefaultValue=false)] + public IntValue LedgerID { get; set; } + + [DataMember(Name="PtdTotal", EmitDefaultValue=false)] + public DecimalValue PtdTotal { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountDetailsInquiry.cs b/Acumatica.Default_18.200.001/Model/AccountDetailsInquiry.cs new file mode 100644 index 00000000..1b490825 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountDetailsInquiry.cs @@ -0,0 +1,63 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountDetailsInquiry : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] + public DecimalValue BeginingBalance { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="EndingBalance", EmitDefaultValue=false)] + public DecimalValue EndingBalance { get; set; } + + [DataMember(Name="FromDate", EmitDefaultValue=false)] + public DateTimeValue FromDate { get; set; } + + [DataMember(Name="FromPeriod", EmitDefaultValue=false)] + public StringValue FromPeriod { get; set; } + + [DataMember(Name="IncludeReclassified", EmitDefaultValue=false)] + public BooleanValue IncludeReclassified { get; set; } + + [DataMember(Name="IncludeUnposted", EmitDefaultValue=false)] + public BooleanValue IncludeUnposted { get; set; } + + [DataMember(Name="IncludeUnreleased", EmitDefaultValue=false)] + public BooleanValue IncludeUnreleased { get; set; } + + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } + + [DataMember(Name="PeriodEndDate", EmitDefaultValue=false)] + public DateTimeValue PeriodEndDate { get; set; } + + [DataMember(Name="PeriodStartDate", EmitDefaultValue=false)] + public DateTimeValue PeriodStartDate { get; set; } + + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="ToDate", EmitDefaultValue=false)] + public DateTimeValue ToDate { get; set; } + + [DataMember(Name="ToPeriod", EmitDefaultValue=false)] + public StringValue ToPeriod { get; set; } + + [DataMember(Name="Turnover", EmitDefaultValue=false)] + public DecimalValue Turnover { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountDetailsRow.cs b/Acumatica.Default_18.200.001/Model/AccountDetailsRow.cs new file mode 100644 index 00000000..726744d7 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountDetailsRow.cs @@ -0,0 +1,84 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountDetailsRow : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] + public DecimalValue BeginingBalance { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CreditAmount", EmitDefaultValue=false)] + public DecimalValue CreditAmount { get; set; } + + [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyBeginingBalance { get; set; } + + [DataMember(Name="CurrencyCreditAmount", EmitDefaultValue=false)] + public DecimalValue CurrencyCreditAmount { get; set; } + + [DataMember(Name="CurrencyDebitAmount", EmitDefaultValue=false)] + public DecimalValue CurrencyDebitAmount { get; set; } + + [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyEndingBalance { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="DebitAmount", EmitDefaultValue=false)] + public DecimalValue DebitAmount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EndingBalance", EmitDefaultValue=false)] + public DecimalValue EndingBalance { get; set; } + + [DataMember(Name="IncludedinReclassHistory", EmitDefaultValue=false)] + public BooleanValue IncludedinReclassHistory { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } + + [DataMember(Name="Period", EmitDefaultValue=false)] + public StringValue Period { get; set; } + + [DataMember(Name="ReclassBatchNbr", EmitDefaultValue=false)] + public StringValue ReclassBatchNbr { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="TransactionDate", EmitDefaultValue=false)] + public DateTimeValue TransactionDate { get; set; } + + [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] + public StringValue VendorOrCustomer { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountGroup.cs b/Acumatica.Default_18.200.001/Model/AccountGroup.cs new file mode 100644 index 00000000..4b09f7f3 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountGroup.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountGroup : Entity + { + + [DataMember(Name="AccountGroupID", EmitDefaultValue=false)] + public StringValue AccountGroupID { get; set; } + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="DefaultAccountID", EmitDefaultValue=false)] + public StringValue DefaultAccountID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Expense", EmitDefaultValue=false)] + public BooleanValue Expense { get; set; } + + [DataMember(Name="SortOrder", EmitDefaultValue=false)] + public ShortValue SortOrder { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountLocation.cs b/Acumatica.Default_18.200.001/Model/AccountLocation.cs new file mode 100644 index 00000000..97f34751 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountLocation.cs @@ -0,0 +1,129 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountLocation : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Address", EmitDefaultValue=false)] + public Address Address { get; set; } + + [DataMember(Name="AddressSameAsMain", EmitDefaultValue=false)] + public BooleanValue AddressSameAsMain { get; set; } + + [DataMember(Name="AddressValidated", EmitDefaultValue=false)] + public BooleanValue AddressValidated { get; set; } + + [DataMember(Name="ARAccount", EmitDefaultValue=false)] + public StringValue ARAccount { get; set; } + + [DataMember(Name="ARSubaccount", EmitDefaultValue=false)] + public StringValue ARSubaccount { get; set; } + + [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] + public StringValue BusinessAccountID { get; set; } + + [DataMember(Name="Calendar", EmitDefaultValue=false)] + public StringValue Calendar { get; set; } + + [DataMember(Name="Cases", EmitDefaultValue=false)] + public List Cases { get; set; } + + [DataMember(Name="Contact", EmitDefaultValue=false)] + public AccountLocationContact Contact { get; set; } + + [DataMember(Name="DefaultProject", EmitDefaultValue=false)] + public StringValue DefaultProject { get; set; } + + [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] + public StringValue DiscountAccount { get; set; } + + [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] + public StringValue DiscountSubaccount { get; set; } + + [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] + public StringValue EntityUsageType { get; set; } + + [DataMember(Name="FedExGroundCollect", EmitDefaultValue=false)] + public BooleanValue FedExGroundCollect { get; set; } + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="FreightAccount", EmitDefaultValue=false)] + public StringValue FreightAccount { get; set; } + + [DataMember(Name="FreightSubaccount", EmitDefaultValue=false)] + public StringValue FreightSubaccount { get; set; } + + [DataMember(Name="Insurance", EmitDefaultValue=false)] + public BooleanValue Insurance { get; set; } + + [DataMember(Name="LeadTimeInDays", EmitDefaultValue=false)] + public ShortValue LeadTimeInDays { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } + + [DataMember(Name="Opportunities", EmitDefaultValue=false)] + public List Opportunities { get; set; } + + [DataMember(Name="OrderPriority", EmitDefaultValue=false)] + public ShortValue OrderPriority { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="SameAsDefaultLocation", EmitDefaultValue=false)] + public BooleanValue SameAsDefaultLocation { get; set; } + + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } + + [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] + public StringValue ShippingBranch { get; set; } + + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShippingZone", EmitDefaultValue=false)] + public StringValue ShippingZone { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="TaxExemptionNumber", EmitDefaultValue=false)] + public StringValue TaxExemptionNumber { get; set; } + + [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] + public StringValue TaxRegistrationID { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountLocationContact.cs b/Acumatica.Default_18.200.001/Model/AccountLocationContact.cs new file mode 100644 index 00000000..4ae5134a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountLocationContact.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountLocationContact : Entity + { + + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } + + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public StringValue CompanyName { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } + + [DataMember(Name="FaxType", EmitDefaultValue=false)] + public StringValue FaxType { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + [DataMember(Name="Phone1Type", EmitDefaultValue=false)] + public StringValue Phone1Type { get; set; } + + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } + + [DataMember(Name="Phone2Type", EmitDefaultValue=false)] + public StringValue Phone2Type { get; set; } + + [DataMember(Name="SameAsMain", EmitDefaultValue=false)] + public BooleanValue SameAsMain { get; set; } + + [DataMember(Name="WebSite", EmitDefaultValue=false)] + public StringValue WebSite { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountSummaryInquiry.cs b/Acumatica.Default_18.200.001/Model/AccountSummaryInquiry.cs new file mode 100644 index 00000000..bf232ca9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountSummaryInquiry.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountSummaryInquiry : Entity + { + + [DataMember(Name="AccountClass", EmitDefaultValue=false)] + public StringValue AccountClass { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } + + [DataMember(Name="Period", EmitDefaultValue=false)] + public StringValue Period { get; set; } + + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AccountSummaryRow.cs b/Acumatica.Default_18.200.001/Model/AccountSummaryRow.cs new file mode 100644 index 00000000..9bb232b8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AccountSummaryRow.cs @@ -0,0 +1,72 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AccountSummaryRow : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="AccountClass", EmitDefaultValue=false)] + public StringValue AccountClass { get; set; } + + [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] + public DecimalValue BeginingBalance { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="ConsolidationAccount", EmitDefaultValue=false)] + public StringValue ConsolidationAccount { get; set; } + + [DataMember(Name="CreditTotal", EmitDefaultValue=false)] + public DecimalValue CreditTotal { get; set; } + + [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyBeginingBalance { get; set; } + + [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyCreditTotal { get; set; } + + [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyDebitTotal { get; set; } + + [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyEndingBalance { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] + public DecimalValue CurrencyPtdTotal { get; set; } + + [DataMember(Name="DebitTotal", EmitDefaultValue=false)] + public DecimalValue DebitTotal { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EndingBalance", EmitDefaultValue=false)] + public DecimalValue EndingBalance { get; set; } + + [DataMember(Name="LastActivity", EmitDefaultValue=false)] + public StringValue LastActivity { get; set; } + + [DataMember(Name="LedgerID", EmitDefaultValue=false)] + public IntValue LedgerID { get; set; } + + [DataMember(Name="PtdTotal", EmitDefaultValue=false)] + public DecimalValue PtdTotal { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Default.18.200.001/Model/ActionParameters/ChangeBusinessAccountIDParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/ChangeBusinessAccountIDParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/ChangeBusinessAccountIDParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/ChangeBusinessAccountIDParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/ChangeCostCodeIDParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/ChangeCostCodeIDParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/ChangeCostCodeIDParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/ChangeCostCodeIDParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/ChangeEmployeeIDParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/ChangeEmployeeIDParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/ChangeEmployeeIDParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/ChangeEmployeeIDParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/ChangeProjectIDParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/ChangeProjectIDParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/ChangeProjectIDParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/ChangeProjectIDParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/ConvertContactToBusinessAccountParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/ConvertContactToBusinessAccountParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/ConvertContactToBusinessAccountParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/ConvertContactToBusinessAccountParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/CreateOpportunitySalesOrderParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/CreateOpportunitySalesOrderParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/CreateOpportunitySalesOrderParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/CreateOpportunitySalesOrderParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/LinkEntityToEmailParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/LinkEntityToEmailParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/LinkEntityToEmailParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/LinkEntityToEmailParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/PaymentLoadDocumentsParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/PaymentLoadDocumentsParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/PaymentLoadDocumentsParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/PaymentLoadDocumentsParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/PaymentLoadOrdersParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/PaymentLoadOrdersParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/PaymentLoadOrdersParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/PaymentLoadOrdersParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/SalesOrderAddInvoiceParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/SalesOrderAddInvoiceParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/SalesOrderAddInvoiceParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/SalesOrderAddInvoiceParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/SalesOrderAddStockItemParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/SalesOrderAddStockItemParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/SalesOrderAddStockItemParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/SalesOrderAddStockItemParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/SalesOrderCreateShipmentParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/SalesOrderCreateShipmentParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/SalesOrderCreateShipmentParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/SalesOrderCreateShipmentParameters.cs diff --git a/Default.18.200.001/Model/ActionParameters/UpdateDiscountsParameters.cs b/Acumatica.Default_18.200.001/Model/ActionParameters/UpdateDiscountsParameters.cs similarity index 100% rename from Default.18.200.001/Model/ActionParameters/UpdateDiscountsParameters.cs rename to Acumatica.Default_18.200.001/Model/ActionParameters/UpdateDiscountsParameters.cs diff --git a/Acumatica.Default_18.200.001/Model/Actions/AcceptInvitationEvent.cs b/Acumatica.Default_18.200.001/Model/Actions/AcceptInvitationEvent.cs new file mode 100644 index 00000000..f1c26ff9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/AcceptInvitationEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AcceptInvitationEvent : EntityAction + { + public AcceptInvitationEvent(Event entity) : base(entity) + { } + public AcceptInvitationEvent() : base() + { } + } +} diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/ChangeBusinessAccountID.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ChangeBusinessAccountID.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/ChangeBusinessAccountID.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ChangeBusinessAccountID.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/ChangeCostCodeID.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ChangeCostCodeID.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/ChangeCostCodeID.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ChangeCostCodeID.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/ChangeEmployeeID.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ChangeEmployeeID.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/ChangeEmployeeID.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ChangeEmployeeID.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/ChangeProjectID.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ChangeProjectID.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/ChangeProjectID.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ChangeProjectID.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/ConvertContactToBusinessAccount.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ConvertContactToBusinessAccount.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/ConvertContactToBusinessAccount.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ConvertContactToBusinessAccount.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/ConvertLeadToBAccount.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ConvertLeadToBAccount.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/ConvertLeadToBAccount.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/ConvertLeadToBAccount.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/CreateAccountFromOpportunity.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/CreateAccountFromOpportunity.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/CreateAccountFromOpportunity.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/CreateAccountFromOpportunity.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/CreateOpportunitySalesOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/CreateOpportunitySalesOrder.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/CreateOpportunitySalesOrder.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/CreateOpportunitySalesOrder.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToActivity.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToActivity.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToActivity.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToActivity.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToEmail.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToEmail.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToEmail.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToEvent.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToEvent.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToEvent.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToEvent.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToTask.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToTask.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToTask.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/LinkEntityToTask.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/PaymentLoadDocuments.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/PaymentLoadDocuments.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/PaymentLoadDocuments.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/PaymentLoadDocuments.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/PaymentLoadOrders.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/PaymentLoadOrders.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/PaymentLoadOrders.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/PaymentLoadOrders.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/SalesOrderAddInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/SalesOrderAddInvoice.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/SalesOrderAddInvoice.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/SalesOrderAddInvoice.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/SalesOrderAddStockItem.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/SalesOrderAddStockItem.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/SalesOrderAddStockItem.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/SalesOrderAddStockItem.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/SalesOrderCreateReceipt.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/SalesOrderCreateReceipt.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/SalesOrderCreateReceipt.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/SalesOrderCreateReceipt.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/SalesOrderCreateShipment.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/SalesOrderCreateShipment.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/SalesOrderCreateShipment.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/SalesOrderCreateShipment.cs diff --git a/Default.18.200.001/Model/Actions/ActionsWithParameters/UpdateDiscounts.cs b/Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/UpdateDiscounts.cs similarity index 100% rename from Default.18.200.001/Model/Actions/ActionsWithParameters/UpdateDiscounts.cs rename to Acumatica.Default_18.200.001/Model/Actions/ActionsWithParameters/UpdateDiscounts.cs diff --git a/Acumatica.Default_18.200.001/Model/Actions/ApproveChangeOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/ApproveChangeOrder.cs new file mode 100644 index 00000000..237b4b54 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ApproveChangeOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ApproveChangeOrder : EntityAction + { + public ApproveChangeOrder(ChangeOrder entity) : base(entity) + { } + public ApproveChangeOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ApproveExpenseClaim.cs b/Acumatica.Default_18.200.001/Model/Actions/ApproveExpenseClaim.cs new file mode 100644 index 00000000..23ab85d1 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ApproveExpenseClaim.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ApproveExpenseClaim : EntityAction + { + public ApproveExpenseClaim(ExpenseClaim entity) : base(entity) + { } + public ApproveExpenseClaim() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ApproveExpenseReceipt.cs b/Acumatica.Default_18.200.001/Model/Actions/ApproveExpenseReceipt.cs new file mode 100644 index 00000000..0d947877 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ApproveExpenseReceipt.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ApproveExpenseReceipt : EntityAction + { + public ApproveExpenseReceipt(ExpenseReceipt entity) : base(entity) + { } + public ApproveExpenseReceipt() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ApproveProFormaInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/ApproveProFormaInvoice.cs new file mode 100644 index 00000000..8812b930 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ApproveProFormaInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ApproveProFormaInvoice : EntityAction + { + public ApproveProFormaInvoice(ProFormaInvoice entity) : base(entity) + { } + public ApproveProFormaInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ApproveProject.cs b/Acumatica.Default_18.200.001/Model/Actions/ApproveProject.cs new file mode 100644 index 00000000..fec86784 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ApproveProject.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ApproveProject : EntityAction + { + public ApproveProject(Project entity) : base(entity) + { } + public ApproveProject() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ArchiveEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/ArchiveEmail.cs new file mode 100644 index 00000000..9ada511d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ArchiveEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ArchiveEmail : EntityAction + { + public ArchiveEmail(Email entity) : base(entity) + { } + public ArchiveEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/AssignCase.cs b/Acumatica.Default_18.200.001/Model/Actions/AssignCase.cs new file mode 100644 index 00000000..22796768 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/AssignCase.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AssignCase : EntityAction + { + public AssignCase(Case entity) : base(entity) + { } + public AssignCase() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/AutoRecalculateDiscounts.cs b/Acumatica.Default_18.200.001/Model/Actions/AutoRecalculateDiscounts.cs new file mode 100644 index 00000000..e0fe1dde --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/AutoRecalculateDiscounts.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AutoRecalculateDiscounts : EntityAction + { + public AutoRecalculateDiscounts(SalesOrder entity) : base(entity) + { } + public AutoRecalculateDiscounts() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CancelActivityEvent.cs b/Acumatica.Default_18.200.001/Model/Actions/CancelActivityEvent.cs new file mode 100644 index 00000000..2c9717fb --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CancelActivityEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CancelActivityEvent : EntityAction + { + public CancelActivityEvent(Event entity) : base(entity) + { } + public CancelActivityEvent() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CancelActivityTask.cs b/Acumatica.Default_18.200.001/Model/Actions/CancelActivityTask.cs new file mode 100644 index 00000000..e7f192de --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CancelActivityTask.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CancelActivityTask : EntityAction + { + public CancelActivityTask(Task entity) : base(entity) + { } + public CancelActivityTask() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CancelPhysicalInventory.cs b/Acumatica.Default_18.200.001/Model/Actions/CancelPhysicalInventory.cs new file mode 100644 index 00000000..d8b0642c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CancelPhysicalInventory.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CancelPhysicalInventory : EntityAction + { + public CancelPhysicalInventory(PhysicalInventoryReview entity) : base(entity) + { } + public CancelPhysicalInventory() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CancelSalesOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/CancelSalesOrder.cs new file mode 100644 index 00000000..0bcf40da --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CancelSalesOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CancelSalesOrder : EntityAction + { + public CancelSalesOrder(SalesOrder entity) : base(entity) + { } + public CancelSalesOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CancelSendingEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/CancelSendingEmail.cs new file mode 100644 index 00000000..548051f3 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CancelSendingEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CancelSendingEmail : EntityAction + { + public CancelSendingEmail(Email entity) : base(entity) + { } + public CancelSendingEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CaptureCreditCardPayment.cs b/Acumatica.Default_18.200.001/Model/Actions/CaptureCreditCardPayment.cs new file mode 100644 index 00000000..e0949bb6 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CaptureCreditCardPayment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CaptureCreditCardPayment : EntityAction + { + public CaptureCreditCardPayment(Payment entity) : base(entity) + { } + public CaptureCreditCardPayment() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs b/Acumatica.Default_18.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs new file mode 100644 index 00000000..b5ca314d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CheckForBusinessAccountDuplicates : EntityAction + { + public CheckForBusinessAccountDuplicates(BusinessAccount entity) : base(entity) + { } + public CheckForBusinessAccountDuplicates() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CheckForContactDuplicates.cs b/Acumatica.Default_18.200.001/Model/Actions/CheckForContactDuplicates.cs new file mode 100644 index 00000000..1e3aff66 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CheckForContactDuplicates.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CheckForContactDuplicates : EntityAction + { + public CheckForContactDuplicates(Contact entity) : base(entity) + { } + public CheckForContactDuplicates() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CheckLeadForDuplicates.cs b/Acumatica.Default_18.200.001/Model/Actions/CheckLeadForDuplicates.cs new file mode 100644 index 00000000..a4fdde8c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CheckLeadForDuplicates.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CheckLeadForDuplicates : EntityAction + { + public CheckLeadForDuplicates(Lead entity) : base(entity) + { } + public CheckLeadForDuplicates() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ClaimExpenseReceipt.cs b/Acumatica.Default_18.200.001/Model/Actions/ClaimExpenseReceipt.cs new file mode 100644 index 00000000..653fefaa --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ClaimExpenseReceipt.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ClaimExpenseReceipt : EntityAction + { + public ClaimExpenseReceipt(ExpenseReceipt entity) : base(entity) + { } + public ClaimExpenseReceipt() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CloseContactAsDuplicate.cs b/Acumatica.Default_18.200.001/Model/Actions/CloseContactAsDuplicate.cs new file mode 100644 index 00000000..f835adb4 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CloseContactAsDuplicate.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CloseContactAsDuplicate : EntityAction + { + public CloseContactAsDuplicate(Contact entity) : base(entity) + { } + public CloseContactAsDuplicate() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CloseLeadAsDuplicate.cs b/Acumatica.Default_18.200.001/Model/Actions/CloseLeadAsDuplicate.cs new file mode 100644 index 00000000..0f90942a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CloseLeadAsDuplicate.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CloseLeadAsDuplicate : EntityAction + { + public CloseLeadAsDuplicate(Lead entity) : base(entity) + { } + public CloseLeadAsDuplicate() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CompleteActivity.cs b/Acumatica.Default_18.200.001/Model/Actions/CompleteActivity.cs new file mode 100644 index 00000000..a11739b3 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CompleteActivity.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CompleteActivity : EntityAction + { + public CompleteActivity(Activity entity) : base(entity) + { } + public CompleteActivity() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CompleteAndFollowUpEvent.cs b/Acumatica.Default_18.200.001/Model/Actions/CompleteAndFollowUpEvent.cs new file mode 100644 index 00000000..e27f47ad --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CompleteAndFollowUpEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CompleteAndFollowUpEvent : EntityAction + { + public CompleteAndFollowUpEvent(Event entity) : base(entity) + { } + public CompleteAndFollowUpEvent() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CompleteAndFollowUpTask.cs b/Acumatica.Default_18.200.001/Model/Actions/CompleteAndFollowUpTask.cs new file mode 100644 index 00000000..4abf37d2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CompleteAndFollowUpTask.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CompleteAndFollowUpTask : EntityAction + { + public CompleteAndFollowUpTask(Task entity) : base(entity) + { } + public CompleteAndFollowUpTask() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CompleteEvent.cs b/Acumatica.Default_18.200.001/Model/Actions/CompleteEvent.cs new file mode 100644 index 00000000..b49c15c2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CompleteEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CompleteEvent : EntityAction + { + public CompleteEvent(Event entity) : base(entity) + { } + public CompleteEvent() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CompletePhysicalInventory.cs b/Acumatica.Default_18.200.001/Model/Actions/CompletePhysicalInventory.cs new file mode 100644 index 00000000..d0974434 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CompletePhysicalInventory.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CompletePhysicalInventory : EntityAction + { + public CompletePhysicalInventory(PhysicalInventoryReview entity) : base(entity) + { } + public CompletePhysicalInventory() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CompleteTask.cs b/Acumatica.Default_18.200.001/Model/Actions/CompleteTask.cs new file mode 100644 index 00000000..a20baa2b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CompleteTask.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CompleteTask : EntityAction + { + public CompleteTask(Task entity) : base(entity) + { } + public CompleteTask() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CompleteTimeEntry.cs b/Acumatica.Default_18.200.001/Model/Actions/CompleteTimeEntry.cs new file mode 100644 index 00000000..eecc96ef --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CompleteTimeEntry.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CompleteTimeEntry : EntityAction + { + public CompleteTimeEntry(TimeEntry entity) : base(entity) + { } + public CompleteTimeEntry() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ConfirmShipment.cs b/Acumatica.Default_18.200.001/Model/Actions/ConfirmShipment.cs new file mode 100644 index 00000000..69ac0083 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ConfirmShipment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ConfirmShipment : EntityAction + { + public ConfirmShipment(Shipment entity) : base(entity) + { } + public ConfirmShipment() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs b/Acumatica.Default_18.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs new file mode 100644 index 00000000..bc58cc9b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ConvertBusinessAccountToCustomer : EntityAction + { + public ConvertBusinessAccountToCustomer(BusinessAccount entity) : base(entity) + { } + public ConvertBusinessAccountToCustomer() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs b/Acumatica.Default_18.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs new file mode 100644 index 00000000..f1891a71 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ConvertBusinessAccountToVendor : EntityAction + { + public ConvertBusinessAccountToVendor(BusinessAccount entity) : base(entity) + { } + public ConvertBusinessAccountToVendor() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ConvertLeadToContact.cs b/Acumatica.Default_18.200.001/Model/Actions/ConvertLeadToContact.cs new file mode 100644 index 00000000..bf24dc13 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ConvertLeadToContact.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ConvertLeadToContact : EntityAction + { + public ConvertLeadToContact(Lead entity) : base(entity) + { } + public ConvertLeadToContact() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ConvertLeadToOpportunity.cs b/Acumatica.Default_18.200.001/Model/Actions/ConvertLeadToOpportunity.cs new file mode 100644 index 00000000..2f718604 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ConvertLeadToOpportunity.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ConvertLeadToOpportunity : EntityAction + { + public ConvertLeadToOpportunity(Lead entity) : base(entity) + { } + public ConvertLeadToOpportunity() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CopyFromCompany.cs b/Acumatica.Default_18.200.001/Model/Actions/CopyFromCompany.cs new file mode 100644 index 00000000..62ceab60 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CopyFromCompany.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CopyFromCompany : EntityAction + { + public CopyFromCompany(Contact entity) : base(entity) + { } + public CopyFromCompany() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CorrectShipment.cs b/Acumatica.Default_18.200.001/Model/Actions/CorrectShipment.cs new file mode 100644 index 00000000..b1cdb574 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CorrectShipment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CorrectShipment : EntityAction + { + public CorrectShipment(Shipment entity) : base(entity) + { } + public CorrectShipment() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CreateAPBill.cs b/Acumatica.Default_18.200.001/Model/Actions/CreateAPBill.cs new file mode 100644 index 00000000..81ea23be --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CreateAPBill.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreateAPBill : EntityAction + { + public CreateAPBill(PurchaseReceipt entity) : base(entity) + { } + public CreateAPBill() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CreateCaseFromEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/CreateCaseFromEmail.cs new file mode 100644 index 00000000..71241425 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CreateCaseFromEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreateCaseFromEmail : EntityAction + { + public CreateCaseFromEmail(Email entity) : base(entity) + { } + public CreateCaseFromEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CreateContactFromEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/CreateContactFromEmail.cs new file mode 100644 index 00000000..565b1cdd --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CreateContactFromEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreateContactFromEmail : EntityAction + { + public CreateContactFromEmail(Email entity) : base(entity) + { } + public CreateContactFromEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CreateContactFromOpportunity.cs b/Acumatica.Default_18.200.001/Model/Actions/CreateContactFromOpportunity.cs new file mode 100644 index 00000000..418adce8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CreateContactFromOpportunity.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreateContactFromOpportunity : EntityAction + { + public CreateContactFromOpportunity(Opportunity entity) : base(entity) + { } + public CreateContactFromOpportunity() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CreateEventFromEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/CreateEventFromEmail.cs new file mode 100644 index 00000000..cadd4197 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CreateEventFromEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreateEventFromEmail : EntityAction + { + public CreateEventFromEmail(Email entity) : base(entity) + { } + public CreateEventFromEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CreateExpenseReceiptFromEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/CreateExpenseReceiptFromEmail.cs new file mode 100644 index 00000000..d5989354 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CreateExpenseReceiptFromEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreateExpenseReceiptFromEmail : EntityAction + { + public CreateExpenseReceiptFromEmail(Email entity) : base(entity) + { } + public CreateExpenseReceiptFromEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CreateLeadFromEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/CreateLeadFromEmail.cs new file mode 100644 index 00000000..afb4598e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CreateLeadFromEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreateLeadFromEmail : EntityAction + { + public CreateLeadFromEmail(Email entity) : base(entity) + { } + public CreateLeadFromEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CreateOpportunityFromEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/CreateOpportunityFromEmail.cs new file mode 100644 index 00000000..457eef25 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CreateOpportunityFromEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreateOpportunityFromEmail : EntityAction + { + public CreateOpportunityFromEmail(Email entity) : base(entity) + { } + public CreateOpportunityFromEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CreateOpportunityInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/CreateOpportunityInvoice.cs new file mode 100644 index 00000000..4d7646fe --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CreateOpportunityInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreateOpportunityInvoice : EntityAction + { + public CreateOpportunityInvoice(Opportunity entity) : base(entity) + { } + public CreateOpportunityInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/CreateTaskFromEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/CreateTaskFromEmail.cs new file mode 100644 index 00000000..37a1aec6 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/CreateTaskFromEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreateTaskFromEmail : EntityAction + { + public CreateTaskFromEmail(Email entity) : base(entity) + { } + public CreateTaskFromEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/DownloadEmlFileEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/DownloadEmlFileEmail.cs new file mode 100644 index 00000000..e87d63aa --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/DownloadEmlFileEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DownloadEmlFileEmail : EntityAction + { + public DownloadEmlFileEmail(Email entity) : base(entity) + { } + public DownloadEmlFileEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/EmailChangeOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/EmailChangeOrder.cs new file mode 100644 index 00000000..9bb49e2f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/EmailChangeOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EmailChangeOrder : EntityAction + { + public EmailChangeOrder(ChangeOrder entity) : base(entity) + { } + public EmailChangeOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/EmailProFormaInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/EmailProFormaInvoice.cs new file mode 100644 index 00000000..a1201e72 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/EmailProFormaInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EmailProFormaInvoice : EntityAction + { + public EmailProFormaInvoice(ProFormaInvoice entity) : base(entity) + { } + public EmailProFormaInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/EnterAPBill.cs b/Acumatica.Default_18.200.001/Model/Actions/EnterAPBill.cs new file mode 100644 index 00000000..184f7c0c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/EnterAPBill.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EnterAPBill : EntityAction + { + public EnterAPBill(PurchaseOrder entity) : base(entity) + { } + public EnterAPBill() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/EnterPOReceipt.cs b/Acumatica.Default_18.200.001/Model/Actions/EnterPOReceipt.cs new file mode 100644 index 00000000..db2d6618 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/EnterPOReceipt.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EnterPOReceipt : EntityAction + { + public EnterPOReceipt(PurchaseOrder entity) : base(entity) + { } + public EnterPOReceipt() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ExportCardEvent.cs b/Acumatica.Default_18.200.001/Model/Actions/ExportCardEvent.cs new file mode 100644 index 00000000..1bdf62cd --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ExportCardEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ExportCardEvent : EntityAction + { + public ExportCardEvent(Event entity) : base(entity) + { } + public ExportCardEvent() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/FinishCountingPhysicalInventory.cs b/Acumatica.Default_18.200.001/Model/Actions/FinishCountingPhysicalInventory.cs new file mode 100644 index 00000000..3ca82a5c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/FinishCountingPhysicalInventory.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class FinishCountingPhysicalInventory : EntityAction + { + public FinishCountingPhysicalInventory(PhysicalInventoryReview entity) : base(entity) + { } + public FinishCountingPhysicalInventory() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/GeneratePeriods.cs b/Acumatica.Default_18.200.001/Model/Actions/GeneratePeriods.cs new file mode 100644 index 00000000..946678ea --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/GeneratePeriods.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class GeneratePeriods : EntityAction + { + public GeneratePeriods(FinancialPeriod entity) : base(entity) + { } + public GeneratePeriods() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/InviteAllEvent.cs b/Acumatica.Default_18.200.001/Model/Actions/InviteAllEvent.cs new file mode 100644 index 00000000..2246faf1 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/InviteAllEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InviteAllEvent : EntityAction + { + public InviteAllEvent(Event entity) : base(entity) + { } + public InviteAllEvent() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/InviteEvent.cs b/Acumatica.Default_18.200.001/Model/Actions/InviteEvent.cs new file mode 100644 index 00000000..e5f21ac2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/InviteEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InviteEvent : EntityAction + { + public InviteEvent(Event entity) : base(entity) + { } + public InviteEvent() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/LockProjectBudget.cs b/Acumatica.Default_18.200.001/Model/Actions/LockProjectBudget.cs new file mode 100644 index 00000000..520895ac --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/LockProjectBudget.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class LockProjectBudget : EntityAction + { + public LockProjectBudget(Project entity) : base(entity) + { } + public LockProjectBudget() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/LockProjectCommitments.cs b/Acumatica.Default_18.200.001/Model/Actions/LockProjectCommitments.cs new file mode 100644 index 00000000..fa7de0d4 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/LockProjectCommitments.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class LockProjectCommitments : EntityAction + { + public LockProjectCommitments(Project entity) : base(entity) + { } + public LockProjectCommitments() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs b/Acumatica.Default_18.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs new file mode 100644 index 00000000..cbad9b13 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class MarkBusinessAccountAsValidated : EntityAction + { + public MarkBusinessAccountAsValidated(BusinessAccount entity) : base(entity) + { } + public MarkBusinessAccountAsValidated() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/MarkContactAsValidated.cs b/Acumatica.Default_18.200.001/Model/Actions/MarkContactAsValidated.cs new file mode 100644 index 00000000..7b481835 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/MarkContactAsValidated.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class MarkContactAsValidated : EntityAction + { + public MarkContactAsValidated(Contact entity) : base(entity) + { } + public MarkContactAsValidated() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/MarkLeadAsValidated.cs b/Acumatica.Default_18.200.001/Model/Actions/MarkLeadAsValidated.cs new file mode 100644 index 00000000..058cc6f2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/MarkLeadAsValidated.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class MarkLeadAsValidated : EntityAction + { + public MarkLeadAsValidated(Lead entity) : base(entity) + { } + public MarkLeadAsValidated() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/OpenSalesOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/OpenSalesOrder.cs new file mode 100644 index 00000000..0ced9921 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/OpenSalesOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class OpenSalesOrder : EntityAction + { + public OpenSalesOrder(SalesOrder entity) : base(entity) + { } + public OpenSalesOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/OpenTimeEntry.cs b/Acumatica.Default_18.200.001/Model/Actions/OpenTimeEntry.cs new file mode 100644 index 00000000..9c1595f5 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/OpenTimeEntry.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class OpenTimeEntry : EntityAction + { + public OpenTimeEntry(TimeEntry entity) : base(entity) + { } + public OpenTimeEntry() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/PrepareInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/PrepareInvoice.cs new file mode 100644 index 00000000..ebbe8d2f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/PrepareInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PrepareInvoice : EntityAction + { + public PrepareInvoice(Shipment entity) : base(entity) + { } + public PrepareInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/PrepareSalesInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/PrepareSalesInvoice.cs new file mode 100644 index 00000000..d02b983a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/PrepareSalesInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PrepareSalesInvoice : EntityAction + { + public PrepareSalesInvoice(SalesOrder entity) : base(entity) + { } + public PrepareSalesInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ProcessAllEmailProcessing.cs b/Acumatica.Default_18.200.001/Model/Actions/ProcessAllEmailProcessing.cs new file mode 100644 index 00000000..4b4049fc --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ProcessAllEmailProcessing.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProcessAllEmailProcessing : EntityAction + { + public ProcessAllEmailProcessing(EmailProcessing entity) : base(entity) + { } + public ProcessAllEmailProcessing() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ProcessAllManageFinancialPeriods.cs b/Acumatica.Default_18.200.001/Model/Actions/ProcessAllManageFinancialPeriods.cs new file mode 100644 index 00000000..d589d0e1 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ProcessAllManageFinancialPeriods.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProcessAllManageFinancialPeriods : EntityAction + { + public ProcessAllManageFinancialPeriods(ManageFinancialPeriods entity) : base(entity) + { } + public ProcessAllManageFinancialPeriods() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ProcessEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/ProcessEmail.cs new file mode 100644 index 00000000..07c4e82a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ProcessEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProcessEmail : EntityAction + { + public ProcessEmail(Email entity) : base(entity) + { } + public ProcessEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ProcessEmailProcessing.cs b/Acumatica.Default_18.200.001/Model/Actions/ProcessEmailProcessing.cs new file mode 100644 index 00000000..4d88f90a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ProcessEmailProcessing.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProcessEmailProcessing : EntityAction + { + public ProcessEmailProcessing(EmailProcessing entity) : base(entity) + { } + public ProcessEmailProcessing() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ProcessManageFinancialPeriods.cs b/Acumatica.Default_18.200.001/Model/Actions/ProcessManageFinancialPeriods.cs new file mode 100644 index 00000000..7ed61f29 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ProcessManageFinancialPeriods.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProcessManageFinancialPeriods : EntityAction + { + public ProcessManageFinancialPeriods(ManageFinancialPeriods entity) : base(entity) + { } + public ProcessManageFinancialPeriods() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ProjectBillingProcess.cs b/Acumatica.Default_18.200.001/Model/Actions/ProjectBillingProcess.cs new file mode 100644 index 00000000..96944044 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ProjectBillingProcess.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectBillingProcess : EntityAction + { + public ProjectBillingProcess(ProjectBilling entity) : base(entity) + { } + public ProjectBillingProcess() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ProjectBillingProcessAll.cs b/Acumatica.Default_18.200.001/Model/Actions/ProjectBillingProcessAll.cs new file mode 100644 index 00000000..c4f2f3c8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ProjectBillingProcessAll.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectBillingProcessAll : EntityAction + { + public ProjectBillingProcessAll(ProjectBilling entity) : base(entity) + { } + public ProjectBillingProcessAll() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/PutOnHoldExpenseClaim.cs b/Acumatica.Default_18.200.001/Model/Actions/PutOnHoldExpenseClaim.cs new file mode 100644 index 00000000..a2af4873 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/PutOnHoldExpenseClaim.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PutOnHoldExpenseClaim : EntityAction + { + public PutOnHoldExpenseClaim(ExpenseClaim entity) : base(entity) + { } + public PutOnHoldExpenseClaim() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/PutOnHoldExpenseReceipt.cs b/Acumatica.Default_18.200.001/Model/Actions/PutOnHoldExpenseReceipt.cs new file mode 100644 index 00000000..802ee5ce --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/PutOnHoldExpenseReceipt.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PutOnHoldExpenseReceipt : EntityAction + { + public PutOnHoldExpenseReceipt(ExpenseReceipt entity) : base(entity) + { } + public PutOnHoldExpenseReceipt() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/RejectChangeOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/RejectChangeOrder.cs new file mode 100644 index 00000000..78ab052a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/RejectChangeOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RejectChangeOrder : EntityAction + { + public RejectChangeOrder(ChangeOrder entity) : base(entity) + { } + public RejectChangeOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/RejectExpenseClaim.cs b/Acumatica.Default_18.200.001/Model/Actions/RejectExpenseClaim.cs new file mode 100644 index 00000000..7a1f8784 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/RejectExpenseClaim.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RejectExpenseClaim : EntityAction + { + public RejectExpenseClaim(ExpenseClaim entity) : base(entity) + { } + public RejectExpenseClaim() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/RejectExpenseReceipt.cs b/Acumatica.Default_18.200.001/Model/Actions/RejectExpenseReceipt.cs new file mode 100644 index 00000000..48c427da --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/RejectExpenseReceipt.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RejectExpenseReceipt : EntityAction + { + public RejectExpenseReceipt(ExpenseReceipt entity) : base(entity) + { } + public RejectExpenseReceipt() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/RejectInvitationEvent.cs b/Acumatica.Default_18.200.001/Model/Actions/RejectInvitationEvent.cs new file mode 100644 index 00000000..80440121 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/RejectInvitationEvent.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RejectInvitationEvent : EntityAction + { + public RejectInvitationEvent(Event entity) : base(entity) + { } + public RejectInvitationEvent() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/RejectProFormaInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/RejectProFormaInvoice.cs new file mode 100644 index 00000000..12200958 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/RejectProFormaInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RejectProFormaInvoice : EntityAction + { + public RejectProFormaInvoice(ProFormaInvoice entity) : base(entity) + { } + public RejectProFormaInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/RejectProject.cs b/Acumatica.Default_18.200.001/Model/Actions/RejectProject.cs new file mode 100644 index 00000000..36257293 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/RejectProject.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RejectProject : EntityAction + { + public RejectProject(Project entity) : base(entity) + { } + public RejectProject() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseAdjustment.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseAdjustment.cs new file mode 100644 index 00000000..97df90f2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseAdjustment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseAdjustment : EntityAction + { + public ReleaseAdjustment(Adjustment entity) : base(entity) + { } + public ReleaseAdjustment() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseBill.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseBill.cs new file mode 100644 index 00000000..a697dab5 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseBill.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseBill : EntityAction + { + public ReleaseBill(Bill entity) : base(entity) + { } + public ReleaseBill() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseCase.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseCase.cs new file mode 100644 index 00000000..6f33b396 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseCase.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseCase : EntityAction + { + public ReleaseCase(Case entity) : base(entity) + { } + public ReleaseCase() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseCashSale.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseCashSale.cs new file mode 100644 index 00000000..e221fac8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseCashSale.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseCashSale : EntityAction + { + public ReleaseCashSale(CashSale entity) : base(entity) + { } + public ReleaseCashSale() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseChangeOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseChangeOrder.cs new file mode 100644 index 00000000..0e779d4e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseChangeOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseChangeOrder : EntityAction + { + public ReleaseChangeOrder(ChangeOrder entity) : base(entity) + { } + public ReleaseChangeOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseCheck.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseCheck.cs new file mode 100644 index 00000000..88bc70ee --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseCheck.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseCheck : EntityAction + { + public ReleaseCheck(Check entity) : base(entity) + { } + public ReleaseCheck() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseExpenseClaim.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseExpenseClaim.cs new file mode 100644 index 00000000..a87be1fb --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseExpenseClaim.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseExpenseClaim : EntityAction + { + public ReleaseExpenseClaim(ExpenseClaim entity) : base(entity) + { } + public ReleaseExpenseClaim() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseFromCreditHoldSalesOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseFromCreditHoldSalesOrder.cs new file mode 100644 index 00000000..5e383939 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseFromCreditHoldSalesOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseFromCreditHoldSalesOrder : EntityAction + { + public ReleaseFromCreditHoldSalesOrder(SalesOrder entity) : base(entity) + { } + public ReleaseFromCreditHoldSalesOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseInventoryReceipt.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseInventoryReceipt.cs new file mode 100644 index 00000000..23808862 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseInventoryReceipt.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseInventoryReceipt : EntityAction + { + public ReleaseInventoryReceipt(InventoryReceipt entity) : base(entity) + { } + public ReleaseInventoryReceipt() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseInvoice.cs new file mode 100644 index 00000000..6ca3e153 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseInvoice : EntityAction + { + public ReleaseInvoice(Invoice entity) : base(entity) + { } + public ReleaseInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseJournalTransaction.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseJournalTransaction.cs new file mode 100644 index 00000000..15f0d6e2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseJournalTransaction.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseJournalTransaction : EntityAction + { + public ReleaseJournalTransaction(JournalTransaction entity) : base(entity) + { } + public ReleaseJournalTransaction() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseJournalVoucher.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseJournalVoucher.cs new file mode 100644 index 00000000..d31d5aed --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseJournalVoucher.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseJournalVoucher : EntityAction + { + public ReleaseJournalVoucher(JournalVoucher entity) : base(entity) + { } + public ReleaseJournalVoucher() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseKitAssembly.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseKitAssembly.cs new file mode 100644 index 00000000..d30eaa94 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseKitAssembly.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseKitAssembly : EntityAction + { + public ReleaseKitAssembly(KitAssembly entity) : base(entity) + { } + public ReleaseKitAssembly() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleasePayment.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleasePayment.cs new file mode 100644 index 00000000..3fae3e8a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleasePayment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleasePayment : EntityAction + { + public ReleasePayment(Payment entity) : base(entity) + { } + public ReleasePayment() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseProFormaInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseProFormaInvoice.cs new file mode 100644 index 00000000..a2266d30 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseProFormaInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseProFormaInvoice : EntityAction + { + public ReleaseProFormaInvoice(ProFormaInvoice entity) : base(entity) + { } + public ReleaseProFormaInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleasePurchaseReceipt.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleasePurchaseReceipt.cs new file mode 100644 index 00000000..043ed7af --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleasePurchaseReceipt.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleasePurchaseReceipt : EntityAction + { + public ReleasePurchaseReceipt(PurchaseReceipt entity) : base(entity) + { } + public ReleasePurchaseReceipt() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseSalesInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseSalesInvoice.cs new file mode 100644 index 00000000..34f194b1 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseSalesInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseSalesInvoice : EntityAction + { + public ReleaseSalesInvoice(SalesInvoice entity) : base(entity) + { } + public ReleaseSalesInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs new file mode 100644 index 00000000..7505efe2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseSalesPriceWorksheet : EntityAction + { + public ReleaseSalesPriceWorksheet(SalesPriceWorksheet entity) : base(entity) + { } + public ReleaseSalesPriceWorksheet() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseTransactions.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseTransactions.cs new file mode 100644 index 00000000..6eb31830 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseTransactions.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseTransactions : EntityAction + { + public ReleaseTransactions(ProjectTransaction entity) : base(entity) + { } + public ReleaseTransactions() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseTransferOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseTransferOrder.cs new file mode 100644 index 00000000..a84133bc --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseTransferOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseTransferOrder : EntityAction + { + public ReleaseTransferOrder(TransferOrder entity) : base(entity) + { } + public ReleaseTransferOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseTrialBalance.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseTrialBalance.cs new file mode 100644 index 00000000..534f47ba --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseTrialBalance.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseTrialBalance : EntityAction + { + public ReleaseTrialBalance(TrialBalance entity) : base(entity) + { } + public ReleaseTrialBalance() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs b/Acumatica.Default_18.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs new file mode 100644 index 00000000..ef5f3810 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReleaseVendorPriceWorksheet : EntityAction + { + public ReleaseVendorPriceWorksheet(VendorPriceWorksheet entity) : base(entity) + { } + public ReleaseVendorPriceWorksheet() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReopenSalesOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/ReopenSalesOrder.cs new file mode 100644 index 00000000..83e2e059 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReopenSalesOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReopenSalesOrder : EntityAction + { + public ReopenSalesOrder(SalesOrder entity) : base(entity) + { } + public ReopenSalesOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/RestoreArchivedEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/RestoreArchivedEmail.cs new file mode 100644 index 00000000..c4d0a619 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/RestoreArchivedEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RestoreArchivedEmail : EntityAction + { + public RestoreArchivedEmail(Email entity) : base(entity) + { } + public RestoreArchivedEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/RestoreDeletedEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/RestoreDeletedEmail.cs new file mode 100644 index 00000000..3a33a14a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/RestoreDeletedEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RestoreDeletedEmail : EntityAction + { + public RestoreDeletedEmail(Email entity) : base(entity) + { } + public RestoreDeletedEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReverseBill.cs b/Acumatica.Default_18.200.001/Model/Actions/ReverseBill.cs new file mode 100644 index 00000000..f4958c0f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReverseBill.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReverseBill : EntityAction + { + public ReverseBill(Bill entity) : base(entity) + { } + public ReverseBill() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReverseChangeOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/ReverseChangeOrder.cs new file mode 100644 index 00000000..ec64eeec --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReverseChangeOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReverseChangeOrder : EntityAction + { + public ReverseChangeOrder(ChangeOrder entity) : base(entity) + { } + public ReverseChangeOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ReverseInvoice.cs b/Acumatica.Default_18.200.001/Model/Actions/ReverseInvoice.cs new file mode 100644 index 00000000..4fe437fb --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ReverseInvoice.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReverseInvoice : EntityAction + { + public ReverseInvoice(Invoice entity) : base(entity) + { } + public ReverseInvoice() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/RunProjectAllocation.cs b/Acumatica.Default_18.200.001/Model/Actions/RunProjectAllocation.cs new file mode 100644 index 00000000..1cf43b3b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/RunProjectAllocation.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RunProjectAllocation : EntityAction + { + public RunProjectAllocation(Project entity) : base(entity) + { } + public RunProjectAllocation() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/RunProjectBilling.cs b/Acumatica.Default_18.200.001/Model/Actions/RunProjectBilling.cs new file mode 100644 index 00000000..f879079e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/RunProjectBilling.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RunProjectBilling : EntityAction + { + public RunProjectBilling(Project entity) : base(entity) + { } + public RunProjectBilling() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/SalesInvoiceAddOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/SalesInvoiceAddOrder.cs new file mode 100644 index 00000000..fb4549ca --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/SalesInvoiceAddOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceAddOrder : EntityAction + { + public SalesInvoiceAddOrder(SalesInvoice entity) : base(entity) + { } + public SalesInvoiceAddOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/SalesInvoiceAutoApply.cs b/Acumatica.Default_18.200.001/Model/Actions/SalesInvoiceAutoApply.cs new file mode 100644 index 00000000..0e39e933 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/SalesInvoiceAutoApply.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceAutoApply : EntityAction + { + public SalesInvoiceAutoApply(SalesInvoice entity) : base(entity) + { } + public SalesInvoiceAutoApply() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/SalesOrderCreatePurchaseOrder.cs b/Acumatica.Default_18.200.001/Model/Actions/SalesOrderCreatePurchaseOrder.cs new file mode 100644 index 00000000..463e646f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/SalesOrderCreatePurchaseOrder.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesOrderCreatePurchaseOrder : EntityAction + { + public SalesOrderCreatePurchaseOrder(SalesOrder entity) : base(entity) + { } + public SalesOrderCreatePurchaseOrder() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/SendEmail.cs b/Acumatica.Default_18.200.001/Model/Actions/SendEmail.cs new file mode 100644 index 00000000..856a4ce2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/SendEmail.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SendEmail : EntityAction + { + public SendEmail(Email entity) : base(entity) + { } + public SendEmail() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/SubmitExpenseClaim.cs b/Acumatica.Default_18.200.001/Model/Actions/SubmitExpenseClaim.cs new file mode 100644 index 00000000..f0361531 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/SubmitExpenseClaim.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SubmitExpenseClaim : EntityAction + { + public SubmitExpenseClaim(ExpenseClaim entity) : base(entity) + { } + public SubmitExpenseClaim() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/SubmitExpenseReceipt.cs b/Acumatica.Default_18.200.001/Model/Actions/SubmitExpenseReceipt.cs new file mode 100644 index 00000000..0fa6fc55 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/SubmitExpenseReceipt.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SubmitExpenseReceipt : EntityAction + { + public SubmitExpenseReceipt(ExpenseReceipt entity) : base(entity) + { } + public SubmitExpenseReceipt() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/TakeCase.cs b/Acumatica.Default_18.200.001/Model/Actions/TakeCase.cs new file mode 100644 index 00000000..e604c908 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/TakeCase.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TakeCase : EntityAction + { + public TakeCase(Case entity) : base(entity) + { } + public TakeCase() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/TrialBalanceProcess.cs b/Acumatica.Default_18.200.001/Model/Actions/TrialBalanceProcess.cs new file mode 100644 index 00000000..ac07de4b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/TrialBalanceProcess.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TrialBalanceProcess : EntityAction + { + public TrialBalanceProcess(TrialBalance entity) : base(entity) + { } + public TrialBalanceProcess() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/TrialBalanceProcessAll.cs b/Acumatica.Default_18.200.001/Model/Actions/TrialBalanceProcessAll.cs new file mode 100644 index 00000000..dccaf316 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/TrialBalanceProcessAll.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TrialBalanceProcessAll : EntityAction + { + public TrialBalanceProcessAll(TrialBalance entity) : base(entity) + { } + public TrialBalanceProcessAll() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/UnlockProjectBudget.cs b/Acumatica.Default_18.200.001/Model/Actions/UnlockProjectBudget.cs new file mode 100644 index 00000000..09472a3f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/UnlockProjectBudget.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class UnlockProjectBudget : EntityAction + { + public UnlockProjectBudget(Project entity) : base(entity) + { } + public UnlockProjectBudget() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/UnlockProjectCommitments.cs b/Acumatica.Default_18.200.001/Model/Actions/UnlockProjectCommitments.cs new file mode 100644 index 00000000..7e37af9e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/UnlockProjectCommitments.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class UnlockProjectCommitments : EntityAction + { + public UnlockProjectCommitments(Project entity) : base(entity) + { } + public UnlockProjectCommitments() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/UpdateIN.cs b/Acumatica.Default_18.200.001/Model/Actions/UpdateIN.cs new file mode 100644 index 00000000..3a174a4f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/UpdateIN.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class UpdateIN : EntityAction + { + public UpdateIN(Shipment entity) : base(entity) + { } + public UpdateIN() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs b/Acumatica.Default_18.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs new file mode 100644 index 00000000..0f64cc35 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class UpdateStandardCostNonStockItem : EntityAction + { + public UpdateStandardCostNonStockItem(NonStockItem entity) : base(entity) + { } + public UpdateStandardCostNonStockItem() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/UpdateStandardCostStockItem.cs b/Acumatica.Default_18.200.001/Model/Actions/UpdateStandardCostStockItem.cs new file mode 100644 index 00000000..4699f7d0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/UpdateStandardCostStockItem.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class UpdateStandardCostStockItem : EntityAction + { + public UpdateStandardCostStockItem(StockItem entity) : base(entity) + { } + public UpdateStandardCostStockItem() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs b/Acumatica.Default_18.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs new file mode 100644 index 00000000..b99ced9b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ValidateBusinessAccountAddresses : EntityAction + { + public ValidateBusinessAccountAddresses(BusinessAccount entity) : base(entity) + { } + public ValidateBusinessAccountAddresses() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ValidateContactAddress.cs b/Acumatica.Default_18.200.001/Model/Actions/ValidateContactAddress.cs new file mode 100644 index 00000000..087496f4 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ValidateContactAddress.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ValidateContactAddress : EntityAction + { + public ValidateContactAddress(Contact entity) : base(entity) + { } + public ValidateContactAddress() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ValidateLeadAddress.cs b/Acumatica.Default_18.200.001/Model/Actions/ValidateLeadAddress.cs new file mode 100644 index 00000000..714b8975 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ValidateLeadAddress.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ValidateLeadAddress : EntityAction + { + public ValidateLeadAddress(Lead entity) : base(entity) + { } + public ValidateLeadAddress() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/ValidateProjectBalance.cs b/Acumatica.Default_18.200.001/Model/Actions/ValidateProjectBalance.cs new file mode 100644 index 00000000..a78e6c40 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/ValidateProjectBalance.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ValidateProjectBalance : EntityAction + { + public ValidateProjectBalance(Project entity) : base(entity) + { } + public ValidateProjectBalance() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Actions/VoidPayment.cs b/Acumatica.Default_18.200.001/Model/Actions/VoidPayment.cs new file mode 100644 index 00000000..2fff7aed --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Actions/VoidPayment.cs @@ -0,0 +1,14 @@ +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class VoidPayment : EntityAction + { + public VoidPayment(Payment entity) : base(entity) + { } + public VoidPayment() : base() + { } + } +} diff --git a/Acumatica.Default_18.200.001/Model/Activity.cs b/Acumatica.Default_18.200.001/Model/Activity.cs new file mode 100644 index 00000000..ebc8571f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Activity.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Activity : Entity + { + + [DataMember(Name="Body", EmitDefaultValue=false)] + public StringValue Body { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Internal", EmitDefaultValue=false)] + public BooleanValue Internal { get; set; } + + [DataMember(Name="NoteID", EmitDefaultValue=false)] + public GuidValue NoteID { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] + public StringValue RelatedEntityDescription { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } + + [DataMember(Name="Task", EmitDefaultValue=false)] + public StringValue Task { get; set; } + + [DataMember(Name="TimeActivity", EmitDefaultValue=false)] + public TimeActivity TimeActivity { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ActivityDetail.cs b/Acumatica.Default_18.200.001/Model/ActivityDetail.cs new file mode 100644 index 00000000..82fb22e9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ActivityDetail.cs @@ -0,0 +1,69 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ActivityDetail : Entity + { + + [DataMember(Name="ClassIcon", EmitDefaultValue=false)] + public StringValue ClassIcon { get; set; } + + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTimeValue CreatedAt { get; set; } + + [DataMember(Name="CreatorID", EmitDefaultValue=false)] + public StringValue CreatorID { get; set; } + + [DataMember(Name="CreatorUsername", EmitDefaultValue=false)] + public StringValue CreatorUsername { get; set; } + + [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] + public StringValue IsCompleteIcon { get; set; } + + [DataMember(Name="NoteID", EmitDefaultValue=false)] + public GuidValue NoteID { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] + public StringValue PriorityIcon { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="RefNoteID", EmitDefaultValue=false)] + public GuidValue RefNoteID { get; set; } + + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } + + [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] + public StringValue ReminderIcon { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] + public StringValue WorkgroupID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Address.cs b/Acumatica.Default_18.200.001/Model/Address.cs new file mode 100644 index 00000000..f20bba7c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Address.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Address : Entity + { + + [DataMember(Name="AddressLine1", EmitDefaultValue=false)] + public StringValue AddressLine1 { get; set; } + + [DataMember(Name="AddressLine2", EmitDefaultValue=false)] + public StringValue AddressLine2 { get; set; } + + [DataMember(Name="City", EmitDefaultValue=false)] + public StringValue City { get; set; } + + [DataMember(Name="Country", EmitDefaultValue=false)] + public StringValue Country { get; set; } + + [DataMember(Name="PostalCode", EmitDefaultValue=false)] + public StringValue PostalCode { get; set; } + + [DataMember(Name="State", EmitDefaultValue=false)] + public StringValue State { get; set; } + + [DataMember(Name="Validated", EmitDefaultValue=false)] + public BooleanValue Validated { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Adjustment.cs b/Acumatica.Default_18.200.001/Model/Adjustment.cs new file mode 100644 index 00000000..494d4dab --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Adjustment.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Adjustment : Entity + { + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="ExternalRef", EmitDefaultValue=false)] + public StringValue ExternalRef { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TotalCost", EmitDefaultValue=false)] + public DecimalValue TotalCost { get; set; } + + [DataMember(Name="TotalQty", EmitDefaultValue=false)] + public DecimalValue TotalQty { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AdjustmentDetail.cs b/Acumatica.Default_18.200.001/Model/AdjustmentDetail.cs new file mode 100644 index 00000000..b361d7d7 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AdjustmentDetail.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AdjustmentDetail : Entity + { + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] + public DecimalValue ExtendedCost { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } + + [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] + public StringValue ReceiptNbr { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AllocationRule.cs b/Acumatica.Default_18.200.001/Model/AllocationRule.cs new file mode 100644 index 00000000..f02f073f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AllocationRule.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AllocationRule : Entity + { + + [DataMember(Name="AllocationRuleID", EmitDefaultValue=false)] + public StringValue AllocationRuleID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Approval.cs b/Acumatica.Default_18.200.001/Model/Approval.cs new file mode 100644 index 00000000..99482956 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Approval.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Approval : Entity + { + + [DataMember(Name="ApprovedBy", EmitDefaultValue=false)] + public StringValue ApprovedBy { get; set; } + + [DataMember(Name="ApprovedByName", EmitDefaultValue=false)] + public StringValue ApprovedByName { get; set; } + + [DataMember(Name="Approver", EmitDefaultValue=false)] + public StringValue Approver { get; set; } + + [DataMember(Name="ApproverName", EmitDefaultValue=false)] + public StringValue ApproverName { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AttributeDefinition.cs b/Acumatica.Default_18.200.001/Model/AttributeDefinition.cs new file mode 100644 index 00000000..d8304252 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AttributeDefinition.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AttributeDefinition : Entity + { + + [DataMember(Name="AttributeID", EmitDefaultValue=false)] + public StringValue AttributeID { get; set; } + + [DataMember(Name="ControlType", EmitDefaultValue=false)] + public StringValue ControlType { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EntryMask", EmitDefaultValue=false)] + public StringValue EntryMask { get; set; } + + [DataMember(Name="Internal", EmitDefaultValue=false)] + public BooleanValue Internal { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="RegExp", EmitDefaultValue=false)] + public StringValue RegExp { get; set; } + + [DataMember(Name="Values", EmitDefaultValue=false)] + public List Values { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AttributeDefinitionValue.cs b/Acumatica.Default_18.200.001/Model/AttributeDefinitionValue.cs new file mode 100644 index 00000000..81084a0e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AttributeDefinitionValue.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AttributeDefinitionValue : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Disabled", EmitDefaultValue=false)] + public BooleanValue Disabled { get; set; } + + [DataMember(Name="SortOrder", EmitDefaultValue=false)] + public ShortValue SortOrder { get; set; } + + [DataMember(Name="ValueID", EmitDefaultValue=false)] + public StringValue ValueID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AttributeDetail.cs b/Acumatica.Default_18.200.001/Model/AttributeDetail.cs new file mode 100644 index 00000000..097fd57e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AttributeDetail.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AttributeDetail : Entity + { + + [DataMember(Name="Attribute", EmitDefaultValue=false)] + public StringValue Attribute { get; set; } + + [DataMember(Name="RefNoteID", EmitDefaultValue=false)] + public GuidValue RefNoteID { get; set; } + + [DataMember(Name="Required", EmitDefaultValue=false)] + public BooleanValue Required { get; set; } + + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/AttributeValue.cs b/Acumatica.Default_18.200.001/Model/AttributeValue.cs new file mode 100644 index 00000000..855218e6 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/AttributeValue.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class AttributeValue : Entity + { + + [DataMember(Name="AttributeID", EmitDefaultValue=false)] + public StringValue AttributeID { get; set; } + + [DataMember(Name="Required", EmitDefaultValue=false)] + public BooleanValue Required { get; set; } + + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Bill.cs b/Acumatica.Default_18.200.001/Model/Bill.cs new file mode 100644 index 00000000..6e784cf8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Bill.cs @@ -0,0 +1,81 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Bill : Entity + { + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="Applications", EmitDefaultValue=false)] + public List Applications { get; set; } + + [DataMember(Name="ApprovedForPayment", EmitDefaultValue=false)] + public BooleanValue ApprovedForPayment { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } + + [DataMember(Name="VendorRef", EmitDefaultValue=false)] + public StringValue VendorRef { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BillApplicationDetail.cs b/Acumatica.Default_18.200.001/Model/BillApplicationDetail.cs new file mode 100644 index 00000000..49ea0a99 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BillApplicationDetail.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BillApplicationDetail : Entity + { + + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BillDetail.cs b/Acumatica.Default_18.200.001/Model/BillDetail.cs new file mode 100644 index 00000000..238361f5 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BillDetail.cs @@ -0,0 +1,78 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BillDetail : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CalculateDiscountsOnImport", EmitDefaultValue=false)] + public BooleanValue CalculateDiscountsOnImport { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] + public DecimalValue ExtendedCost { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="NonBillable", EmitDefaultValue=false)] + public BooleanValue NonBillable { get; set; } + + [DataMember(Name="POLine", EmitDefaultValue=false)] + public IntValue POLine { get; set; } + + [DataMember(Name="POOrderNbr", EmitDefaultValue=false)] + public StringValue POOrderNbr { get; set; } + + [DataMember(Name="POOrderType", EmitDefaultValue=false)] + public StringValue POOrderType { get; set; } + + [DataMember(Name="POReceiptLine", EmitDefaultValue=false)] + public IntValue POReceiptLine { get; set; } + + [DataMember(Name="POReceiptNbr", EmitDefaultValue=false)] + public StringValue POReceiptNbr { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BillTaxDetail.cs b/Acumatica.Default_18.200.001/Model/BillTaxDetail.cs new file mode 100644 index 00000000..ed4a9063 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BillTaxDetail.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BillTaxDetail : Entity + { + + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BillToSettings.cs b/Acumatica.Default_18.200.001/Model/BillToSettings.cs new file mode 100644 index 00000000..c534f3ec --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BillToSettings.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BillToSettings : Entity + { + + [DataMember(Name="BillToAddress", EmitDefaultValue=false)] + public Address BillToAddress { get; set; } + + [DataMember(Name="BillToAddressOverride", EmitDefaultValue=false)] + public BooleanValue BillToAddressOverride { get; set; } + + [DataMember(Name="BillToContact", EmitDefaultValue=false)] + public DocContact BillToContact { get; set; } + + [DataMember(Name="BillToContactOverride", EmitDefaultValue=false)] + public BooleanValue BillToContactOverride { get; set; } + + [DataMember(Name="CustomerLocation", EmitDefaultValue=false)] + public StringValue CustomerLocation { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BoxStockItem.cs b/Acumatica.Default_18.200.001/Model/BoxStockItem.cs new file mode 100644 index 00000000..688b721f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BoxStockItem.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BoxStockItem : Entity + { + + [DataMember(Name="BoxID", EmitDefaultValue=false)] + public StringValue BoxID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="MaxQty", EmitDefaultValue=false)] + public DecimalValue MaxQty { get; set; } + + [DataMember(Name="MaxVolume", EmitDefaultValue=false)] + public DecimalValue MaxVolume { get; set; } + + [DataMember(Name="MaxWeight", EmitDefaultValue=false)] + public DecimalValue MaxWeight { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccount.cs b/Acumatica.Default_18.200.001/Model/BusinessAccount.cs new file mode 100644 index 00000000..eef29dab --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccount.cs @@ -0,0 +1,120 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccount : Entity + { + + [DataMember(Name="AccountRef", EmitDefaultValue=false)] + public StringValue AccountRef { get; set; } + + [DataMember(Name="Activities", EmitDefaultValue=false)] + public List Activities { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] + public StringValue BusinessAccountID { get; set; } + + [DataMember(Name="Campaigns", EmitDefaultValue=false)] + public List Campaigns { get; set; } + + [DataMember(Name="Cases", EmitDefaultValue=false)] + public List Cases { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="Contacts", EmitDefaultValue=false)] + public List Contacts { get; set; } + + [DataMember(Name="Contracts", EmitDefaultValue=false)] + public List Contracts { get; set; } + + [DataMember(Name="DefaultLocationSettings", EmitDefaultValue=false)] + public BusinessAccountDefaultLocationSetting DefaultLocationSettings { get; set; } + + [DataMember(Name="Duplicate", EmitDefaultValue=false)] + public StringValue Duplicate { get; set; } + + [DataMember(Name="Duplicates", EmitDefaultValue=false)] + public List Duplicates { get; set; } + + [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] + public DateTimeValue LastIncomingActivity { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] + public DateTimeValue LastOutgoingActivity { get; set; } + + [DataMember(Name="Locations", EmitDefaultValue=false)] + public List Locations { get; set; } + + [DataMember(Name="MainAddress", EmitDefaultValue=false)] + public Address MainAddress { get; set; } + + [DataMember(Name="MainAddressValidated", EmitDefaultValue=false)] + public BooleanValue MainAddressValidated { get; set; } + + [DataMember(Name="MainContact", EmitDefaultValue=false)] + public BusinessAccountMainContact MainContact { get; set; } + + [DataMember(Name="MarketingLists", EmitDefaultValue=false)] + public List MarketingLists { get; set; } + + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } + + [DataMember(Name="Opportunities", EmitDefaultValue=false)] + public List Opportunities { get; set; } + + [DataMember(Name="Orders", EmitDefaultValue=false)] + public List Orders { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] + public StringValue OwnerEmployeeName { get; set; } + + [DataMember(Name="ParentAccount", EmitDefaultValue=false)] + public StringValue ParentAccount { get; set; } + + [DataMember(Name="Relations", EmitDefaultValue=false)] + public List Relations { get; set; } + + [DataMember(Name="ShippingAddress", EmitDefaultValue=false)] + public Address ShippingAddress { get; set; } + + [DataMember(Name="ShippingAddressSameAsMain", EmitDefaultValue=false)] + public BooleanValue ShippingAddressSameAsMain { get; set; } + + [DataMember(Name="ShippingAddressValidated", EmitDefaultValue=false)] + public BooleanValue ShippingAddressValidated { get; set; } + + [DataMember(Name="ShippingContact", EmitDefaultValue=false)] + public BusinessAccountShippingContact ShippingContact { get; set; } + + [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] + public StringValue SourceCampaign { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] + public StringValue WorkgroupDescription { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountActivityDetail.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountActivityDetail.cs new file mode 100644 index 00000000..db166283 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountActivityDetail.cs @@ -0,0 +1,72 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountActivityDetail : Entity + { + + [DataMember(Name="ClassIcon", EmitDefaultValue=false)] + public StringValue ClassIcon { get; set; } + + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTimeValue CreatedAt { get; set; } + + [DataMember(Name="CreatorID", EmitDefaultValue=false)] + public StringValue CreatorID { get; set; } + + [DataMember(Name="CreatorUsername", EmitDefaultValue=false)] + public StringValue CreatorUsername { get; set; } + + [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] + public StringValue IsCompleteIcon { get; set; } + + [DataMember(Name="NoteID", EmitDefaultValue=false)] + public GuidValue NoteID { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] + public StringValue PriorityIcon { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="RefNoteID", EmitDefaultValue=false)] + public GuidValue RefNoteID { get; set; } + + [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] + public StringValue RelatedEntityDescription { get; set; } + + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } + + [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] + public StringValue ReminderIcon { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountCaseDetail.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountCaseDetail.cs new file mode 100644 index 00000000..3e91ce38 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountCaseDetail.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountCaseDetail : Entity + { + + [DataMember(Name="CaseID", EmitDefaultValue=false)] + public StringValue CaseID { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="ClosingDate", EmitDefaultValue=false)] + public DateTimeValue ClosingDate { get; set; } + + [DataMember(Name="Contract", EmitDefaultValue=false)] + public StringValue Contract { get; set; } + + [DataMember(Name="DateReported", EmitDefaultValue=false)] + public DateTimeValue DateReported { get; set; } + + [DataMember(Name="Estimation", EmitDefaultValue=false)] + public StringValue Estimation { get; set; } + + [DataMember(Name="InitialResponse", EmitDefaultValue=false)] + public StringValue InitialResponse { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } + + [DataMember(Name="Severity", EmitDefaultValue=false)] + public StringValue Severity { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountClassAttributeDetail.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountClassAttributeDetail.cs new file mode 100644 index 00000000..1de96d02 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountClassAttributeDetail.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountClassAttributeDetail : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="AttributeID", EmitDefaultValue=false)] + public StringValue AttributeID { get; set; } + + [DataMember(Name="DefaultValue", EmitDefaultValue=false)] + public StringValue DefaultValue { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Required", EmitDefaultValue=false)] + public BooleanValue Required { get; set; } + + [DataMember(Name="SortOrder", EmitDefaultValue=false)] + public ShortValue SortOrder { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountContact.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountContact.cs new file mode 100644 index 00000000..3c166c41 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountContact.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountContact : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="City", EmitDefaultValue=false)] + public StringValue City { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="JobTitle", EmitDefaultValue=false)] + public StringValue JobTitle { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountContract.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountContract.cs new file mode 100644 index 00000000..95d6f90e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountContract.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountContract : Entity + { + + [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] + public StringValue BusinessAccountID { get; set; } + + [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] + public StringValue BusinessAccountName { get; set; } + + [DataMember(Name="ContractID", EmitDefaultValue=false)] + public StringValue ContractID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountDefaultLocationSetting.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountDefaultLocationSetting.cs new file mode 100644 index 00000000..d259d2c3 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountDefaultLocationSetting.cs @@ -0,0 +1,60 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountDefaultLocationSetting : Entity + { + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="Insurance", EmitDefaultValue=false)] + public BooleanValue Insurance { get; set; } + + [DataMember(Name="LeadTimeInDays", EmitDefaultValue=false)] + public ShortValue LeadTimeInDays { get; set; } + + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } + + [DataMember(Name="OrderPriority", EmitDefaultValue=false)] + public ShortValue OrderPriority { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } + + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } + + [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] + public StringValue ShippingBranch { get; set; } + + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShippingZone", EmitDefaultValue=false)] + public StringValue ShippingZone { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] + public StringValue TaxRegistrationID { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountLocation.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountLocation.cs new file mode 100644 index 00000000..8d2a1db9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountLocation.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountLocation : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="City", EmitDefaultValue=false)] + public StringValue City { get; set; } + + [DataMember(Name="Country", EmitDefaultValue=false)] + public StringValue Country { get; set; } + + [DataMember(Name="Default", EmitDefaultValue=false)] + public BooleanValue Default { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="State", EmitDefaultValue=false)] + public StringValue State { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountMainContact.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountMainContact.cs new file mode 100644 index 00000000..b21a3185 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountMainContact.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountMainContact : Entity + { + + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } + + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public StringValue CompanyName { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } + + [DataMember(Name="JobTitle", EmitDefaultValue=false)] + public StringValue JobTitle { get; set; } + + [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] + public StringValue LanguageOrLocale { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } + + [DataMember(Name="Web", EmitDefaultValue=false)] + public StringValue Web { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountMarketingListDetail.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountMarketingListDetail.cs new file mode 100644 index 00000000..4b205883 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountMarketingListDetail.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountMarketingListDetail : Entity + { + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="DynamicList", EmitDefaultValue=false)] + public BooleanValue DynamicList { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Format", EmitDefaultValue=false)] + public StringValue Format { get; set; } + + [DataMember(Name="ListName", EmitDefaultValue=false)] + public StringValue ListName { get; set; } + + [DataMember(Name="MarketingListID", EmitDefaultValue=false)] + public IntValue MarketingListID { get; set; } + + [DataMember(Name="MemberName", EmitDefaultValue=false)] + public StringValue MemberName { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + [DataMember(Name="Subscribed", EmitDefaultValue=false)] + public BooleanValue Subscribed { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountOpportunityDetail.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountOpportunityDetail.cs new file mode 100644 index 00000000..a17c93b2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountOpportunityDetail.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountOpportunityDetail : Entity + { + + [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] + public StringValue BusinessAccountID { get; set; } + + [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] + public StringValue BusinessAccountName { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } + + [DataMember(Name="Estimation", EmitDefaultValue=false)] + public DateTimeValue Estimation { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="Probability", EmitDefaultValue=false)] + public IntValue Probability { get; set; } + + [DataMember(Name="Stage", EmitDefaultValue=false)] + public StringValue Stage { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="Total", EmitDefaultValue=false)] + public DecimalValue Total { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountOrder.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountOrder.cs new file mode 100644 index 00000000..0a9a80da --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountOrder.cs @@ -0,0 +1,54 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountOrder : Entity + { + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="OrderedQty", EmitDefaultValue=false)] + public DecimalValue OrderedQty { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderTotal", EmitDefaultValue=false)] + public DecimalValue OrderTotal { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="OrderVolume", EmitDefaultValue=false)] + public DecimalValue OrderVolume { get; set; } + + [DataMember(Name="OrderWeight", EmitDefaultValue=false)] + public DecimalValue OrderWeight { get; set; } + + [DataMember(Name="RequestedOn", EmitDefaultValue=false)] + public DateTimeValue RequestedOn { get; set; } + + [DataMember(Name="ScheduledShipment", EmitDefaultValue=false)] + public DateTimeValue ScheduledShipment { get; set; } + + [DataMember(Name="ShippingZone", EmitDefaultValue=false)] + public StringValue ShippingZone { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountPaymentInstructionDetail.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountPaymentInstructionDetail.cs new file mode 100644 index 00000000..25c1f350 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountPaymentInstructionDetail.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountPaymentInstructionDetail : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public IntValue LocationID { get; set; } + + [DataMember(Name="PaymentInstructionsID", EmitDefaultValue=false)] + public StringValue PaymentInstructionsID { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/BusinessAccountShippingContact.cs b/Acumatica.Default_18.200.001/Model/BusinessAccountShippingContact.cs new file mode 100644 index 00000000..7a27bb42 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/BusinessAccountShippingContact.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class BusinessAccountShippingContact : Entity + { + + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } + + [DataMember(Name="JobTitle", EmitDefaultValue=false)] + public StringValue JobTitle { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } + + [DataMember(Name="SameasMain", EmitDefaultValue=false)] + public BooleanValue SameasMain { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CampaignDetail.cs b/Acumatica.Default_18.200.001/Model/CampaignDetail.cs new file mode 100644 index 00000000..d2196653 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CampaignDetail.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CampaignDetail : Entity + { + + [DataMember(Name="CampaignID", EmitDefaultValue=false)] + public StringValue CampaignID { get; set; } + + [DataMember(Name="CampaignName", EmitDefaultValue=false)] + public StringValue CampaignName { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="Stage", EmitDefaultValue=false)] + public StringValue Stage { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Carrier.cs b/Acumatica.Default_18.200.001/Model/Carrier.cs new file mode 100644 index 00000000..d8fd0a38 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Carrier.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Carrier : Entity + { + + [DataMember(Name="CarrierID", EmitDefaultValue=false)] + public StringValue CarrierID { get; set; } + + [DataMember(Name="CarrierUnitOfWeight", EmitDefaultValue=false)] + public StringValue CarrierUnitOfWeight { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CustomerAccounts", EmitDefaultValue=false)] + public List CustomerAccounts { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="PlugInParameters", EmitDefaultValue=false)] + public List PlugInParameters { get; set; } + + [DataMember(Name="PlugInType", EmitDefaultValue=false)] + public StringValue PlugInType { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CarrierCustomerAccount.cs b/Acumatica.Default_18.200.001/Model/CarrierCustomerAccount.cs new file mode 100644 index 00000000..a9afd0c1 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CarrierCustomerAccount.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CarrierCustomerAccount : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="CarrierAccount", EmitDefaultValue=false)] + public StringValue CarrierAccount { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public StringValue CustomerName { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="PostalCode", EmitDefaultValue=false)] + public StringValue PostalCode { get; set; } + + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CarrierPluginParameter.cs b/Acumatica.Default_18.200.001/Model/CarrierPluginParameter.cs new file mode 100644 index 00000000..6cca7800 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CarrierPluginParameter.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CarrierPluginParameter : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="PluginID", EmitDefaultValue=false)] + public StringValue PluginID { get; set; } + + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Case.cs b/Acumatica.Default_18.200.001/Model/Case.cs new file mode 100644 index 00000000..0c8deb18 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Case.cs @@ -0,0 +1,120 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Case : Entity + { + + [DataMember(Name="Activities", EmitDefaultValue=false)] + public List Activities { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public IntValue BillableOvertime { get; set; } + + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public IntValue BillableTime { get; set; } + + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } + + [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] + public StringValue BusinessAccountName { get; set; } + + [DataMember(Name="CaseID", EmitDefaultValue=false)] + public StringValue CaseID { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="ClosingDate", EmitDefaultValue=false)] + public DateTimeValue ClosingDate { get; set; } + + [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] + public StringValue ContactDisplayName { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="Contract", EmitDefaultValue=false)] + public StringValue Contract { get; set; } + + [DataMember(Name="DateReported", EmitDefaultValue=false)] + public DateTimeValue DateReported { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InitialResponse", EmitDefaultValue=false)] + public StringValue InitialResponse { get; set; } + + [DataMember(Name="LastActivityDate", EmitDefaultValue=false)] + public DateTimeValue LastActivityDate { get; set; } + + [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] + public DateTimeValue LastIncomingActivity { get; set; } + + [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] + public DateTimeValue LastOutgoingActivity { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="ManualOverride", EmitDefaultValue=false)] + public BooleanValue ManualOverride { get; set; } + + [DataMember(Name="OvertimeSpent", EmitDefaultValue=false)] + public StringValue OvertimeSpent { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] + public StringValue OwnerEmployeeName { get; set; } + + [DataMember(Name="Priority", EmitDefaultValue=false)] + public StringValue Priority { get; set; } + + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } + + [DataMember(Name="RelatedCases", EmitDefaultValue=false)] + public List RelatedCases { get; set; } + + [DataMember(Name="Relations", EmitDefaultValue=false)] + public List Relations { get; set; } + + [DataMember(Name="ResolutionTime", EmitDefaultValue=false)] + public StringValue ResolutionTime { get; set; } + + [DataMember(Name="Severity", EmitDefaultValue=false)] + public StringValue Severity { get; set; } + + [DataMember(Name="SLA", EmitDefaultValue=false)] + public DateTimeValue SLA { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] + public StringValue WorkgroupDescription { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CaseActivityDetail.cs b/Acumatica.Default_18.200.001/Model/CaseActivityDetail.cs new file mode 100644 index 00000000..8ec77d0d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CaseActivityDetail.cs @@ -0,0 +1,84 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CaseActivityDetail : Entity + { + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } + + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } + + [DataMember(Name="Category", EmitDefaultValue=false)] + public StringValue Category { get; set; } + + [DataMember(Name="ClassIcon", EmitDefaultValue=false)] + public StringValue ClassIcon { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTimeValue CreatedAt { get; set; } + + [DataMember(Name="CreatedBy", EmitDefaultValue=false)] + public StringValue CreatedBy { get; set; } + + [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] + public StringValue IsCompleteIcon { get; set; } + + [DataMember(Name="NoteID", EmitDefaultValue=false)] + public GuidValue NoteID { get; set; } + + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] + public StringValue PriorityIcon { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="RefNoteID", EmitDefaultValue=false)] + public GuidValue RefNoteID { get; set; } + + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } + + [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] + public StringValue ReminderIcon { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CaseDetail.cs b/Acumatica.Default_18.200.001/Model/CaseDetail.cs new file mode 100644 index 00000000..7d9e90f5 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CaseDetail.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CaseDetail : Entity + { + + [DataMember(Name="CaseID", EmitDefaultValue=false)] + public StringValue CaseID { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="ClosingDate", EmitDefaultValue=false)] + public DateTimeValue ClosingDate { get; set; } + + [DataMember(Name="DateReported", EmitDefaultValue=false)] + public DateTimeValue DateReported { get; set; } + + [DataMember(Name="Estimation", EmitDefaultValue=false)] + public StringValue Estimation { get; set; } + + [DataMember(Name="InitialResponse", EmitDefaultValue=false)] + public StringValue InitialResponse { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } + + [DataMember(Name="Severity", EmitDefaultValue=false)] + public StringValue Severity { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CaseRelatedCase.cs b/Acumatica.Default_18.200.001/Model/CaseRelatedCase.cs new file mode 100644 index 00000000..3e2b5e56 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CaseRelatedCase.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CaseRelatedCase : Entity + { + + [DataMember(Name="CaseID", EmitDefaultValue=false)] + public StringValue CaseID { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="ParentCaseID", EmitDefaultValue=false)] + public IntValue ParentCaseID { get; set; } + + [DataMember(Name="RelationType", EmitDefaultValue=false)] + public StringValue RelationType { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CashSale.cs b/Acumatica.Default_18.200.001/Model/CashSale.cs new file mode 100644 index 00000000..9079a85a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CashSale.cs @@ -0,0 +1,63 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CashSale : Entity + { + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CashSaleDetail.cs b/Acumatica.Default_18.200.001/Model/CashSaleDetail.cs new file mode 100644 index 00000000..d107379e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CashSaleDetail.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CashSaleDetail : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] + public DecimalValue ExtendedPrice { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } + + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CategoryStockItem.cs b/Acumatica.Default_18.200.001/Model/CategoryStockItem.cs new file mode 100644 index 00000000..27235ee4 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CategoryStockItem.cs @@ -0,0 +1,15 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CategoryStockItem : Entity + { + + [DataMember(Name="CategoryID", EmitDefaultValue=false)] + public IntValue CategoryID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ChangeOrder.cs b/Acumatica.Default_18.200.001/Model/ChangeOrder.cs new file mode 100644 index 00000000..92049af0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ChangeOrder.cs @@ -0,0 +1,90 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ChangeOrder : Entity + { + + [DataMember(Name="ApprovalDetails", EmitDefaultValue=false)] + public List ApprovalDetails { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="ChangeDate", EmitDefaultValue=false)] + public DateTimeValue ChangeDate { get; set; } + + [DataMember(Name="Class", EmitDefaultValue=false)] + public StringValue Class { get; set; } + + [DataMember(Name="Commitments", EmitDefaultValue=false)] + public List Commitments { get; set; } + + [DataMember(Name="CommitmentsChangeTotal", EmitDefaultValue=false)] + public DecimalValue CommitmentsChangeTotal { get; set; } + + [DataMember(Name="CompletionDate", EmitDefaultValue=false)] + public DateTimeValue CompletionDate { get; set; } + + [DataMember(Name="ContractTimeChangeDays", EmitDefaultValue=false)] + public IntValue ContractTimeChangeDays { get; set; } + + [DataMember(Name="CostBudget", EmitDefaultValue=false)] + public List CostBudget { get; set; } + + [DataMember(Name="CostBudgetChangeTotal", EmitDefaultValue=false)] + public DecimalValue CostBudgetChangeTotal { get; set; } + + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DetailedDescription", EmitDefaultValue=false)] + public StringValue DetailedDescription { get; set; } + + [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] + public StringValue ExternalRefNbr { get; set; } + + [DataMember(Name="GrossMargin", EmitDefaultValue=false)] + public DecimalValue GrossMargin { get; set; } + + [DataMember(Name="GrossMarginAmount", EmitDefaultValue=false)] + public DecimalValue GrossMarginAmount { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="OriginalCORefNbr", EmitDefaultValue=false)] + public StringValue OriginalCORefNbr { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="RefNbr", EmitDefaultValue=false)] + public StringValue RefNbr { get; set; } + + [DataMember(Name="RevenueBudget", EmitDefaultValue=false)] + public List RevenueBudget { get; set; } + + [DataMember(Name="RevenueBudgetChangeTotal", EmitDefaultValue=false)] + public DecimalValue RevenueBudgetChangeTotal { get; set; } + + [DataMember(Name="RevenueChangeNbr", EmitDefaultValue=false)] + public StringValue RevenueChangeNbr { get; set; } + + [DataMember(Name="ReverseStatus", EmitDefaultValue=false)] + public StringValue ReverseStatus { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ChangeOrderClass.cs b/Acumatica.Default_18.200.001/Model/ChangeOrderClass.cs new file mode 100644 index 00000000..fced0932 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ChangeOrderClass.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ChangeOrderClass : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="Commitments", EmitDefaultValue=false)] + public BooleanValue Commitments { get; set; } + + [DataMember(Name="CostBudget", EmitDefaultValue=false)] + public BooleanValue CostBudget { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="RevenueBudget", EmitDefaultValue=false)] + public BooleanValue RevenueBudget { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ChangeOrderCommitment.cs b/Acumatica.Default_18.200.001/Model/ChangeOrderCommitment.cs new file mode 100644 index 00000000..45a359a6 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ChangeOrderCommitment.cs @@ -0,0 +1,81 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ChangeOrderCommitment : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="AmountinBaseCurrency", EmitDefaultValue=false)] + public DecimalValue AmountinBaseCurrency { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineAmount", EmitDefaultValue=false)] + public DecimalValue LineAmount { get; set; } + + [DataMember(Name="LineDescription", EmitDefaultValue=false)] + public StringValue LineDescription { get; set; } + + [DataMember(Name="OpenAmount", EmitDefaultValue=false)] + public DecimalValue OpenAmount { get; set; } + + [DataMember(Name="OpenQty", EmitDefaultValue=false)] + public DecimalValue OpenQty { get; set; } + + [DataMember(Name="OrderDate", EmitDefaultValue=false)] + public DateTimeValue OrderDate { get; set; } + + [DataMember(Name="OrderQty", EmitDefaultValue=false)] + public DecimalValue OrderQty { get; set; } + + [DataMember(Name="POLineNbr", EmitDefaultValue=false)] + public IntValue POLineNbr { get; set; } + + [DataMember(Name="PONbr", EmitDefaultValue=false)] + public StringValue PONbr { get; set; } + + [DataMember(Name="PotentiallyRevisedAmount", EmitDefaultValue=false)] + public DecimalValue PotentiallyRevisedAmount { get; set; } + + [DataMember(Name="PotentiallyRevisedQty", EmitDefaultValue=false)] + public DecimalValue PotentiallyRevisedQty { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ChangeOrderCostBudget.cs b/Acumatica.Default_18.200.001/Model/ChangeOrderCostBudget.cs new file mode 100644 index 00000000..a6ec3de2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ChangeOrderCostBudget.cs @@ -0,0 +1,102 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ChangeOrderCostBudget : Entity + { + + [DataMember(Name="AccountGroup", EmitDefaultValue=false)] + public StringValue AccountGroup { get; set; } + + [DataMember(Name="ActualAmount", EmitDefaultValue=false)] + public DecimalValue ActualAmount { get; set; } + + [DataMember(Name="ActualQty", EmitDefaultValue=false)] + public DecimalValue ActualQty { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="CommittedCOAmount", EmitDefaultValue=false)] + public DecimalValue CommittedCOAmount { get; set; } + + [DataMember(Name="CommittedCOQty", EmitDefaultValue=false)] + public DecimalValue CommittedCOQty { get; set; } + + [DataMember(Name="CommittedInvoicedAmount", EmitDefaultValue=false)] + public DecimalValue CommittedInvoicedAmount { get; set; } + + [DataMember(Name="CommittedInvoicedQty", EmitDefaultValue=false)] + public DecimalValue CommittedInvoicedQty { get; set; } + + [DataMember(Name="CommittedOpenAmount", EmitDefaultValue=false)] + public DecimalValue CommittedOpenAmount { get; set; } + + [DataMember(Name="CommittedOpenQty", EmitDefaultValue=false)] + public DecimalValue CommittedOpenQty { get; set; } + + [DataMember(Name="CommittedReceivedQty", EmitDefaultValue=false)] + public DecimalValue CommittedReceivedQty { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="CurrentCommittedCOAmount", EmitDefaultValue=false)] + public DecimalValue CurrentCommittedCOAmount { get; set; } + + [DataMember(Name="CurrentCommittedCOQty", EmitDefaultValue=false)] + public DecimalValue CurrentCommittedCOQty { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="OriginalBudgetedAmount", EmitDefaultValue=false)] + public DecimalValue OriginalBudgetedAmount { get; set; } + + [DataMember(Name="OriginalBudgetedQty", EmitDefaultValue=false)] + public DecimalValue OriginalBudgetedQty { get; set; } + + [DataMember(Name="OtherDraftCOAmount", EmitDefaultValue=false)] + public DecimalValue OtherDraftCOAmount { get; set; } + + [DataMember(Name="PreviouslyApprovedCOAmount", EmitDefaultValue=false)] + public DecimalValue PreviouslyApprovedCOAmount { get; set; } + + [DataMember(Name="PreviouslyApprovedCOQty", EmitDefaultValue=false)] + public DecimalValue PreviouslyApprovedCOQty { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="RevisedBudgetedAmount", EmitDefaultValue=false)] + public DecimalValue RevisedBudgetedAmount { get; set; } + + [DataMember(Name="RevisedBudgetedQty", EmitDefaultValue=false)] + public DecimalValue RevisedBudgetedQty { get; set; } + + [DataMember(Name="RevisedCommittedAmount", EmitDefaultValue=false)] + public DecimalValue RevisedCommittedAmount { get; set; } + + [DataMember(Name="RevisedCommittedQty", EmitDefaultValue=false)] + public DecimalValue RevisedCommittedQty { get; set; } + + [DataMember(Name="TotalPotentiallyRevisedAmount", EmitDefaultValue=false)] + public DecimalValue TotalPotentiallyRevisedAmount { get; set; } + + [DataMember(Name="UnitRate", EmitDefaultValue=false)] + public DecimalValue UnitRate { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ChangeOrderRevenueBudget.cs b/Acumatica.Default_18.200.001/Model/ChangeOrderRevenueBudget.cs new file mode 100644 index 00000000..2018d9fd --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ChangeOrderRevenueBudget.cs @@ -0,0 +1,75 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ChangeOrderRevenueBudget : Entity + { + + [DataMember(Name="AccountGroup", EmitDefaultValue=false)] + public StringValue AccountGroup { get; set; } + + [DataMember(Name="ActualAmount", EmitDefaultValue=false)] + public DecimalValue ActualAmount { get; set; } + + [DataMember(Name="ActualQty", EmitDefaultValue=false)] + public DecimalValue ActualQty { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="Completed", EmitDefaultValue=false)] + public DecimalValue Completed { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DraftInvoicesAmount", EmitDefaultValue=false)] + public DecimalValue DraftInvoicesAmount { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="OriginalBudgetedAmount", EmitDefaultValue=false)] + public DecimalValue OriginalBudgetedAmount { get; set; } + + [DataMember(Name="OriginalBudgetedQty", EmitDefaultValue=false)] + public DecimalValue OriginalBudgetedQty { get; set; } + + [DataMember(Name="OtherDraftCOAmount", EmitDefaultValue=false)] + public DecimalValue OtherDraftCOAmount { get; set; } + + [DataMember(Name="PreviouslyApprovedCOAmount", EmitDefaultValue=false)] + public DecimalValue PreviouslyApprovedCOAmount { get; set; } + + [DataMember(Name="PreviouslyApprovedCOQty", EmitDefaultValue=false)] + public DecimalValue PreviouslyApprovedCOQty { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="RevisedBudgetedAmount", EmitDefaultValue=false)] + public DecimalValue RevisedBudgetedAmount { get; set; } + + [DataMember(Name="RevisedBudgetedQty", EmitDefaultValue=false)] + public DecimalValue RevisedBudgetedQty { get; set; } + + [DataMember(Name="TotalPotentiallyRevisedAmount", EmitDefaultValue=false)] + public DecimalValue TotalPotentiallyRevisedAmount { get; set; } + + [DataMember(Name="UnitRate", EmitDefaultValue=false)] + public DecimalValue UnitRate { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Check.cs b/Acumatica.Default_18.200.001/Model/Check.cs new file mode 100644 index 00000000..30382047 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Check.cs @@ -0,0 +1,57 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Check : Entity + { + + [DataMember(Name="ApplicationDate", EmitDefaultValue=false)] + public DateTimeValue ApplicationDate { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="History", EmitDefaultValue=false)] + public List History { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] + public DecimalValue PaymentAmount { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UnappliedBalance", EmitDefaultValue=false)] + public DecimalValue UnappliedBalance { get; set; } + + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CheckDetail.cs b/Acumatica.Default_18.200.001/Model/CheckDetail.cs new file mode 100644 index 00000000..3d83af8a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CheckDetail.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CheckDetail : Entity + { + + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] + public DecimalValue CashDiscountBalance { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CheckHistoryDetail.cs b/Acumatica.Default_18.200.001/Model/CheckHistoryDetail.cs new file mode 100644 index 00000000..1ae0382e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CheckHistoryDetail.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CheckHistoryDetail : Entity + { + + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] + public DecimalValue CashDiscountBalance { get; set; } + + [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] + public DecimalValue CashDiscountTaken { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="VendorRef", EmitDefaultValue=false)] + public StringValue VendorRef { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Commissions.cs b/Acumatica.Default_18.200.001/Model/Commissions.cs new file mode 100644 index 00000000..a75f7ff8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Commissions.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Commissions : Entity + { + + [DataMember(Name="DefaultSalesperson", EmitDefaultValue=false)] + public StringValue DefaultSalesperson { get; set; } + + [DataMember(Name="SalesPersons", EmitDefaultValue=false)] + public List SalesPersons { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CommonTask.cs b/Acumatica.Default_18.200.001/Model/CommonTask.cs new file mode 100644 index 00000000..c34f7561 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CommonTask.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CommonTask : Entity + { + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BillingAndAllocationSettings", EmitDefaultValue=false)] + public ProjectTaskBillingAndAllocationSettings BillingAndAllocationSettings { get; set; } + + [DataMember(Name="CommonTaskID", EmitDefaultValue=false)] + public StringValue CommonTaskID { get; set; } + + [DataMember(Name="DefaultValues", EmitDefaultValue=false)] + public ProjectTaskDefaultValues DefaultValues { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Properties", EmitDefaultValue=false)] + public ProjectTaskProperties Properties { get; set; } + + [DataMember(Name="VisibilitySettings", EmitDefaultValue=false)] + public VisibilitySettings VisibilitySettings { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CompanyFinancialPeriod.cs b/Acumatica.Default_18.200.001/Model/CompanyFinancialPeriod.cs new file mode 100644 index 00000000..de7bdd10 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CompanyFinancialPeriod.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CompanyFinancialPeriod : Entity + { + + [DataMember(Name="Company", EmitDefaultValue=false)] + public StringValue Company { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="FinancialYear", EmitDefaultValue=false)] + public StringValue FinancialYear { get; set; } + + [DataMember(Name="NbrOfPeriods", EmitDefaultValue=false)] + public ShortValue NbrOfPeriods { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Contact.cs b/Acumatica.Default_18.200.001/Model/Contact.cs new file mode 100644 index 00000000..b37f7d18 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Contact.cs @@ -0,0 +1,210 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Contact : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Activities", EmitDefaultValue=false)] + public List Activities { get; set; } + + [DataMember(Name="Address", EmitDefaultValue=false)] + public Address Address { get; set; } + + [DataMember(Name="AddressIsSameAsInAccount", EmitDefaultValue=false)] + public BooleanValue AddressIsSameAsInAccount { get; set; } + + [DataMember(Name="AddressValidated", EmitDefaultValue=false)] + public BooleanValue AddressValidated { get; set; } + + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } + + [DataMember(Name="Campaigns", EmitDefaultValue=false)] + public List Campaigns { get; set; } + + [DataMember(Name="Cases", EmitDefaultValue=false)] + public List Cases { get; set; } + + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public StringValue CompanyName { get; set; } + + [DataMember(Name="ContactClass", EmitDefaultValue=false)] + public StringValue ContactClass { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="ContactMethod", EmitDefaultValue=false)] + public StringValue ContactMethod { get; set; } + + [DataMember(Name="ConvertedBy", EmitDefaultValue=false)] + public StringValue ConvertedBy { get; set; } + + [DataMember(Name="DateOfBirth", EmitDefaultValue=false)] + public DateTimeValue DateOfBirth { get; set; } + + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } + + [DataMember(Name="DoNotCall", EmitDefaultValue=false)] + public BooleanValue DoNotCall { get; set; } + + [DataMember(Name="DoNotEmail", EmitDefaultValue=false)] + public BooleanValue DoNotEmail { get; set; } + + [DataMember(Name="DoNotFax", EmitDefaultValue=false)] + public BooleanValue DoNotFax { get; set; } + + [DataMember(Name="DoNotMail", EmitDefaultValue=false)] + public BooleanValue DoNotMail { get; set; } + + [DataMember(Name="Duplicate", EmitDefaultValue=false)] + public StringValue Duplicate { get; set; } + + [DataMember(Name="DuplicateFound", EmitDefaultValue=false)] + public BooleanValue DuplicateFound { get; set; } + + [DataMember(Name="Duplicates", EmitDefaultValue=false)] + public List Duplicates { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } + + [DataMember(Name="FaxType", EmitDefaultValue=false)] + public StringValue FaxType { get; set; } + + [DataMember(Name="FirstName", EmitDefaultValue=false)] + public StringValue FirstName { get; set; } + + [DataMember(Name="Gender", EmitDefaultValue=false)] + public StringValue Gender { get; set; } + + [DataMember(Name="Image", EmitDefaultValue=false)] + public StringValue Image { get; set; } + + [DataMember(Name="JobTitle", EmitDefaultValue=false)] + public StringValue JobTitle { get; set; } + + [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] + public StringValue LanguageOrLocale { get; set; } + + [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] + public DateTimeValue LastIncomingActivity { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LastName", EmitDefaultValue=false)] + public StringValue LastName { get; set; } + + [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] + public DateTimeValue LastOutgoingActivity { get; set; } + + [DataMember(Name="MaritalStatus", EmitDefaultValue=false)] + public StringValue MaritalStatus { get; set; } + + [DataMember(Name="MarketingLists", EmitDefaultValue=false)] + public List MarketingLists { get; set; } + + [DataMember(Name="MiddleName", EmitDefaultValue=false)] + public StringValue MiddleName { get; set; } + + [DataMember(Name="NoMarketing", EmitDefaultValue=false)] + public BooleanValue NoMarketing { get; set; } + + [DataMember(Name="NoMassMail", EmitDefaultValue=false)] + public BooleanValue NoMassMail { get; set; } + + [DataMember(Name="Notifications", EmitDefaultValue=false)] + public List Notifications { get; set; } + + [DataMember(Name="Opportunities", EmitDefaultValue=false)] + public List Opportunities { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] + public StringValue OwnerEmployeeName { get; set; } + + [DataMember(Name="ParentAccount", EmitDefaultValue=false)] + public StringValue ParentAccount { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + [DataMember(Name="Phone1Type", EmitDefaultValue=false)] + public StringValue Phone1Type { get; set; } + + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } + + [DataMember(Name="Phone2Type", EmitDefaultValue=false)] + public StringValue Phone2Type { get; set; } + + [DataMember(Name="Phone3", EmitDefaultValue=false)] + public StringValue Phone3 { get; set; } + + [DataMember(Name="Phone3Type", EmitDefaultValue=false)] + public StringValue Phone3Type { get; set; } + + [DataMember(Name="QualificationDate", EmitDefaultValue=false)] + public DateTimeValue QualificationDate { get; set; } + + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } + + [DataMember(Name="Relations", EmitDefaultValue=false)] + public List Relations { get; set; } + + [DataMember(Name="Source", EmitDefaultValue=false)] + public StringValue Source { get; set; } + + [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] + public StringValue SourceCampaign { get; set; } + + [DataMember(Name="SpouseOrPartnerName", EmitDefaultValue=false)] + public StringValue SpouseOrPartnerName { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Synchronize", EmitDefaultValue=false)] + public BooleanValue Synchronize { get; set; } + + [DataMember(Name="Title", EmitDefaultValue=false)] + public StringValue Title { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UserInfo", EmitDefaultValue=false)] + public ContactUserInfo UserInfo { get; set; } + + [DataMember(Name="WebSite", EmitDefaultValue=false)] + public StringValue WebSite { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] + public StringValue WorkgroupDescription { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ContactDuplicateDetail.cs b/Acumatica.Default_18.200.001/Model/ContactDuplicateDetail.cs new file mode 100644 index 00000000..a15c53c6 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ContactDuplicateDetail.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ContactDuplicateDetail : Entity + { + + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } + + [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] + public StringValue BusinessAccountName { get; set; } + + [DataMember(Name="BusinessAccountType", EmitDefaultValue=false)] + public StringValue BusinessAccountType { get; set; } + + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } + + [DataMember(Name="Duplicate", EmitDefaultValue=false)] + public StringValue Duplicate { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDate { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ContactNotification.cs b/Acumatica.Default_18.200.001/Model/ContactNotification.cs new file mode 100644 index 00000000..e3d81fec --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ContactNotification.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ContactNotification : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Bcc", EmitDefaultValue=false)] + public BooleanValue Bcc { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Format", EmitDefaultValue=false)] + public StringValue Format { get; set; } + + [DataMember(Name="MailingID", EmitDefaultValue=false)] + public StringValue MailingID { get; set; } + + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } + + [DataMember(Name="NotificationID", EmitDefaultValue=false)] + public IntValue NotificationID { get; set; } + + [DataMember(Name="Report", EmitDefaultValue=false)] + public StringValue Report { get; set; } + + [DataMember(Name="Source", EmitDefaultValue=false)] + public StringValue Source { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ContactRoles.cs b/Acumatica.Default_18.200.001/Model/ContactRoles.cs new file mode 100644 index 00000000..ddc46976 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ContactRoles.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ContactRoles : Entity + { + + [DataMember(Name="RoleDescription", EmitDefaultValue=false)] + public StringValue RoleDescription { get; set; } + + [DataMember(Name="RoleName", EmitDefaultValue=false)] + public StringValue RoleName { get; set; } + + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } + + [DataMember(Name="UserType", EmitDefaultValue=false)] + public IntValue UserType { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ContactUserInfo.cs b/Acumatica.Default_18.200.001/Model/ContactUserInfo.cs new file mode 100644 index 00000000..f12d5e22 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ContactUserInfo.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ContactUserInfo : Entity + { + + [DataMember(Name="GeneratePassword", EmitDefaultValue=false)] + public BooleanValue GeneratePassword { get; set; } + + [DataMember(Name="Login", EmitDefaultValue=false)] + public StringValue Login { get; set; } + + [DataMember(Name="Password", EmitDefaultValue=false)] + public StringValue Password { get; set; } + + [DataMember(Name="Roles", EmitDefaultValue=false)] + public List Roles { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="UserType", EmitDefaultValue=false)] + public StringValue UserType { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ContractUsage.cs b/Acumatica.Default_18.200.001/Model/ContractUsage.cs new file mode 100644 index 00000000..583b495b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ContractUsage.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ContractUsage : Entity + { + + [DataMember(Name="BilledTransactions", EmitDefaultValue=false)] + public List BilledTransactions { get; set; } + + [DataMember(Name="ContractID", EmitDefaultValue=false)] + public StringValue ContractID { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="UnbilledTransactions", EmitDefaultValue=false)] + public List UnbilledTransactions { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ContractUsageTransactionDetail.cs b/Acumatica.Default_18.200.001/Model/ContractUsageTransactionDetail.cs new file mode 100644 index 00000000..234c5885 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ContractUsageTransactionDetail.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ContractUsageTransactionDetail : Entity + { + + [DataMember(Name="BillingDate", EmitDefaultValue=false)] + public DateTimeValue BillingDate { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CaseID", EmitDefaultValue=false)] + public StringValue CaseID { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="TransactionID", EmitDefaultValue=false)] + public LongValue TransactionID { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CostCode.cs b/Acumatica.Default_18.200.001/Model/CostCode.cs new file mode 100644 index 00000000..47347b0d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CostCode.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CostCode : Entity + { + + [DataMember(Name="CostCodeID", EmitDefaultValue=false)] + public StringValue CostCodeID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CreditCardProcessingDetail.cs b/Acumatica.Default_18.200.001/Model/CreditCardProcessingDetail.cs new file mode 100644 index 00000000..f26fcb33 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CreditCardProcessingDetail.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreditCardProcessingDetail : Entity + { + + [DataMember(Name="TransactionAmount", EmitDefaultValue=false)] + public DecimalValue TransactionAmount { get; set; } + + [DataMember(Name="TransactionStatus", EmitDefaultValue=false)] + public StringValue TransactionStatus { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CreditVerificationRules.cs b/Acumatica.Default_18.200.001/Model/CreditVerificationRules.cs new file mode 100644 index 00000000..b86f07fc --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CreditVerificationRules.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CreditVerificationRules : Entity + { + + [DataMember(Name="CreditDaysPastDue", EmitDefaultValue=false)] + public ShortValue CreditDaysPastDue { get; set; } + + [DataMember(Name="CreditLimit", EmitDefaultValue=false)] + public DecimalValue CreditLimit { get; set; } + + [DataMember(Name="CreditVerification", EmitDefaultValue=false)] + public StringValue CreditVerification { get; set; } + + [DataMember(Name="FirstDueDate", EmitDefaultValue=false)] + public DateTimeValue FirstDueDate { get; set; } + + [DataMember(Name="OpenOrdersBalance", EmitDefaultValue=false)] + public DecimalValue OpenOrdersBalance { get; set; } + + [DataMember(Name="RemainingCreditLimit", EmitDefaultValue=false)] + public DecimalValue RemainingCreditLimit { get; set; } + + [DataMember(Name="UnreleasedBalance", EmitDefaultValue=false)] + public DecimalValue UnreleasedBalance { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Currency.cs b/Acumatica.Default_18.200.001/Model/Currency.cs new file mode 100644 index 00000000..a619c86a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Currency.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Currency : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencySymbol", EmitDefaultValue=false)] + public StringValue CurrencySymbol { get; set; } + + [DataMember(Name="DecimalPrecision", EmitDefaultValue=false)] + public ShortValue DecimalPrecision { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="UseForAccounting", EmitDefaultValue=false)] + public BooleanValue UseForAccounting { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Customer.cs b/Acumatica.Default_18.200.001/Model/Customer.cs new file mode 100644 index 00000000..0689ae3d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Customer.cs @@ -0,0 +1,171 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Customer : Entity + { + + [DataMember(Name="AccountRef", EmitDefaultValue=false)] + public StringValue AccountRef { get; set; } + + [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] + public BooleanValue ApplyOverdueCharges { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="AutoApplyPayments", EmitDefaultValue=false)] + public BooleanValue AutoApplyPayments { get; set; } + + [DataMember(Name="BillingAddressSameAsMain", EmitDefaultValue=false)] + public BooleanValue BillingAddressSameAsMain { get; set; } + + [DataMember(Name="BillingContact", EmitDefaultValue=false)] + public Contact BillingContact { get; set; } + + [DataMember(Name="BillingContactSameAsMain", EmitDefaultValue=false)] + public BooleanValue BillingContactSameAsMain { get; set; } + + [DataMember(Name="Contacts", EmitDefaultValue=false)] + public List Contacts { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CreditVerificationRules", EmitDefaultValue=false)] + public CreditVerificationRules CreditVerificationRules { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] + public StringValue CurrencyRateType { get; set; } + + [DataMember(Name="CustomerClass", EmitDefaultValue=false)] + public StringValue CustomerClass { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public StringValue CustomerName { get; set; } + + [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] + public BooleanValue EnableCurrencyOverride { get; set; } + + [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] + public BooleanValue EnableRateOverride { get; set; } + + [DataMember(Name="EnableWriteOffs", EmitDefaultValue=false)] + public BooleanValue EnableWriteOffs { get; set; } + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LeadTimedays", EmitDefaultValue=false)] + public ShortValue LeadTimedays { get; set; } + + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } + + [DataMember(Name="MainContact", EmitDefaultValue=false)] + public Contact MainContact { get; set; } + + [DataMember(Name="MultiCurrencyStatements", EmitDefaultValue=false)] + public BooleanValue MultiCurrencyStatements { get; set; } + + [DataMember(Name="OrderPriority", EmitDefaultValue=false)] + public ShortValue OrderPriority { get; set; } + + [DataMember(Name="ParentRecord", EmitDefaultValue=false)] + public StringValue ParentRecord { get; set; } + + [DataMember(Name="PaymentInstructions", EmitDefaultValue=false)] + public List PaymentInstructions { get; set; } + + [DataMember(Name="PriceClassID", EmitDefaultValue=false)] + public StringValue PriceClassID { get; set; } + + [DataMember(Name="PrintDunningLetters", EmitDefaultValue=false)] + public BooleanValue PrintDunningLetters { get; set; } + + [DataMember(Name="PrintInvoices", EmitDefaultValue=false)] + public BooleanValue PrintInvoices { get; set; } + + [DataMember(Name="PrintStatements", EmitDefaultValue=false)] + public BooleanValue PrintStatements { get; set; } + + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } + + [DataMember(Name="Salespersons", EmitDefaultValue=false)] + public List Salespersons { get; set; } + + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } + + [DataMember(Name="SendDunningLettersbyEmail", EmitDefaultValue=false)] + public BooleanValue SendDunningLettersbyEmail { get; set; } + + [DataMember(Name="SendInvoicesbyEmail", EmitDefaultValue=false)] + public BooleanValue SendInvoicesbyEmail { get; set; } + + [DataMember(Name="SendStatementsbyEmail", EmitDefaultValue=false)] + public BooleanValue SendStatementsbyEmail { get; set; } + + [DataMember(Name="ShippingAddressSameAsMain", EmitDefaultValue=false)] + public BooleanValue ShippingAddressSameAsMain { get; set; } + + [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] + public StringValue ShippingBranch { get; set; } + + [DataMember(Name="ShippingContact", EmitDefaultValue=false)] + public Contact ShippingContact { get; set; } + + [DataMember(Name="ShippingContactSameAsMain", EmitDefaultValue=false)] + public BooleanValue ShippingContactSameAsMain { get; set; } + + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShippingZoneID", EmitDefaultValue=false)] + public StringValue ShippingZoneID { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="StatementCycleID", EmitDefaultValue=false)] + public StringValue StatementCycleID { get; set; } + + [DataMember(Name="StatementType", EmitDefaultValue=false)] + public StringValue StatementType { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] + public StringValue TaxRegistrationID { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] + public DecimalValue WriteOffLimit { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CustomerClass.cs b/Acumatica.Default_18.200.001/Model/CustomerClass.cs new file mode 100644 index 00000000..f06564e2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CustomerClass.cs @@ -0,0 +1,195 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CustomerClass : Entity + { + + [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] + public BooleanValue ApplyOverdueCharges { get; set; } + + [DataMember(Name="ARAccount", EmitDefaultValue=false)] + public StringValue ARAccount { get; set; } + + [DataMember(Name="ARSubaccount", EmitDefaultValue=false)] + public StringValue ARSubaccount { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="AutoApplyPayments", EmitDefaultValue=false)] + public BooleanValue AutoApplyPayments { get; set; } + + [DataMember(Name="CashDiscountAccount", EmitDefaultValue=false)] + public StringValue CashDiscountAccount { get; set; } + + [DataMember(Name="CashDiscountSubaccount", EmitDefaultValue=false)] + public StringValue CashDiscountSubaccount { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="COGSAccount", EmitDefaultValue=false)] + public StringValue COGSAccount { get; set; } + + [DataMember(Name="COGSSubaccount", EmitDefaultValue=false)] + public StringValue COGSSubaccount { get; set; } + + [DataMember(Name="Country", EmitDefaultValue=false)] + public StringValue Country { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CreditDaysPastDue", EmitDefaultValue=false)] + public ShortValue CreditDaysPastDue { get; set; } + + [DataMember(Name="CreditLimit", EmitDefaultValue=false)] + public DecimalValue CreditLimit { get; set; } + + [DataMember(Name="CreditVerification", EmitDefaultValue=false)] + public StringValue CreditVerification { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] + public StringValue CurrencyRateType { get; set; } + + [DataMember(Name="DefaultLocationIDfromBranch", EmitDefaultValue=false)] + public BooleanValue DefaultLocationIDfromBranch { get; set; } + + [DataMember(Name="DefaultRestrictionGroup", EmitDefaultValue=false)] + public StringValue DefaultRestrictionGroup { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] + public StringValue DiscountAccount { get; set; } + + [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] + public StringValue DiscountSubaccount { get; set; } + + [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] + public BooleanValue EnableCurrencyOverride { get; set; } + + [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] + public BooleanValue EnableRateOverride { get; set; } + + [DataMember(Name="EnableWriteOffs", EmitDefaultValue=false)] + public BooleanValue EnableWriteOffs { get; set; } + + [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] + public StringValue EntityUsageType { get; set; } + + [DataMember(Name="FreightAccount", EmitDefaultValue=false)] + public StringValue FreightAccount { get; set; } + + [DataMember(Name="FreightSubaccount", EmitDefaultValue=false)] + public StringValue FreightSubaccount { get; set; } + + [DataMember(Name="GroupDocumentDiscountLimit", EmitDefaultValue=false)] + public DecimalValue GroupDocumentDiscountLimit { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="MiscAccount", EmitDefaultValue=false)] + public StringValue MiscAccount { get; set; } + + [DataMember(Name="MiscSubaccount", EmitDefaultValue=false)] + public StringValue MiscSubaccount { get; set; } + + [DataMember(Name="MultiCurrencyStatements", EmitDefaultValue=false)] + public BooleanValue MultiCurrencyStatements { get; set; } + + [DataMember(Name="OverdueChargeID", EmitDefaultValue=false)] + public StringValue OverdueChargeID { get; set; } + + [DataMember(Name="OverLimitAmount", EmitDefaultValue=false)] + public DecimalValue OverLimitAmount { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="PrepaymentAccount", EmitDefaultValue=false)] + public StringValue PrepaymentAccount { get; set; } + + [DataMember(Name="PrepaymentSubaccount", EmitDefaultValue=false)] + public StringValue PrepaymentSubaccount { get; set; } + + [DataMember(Name="PrintDunningLetters", EmitDefaultValue=false)] + public BooleanValue PrintDunningLetters { get; set; } + + [DataMember(Name="PrintInvoices", EmitDefaultValue=false)] + public BooleanValue PrintInvoices { get; set; } + + [DataMember(Name="PrintStatements", EmitDefaultValue=false)] + public BooleanValue PrintStatements { get; set; } + + [DataMember(Name="RequireEntityUsageType", EmitDefaultValue=false)] + public BooleanValue RequireEntityUsageType { get; set; } + + [DataMember(Name="RequireTaxZone", EmitDefaultValue=false)] + public BooleanValue RequireTaxZone { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="SendDunningLettersbyEmail", EmitDefaultValue=false)] + public BooleanValue SendDunningLettersbyEmail { get; set; } + + [DataMember(Name="SendInvoicesbyEmail", EmitDefaultValue=false)] + public BooleanValue SendInvoicesbyEmail { get; set; } + + [DataMember(Name="SendStatementsByEmail", EmitDefaultValue=false)] + public BooleanValue SendStatementsByEmail { get; set; } + + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="StatementCycleID", EmitDefaultValue=false)] + public StringValue StatementCycleID { get; set; } + + [DataMember(Name="StatementType", EmitDefaultValue=false)] + public StringValue StatementType { get; set; } + + [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] + public StringValue TaxZoneID { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="UnrealizedGainAccount", EmitDefaultValue=false)] + public StringValue UnrealizedGainAccount { get; set; } + + [DataMember(Name="UnrealizedGainSubaccount", EmitDefaultValue=false)] + public StringValue UnrealizedGainSubaccount { get; set; } + + [DataMember(Name="UnrealizedLossAccount", EmitDefaultValue=false)] + public StringValue UnrealizedLossAccount { get; set; } + + [DataMember(Name="UnrealizedLossSubaccount", EmitDefaultValue=false)] + public StringValue UnrealizedLossSubaccount { get; set; } + + [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] + public DecimalValue WriteOffLimit { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CustomerContact.cs b/Acumatica.Default_18.200.001/Model/CustomerContact.cs new file mode 100644 index 00000000..bde19c9c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CustomerContact.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CustomerContact : Entity + { + + [DataMember(Name="Contact", EmitDefaultValue=false)] + public Contact Contact { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CustomerLocation.cs b/Acumatica.Default_18.200.001/Model/CustomerLocation.cs new file mode 100644 index 00000000..adeb8e6a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CustomerLocation.cs @@ -0,0 +1,99 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CustomerLocation : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="AddressSameAsMain", EmitDefaultValue=false)] + public BooleanValue AddressSameAsMain { get; set; } + + [DataMember(Name="Calendar", EmitDefaultValue=false)] + public StringValue Calendar { get; set; } + + [DataMember(Name="ContactSameAsMain", EmitDefaultValue=false)] + public BooleanValue ContactSameAsMain { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } + + [DataMember(Name="DefaultProject", EmitDefaultValue=false)] + public StringValue DefaultProject { get; set; } + + [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] + public StringValue EntityUsageType { get; set; } + + [DataMember(Name="FedExGroundCollect", EmitDefaultValue=false)] + public BooleanValue FedExGroundCollect { get; set; } + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="Insurance", EmitDefaultValue=false)] + public BooleanValue Insurance { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LeadTimeDays", EmitDefaultValue=false)] + public ShortValue LeadTimeDays { get; set; } + + [DataMember(Name="LocationContact", EmitDefaultValue=false)] + public Contact LocationContact { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } + + [DataMember(Name="OrderPriority", EmitDefaultValue=false)] + public ShortValue OrderPriority { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } + + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } + + [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] + public StringValue ShippingBranch { get; set; } + + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShippingZone", EmitDefaultValue=false)] + public StringValue ShippingZone { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="TaxExemptionNbr", EmitDefaultValue=false)] + public StringValue TaxExemptionNbr { get; set; } + + [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] + public StringValue TaxRegistrationID { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CustomerPaymentMethod.cs b/Acumatica.Default_18.200.001/Model/CustomerPaymentMethod.cs new file mode 100644 index 00000000..099731f3 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CustomerPaymentMethod.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CustomerPaymentMethod : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] + public StringValue CardAccountNbr { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="CustomerProfileID", EmitDefaultValue=false)] + public StringValue CustomerProfileID { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="InstanceID", EmitDefaultValue=false)] + public IntValue InstanceID { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="ProcCenterID", EmitDefaultValue=false)] + public StringValue ProcCenterID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CustomerPaymentMethodDetail.cs b/Acumatica.Default_18.200.001/Model/CustomerPaymentMethodDetail.cs new file mode 100644 index 00000000..a5b0d6d8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CustomerPaymentMethodDetail.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CustomerPaymentMethodDetail : Entity + { + + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } + + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CustomerPriceClass.cs b/Acumatica.Default_18.200.001/Model/CustomerPriceClass.cs new file mode 100644 index 00000000..938d5199 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CustomerPriceClass.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CustomerPriceClass : Entity + { + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="PriceClassID", EmitDefaultValue=false)] + public StringValue PriceClassID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/CustomerSalesPerson.cs b/Acumatica.Default_18.200.001/Model/CustomerSalesPerson.cs new file mode 100644 index 00000000..ef1ac045 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/CustomerSalesPerson.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class CustomerSalesPerson : Entity + { + + [DataMember(Name="Commission", EmitDefaultValue=false)] + public DecimalValue Commission { get; set; } + + [DataMember(Name="Default", EmitDefaultValue=false)] + public BooleanValue Default { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } + + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } + + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/DefaultTaskForGLAccount.cs b/Acumatica.Default_18.200.001/Model/DefaultTaskForGLAccount.cs new file mode 100644 index 00000000..1ad44761 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/DefaultTaskForGLAccount.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DefaultTaskForGLAccount : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="DefaultTask", EmitDefaultValue=false)] + public StringValue DefaultTask { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Discount.cs b/Acumatica.Default_18.200.001/Model/Discount.cs new file mode 100644 index 00000000..f60b3d34 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Discount.cs @@ -0,0 +1,69 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Discount : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="BreakBy", EmitDefaultValue=false)] + public StringValue BreakBy { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CustomerPriceClasses", EmitDefaultValue=false)] + public List CustomerPriceClasses { get; set; } + + [DataMember(Name="Customers", EmitDefaultValue=false)] + public List Customers { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DiscountBreakpoints", EmitDefaultValue=false)] + public List DiscountBreakpoints { get; set; } + + [DataMember(Name="DiscountBy", EmitDefaultValue=false)] + public StringValue DiscountBy { get; set; } + + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="ItemPriceClasses", EmitDefaultValue=false)] + public List ItemPriceClasses { get; set; } + + [DataMember(Name="Items", EmitDefaultValue=false)] + public List Items { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Promotional", EmitDefaultValue=false)] + public BooleanValue Promotional { get; set; } + + [DataMember(Name="ProrateDiscount", EmitDefaultValue=false)] + public BooleanValue ProrateDiscount { get; set; } + + [DataMember(Name="Sequence", EmitDefaultValue=false)] + public StringValue Sequence { get; set; } + + [DataMember(Name="ShowFreeItem", EmitDefaultValue=false)] + public BooleanValue ShowFreeItem { get; set; } + + [DataMember(Name="Warehouses", EmitDefaultValue=false)] + public List Warehouses { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/DiscountBreakpointDetail.cs b/Acumatica.Default_18.200.001/Model/DiscountBreakpointDetail.cs new file mode 100644 index 00000000..0380879a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/DiscountBreakpointDetail.cs @@ -0,0 +1,66 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DiscountBreakpointDetail : Entity + { + + [DataMember(Name="BreakAmount", EmitDefaultValue=false)] + public DecimalValue BreakAmount { get; set; } + + [DataMember(Name="BreakQty", EmitDefaultValue=false)] + public DecimalValue BreakQty { get; set; } + + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } + + [DataMember(Name="DiscountDetailID", EmitDefaultValue=false)] + public IntValue DiscountDetailID { get; set; } + + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] + public DecimalValue FreeItemQty { get; set; } + + [DataMember(Name="LastBreakAmount", EmitDefaultValue=false)] + public DecimalValue LastBreakAmount { get; set; } + + [DataMember(Name="LastBreakQty", EmitDefaultValue=false)] + public DecimalValue LastBreakQty { get; set; } + + [DataMember(Name="LastDiscountAmount", EmitDefaultValue=false)] + public DecimalValue LastDiscountAmount { get; set; } + + [DataMember(Name="LastDiscountPercent", EmitDefaultValue=false)] + public DecimalValue LastDiscountPercent { get; set; } + + [DataMember(Name="LastFreeItemQty", EmitDefaultValue=false)] + public DecimalValue LastFreeItemQty { get; set; } + + [DataMember(Name="PendingBreakAmount", EmitDefaultValue=false)] + public DecimalValue PendingBreakAmount { get; set; } + + [DataMember(Name="PendingBreakQty", EmitDefaultValue=false)] + public DecimalValue PendingBreakQty { get; set; } + + [DataMember(Name="PendingDate", EmitDefaultValue=false)] + public DateTimeValue PendingDate { get; set; } + + [DataMember(Name="PendingDiscountAmount", EmitDefaultValue=false)] + public DecimalValue PendingDiscountAmount { get; set; } + + [DataMember(Name="PendingDiscountPercent", EmitDefaultValue=false)] + public DecimalValue PendingDiscountPercent { get; set; } + + [DataMember(Name="PendingFreeItemQty", EmitDefaultValue=false)] + public DecimalValue PendingFreeItemQty { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/DiscountCode.cs b/Acumatica.Default_18.200.001/Model/DiscountCode.cs new file mode 100644 index 00000000..7837950d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/DiscountCode.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DiscountCode : Entity + { + + [DataMember(Name="ApplicableTo", EmitDefaultValue=false)] + public StringValue ApplicableTo { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DiscountCodeID", EmitDefaultValue=false)] + public StringValue DiscountCodeID { get; set; } + + [DataMember(Name="DiscountType", EmitDefaultValue=false)] + public StringValue DiscountType { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/DiscountCustomerDetail.cs b/Acumatica.Default_18.200.001/Model/DiscountCustomerDetail.cs new file mode 100644 index 00000000..ea3393e1 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/DiscountCustomerDetail.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DiscountCustomerDetail : Entity + { + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public StringValue CustomerName { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/DiscountCustomerPriceClassesDetail.cs b/Acumatica.Default_18.200.001/Model/DiscountCustomerPriceClassesDetail.cs new file mode 100644 index 00000000..140e73cb --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/DiscountCustomerPriceClassesDetail.cs @@ -0,0 +1,15 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DiscountCustomerPriceClassesDetail : Entity + { + + [DataMember(Name="PriceClassID", EmitDefaultValue=false)] + public StringValue PriceClassID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/DiscountItemDetail.cs b/Acumatica.Default_18.200.001/Model/DiscountItemDetail.cs new file mode 100644 index 00000000..48d14903 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/DiscountItemDetail.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DiscountItemDetail : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/DiscountItemPriceClassesDetail.cs b/Acumatica.Default_18.200.001/Model/DiscountItemPriceClassesDetail.cs new file mode 100644 index 00000000..7339facd --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/DiscountItemPriceClassesDetail.cs @@ -0,0 +1,15 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DiscountItemPriceClassesDetail : Entity + { + + [DataMember(Name="PriceClassID", EmitDefaultValue=false)] + public StringValue PriceClassID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/DiscountWarehouseDetail.cs b/Acumatica.Default_18.200.001/Model/DiscountWarehouseDetail.cs new file mode 100644 index 00000000..af2e1ecd --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/DiscountWarehouseDetail.cs @@ -0,0 +1,15 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DiscountWarehouseDetail : Entity + { + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/DocContact.cs b/Acumatica.Default_18.200.001/Model/DocContact.cs new file mode 100644 index 00000000..a6adf770 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/DocContact.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DocContact : Entity + { + + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } + + [DataMember(Name="BusinessName", EmitDefaultValue=false)] + public StringValue BusinessName { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/DuplicateDetail.cs b/Acumatica.Default_18.200.001/Model/DuplicateDetail.cs new file mode 100644 index 00000000..39013abb --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/DuplicateDetail.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class DuplicateDetail : Entity + { + + [DataMember(Name="AccountName", EmitDefaultValue=false)] + public StringValue AccountName { get; set; } + + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } + + [DataMember(Name="BusinessAccountType", EmitDefaultValue=false)] + public StringValue BusinessAccountType { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } + + [DataMember(Name="Duplicate", EmitDefaultValue=false)] + public StringValue Duplicate { get; set; } + + [DataMember(Name="DuplicateContactID", EmitDefaultValue=false)] + public IntValue DuplicateContactID { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="EntityType", EmitDefaultValue=false)] + public StringValue EntityType { get; set; } + + [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDate { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Email.cs b/Acumatica.Default_18.200.001/Model/Email.cs new file mode 100644 index 00000000..f24daa31 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Email.cs @@ -0,0 +1,72 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Email : Entity + { + + [DataMember(Name="Bcc", EmitDefaultValue=false)] + public StringValue Bcc { get; set; } + + [DataMember(Name="Body", EmitDefaultValue=false)] + public StringValue Body { get; set; } + + [DataMember(Name="Cc", EmitDefaultValue=false)] + public StringValue Cc { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="From", EmitDefaultValue=false)] + public StringValue From { get; set; } + + [DataMember(Name="FromEmailAccountDisplayName", EmitDefaultValue=false)] + public StringValue FromEmailAccountDisplayName { get; set; } + + [DataMember(Name="FromEmailAccountID", EmitDefaultValue=false)] + public IntValue FromEmailAccountID { get; set; } + + [DataMember(Name="Incoming", EmitDefaultValue=false)] + public BooleanValue Incoming { get; set; } + + [DataMember(Name="Internal", EmitDefaultValue=false)] + public BooleanValue Internal { get; set; } + + [DataMember(Name="MailStatus", EmitDefaultValue=false)] + public StringValue MailStatus { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="Parent", EmitDefaultValue=false)] + public GuidValue Parent { get; set; } + + [DataMember(Name="ParentSummary", EmitDefaultValue=false)] + public StringValue ParentSummary { get; set; } + + [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] + public StringValue RelatedEntityDescription { get; set; } + + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public DateTimeValue StartTime { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="TimeActivity", EmitDefaultValue=false)] + public TimeActivity TimeActivity { get; set; } + + [DataMember(Name="To", EmitDefaultValue=false)] + public StringValue To { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/EmailProcessing.cs b/Acumatica.Default_18.200.001/Model/EmailProcessing.cs new file mode 100644 index 00000000..cb560971 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/EmailProcessing.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EmailProcessing : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public IntValue Account { get; set; } + + [DataMember(Name="AccountEmailAccountID", EmitDefaultValue=false)] + public StringValue AccountEmailAccountID { get; set; } + + [DataMember(Name="AssignedToMe", EmitDefaultValue=false)] + public BooleanValue AssignedToMe { get; set; } + + [DataMember(Name="AssignedToOwner", EmitDefaultValue=false)] + public StringValue AssignedToOwner { get; set; } + + [DataMember(Name="IncludeFailed", EmitDefaultValue=false)] + public BooleanValue IncludeFailed { get; set; } + + [DataMember(Name="Result", EmitDefaultValue=false)] + public List Result { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/EmailProcessingRow.cs b/Acumatica.Default_18.200.001/Model/EmailProcessingRow.cs new file mode 100644 index 00000000..51bbe304 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/EmailProcessingRow.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EmailProcessingRow : Entity + { + + [DataMember(Name="EmailAccount", EmitDefaultValue=false)] + public StringValue EmailAccount { get; set; } + + [DataMember(Name="From", EmitDefaultValue=false)] + public StringValue From { get; set; } + + [DataMember(Name="MailStatus", EmitDefaultValue=false)] + public StringValue MailStatus { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="To", EmitDefaultValue=false)] + public StringValue To { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Employee.cs b/Acumatica.Default_18.200.001/Model/Employee.cs new file mode 100644 index 00000000..9c86824e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Employee.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Employee : Entity + { + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="ContactInfo", EmitDefaultValue=false)] + public Contact ContactInfo { get; set; } + + [DataMember(Name="Delegates", EmitDefaultValue=false)] + public List Delegates { get; set; } + + [DataMember(Name="EmployeeID", EmitDefaultValue=false)] + public StringValue EmployeeID { get; set; } + + [DataMember(Name="EmployeeName", EmitDefaultValue=false)] + public StringValue EmployeeName { get; set; } + + [DataMember(Name="EmployeeSettings", EmitDefaultValue=false)] + public EmployeeSettings EmployeeSettings { get; set; } + + [DataMember(Name="EmploymentHistory", EmitDefaultValue=false)] + public List EmploymentHistory { get; set; } + + [DataMember(Name="FinancialSettings", EmitDefaultValue=false)] + public EmployeeFinancialSettings FinancialSettings { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/EmployeeDelegate.cs b/Acumatica.Default_18.200.001/Model/EmployeeDelegate.cs new file mode 100644 index 00000000..71420ee4 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/EmployeeDelegate.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EmployeeDelegate : Entity + { + + [DataMember(Name="Delegate", EmitDefaultValue=false)] + public StringValue Delegate { get; set; } + + [DataMember(Name="EmployeeName", EmitDefaultValue=false)] + public StringValue EmployeeName { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/EmployeeFinancialSettings.cs b/Acumatica.Default_18.200.001/Model/EmployeeFinancialSettings.cs new file mode 100644 index 00000000..83fa22ca --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/EmployeeFinancialSettings.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EmployeeFinancialSettings : Entity + { + + [DataMember(Name="APAccount", EmitDefaultValue=false)] + public StringValue APAccount { get; set; } + + [DataMember(Name="APSubaccount", EmitDefaultValue=false)] + public StringValue APSubaccount { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="ExpenseAccount", EmitDefaultValue=false)] + public StringValue ExpenseAccount { get; set; } + + [DataMember(Name="ExpenseSubaccount", EmitDefaultValue=false)] + public StringValue ExpenseSubaccount { get; set; } + + [DataMember(Name="PaymentInstructions", EmitDefaultValue=false)] + public BusinessAccountPaymentInstructionDetail PaymentInstructions { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="PrepaymentAccount", EmitDefaultValue=false)] + public StringValue PrepaymentAccount { get; set; } + + [DataMember(Name="PrepaymentSubaccount", EmitDefaultValue=false)] + public StringValue PrepaymentSubaccount { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/EmployeeSettings.cs b/Acumatica.Default_18.200.001/Model/EmployeeSettings.cs new file mode 100644 index 00000000..6abac4a0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/EmployeeSettings.cs @@ -0,0 +1,60 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EmployeeSettings : Entity + { + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } + + [DataMember(Name="Calendar", EmitDefaultValue=false)] + public StringValue Calendar { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] + public StringValue CurrencyRateTypeID { get; set; } + + [DataMember(Name="DepartmentID", EmitDefaultValue=false)] + public StringValue DepartmentID { get; set; } + + [DataMember(Name="EmployeeClass", EmitDefaultValue=false)] + public StringValue EmployeeClass { get; set; } + + [DataMember(Name="EmployeeRefNbr", EmitDefaultValue=false)] + public StringValue EmployeeRefNbr { get; set; } + + [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] + public BooleanValue EnableCurrencyOverride { get; set; } + + [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] + public BooleanValue EnableRateOverride { get; set; } + + [DataMember(Name="LaborItem", EmitDefaultValue=false)] + public StringValue LaborItem { get; set; } + + [DataMember(Name="RegularHoursValidation", EmitDefaultValue=false)] + public StringValue RegularHoursValidation { get; set; } + + [DataMember(Name="ReportsTo", EmitDefaultValue=false)] + public StringValue ReportsTo { get; set; } + + [DataMember(Name="RouteEmails", EmitDefaultValue=false)] + public BooleanValue RouteEmails { get; set; } + + [DataMember(Name="Salesperson", EmitDefaultValue=false)] + public StringValue Salesperson { get; set; } + + [DataMember(Name="TimeCardIsRequired", EmitDefaultValue=false)] + public BooleanValue TimeCardIsRequired { get; set; } + + [DataMember(Name="UnionLocalID", EmitDefaultValue=false)] + public StringValue UnionLocalID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/EmploymentHistoryRecord.cs b/Acumatica.Default_18.200.001/Model/EmploymentHistoryRecord.cs new file mode 100644 index 00000000..b0086160 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/EmploymentHistoryRecord.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EmploymentHistoryRecord : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="PositionID", EmitDefaultValue=false)] + public StringValue PositionID { get; set; } + + [DataMember(Name="RehireEligible", EmitDefaultValue=false)] + public BooleanValue RehireEligible { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="StartReason", EmitDefaultValue=false)] + public StringValue StartReason { get; set; } + + [DataMember(Name="Terminated", EmitDefaultValue=false)] + public BooleanValue Terminated { get; set; } + + [DataMember(Name="TerminationReason", EmitDefaultValue=false)] + public StringValue TerminationReason { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Event.cs b/Acumatica.Default_18.200.001/Model/Event.cs new file mode 100644 index 00000000..931ba048 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Event.cs @@ -0,0 +1,69 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Event : Entity + { + + [DataMember(Name="AllDay", EmitDefaultValue=false)] + public BooleanValue AllDay { get; set; } + + [DataMember(Name="Attendees", EmitDefaultValue=false)] + public List Attendees { get; set; } + + [DataMember(Name="Body", EmitDefaultValue=false)] + public StringValue Body { get; set; } + + [DataMember(Name="Category", EmitDefaultValue=false)] + public StringValue Category { get; set; } + + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } + + [DataMember(Name="EndTime", EmitDefaultValue=false)] + public DateTimeValue EndTime { get; set; } + + [DataMember(Name="Internal", EmitDefaultValue=false)] + public BooleanValue Internal { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="NoteID", EmitDefaultValue=false)] + public GuidValue NoteID { get; set; } + + [DataMember(Name="Priority", EmitDefaultValue=false)] + public StringValue Priority { get; set; } + + [DataMember(Name="RelatedActivities", EmitDefaultValue=false)] + public List RelatedActivities { get; set; } + + [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] + public StringValue RelatedEntityDescription { get; set; } + + [DataMember(Name="Reminder", EmitDefaultValue=false)] + public ReminderDetail Reminder { get; set; } + + [DataMember(Name="ShowAs", EmitDefaultValue=false)] + public StringValue ShowAs { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public DateTimeValue StartTime { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } + + [DataMember(Name="TimeActivity", EmitDefaultValue=false)] + public EventTimeActivity TimeActivity { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/EventAttendee.cs b/Acumatica.Default_18.200.001/Model/EventAttendee.cs new file mode 100644 index 00000000..51d296c2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/EventAttendee.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EventAttendee : Entity + { + + [DataMember(Name="Comment", EmitDefaultValue=false)] + public StringValue Comment { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="EventNoteID", EmitDefaultValue=false)] + public GuidValue EventNoteID { get; set; } + + [DataMember(Name="InvitationStatus", EmitDefaultValue=false)] + public StringValue InvitationStatus { get; set; } + + [DataMember(Name="Key", EmitDefaultValue=false)] + public StringValue Key { get; set; } + + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } + + [DataMember(Name="NameAttendeeName", EmitDefaultValue=false)] + public StringValue NameAttendeeName { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public IntValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/EventRelatedActivity.cs b/Acumatica.Default_18.200.001/Model/EventRelatedActivity.cs new file mode 100644 index 00000000..88a472db --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/EventRelatedActivity.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EventRelatedActivity : Entity + { + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } + + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } + + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/EventTimeActivity.cs b/Acumatica.Default_18.200.001/Model/EventTimeActivity.cs new file mode 100644 index 00000000..2c5fb6a0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/EventTimeActivity.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class EventTimeActivity : Entity + { + + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } + + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } + + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ExpenseClaim.cs b/Acumatica.Default_18.200.001/Model/ExpenseClaim.cs new file mode 100644 index 00000000..aa386d98 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ExpenseClaim.cs @@ -0,0 +1,78 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ExpenseClaim : Entity + { + + [DataMember(Name="ApprovalDate", EmitDefaultValue=false)] + public DateTimeValue ApprovalDate { get; set; } + + [DataMember(Name="ApprovalDetails", EmitDefaultValue=false)] + public List ApprovalDetails { get; set; } + + [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] + public StringValue BaseCurrencyID { get; set; } + + [DataMember(Name="ClaimedBy", EmitDefaultValue=false)] + public StringValue ClaimedBy { get; set; } + + [DataMember(Name="ClaimTotal", EmitDefaultValue=false)] + public DecimalValue ClaimTotal { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] + public DecimalValue CurrencyRate { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="DepartmentID", EmitDefaultValue=false)] + public StringValue DepartmentID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="FinancialDetails", EmitDefaultValue=false)] + public ExpenseClaimFinancialDetail FinancialDetails { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] + public DecimalValue ReciprocalRate { get; set; } + + [DataMember(Name="RefNbr", EmitDefaultValue=false)] + public StringValue RefNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + [DataMember(Name="VATExemptTotal", EmitDefaultValue=false)] + public DecimalValue VATExemptTotal { get; set; } + + [DataMember(Name="VATTaxableTotal", EmitDefaultValue=false)] + public DecimalValue VATTaxableTotal { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ExpenseClaimAPDocument.cs b/Acumatica.Default_18.200.001/Model/ExpenseClaimAPDocument.cs new file mode 100644 index 00000000..2ee9a057 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ExpenseClaimAPDocument.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ExpenseClaimAPDocument : Entity + { + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="RefNbr", EmitDefaultValue=false)] + public StringValue RefNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ExpenseClaimDetails.cs b/Acumatica.Default_18.200.001/Model/ExpenseClaimDetails.cs new file mode 100644 index 00000000..a76cac93 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ExpenseClaimDetails.cs @@ -0,0 +1,105 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ExpenseClaimDetails : Entity + { + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="AmountInClaimCurrency", EmitDefaultValue=false)] + public DecimalValue AmountInClaimCurrency { get; set; } + + [DataMember(Name="APRefNbr", EmitDefaultValue=false)] + public StringValue APRefNbr { get; set; } + + [DataMember(Name="ARRefNbr", EmitDefaultValue=false)] + public StringValue ARRefNbr { get; set; } + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="ClaimAmount", EmitDefaultValue=false)] + public DecimalValue ClaimAmount { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EmployeePart", EmitDefaultValue=false)] + public DecimalValue EmployeePart { get; set; } + + [DataMember(Name="ExpenseAccount", EmitDefaultValue=false)] + public StringValue ExpenseAccount { get; set; } + + [DataMember(Name="ExpenseItemID", EmitDefaultValue=false)] + public StringValue ExpenseItemID { get; set; } + + [DataMember(Name="ExpenseSubaccount", EmitDefaultValue=false)] + public StringValue ExpenseSubaccount { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="NetAmount", EmitDefaultValue=false)] + public DecimalValue NetAmount { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="RefNbr", EmitDefaultValue=false)] + public StringValue RefNbr { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="TipAmount", EmitDefaultValue=false)] + public DecimalValue TipAmount { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ExpenseClaimFinancialDetail.cs b/Acumatica.Default_18.200.001/Model/ExpenseClaimFinancialDetail.cs new file mode 100644 index 00000000..0ade71f1 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ExpenseClaimFinancialDetail.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ExpenseClaimFinancialDetail : Entity + { + + [DataMember(Name="APDocuments", EmitDefaultValue=false)] + public List APDocuments { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="PosttoPeriod", EmitDefaultValue=false)] + public StringValue PosttoPeriod { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ExpenseClaimTaxDetail.cs b/Acumatica.Default_18.200.001/Model/ExpenseClaimTaxDetail.cs new file mode 100644 index 00000000..9c0101e2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ExpenseClaimTaxDetail.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ExpenseClaimTaxDetail : Entity + { + + [DataMember(Name="DeductibleTaxRate", EmitDefaultValue=false)] + public DecimalValue DeductibleTaxRate { get; set; } + + [DataMember(Name="ExpenseAmount", EmitDefaultValue=false)] + public DecimalValue ExpenseAmount { get; set; } + + [DataMember(Name="IncludeinVATExemptTotal", EmitDefaultValue=false)] + public BooleanValue IncludeinVATExemptTotal { get; set; } + + [DataMember(Name="PendingVAT", EmitDefaultValue=false)] + public BooleanValue PendingVAT { get; set; } + + [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] + public BooleanValue ReverseVAT { get; set; } + + [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] + public BooleanValue StatisticalVAT { get; set; } + + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } + + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public StringValue TaxType { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ExpenseReceipt.cs b/Acumatica.Default_18.200.001/Model/ExpenseReceipt.cs new file mode 100644 index 00000000..eac29ca5 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ExpenseReceipt.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ExpenseReceipt : Entity + { + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="ClaimAmount", EmitDefaultValue=false)] + public DecimalValue ClaimAmount { get; set; } + + [DataMember(Name="ClaimedBy", EmitDefaultValue=false)] + public StringValue ClaimedBy { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="ExpenseItemID", EmitDefaultValue=false)] + public StringValue ExpenseItemID { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="ReceiptDetails", EmitDefaultValue=false)] + public ExpenseReceiptDetails ReceiptDetails { get; set; } + + [DataMember(Name="ReceiptID", EmitDefaultValue=false)] + public IntValue ReceiptID { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ExpenseReceiptDetails.cs b/Acumatica.Default_18.200.001/Model/ExpenseReceiptDetails.cs new file mode 100644 index 00000000..66bb3f0f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ExpenseReceiptDetails.cs @@ -0,0 +1,90 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ExpenseReceiptDetails : Entity + { + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] + public StringValue BaseCurrencyID { get; set; } + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="CurrancyRateTypeID", EmitDefaultValue=false)] + public StringValue CurrancyRateTypeID { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] + public DecimalValue CurrencyRate { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EmployeePart", EmitDefaultValue=false)] + public DecimalValue EmployeePart { get; set; } + + [DataMember(Name="ExpenseAccount", EmitDefaultValue=false)] + public StringValue ExpenseAccount { get; set; } + + [DataMember(Name="ExpenseClaimID", EmitDefaultValue=false)] + public StringValue ExpenseClaimID { get; set; } + + [DataMember(Name="ExpenseClaimStatus", EmitDefaultValue=false)] + public StringValue ExpenseClaimStatus { get; set; } + + [DataMember(Name="ExpenseSubaccount", EmitDefaultValue=false)] + public StringValue ExpenseSubaccount { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] + public DecimalValue ReciprocalRate { get; set; } + + [DataMember(Name="RefNbr", EmitDefaultValue=false)] + public StringValue RefNbr { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ExpenseReceiptTaxDetails.cs b/Acumatica.Default_18.200.001/Model/ExpenseReceiptTaxDetails.cs new file mode 100644 index 00000000..42ec4716 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ExpenseReceiptTaxDetails.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ExpenseReceiptTaxDetails : Entity + { + + [DataMember(Name="DeductibleTaxRate", EmitDefaultValue=false)] + public DecimalValue DeductibleTaxRate { get; set; } + + [DataMember(Name="ExpenseAmount", EmitDefaultValue=false)] + public DecimalValue ExpenseAmount { get; set; } + + [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] + public BooleanValue IncludeInVATExemptTotal { get; set; } + + [DataMember(Name="PendingVAT", EmitDefaultValue=false)] + public BooleanValue PendingVAT { get; set; } + + [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] + public BooleanValue ReverseVAT { get; set; } + + [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] + public BooleanValue StatisticalVAT { get; set; } + + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } + + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public StringValue TaxType { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ExternalCommitment.cs b/Acumatica.Default_18.200.001/Model/ExternalCommitment.cs new file mode 100644 index 00000000..9564d52b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ExternalCommitment.cs @@ -0,0 +1,75 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ExternalCommitment : Entity + { + + [DataMember(Name="AccountGroup", EmitDefaultValue=false)] + public StringValue AccountGroup { get; set; } + + [DataMember(Name="CommittedCOAmount", EmitDefaultValue=false)] + public DecimalValue CommittedCOAmount { get; set; } + + [DataMember(Name="CommittedCOQty", EmitDefaultValue=false)] + public DecimalValue CommittedCOQty { get; set; } + + [DataMember(Name="CommittedInvoicedAmount", EmitDefaultValue=false)] + public DecimalValue CommittedInvoicedAmount { get; set; } + + [DataMember(Name="CommittedInvoicedQty", EmitDefaultValue=false)] + public DecimalValue CommittedInvoicedQty { get; set; } + + [DataMember(Name="CommittedOpenAmount", EmitDefaultValue=false)] + public DecimalValue CommittedOpenAmount { get; set; } + + [DataMember(Name="CommittedOpenQty", EmitDefaultValue=false)] + public DecimalValue CommittedOpenQty { get; set; } + + [DataMember(Name="CommittedReceivedQty", EmitDefaultValue=false)] + public DecimalValue CommittedReceivedQty { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] + public StringValue ExternalRefNbr { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="OriginalCommittedAmount", EmitDefaultValue=false)] + public DecimalValue OriginalCommittedAmount { get; set; } + + [DataMember(Name="OriginalCommittedQty", EmitDefaultValue=false)] + public DecimalValue OriginalCommittedQty { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="RelatedDocument", EmitDefaultValue=false)] + public StringValue RelatedDocument { get; set; } + + [DataMember(Name="RevisedCommittedAmount", EmitDefaultValue=false)] + public DecimalValue RevisedCommittedAmount { get; set; } + + [DataMember(Name="RevisedCommittedQty", EmitDefaultValue=false)] + public DecimalValue RevisedCommittedQty { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/FOBPoint.cs b/Acumatica.Default_18.200.001/Model/FOBPoint.cs new file mode 100644 index 00000000..b53bf3e3 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/FOBPoint.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class FOBPoint : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="FOBPointID", EmitDefaultValue=false)] + public StringValue FOBPointID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/FinancialPeriod.cs b/Acumatica.Default_18.200.001/Model/FinancialPeriod.cs new file mode 100644 index 00000000..24eeead7 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/FinancialPeriod.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class FinancialPeriod : Entity + { + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="FinancialYear", EmitDefaultValue=false)] + public StringValue FinancialYear { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="NbrOfPeriods", EmitDefaultValue=false)] + public ShortValue NbrOfPeriods { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="UserDefinedPeriods", EmitDefaultValue=false)] + public BooleanValue UserDefinedPeriods { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/FinancialPeriodDetail.cs b/Acumatica.Default_18.200.001/Model/FinancialPeriodDetail.cs new file mode 100644 index 00000000..4c3e147c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/FinancialPeriodDetail.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class FinancialPeriodDetail : Entity + { + + [DataMember(Name="AdjustmentPeriod", EmitDefaultValue=false)] + public BooleanValue AdjustmentPeriod { get; set; } + + [DataMember(Name="ClosedInAP", EmitDefaultValue=false)] + public BooleanValue ClosedInAP { get; set; } + + [DataMember(Name="ClosedInAR", EmitDefaultValue=false)] + public BooleanValue ClosedInAR { get; set; } + + [DataMember(Name="ClosedInCA", EmitDefaultValue=false)] + public BooleanValue ClosedInCA { get; set; } + + [DataMember(Name="ClosedInFA", EmitDefaultValue=false)] + public BooleanValue ClosedInFA { get; set; } + + [DataMember(Name="ClosedInIN", EmitDefaultValue=false)] + public BooleanValue ClosedInIN { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } + + [DataMember(Name="FinancialPeriodID", EmitDefaultValue=false)] + public StringValue FinancialPeriodID { get; set; } + + [DataMember(Name="LengthInDays", EmitDefaultValue=false)] + public IntValue LengthInDays { get; set; } + + [DataMember(Name="PeriodNbr", EmitDefaultValue=false)] + public StringValue PeriodNbr { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/FinancialSettings.cs b/Acumatica.Default_18.200.001/Model/FinancialSettings.cs new file mode 100644 index 00000000..15202e4e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/FinancialSettings.cs @@ -0,0 +1,54 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class FinancialSettings : Entity + { + + [DataMember(Name="BillSeparately", EmitDefaultValue=false)] + public BooleanValue BillSeparately { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] + public DateTimeValue CashDiscountDate { get; set; } + + [DataMember(Name="CustomerTaxZone", EmitDefaultValue=false)] + public StringValue CustomerTaxZone { get; set; } + + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } + + [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] + public StringValue EntityUsageType { get; set; } + + [DataMember(Name="InvoiceDate", EmitDefaultValue=false)] + public DateTimeValue InvoiceDate { get; set; } + + [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] + public StringValue InvoiceNbr { get; set; } + + [DataMember(Name="OriginalOrderNbr", EmitDefaultValue=false)] + public StringValue OriginalOrderNbr { get; set; } + + [DataMember(Name="OriginalOrderType", EmitDefaultValue=false)] + public StringValue OriginalOrderType { get; set; } + + [DataMember(Name="OverrideTaxZone", EmitDefaultValue=false)] + public BooleanValue OverrideTaxZone { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/FinancialYear.cs b/Acumatica.Default_18.200.001/Model/FinancialYear.cs new file mode 100644 index 00000000..4cd315ed --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/FinancialYear.cs @@ -0,0 +1,60 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class FinancialYear : Entity + { + + [DataMember(Name="AdjustToPeriodStart", EmitDefaultValue=false)] + public BooleanValue AdjustToPeriodStart { get; set; } + + [DataMember(Name="BelongsToNextYear", EmitDefaultValue=false)] + public BooleanValue BelongsToNextYear { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="DayOfWeek", EmitDefaultValue=false)] + public StringValue DayOfWeek { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="FinancialYearStartsOn", EmitDefaultValue=false)] + public DateTimeValue FinancialYearStartsOn { get; set; } + + [DataMember(Name="FirstFinancialYear", EmitDefaultValue=false)] + public StringValue FirstFinancialYear { get; set; } + + [DataMember(Name="FirstPeriodStartDate", EmitDefaultValue=false)] + public DateTimeValue FirstPeriodStartDate { get; set; } + + [DataMember(Name="HasAdjustmentPeriod", EmitDefaultValue=false)] + public BooleanValue HasAdjustmentPeriod { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LengthOfFinancialPeriodInDays", EmitDefaultValue=false)] + public ShortValue LengthOfFinancialPeriodInDays { get; set; } + + [DataMember(Name="NbrOfFinancialPeriods", EmitDefaultValue=false)] + public ShortValue NbrOfFinancialPeriods { get; set; } + + [DataMember(Name="PeriodsStartDayOfWeek", EmitDefaultValue=false)] + public StringValue PeriodsStartDayOfWeek { get; set; } + + [DataMember(Name="PeriodType", EmitDefaultValue=false)] + public StringValue PeriodType { get; set; } + + [DataMember(Name="UserDefinedPeriods", EmitDefaultValue=false)] + public BooleanValue UserDefinedPeriods { get; set; } + + [DataMember(Name="YearEndCalculationMethod", EmitDefaultValue=false)] + public StringValue YearEndCalculationMethod { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/FinancialYearPeriodDetail.cs b/Acumatica.Default_18.200.001/Model/FinancialYearPeriodDetail.cs new file mode 100644 index 00000000..174cf781 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/FinancialYearPeriodDetail.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class FinancialYearPeriodDetail : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } + + [DataMember(Name="PeriodNbr", EmitDefaultValue=false)] + public StringValue PeriodNbr { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InterBranchAccountMapping.cs b/Acumatica.Default_18.200.001/Model/InterBranchAccountMapping.cs new file mode 100644 index 00000000..99105e02 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InterBranchAccountMapping.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InterBranchAccountMapping : Entity + { + + [DataMember(Name="OriginatingBranch", EmitDefaultValue=false)] + public StringValue OriginatingBranch { get; set; } + + [DataMember(Name="PostingLedger", EmitDefaultValue=false)] + public StringValue PostingLedger { get; set; } + + [DataMember(Name="TransactionsInDestinationBranch", EmitDefaultValue=false)] + public List TransactionsInDestinationBranch { get; set; } + + [DataMember(Name="TransactionsInSourceBranch", EmitDefaultValue=false)] + public List TransactionsInSourceBranch { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs b/Acumatica.Default_18.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs new file mode 100644 index 00000000..d5963137 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InterBranchAccountMappingTransactionInDestinationBranchDetail : Entity + { + + [DataMember(Name="AccountFrom", EmitDefaultValue=false)] + public StringValue AccountFrom { get; set; } + + [DataMember(Name="AccountTo", EmitDefaultValue=false)] + public StringValue AccountTo { get; set; } + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public IntValue BranchID { get; set; } + + [DataMember(Name="DestinationBranch", EmitDefaultValue=false)] + public StringValue DestinationBranch { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="OffsetAccount", EmitDefaultValue=false)] + public StringValue OffsetAccount { get; set; } + + [DataMember(Name="OffsetSubaccount", EmitDefaultValue=false)] + public StringValue OffsetSubaccount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs b/Acumatica.Default_18.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs new file mode 100644 index 00000000..8f03164b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InterBranchAccountMappingTransactionInSourceBranchDetail : Entity + { + + [DataMember(Name="AccountFrom", EmitDefaultValue=false)] + public StringValue AccountFrom { get; set; } + + [DataMember(Name="AccountTo", EmitDefaultValue=false)] + public StringValue AccountTo { get; set; } + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public IntValue BranchID { get; set; } + + [DataMember(Name="DestinationBranch", EmitDefaultValue=false)] + public StringValue DestinationBranch { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="OffsetAccount", EmitDefaultValue=false)] + public StringValue OffsetAccount { get; set; } + + [DataMember(Name="OffsetSubaccount", EmitDefaultValue=false)] + public StringValue OffsetSubaccount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InventoryAllocationInquiry.cs b/Acumatica.Default_18.200.001/Model/InventoryAllocationInquiry.cs new file mode 100644 index 00000000..497fc266 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InventoryAllocationInquiry.cs @@ -0,0 +1,102 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InventoryAllocationInquiry : Entity + { + + [DataMember(Name="Available", EmitDefaultValue=false)] + public DecimalValue Available { get; set; } + + [DataMember(Name="AvailableForIssue", EmitDefaultValue=false)] + public DecimalValue AvailableForIssue { get; set; } + + [DataMember(Name="AvailableForShipping", EmitDefaultValue=false)] + public DecimalValue AvailableForShipping { get; set; } + + [DataMember(Name="BaseUnit", EmitDefaultValue=false)] + public StringValue BaseUnit { get; set; } + + [DataMember(Name="InTransit", EmitDefaultValue=false)] + public DecimalValue InTransit { get; set; } + + [DataMember(Name="InTransitToSO", EmitDefaultValue=false)] + public DecimalValue InTransitToSO { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="InventoryIssues", EmitDefaultValue=false)] + public DecimalValue InventoryIssues { get; set; } + + [DataMember(Name="InventoryReceipts", EmitDefaultValue=false)] + public DecimalValue InventoryReceipts { get; set; } + + [DataMember(Name="KitAssemblyDemand", EmitDefaultValue=false)] + public DecimalValue KitAssemblyDemand { get; set; } + + [DataMember(Name="KitAssemblySupply", EmitDefaultValue=false)] + public DecimalValue KitAssemblySupply { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="OnHand", EmitDefaultValue=false)] + public DecimalValue OnHand { get; set; } + + [DataMember(Name="OnLocationNotAvailable", EmitDefaultValue=false)] + public DecimalValue OnLocationNotAvailable { get; set; } + + [DataMember(Name="PurchaseForSO", EmitDefaultValue=false)] + public DecimalValue PurchaseForSO { get; set; } + + [DataMember(Name="PurchaseForSOPrepared", EmitDefaultValue=false)] + public DecimalValue PurchaseForSOPrepared { get; set; } + + [DataMember(Name="PurchaseOrders", EmitDefaultValue=false)] + public DecimalValue PurchaseOrders { get; set; } + + [DataMember(Name="PurchasePrepared", EmitDefaultValue=false)] + public DecimalValue PurchasePrepared { get; set; } + + [DataMember(Name="PurchaseReceipts", EmitDefaultValue=false)] + public DecimalValue PurchaseReceipts { get; set; } + + [DataMember(Name="ReceiptsForSO", EmitDefaultValue=false)] + public DecimalValue ReceiptsForSO { get; set; } + + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } + + [DataMember(Name="SOAllocated", EmitDefaultValue=false)] + public DecimalValue SOAllocated { get; set; } + + [DataMember(Name="SOBackOrdered", EmitDefaultValue=false)] + public DecimalValue SOBackOrdered { get; set; } + + [DataMember(Name="SOBooked", EmitDefaultValue=false)] + public DecimalValue SOBooked { get; set; } + + [DataMember(Name="SOPrepared", EmitDefaultValue=false)] + public DecimalValue SOPrepared { get; set; } + + [DataMember(Name="SOShipped", EmitDefaultValue=false)] + public DecimalValue SOShipped { get; set; } + + [DataMember(Name="SOToPurchase", EmitDefaultValue=false)] + public DecimalValue SOToPurchase { get; set; } + + [DataMember(Name="TotalAddition", EmitDefaultValue=false)] + public DecimalValue TotalAddition { get; set; } + + [DataMember(Name="TotalDeduction", EmitDefaultValue=false)] + public DecimalValue TotalDeduction { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InventoryAllocationRow.cs b/Acumatica.Default_18.200.001/Model/InventoryAllocationRow.cs new file mode 100644 index 00000000..7460849c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InventoryAllocationRow.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InventoryAllocationRow : Entity + { + + [DataMember(Name="AllocationDate", EmitDefaultValue=false)] + public DateTimeValue AllocationDate { get; set; } + + [DataMember(Name="AllocationType", EmitDefaultValue=false)] + public StringValue AllocationType { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="Expired", EmitDefaultValue=false)] + public BooleanValue Expired { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InventoryItemCrossReference.cs b/Acumatica.Default_18.200.001/Model/InventoryItemCrossReference.cs new file mode 100644 index 00000000..02d811af --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InventoryItemCrossReference.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InventoryItemCrossReference : Entity + { + + [DataMember(Name="AlternateID", EmitDefaultValue=false)] + public StringValue AlternateID { get; set; } + + [DataMember(Name="AlternateType", EmitDefaultValue=false)] + public StringValue AlternateType { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] + public StringValue VendorOrCustomer { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InventoryItemUOMConversion.cs b/Acumatica.Default_18.200.001/Model/InventoryItemUOMConversion.cs new file mode 100644 index 00000000..99a40660 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InventoryItemUOMConversion.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InventoryItemUOMConversion : Entity + { + + [DataMember(Name="ConversionFactor", EmitDefaultValue=false)] + public DecimalValue ConversionFactor { get; set; } + + [DataMember(Name="FromUOM", EmitDefaultValue=false)] + public StringValue FromUOM { get; set; } + + [DataMember(Name="MultiplyOrDivide", EmitDefaultValue=false)] + public StringValue MultiplyOrDivide { get; set; } + + [DataMember(Name="ToUOM", EmitDefaultValue=false)] + public StringValue ToUOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InventoryReceipt.cs b/Acumatica.Default_18.200.001/Model/InventoryReceipt.cs new file mode 100644 index 00000000..a8efa6de --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InventoryReceipt.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InventoryReceipt : Entity + { + + [DataMember(Name="ControlCost", EmitDefaultValue=false)] + public DecimalValue ControlCost { get; set; } + + [DataMember(Name="ControlQty", EmitDefaultValue=false)] + public DecimalValue ControlQty { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TotalCost", EmitDefaultValue=false)] + public DecimalValue TotalCost { get; set; } + + [DataMember(Name="TotalQty", EmitDefaultValue=false)] + public DecimalValue TotalQty { get; set; } + + [DataMember(Name="TransferNbr", EmitDefaultValue=false)] + public StringValue TransferNbr { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InventoryReceiptDetail.cs b/Acumatica.Default_18.200.001/Model/InventoryReceiptDetail.cs new file mode 100644 index 00000000..61df3185 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InventoryReceiptDetail.cs @@ -0,0 +1,60 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InventoryReceiptDetail : Entity + { + + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="ExtCost", EmitDefaultValue=false)] + public DecimalValue ExtCost { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineNumber", EmitDefaultValue=false)] + public IntValue LineNumber { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InventoryReceiptDetailAllocation.cs b/Acumatica.Default_18.200.001/Model/InventoryReceiptDetailAllocation.cs new file mode 100644 index 00000000..ee4eacd0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InventoryReceiptDetailAllocation.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InventoryReceiptDetailAllocation : Entity + { + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="SplitLineNumber", EmitDefaultValue=false)] + public IntValue SplitLineNumber { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InventorySummaryInquiry.cs b/Acumatica.Default_18.200.001/Model/InventorySummaryInquiry.cs new file mode 100644 index 00000000..5922067f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InventorySummaryInquiry.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InventorySummaryInquiry : Entity + { + + [DataMember(Name="ExpandByLotSerialNbr", EmitDefaultValue=false)] + public BooleanValue ExpandByLotSerialNbr { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InventorySummaryRow.cs b/Acumatica.Default_18.200.001/Model/InventorySummaryRow.cs new file mode 100644 index 00000000..03e51365 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InventorySummaryRow.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InventorySummaryRow : Entity + { + + [DataMember(Name="BaseUOM", EmitDefaultValue=false)] + public StringValue BaseUOM { get; set; } + + [DataMember(Name="EstimatedTotalCost", EmitDefaultValue=false)] + public DecimalValue EstimatedTotalCost { get; set; } + + [DataMember(Name="EstimatedUnitCost", EmitDefaultValue=false)] + public DecimalValue EstimatedUnitCost { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="QtyAvailable", EmitDefaultValue=false)] + public DecimalValue QtyAvailable { get; set; } + + [DataMember(Name="QtyAvailableForShipment", EmitDefaultValue=false)] + public DecimalValue QtyAvailableForShipment { get; set; } + + [DataMember(Name="QtyNotAvailable", EmitDefaultValue=false)] + public DecimalValue QtyNotAvailable { get; set; } + + [DataMember(Name="QtyOnHand", EmitDefaultValue=false)] + public DecimalValue QtyOnHand { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Invoice.cs b/Acumatica.Default_18.200.001/Model/Invoice.cs new file mode 100644 index 00000000..f9022d6e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Invoice.cs @@ -0,0 +1,90 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Invoice : Entity + { + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="ApplicationsCreditMemo", EmitDefaultValue=false)] + public List ApplicationsCreditMemo { get; set; } + + [DataMember(Name="ApplicationsDefault", EmitDefaultValue=false)] + public List ApplicationsDefault { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="BillingPrinted", EmitDefaultValue=false)] + public BooleanValue BillingPrinted { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } + + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="DiscountDetails", EmitDefaultValue=false)] + public List DiscountDetails { get; set; } + + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LinkARAccount", EmitDefaultValue=false)] + public StringValue LinkARAccount { get; set; } + + [DataMember(Name="LinkBranch", EmitDefaultValue=false)] + public StringValue LinkBranch { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InvoiceApplicationsCreditMemo.cs b/Acumatica.Default_18.200.001/Model/InvoiceApplicationsCreditMemo.cs new file mode 100644 index 00000000..7ff4c9fd --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InvoiceApplicationsCreditMemo.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InvoiceApplicationsCreditMemo : Entity + { + + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } + + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InvoiceApplicationsDefault.cs b/Acumatica.Default_18.200.001/Model/InvoiceApplicationsDefault.cs new file mode 100644 index 00000000..8fde9063 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InvoiceApplicationsDefault.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InvoiceApplicationsDefault : Entity + { + + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] + public DecimalValue CashDiscountTaken { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="PaymentDate", EmitDefaultValue=false)] + public DateTimeValue PaymentDate { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InvoiceDetail.cs b/Acumatica.Default_18.200.001/Model/InvoiceDetail.cs new file mode 100644 index 00000000..2c95779e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InvoiceDetail.cs @@ -0,0 +1,63 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InvoiceDetail : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CalculateDiscountsOnImport", EmitDefaultValue=false)] + public BooleanValue CalculateDiscountsOnImport { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } + + [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] + public DecimalValue ExtendedPrice { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } + + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InvoiceDiscountDetail.cs b/Acumatica.Default_18.200.001/Model/InvoiceDiscountDetail.cs new file mode 100644 index 00000000..7b36215f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InvoiceDiscountDetail.cs @@ -0,0 +1,54 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InvoiceDiscountDetail : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] + public DecimalValue DiscountableAmount { get; set; } + + [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] + public DecimalValue DiscountableQty { get; set; } + + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } + + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } + + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } + + [DataMember(Name="ExternalDiscountCode", EmitDefaultValue=false)] + public StringValue ExternalDiscountCode { get; set; } + + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="RetainedDiscount", EmitDefaultValue=false)] + public DecimalValue RetainedDiscount { get; set; } + + [DataMember(Name="SequenceID", EmitDefaultValue=false)] + public StringValue SequenceID { get; set; } + + [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] + public BooleanValue SkipDiscount { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/InvoiceTaxDetail.cs b/Acumatica.Default_18.200.001/Model/InvoiceTaxDetail.cs new file mode 100644 index 00000000..4f82e8ce --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/InvoiceTaxDetail.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class InvoiceTaxDetail : Entity + { + + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ItemClass.cs b/Acumatica.Default_18.200.001/Model/ItemClass.cs new file mode 100644 index 00000000..f660e4ee --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ItemClass.cs @@ -0,0 +1,60 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ItemClass : Entity + { + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="AvailabilityCalculationRule", EmitDefaultValue=false)] + public StringValue AvailabilityCalculationRule { get; set; } + + [DataMember(Name="BaseUOM", EmitDefaultValue=false)] + public StringValue BaseUOM { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="DefaultWarehouseID", EmitDefaultValue=false)] + public StringValue DefaultWarehouseID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ItemType", EmitDefaultValue=false)] + public StringValue ItemType { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LotSerialClass", EmitDefaultValue=false)] + public StringValue LotSerialClass { get; set; } + + [DataMember(Name="PostingClass", EmitDefaultValue=false)] + public StringValue PostingClass { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="PurchaseUOM", EmitDefaultValue=false)] + public StringValue PurchaseUOM { get; set; } + + [DataMember(Name="SalesUOM", EmitDefaultValue=false)] + public StringValue SalesUOM { get; set; } + + [DataMember(Name="StockItem", EmitDefaultValue=false)] + public BooleanValue StockItem { get; set; } + + [DataMember(Name="TaxCategoryID", EmitDefaultValue=false)] + public StringValue TaxCategoryID { get; set; } + + [DataMember(Name="ValuationMethod", EmitDefaultValue=false)] + public StringValue ValuationMethod { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ItemClassAtrribute.cs b/Acumatica.Default_18.200.001/Model/ItemClassAtrribute.cs new file mode 100644 index 00000000..09d7c7f1 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ItemClassAtrribute.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ItemClassAtrribute : Entity + { + + [DataMember(Name="AttributeID", EmitDefaultValue=false)] + public StringValue AttributeID { get; set; } + + [DataMember(Name="Required", EmitDefaultValue=false)] + public BooleanValue Required { get; set; } + + [DataMember(Name="SortOrder", EmitDefaultValue=false)] + public ShortValue SortOrder { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ItemPriceClassesDetails.cs b/Acumatica.Default_18.200.001/Model/ItemPriceClassesDetails.cs new file mode 100644 index 00000000..29939b92 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ItemPriceClassesDetails.cs @@ -0,0 +1,15 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ItemPriceClassesDetails : Entity + { + + [DataMember(Name="PriceClassID", EmitDefaultValue=false)] + public StringValue PriceClassID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ItemSalesCategory.cs b/Acumatica.Default_18.200.001/Model/ItemSalesCategory.cs new file mode 100644 index 00000000..785ea250 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ItemSalesCategory.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ItemSalesCategory : Entity + { + + [DataMember(Name="CategoryID", EmitDefaultValue=false)] + public IntValue CategoryID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Members", EmitDefaultValue=false)] + public List Members { get; set; } + + [DataMember(Name="ParentCategoryID", EmitDefaultValue=false)] + public IntValue ParentCategoryID { get; set; } + + [DataMember(Name="Path", EmitDefaultValue=false)] + public StringValue Path { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ItemSalesCategoryMember.cs b/Acumatica.Default_18.200.001/Model/ItemSalesCategoryMember.cs new file mode 100644 index 00000000..ddc95c01 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ItemSalesCategoryMember.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ItemSalesCategoryMember : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="ItemClass", EmitDefaultValue=false)] + public StringValue ItemClass { get; set; } + + [DataMember(Name="ItemStatus", EmitDefaultValue=false)] + public StringValue ItemStatus { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ItemWarehouse.cs b/Acumatica.Default_18.200.001/Model/ItemWarehouse.cs new file mode 100644 index 00000000..2b4c9faa --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ItemWarehouse.cs @@ -0,0 +1,93 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ItemWarehouse : Entity + { + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="DefaultIssueFrom", EmitDefaultValue=false)] + public StringValue DefaultIssueFrom { get; set; } + + [DataMember(Name="DefaultReceiptTo", EmitDefaultValue=false)] + public StringValue DefaultReceiptTo { get; set; } + + [DataMember(Name="DefaultSubitem", EmitDefaultValue=false)] + public StringValue DefaultSubitem { get; set; } + + [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] + public StringValue InventoryAccount { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] + public StringValue InventorySubaccount { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="MSRP", EmitDefaultValue=false)] + public DecimalValue MSRP { get; set; } + + [DataMember(Name="OverrideInventoryAccountSubaccount", EmitDefaultValue=false)] + public BooleanValue OverrideInventoryAccountSubaccount { get; set; } + + [DataMember(Name="OverridePreferredVendor", EmitDefaultValue=false)] + public BooleanValue OverridePreferredVendor { get; set; } + + [DataMember(Name="OverridePrice", EmitDefaultValue=false)] + public BooleanValue OverridePrice { get; set; } + + [DataMember(Name="OverrideReplenishmentSettings", EmitDefaultValue=false)] + public BooleanValue OverrideReplenishmentSettings { get; set; } + + [DataMember(Name="OverrideServiceLevelOverride", EmitDefaultValue=false)] + public BooleanValue OverrideServiceLevelOverride { get; set; } + + [DataMember(Name="OverrideStandardCost", EmitDefaultValue=false)] + public BooleanValue OverrideStandardCost { get; set; } + + [DataMember(Name="PreferredLocation", EmitDefaultValue=false)] + public StringValue PreferredLocation { get; set; } + + [DataMember(Name="PreferredVendor", EmitDefaultValue=false)] + public StringValue PreferredVendor { get; set; } + + [DataMember(Name="ProductManager", EmitDefaultValue=false)] + public StringValue ProductManager { get; set; } + + [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] + public StringValue ProductWorkgroup { get; set; } + + [DataMember(Name="ReplenishmentClass", EmitDefaultValue=false)] + public StringValue ReplenishmentClass { get; set; } + + [DataMember(Name="ReplenishmentMethod", EmitDefaultValue=false)] + public StringValue ReplenishmentMethod { get; set; } + + [DataMember(Name="ReplenishmentSource", EmitDefaultValue=false)] + public StringValue ReplenishmentSource { get; set; } + + [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] + public StringValue ReplenishmentWarehouse { get; set; } + + [DataMember(Name="Seasonality", EmitDefaultValue=false)] + public StringValue Seasonality { get; set; } + + [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] + public DecimalValue ServiceLevel { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ItemsDetails.cs b/Acumatica.Default_18.200.001/Model/ItemsDetails.cs new file mode 100644 index 00000000..4087ed77 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ItemsDetails.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ItemsDetails : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/JournalTransaction.cs b/Acumatica.Default_18.200.001/Model/JournalTransaction.cs new file mode 100644 index 00000000..847d2427 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/JournalTransaction.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class JournalTransaction : Entity + { + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LedgerID", EmitDefaultValue=false)] + public StringValue LedgerID { get; set; } + + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TransactionDate", EmitDefaultValue=false)] + public DateTimeValue TransactionDate { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/JournalTransactionDetail.cs b/Acumatica.Default_18.200.001/Model/JournalTransactionDetail.cs new file mode 100644 index 00000000..35836bb0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/JournalTransactionDetail.cs @@ -0,0 +1,66 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class JournalTransactionDetail : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="CreditAmount", EmitDefaultValue=false)] + public DecimalValue CreditAmount { get; set; } + + [DataMember(Name="DebitAmount", EmitDefaultValue=false)] + public DecimalValue DebitAmount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="IsNonPM", EmitDefaultValue=false)] + public BooleanValue IsNonPM { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="NonBillable", EmitDefaultValue=false)] + public BooleanValue NonBillable { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="ProjectTransactionID", EmitDefaultValue=false)] + public LongValue ProjectTransactionID { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] + public StringValue VendorOrCustomer { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/JournalVoucher.cs b/Acumatica.Default_18.200.001/Model/JournalVoucher.cs new file mode 100644 index 00000000..b879e00a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/JournalVoucher.cs @@ -0,0 +1,75 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class JournalVoucher : Entity + { + + [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] + public StringValue BaseCurrencyID { get; set; } + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="ControlTotal", EmitDefaultValue=false)] + public DecimalValue ControlTotal { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CreditTotal", EmitDefaultValue=false)] + public DecimalValue CreditTotal { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] + public DecimalValue CurrencyRate { get; set; } + + [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] + public StringValue CurrencyRateTypeID { get; set; } + + [DataMember(Name="DebitTotal", EmitDefaultValue=false)] + public DecimalValue DebitTotal { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="GLTransactions", EmitDefaultValue=false)] + public List GLTransactions { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] + public DecimalValue ReciprocalRate { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TransactionDate", EmitDefaultValue=false)] + public DateTimeValue TransactionDate { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/JournalVoucherDetail.cs b/Acumatica.Default_18.200.001/Model/JournalVoucherDetail.cs new file mode 100644 index 00000000..241c974f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/JournalVoucherDetail.cs @@ -0,0 +1,123 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class JournalVoucherDetail : Entity + { + + [DataMember(Name="APDocumentsToApply", EmitDefaultValue=false)] + public List APDocumentsToApply { get; set; } + + [DataMember(Name="ARDocumentsToApply", EmitDefaultValue=false)] + public List ARDocumentsToApply { get; set; } + + [DataMember(Name="BatchModule", EmitDefaultValue=false)] + public StringValue BatchModule { get; set; } + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] + public IntValue CardAccountNbr { get; set; } + + [DataMember(Name="CardAccountNbrCardAccountNbr", EmitDefaultValue=false)] + public StringValue CardAccountNbrCardAccountNbr { get; set; } + + [DataMember(Name="CashDiscount", EmitDefaultValue=false)] + public DecimalValue CashDiscount { get; set; } + + [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] + public DateTimeValue CashDiscountDate { get; set; } + + [DataMember(Name="CreditAccount", EmitDefaultValue=false)] + public StringValue CreditAccount { get; set; } + + [DataMember(Name="CreditSubaccount", EmitDefaultValue=false)] + public StringValue CreditSubaccount { get; set; } + + [DataMember(Name="DebitAccount", EmitDefaultValue=false)] + public StringValue DebitAccount { get; set; } + + [DataMember(Name="DebitSubaccount", EmitDefaultValue=false)] + public StringValue DebitSubaccount { get; set; } + + [DataMember(Name="DocCreated", EmitDefaultValue=false)] + public BooleanValue DocCreated { get; set; } + + [DataMember(Name="DocTotal", EmitDefaultValue=false)] + public DecimalValue DocTotal { get; set; } + + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } + + [DataMember(Name="EntryTypeID", EmitDefaultValue=false)] + public StringValue EntryTypeID { get; set; } + + [DataMember(Name="ExternalRef", EmitDefaultValue=false)] + public StringValue ExternalRef { get; set; } + + [DataMember(Name="GroupTransactionID", EmitDefaultValue=false)] + public IntValue GroupTransactionID { get; set; } + + [DataMember(Name="IncludedTaxAmount", EmitDefaultValue=false)] + public DecimalValue IncludedTaxAmount { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } + + [DataMember(Name="Split", EmitDefaultValue=false)] + public BooleanValue Split { get; set; } + + [DataMember(Name="SubtotalAmount", EmitDefaultValue=false)] + public DecimalValue SubtotalAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="TotalAmount", EmitDefaultValue=false)] + public DecimalValue TotalAmount { get; set; } + + [DataMember(Name="TransactionCode", EmitDefaultValue=false)] + public StringValue TransactionCode { get; set; } + + [DataMember(Name="TransactionDate", EmitDefaultValue=false)] + public DateTimeValue TransactionDate { get; set; } + + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } + + [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] + public StringValue VendorOrCustomer { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs b/Acumatica.Default_18.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs new file mode 100644 index 00000000..d5d742c4 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class JournalVoucherDetailAPDocumentToApply : Entity + { + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="VendorRef", EmitDefaultValue=false)] + public StringValue VendorRef { get; set; } + + [DataMember(Name="WithTax", EmitDefaultValue=false)] + public DecimalValue WithTax { get; set; } + + [DataMember(Name="WithTaxBalance", EmitDefaultValue=false)] + public DecimalValue WithTaxBalance { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/JournalVoucherDetailARDocumentToApply.cs b/Acumatica.Default_18.200.001/Model/JournalVoucherDetailARDocumentToApply.cs new file mode 100644 index 00000000..666bf8ff --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/JournalVoucherDetailARDocumentToApply.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class JournalVoucherDetailARDocumentToApply : Entity + { + + [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] + public DecimalValue BalanceWriteOff { get; set; } + + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] + public DecimalValue WriteOffLimit { get; set; } + + [DataMember(Name="WriteOffReasonCode", EmitDefaultValue=false)] + public StringValue WriteOffReasonCode { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/JournalVoucherGLTransaction.cs b/Acumatica.Default_18.200.001/Model/JournalVoucherGLTransaction.cs new file mode 100644 index 00000000..b9ef1240 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/JournalVoucherGLTransaction.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class JournalVoucherGLTransaction : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="CreditAmount", EmitDefaultValue=false)] + public DecimalValue CreditAmount { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="DebitAmount", EmitDefaultValue=false)] + public DecimalValue DebitAmount { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="TransactionDate", EmitDefaultValue=false)] + public DateTimeValue TransactionDate { get; set; } + + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/KitAssembly.cs b/Acumatica.Default_18.200.001/Model/KitAssembly.cs new file mode 100644 index 00000000..cc086c95 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/KitAssembly.cs @@ -0,0 +1,66 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class KitAssembly : Entity + { + + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="KitInventoryID", EmitDefaultValue=false)] + public StringValue KitInventoryID { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="NonStockComponents", EmitDefaultValue=false)] + public List NonStockComponents { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Revision", EmitDefaultValue=false)] + public StringValue Revision { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="StockComponents", EmitDefaultValue=false)] + public List StockComponents { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/KitAssemblyAllocation.cs b/Acumatica.Default_18.200.001/Model/KitAssemblyAllocation.cs new file mode 100644 index 00000000..35b2f702 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/KitAssemblyAllocation.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class KitAssemblyAllocation : Entity + { + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] + public IntValue SplitLineNbr { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/KitAssemblyNonStockComponent.cs b/Acumatica.Default_18.200.001/Model/KitAssemblyNonStockComponent.cs new file mode 100644 index 00000000..0c76b45b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/KitAssemblyNonStockComponent.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class KitAssemblyNonStockComponent : Entity + { + + [DataMember(Name="ComponentQty", EmitDefaultValue=false)] + public DecimalValue ComponentQty { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="NonStockInventoryID", EmitDefaultValue=false)] + public StringValue NonStockInventoryID { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/KitAssemblyStockComponent.cs b/Acumatica.Default_18.200.001/Model/KitAssemblyStockComponent.cs new file mode 100644 index 00000000..edfe2dc6 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/KitAssemblyStockComponent.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class KitAssemblyStockComponent : Entity + { + + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } + + [DataMember(Name="ComponentQty", EmitDefaultValue=false)] + public DecimalValue ComponentQty { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } + + [DataMember(Name="StockInventoryID", EmitDefaultValue=false)] + public StringValue StockInventoryID { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/KitAssemblyStockComponentAllocation.cs b/Acumatica.Default_18.200.001/Model/KitAssemblyStockComponentAllocation.cs new file mode 100644 index 00000000..02f43dab --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/KitAssemblyStockComponentAllocation.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class KitAssemblyStockComponentAllocation : Entity + { + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] + public IntValue SplitLineNbr { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/KitNonStockComponent.cs b/Acumatica.Default_18.200.001/Model/KitNonStockComponent.cs new file mode 100644 index 00000000..d268aad2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/KitNonStockComponent.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class KitNonStockComponent : Entity + { + + [DataMember(Name="AllowComponentQtyVariance", EmitDefaultValue=false)] + public BooleanValue AllowComponentQtyVariance { get; set; } + + [DataMember(Name="ComponentQty", EmitDefaultValue=false)] + public DecimalValue ComponentQty { get; set; } + + [DataMember(Name="MaxComponentQty", EmitDefaultValue=false)] + public DecimalValue MaxComponentQty { get; set; } + + [DataMember(Name="MinComponentQty", EmitDefaultValue=false)] + public DecimalValue MinComponentQty { get; set; } + + [DataMember(Name="NonStockInventoryID", EmitDefaultValue=false)] + public StringValue NonStockInventoryID { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/KitSpecification.cs b/Acumatica.Default_18.200.001/Model/KitSpecification.cs new file mode 100644 index 00000000..63715be9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/KitSpecification.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class KitSpecification : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="IsNonStock", EmitDefaultValue=false)] + public BooleanValue IsNonStock { get; set; } + + [DataMember(Name="KitInventoryID", EmitDefaultValue=false)] + public StringValue KitInventoryID { get; set; } + + [DataMember(Name="NonStockComponents", EmitDefaultValue=false)] + public List NonStockComponents { get; set; } + + [DataMember(Name="RevisionID", EmitDefaultValue=false)] + public StringValue RevisionID { get; set; } + + [DataMember(Name="StockComponents", EmitDefaultValue=false)] + public List StockComponents { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/KitStockComponent.cs b/Acumatica.Default_18.200.001/Model/KitStockComponent.cs new file mode 100644 index 00000000..76765f04 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/KitStockComponent.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class KitStockComponent : Entity + { + + [DataMember(Name="AllowComponentQtyVariance", EmitDefaultValue=false)] + public BooleanValue AllowComponentQtyVariance { get; set; } + + [DataMember(Name="ComponentQty", EmitDefaultValue=false)] + public DecimalValue ComponentQty { get; set; } + + [DataMember(Name="MaxComponentQty", EmitDefaultValue=false)] + public DecimalValue MaxComponentQty { get; set; } + + [DataMember(Name="MinComponentQty", EmitDefaultValue=false)] + public DecimalValue MinComponentQty { get; set; } + + [DataMember(Name="StockInventoryID", EmitDefaultValue=false)] + public StringValue StockInventoryID { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/LaborCostRate.cs b/Acumatica.Default_18.200.001/Model/LaborCostRate.cs new file mode 100644 index 00000000..29120b87 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/LaborCostRate.cs @@ -0,0 +1,60 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class LaborCostRate : Entity + { + + [DataMember(Name="AnnualRate", EmitDefaultValue=false)] + public DecimalValue AnnualRate { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="EmployeeID", EmitDefaultValue=false)] + public StringValue EmployeeID { get; set; } + + [DataMember(Name="EmployeeName", EmitDefaultValue=false)] + public StringValue EmployeeName { get; set; } + + [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] + public StringValue ExternalRefNbr { get; set; } + + [DataMember(Name="HourlyRate", EmitDefaultValue=false)] + public DecimalValue HourlyRate { get; set; } + + [DataMember(Name="LaborItem", EmitDefaultValue=false)] + public StringValue LaborItem { get; set; } + + [DataMember(Name="LaborRateType", EmitDefaultValue=false)] + public StringValue LaborRateType { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } + + [DataMember(Name="RegularHoursPerWeek", EmitDefaultValue=false)] + public DecimalValue RegularHoursPerWeek { get; set; } + + [DataMember(Name="TypeOfEmployment", EmitDefaultValue=false)] + public StringValue TypeOfEmployment { get; set; } + + [DataMember(Name="UnionLocalID", EmitDefaultValue=false)] + public StringValue UnionLocalID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Lead.cs b/Acumatica.Default_18.200.001/Model/Lead.cs new file mode 100644 index 00000000..fe68110b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Lead.cs @@ -0,0 +1,153 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Lead : Entity + { + + [DataMember(Name="Activities", EmitDefaultValue=false)] + public List Activities { get; set; } + + [DataMember(Name="Address", EmitDefaultValue=false)] + public Address Address { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } + + [DataMember(Name="Campaigns", EmitDefaultValue=false)] + public List Campaigns { get; set; } + + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public StringValue CompanyName { get; set; } + + [DataMember(Name="ContactMethod", EmitDefaultValue=false)] + public StringValue ContactMethod { get; set; } + + [DataMember(Name="DoNotCall", EmitDefaultValue=false)] + public BooleanValue DoNotCall { get; set; } + + [DataMember(Name="DoNotEmail", EmitDefaultValue=false)] + public BooleanValue DoNotEmail { get; set; } + + [DataMember(Name="DoNotFax", EmitDefaultValue=false)] + public BooleanValue DoNotFax { get; set; } + + [DataMember(Name="DoNotMail", EmitDefaultValue=false)] + public BooleanValue DoNotMail { get; set; } + + [DataMember(Name="Duplicate", EmitDefaultValue=false)] + public StringValue Duplicate { get; set; } + + [DataMember(Name="DuplicateFound", EmitDefaultValue=false)] + public BooleanValue DuplicateFound { get; set; } + + [DataMember(Name="Duplicates", EmitDefaultValue=false)] + public List Duplicates { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } + + [DataMember(Name="FaxType", EmitDefaultValue=false)] + public StringValue FaxType { get; set; } + + [DataMember(Name="FirstName", EmitDefaultValue=false)] + public StringValue FirstName { get; set; } + + [DataMember(Name="JobTitle", EmitDefaultValue=false)] + public StringValue JobTitle { get; set; } + + [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] + public StringValue LanguageOrLocale { get; set; } + + [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] + public DateTimeValue LastIncomingActivity { get; set; } + + [DataMember(Name="LastName", EmitDefaultValue=false)] + public StringValue LastName { get; set; } + + [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] + public DateTimeValue LastOutgoingActivity { get; set; } + + [DataMember(Name="LeadClass", EmitDefaultValue=false)] + public StringValue LeadClass { get; set; } + + [DataMember(Name="LeadDisplayName", EmitDefaultValue=false)] + public StringValue LeadDisplayName { get; set; } + + [DataMember(Name="LeadID", EmitDefaultValue=false)] + public IntValue LeadID { get; set; } + + [DataMember(Name="MarketingLists", EmitDefaultValue=false)] + public List MarketingLists { get; set; } + + [DataMember(Name="NoMarketing", EmitDefaultValue=false)] + public BooleanValue NoMarketing { get; set; } + + [DataMember(Name="NoMassMail", EmitDefaultValue=false)] + public BooleanValue NoMassMail { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] + public StringValue OwnerEmployeeName { get; set; } + + [DataMember(Name="ParentAccount", EmitDefaultValue=false)] + public StringValue ParentAccount { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + [DataMember(Name="Phone1Type", EmitDefaultValue=false)] + public StringValue Phone1Type { get; set; } + + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } + + [DataMember(Name="Phone2Type", EmitDefaultValue=false)] + public StringValue Phone2Type { get; set; } + + [DataMember(Name="Phone3", EmitDefaultValue=false)] + public StringValue Phone3 { get; set; } + + [DataMember(Name="Phone3Type", EmitDefaultValue=false)] + public StringValue Phone3Type { get; set; } + + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } + + [DataMember(Name="Relations", EmitDefaultValue=false)] + public List Relations { get; set; } + + [DataMember(Name="Source", EmitDefaultValue=false)] + public StringValue Source { get; set; } + + [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] + public StringValue SourceCampaign { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Title", EmitDefaultValue=false)] + public StringValue Title { get; set; } + + [DataMember(Name="WebSite", EmitDefaultValue=false)] + public StringValue WebSite { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] + public StringValue WorkgroupDescription { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/LotSerialClass.cs b/Acumatica.Default_18.200.001/Model/LotSerialClass.cs new file mode 100644 index 00000000..7b4d945a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/LotSerialClass.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class LotSerialClass : Entity + { + + [DataMember(Name="AssignmentMethod", EmitDefaultValue=false)] + public StringValue AssignmentMethod { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="IssueMethod", EmitDefaultValue=false)] + public StringValue IssueMethod { get; set; } + + [DataMember(Name="Segments", EmitDefaultValue=false)] + public List Segments { get; set; } + + [DataMember(Name="TrackExpirationDate", EmitDefaultValue=false)] + public BooleanValue TrackExpirationDate { get; set; } + + [DataMember(Name="TrackingMethod", EmitDefaultValue=false)] + public StringValue TrackingMethod { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/LotSerialClassSegment.cs b/Acumatica.Default_18.200.001/Model/LotSerialClassSegment.cs new file mode 100644 index 00000000..7e3617ff --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/LotSerialClassSegment.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class LotSerialClassSegment : Entity + { + + [DataMember(Name="SegmentNbr", EmitDefaultValue=false)] + public ShortValue SegmentNbr { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ManageFinancialPeriods.cs b/Acumatica.Default_18.200.001/Model/ManageFinancialPeriods.cs new file mode 100644 index 00000000..2c853134 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ManageFinancialPeriods.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ManageFinancialPeriods : Entity + { + + [DataMember(Name="ActionToPerform", EmitDefaultValue=false)] + public StringValue ActionToPerform { get; set; } + + [DataMember(Name="Company", EmitDefaultValue=false)] + public StringValue Company { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="FromYear", EmitDefaultValue=false)] + public StringValue FromYear { get; set; } + + [DataMember(Name="ReopenFinancialPeriodsinAllModules", EmitDefaultValue=false)] + public BooleanValue ReopenFinancialPeriodsinAllModules { get; set; } + + [DataMember(Name="ToYear", EmitDefaultValue=false)] + public StringValue ToYear { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ManageFinancialPeriodsDetail.cs b/Acumatica.Default_18.200.001/Model/ManageFinancialPeriodsDetail.cs new file mode 100644 index 00000000..febc8a0b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ManageFinancialPeriodsDetail.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ManageFinancialPeriodsDetail : Entity + { + + [DataMember(Name="ClosedinAP", EmitDefaultValue=false)] + public BooleanValue ClosedinAP { get; set; } + + [DataMember(Name="ClosedinAR", EmitDefaultValue=false)] + public BooleanValue ClosedinAR { get; set; } + + [DataMember(Name="ClosedinCA", EmitDefaultValue=false)] + public BooleanValue ClosedinCA { get; set; } + + [DataMember(Name="ClosedinFA", EmitDefaultValue=false)] + public BooleanValue ClosedinFA { get; set; } + + [DataMember(Name="ClosedinIN", EmitDefaultValue=false)] + public BooleanValue ClosedinIN { get; set; } + + [DataMember(Name="DescriptionDescription", EmitDefaultValue=false)] + public StringValue DescriptionDescription { get; set; } + + [DataMember(Name="FinancialPeriodID", EmitDefaultValue=false)] + public StringValue FinancialPeriodID { get; set; } + + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Default.18.200.001/Model/MarkLeadAsValidated.cs b/Acumatica.Default_18.200.001/Model/MarkLeadAsValidated.cs similarity index 100% rename from Default.18.200.001/Model/MarkLeadAsValidated.cs rename to Acumatica.Default_18.200.001/Model/MarkLeadAsValidated.cs diff --git a/Acumatica.Default_18.200.001/Model/MarketingListDetail.cs b/Acumatica.Default_18.200.001/Model/MarketingListDetail.cs new file mode 100644 index 00000000..225fd642 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/MarketingListDetail.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class MarketingListDetail : Entity + { + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="DynamicList", EmitDefaultValue=false)] + public BooleanValue DynamicList { get; set; } + + [DataMember(Name="Format", EmitDefaultValue=false)] + public StringValue Format { get; set; } + + [DataMember(Name="ListName", EmitDefaultValue=false)] + public StringValue ListName { get; set; } + + [DataMember(Name="MarketingListID", EmitDefaultValue=false)] + public IntValue MarketingListID { get; set; } + + [DataMember(Name="Subscribed", EmitDefaultValue=false)] + public BooleanValue Subscribed { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/NonStockItem.cs b/Acumatica.Default_18.200.001/Model/NonStockItem.cs new file mode 100644 index 00000000..4fe7cd5c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/NonStockItem.cs @@ -0,0 +1,138 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class NonStockItem : Entity + { + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BaseUnit", EmitDefaultValue=false)] + public StringValue BaseUnit { get; set; } + + [DataMember(Name="CrossReferences", EmitDefaultValue=false)] + public List CrossReferences { get; set; } + + [DataMember(Name="CurrentCost", EmitDefaultValue=false)] + public DecimalValue CurrentCost { get; set; } + + [DataMember(Name="DefaultPrice", EmitDefaultValue=false)] + public DecimalValue DefaultPrice { get; set; } + + [DataMember(Name="DeferralAccount", EmitDefaultValue=false)] + public StringValue DeferralAccount { get; set; } + + [DataMember(Name="DeferralSubaccount", EmitDefaultValue=false)] + public StringValue DeferralSubaccount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="ExpenseAccount", EmitDefaultValue=false)] + public StringValue ExpenseAccount { get; set; } + + [DataMember(Name="ExpenseAccrualAccount", EmitDefaultValue=false)] + public StringValue ExpenseAccrualAccount { get; set; } + + [DataMember(Name="ExpenseAccrualSubaccount", EmitDefaultValue=false)] + public StringValue ExpenseAccrualSubaccount { get; set; } + + [DataMember(Name="ExpenseSubaccount", EmitDefaultValue=false)] + public StringValue ExpenseSubaccount { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="IsKit", EmitDefaultValue=false)] + public BooleanValue IsKit { get; set; } + + [DataMember(Name="ItemClass", EmitDefaultValue=false)] + public StringValue ItemClass { get; set; } + + [DataMember(Name="ItemStatus", EmitDefaultValue=false)] + public StringValue ItemStatus { get; set; } + + [DataMember(Name="ItemType", EmitDefaultValue=false)] + public StringValue ItemType { get; set; } + + [DataMember(Name="LastCost", EmitDefaultValue=false)] + public DecimalValue LastCost { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="PendingCost", EmitDefaultValue=false)] + public DecimalValue PendingCost { get; set; } + + [DataMember(Name="PendingCostDate", EmitDefaultValue=false)] + public DateTimeValue PendingCostDate { get; set; } + + [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] + public StringValue POAccrualAccount { get; set; } + + [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] + public StringValue POAccrualSubaccount { get; set; } + + [DataMember(Name="PostingClass", EmitDefaultValue=false)] + public StringValue PostingClass { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceAccount { get; set; } + + [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceSubaccount { get; set; } + + [DataMember(Name="PurchaseUnit", EmitDefaultValue=false)] + public StringValue PurchaseUnit { get; set; } + + [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] + public StringValue ReasonCodeSubaccount { get; set; } + + [DataMember(Name="RequireReceipt", EmitDefaultValue=false)] + public BooleanValue RequireReceipt { get; set; } + + [DataMember(Name="RequireShipment", EmitDefaultValue=false)] + public BooleanValue RequireShipment { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesCategories", EmitDefaultValue=false)] + public List SalesCategories { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="SalesUnit", EmitDefaultValue=false)] + public StringValue SalesUnit { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="VendorDetails", EmitDefaultValue=false)] + public List VendorDetails { get; set; } + + [DataMember(Name="Volume", EmitDefaultValue=false)] + public DecimalValue Volume { get; set; } + + [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] + public StringValue VolumeUOM { get; set; } + + [DataMember(Name="Weight", EmitDefaultValue=false)] + public DecimalValue Weight { get; set; } + + [DataMember(Name="WeightUOM", EmitDefaultValue=false)] + public StringValue WeightUOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/NonStockItemAttribute.cs b/Acumatica.Default_18.200.001/Model/NonStockItemAttribute.cs new file mode 100644 index 00000000..eb47dd3e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/NonStockItemAttribute.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class NonStockItemAttribute : Entity + { + + [DataMember(Name="Attribute", EmitDefaultValue=false)] + public StringValue Attribute { get; set; } + + [DataMember(Name="Required", EmitDefaultValue=false)] + public BooleanValue Required { get; set; } + + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/NonStockItemSalesCategory.cs b/Acumatica.Default_18.200.001/Model/NonStockItemSalesCategory.cs new file mode 100644 index 00000000..6b0f10fb --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/NonStockItemSalesCategory.cs @@ -0,0 +1,15 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class NonStockItemSalesCategory : Entity + { + + [DataMember(Name="CategoryID", EmitDefaultValue=false)] + public IntValue CategoryID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/NonStockItemVendorDetail.cs b/Acumatica.Default_18.200.001/Model/NonStockItemVendorDetail.cs new file mode 100644 index 00000000..c4febc50 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/NonStockItemVendorDetail.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class NonStockItemVendorDetail : Entity + { + + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } + + [DataMember(Name="VendorName", EmitDefaultValue=false)] + public StringValue VendorName { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Opportunity.cs b/Acumatica.Default_18.200.001/Model/Opportunity.cs new file mode 100644 index 00000000..4dc8bc13 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Opportunity.cs @@ -0,0 +1,132 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Opportunity : Entity + { + + [DataMember(Name="Activities", EmitDefaultValue=false)] + public List Activities { get; set; } + + [DataMember(Name="Address", EmitDefaultValue=false)] + public Address Address { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] + public StringValue BusinessAccount { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] + public StringValue ContactDisplayName { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="ContactInformation", EmitDefaultValue=false)] + public OpportunityContact ContactInformation { get; set; } + + [DataMember(Name="ConvertedLeadDisplayName", EmitDefaultValue=false)] + public StringValue ConvertedLeadDisplayName { get; set; } + + [DataMember(Name="ConvertedLeadID", EmitDefaultValue=false)] + public IntValue ConvertedLeadID { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyViewState", EmitDefaultValue=false)] + public BooleanValue CurrencyViewState { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public StringValue Details { get; set; } + + [DataMember(Name="Discount", EmitDefaultValue=false)] + public DecimalValue Discount { get; set; } + + [DataMember(Name="Discounts", EmitDefaultValue=false)] + public List Discounts { get; set; } + + [DataMember(Name="Estimation", EmitDefaultValue=false)] + public DateTimeValue Estimation { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="ManualAmount", EmitDefaultValue=false)] + public BooleanValue ManualAmount { get; set; } + + [DataMember(Name="OpportunityID", EmitDefaultValue=false)] + public StringValue OpportunityID { get; set; } + + [DataMember(Name="Override", EmitDefaultValue=false)] + public BooleanValue Override { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] + public StringValue OwnerEmployeeName { get; set; } + + [DataMember(Name="ParentAccount", EmitDefaultValue=false)] + public StringValue ParentAccount { get; set; } + + [DataMember(Name="Products", EmitDefaultValue=false)] + public List Products { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="Reason", EmitDefaultValue=false)] + public StringValue Reason { get; set; } + + [DataMember(Name="Relations", EmitDefaultValue=false)] + public List Relations { get; set; } + + [DataMember(Name="Source", EmitDefaultValue=false)] + public StringValue Source { get; set; } + + [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] + public StringValue SourceCampaign { get; set; } + + [DataMember(Name="Stage", EmitDefaultValue=false)] + public StringValue Stage { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Total", EmitDefaultValue=false)] + public DecimalValue Total { get; set; } + + [DataMember(Name="WeightTotal", EmitDefaultValue=false)] + public DecimalValue WeightTotal { get; set; } + + [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] + public StringValue WorkgroupDescription { get; set; } + + [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] + public StringValue WorkgroupID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/OpportunityContact.cs b/Acumatica.Default_18.200.001/Model/OpportunityContact.cs new file mode 100644 index 00000000..f7e9d1f3 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/OpportunityContact.cs @@ -0,0 +1,60 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class OpportunityContact : Entity + { + + [DataMember(Name="Attention", EmitDefaultValue=false)] + public StringValue Attention { get; set; } + + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public StringValue CompanyName { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Fax", EmitDefaultValue=false)] + public StringValue Fax { get; set; } + + [DataMember(Name="FaxType", EmitDefaultValue=false)] + public StringValue FaxType { get; set; } + + [DataMember(Name="FirstName", EmitDefaultValue=false)] + public StringValue FirstName { get; set; } + + [DataMember(Name="LastName", EmitDefaultValue=false)] + public StringValue LastName { get; set; } + + [DataMember(Name="Phone1", EmitDefaultValue=false)] + public StringValue Phone1 { get; set; } + + [DataMember(Name="Phone1Type", EmitDefaultValue=false)] + public StringValue Phone1Type { get; set; } + + [DataMember(Name="Phone2", EmitDefaultValue=false)] + public StringValue Phone2 { get; set; } + + [DataMember(Name="Phone2Type", EmitDefaultValue=false)] + public StringValue Phone2Type { get; set; } + + [DataMember(Name="Phone3", EmitDefaultValue=false)] + public StringValue Phone3 { get; set; } + + [DataMember(Name="Phone3Type", EmitDefaultValue=false)] + public StringValue Phone3Type { get; set; } + + [DataMember(Name="Position", EmitDefaultValue=false)] + public StringValue Position { get; set; } + + [DataMember(Name="Title", EmitDefaultValue=false)] + public StringValue Title { get; set; } + + [DataMember(Name="WebSite", EmitDefaultValue=false)] + public StringValue WebSite { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/OpportunityDetail.cs b/Acumatica.Default_18.200.001/Model/OpportunityDetail.cs new file mode 100644 index 00000000..28d8eec9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/OpportunityDetail.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class OpportunityDetail : Entity + { + + [DataMember(Name="Currency", EmitDefaultValue=false)] + public StringValue Currency { get; set; } + + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public StringValue DisplayName { get; set; } + + [DataMember(Name="Estimation", EmitDefaultValue=false)] + public DateTimeValue Estimation { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="Probability", EmitDefaultValue=false)] + public IntValue Probability { get; set; } + + [DataMember(Name="Stage", EmitDefaultValue=false)] + public StringValue Stage { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + [DataMember(Name="Total", EmitDefaultValue=false)] + public DecimalValue Total { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/OpportunityDiscount.cs b/Acumatica.Default_18.200.001/Model/OpportunityDiscount.cs new file mode 100644 index 00000000..a2be4a42 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/OpportunityDiscount.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class OpportunityDiscount : Entity + { + + [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] + public DecimalValue DiscountableAmount { get; set; } + + [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] + public DecimalValue DiscountableQty { get; set; } + + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } + + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } + + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } + + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public StringValue FreeItem { get; set; } + + [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] + public DecimalValue FreeItemQty { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } + + [DataMember(Name="SequenceID", EmitDefaultValue=false)] + public StringValue SequenceID { get; set; } + + [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] + public BooleanValue SkipDiscount { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/OpportunityProduct.cs b/Acumatica.Default_18.200.001/Model/OpportunityProduct.cs new file mode 100644 index 00000000..4044eb23 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/OpportunityProduct.cs @@ -0,0 +1,66 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class OpportunityProduct : Entity + { + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="Discount", EmitDefaultValue=false)] + public DecimalValue Discount { get; set; } + + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } + + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } + + [DataMember(Name="DiscountSequence", EmitDefaultValue=false)] + public StringValue DiscountSequence { get; set; } + + [DataMember(Name="ExternalPrice", EmitDefaultValue=false)] + public DecimalValue ExternalPrice { get; set; } + + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public BooleanValue FreeItem { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } + + [DataMember(Name="OpportunityProductID", EmitDefaultValue=false)] + public IntValue OpportunityProductID { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } + + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/OpportunityTaxDetail.cs b/Acumatica.Default_18.200.001/Model/OpportunityTaxDetail.cs new file mode 100644 index 00000000..6683ff9b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/OpportunityTaxDetail.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class OpportunityTaxDetail : Entity + { + + [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] + public BooleanValue IncludeInVATExemptTotal { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="PendingVAT", EmitDefaultValue=false)] + public BooleanValue PendingVAT { get; set; } + + [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] + public BooleanValue ReverseVAT { get; set; } + + [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] + public BooleanValue StatisticalVAT { get; set; } + + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } + + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public StringValue TaxType { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Payment.cs b/Acumatica.Default_18.200.001/Model/Payment.cs new file mode 100644 index 00000000..45e76cf0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Payment.cs @@ -0,0 +1,66 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Payment : Entity + { + + [DataMember(Name="ApplicationDate", EmitDefaultValue=false)] + public DateTimeValue ApplicationDate { get; set; } + + [DataMember(Name="ApplicationHistory", EmitDefaultValue=false)] + public List ApplicationHistory { get; set; } + + [DataMember(Name="AppliedToDocuments", EmitDefaultValue=false)] + public DecimalValue AppliedToDocuments { get; set; } + + [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] + public IntValue CardAccountNbr { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="CreditCardProcessingInfo", EmitDefaultValue=false)] + public List CreditCardProcessingInfo { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DocumentsToApply", EmitDefaultValue=false)] + public List DocumentsToApply { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="OrdersToApply", EmitDefaultValue=false)] + public List OrdersToApply { get; set; } + + [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] + public DecimalValue PaymentAmount { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PaymentApplicationHistoryDetail.cs b/Acumatica.Default_18.200.001/Model/PaymentApplicationHistoryDetail.cs new file mode 100644 index 00000000..b19875ba --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PaymentApplicationHistoryDetail.cs @@ -0,0 +1,84 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PaymentApplicationHistoryDetail : Entity + { + + [DataMember(Name="AdjustedDocType", EmitDefaultValue=false)] + public StringValue AdjustedDocType { get; set; } + + [DataMember(Name="AdjustedRefNbr", EmitDefaultValue=false)] + public StringValue AdjustedRefNbr { get; set; } + + [DataMember(Name="AdjustingDocType", EmitDefaultValue=false)] + public StringValue AdjustingDocType { get; set; } + + [DataMember(Name="AdjustingRefNbr", EmitDefaultValue=false)] + public StringValue AdjustingRefNbr { get; set; } + + [DataMember(Name="AdjustmentNbr", EmitDefaultValue=false)] + public IntValue AdjustmentNbr { get; set; } + + [DataMember(Name="AdjustsVAT", EmitDefaultValue=false)] + public BooleanValue AdjustsVAT { get; set; } + + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } + + [DataMember(Name="ApplicationPeriod", EmitDefaultValue=false)] + public StringValue ApplicationPeriod { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] + public DecimalValue BalanceWriteOff { get; set; } + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] + public DecimalValue CashDiscountBalance { get; set; } + + [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] + public DateTimeValue CashDiscountDate { get; set; } + + [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] + public DecimalValue CashDiscountTaken { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } + + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DisplayDocType", EmitDefaultValue=false)] + public StringValue DisplayDocType { get; set; } + + [DataMember(Name="DisplayRefNbr", EmitDefaultValue=false)] + public StringValue DisplayRefNbr { get; set; } + + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="VATCreditMemo", EmitDefaultValue=false)] + public StringValue VATCreditMemo { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PaymentDetail.cs b/Acumatica.Default_18.200.001/Model/PaymentDetail.cs new file mode 100644 index 00000000..a48fe85d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PaymentDetail.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PaymentDetail : Entity + { + + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } + + [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] + public DecimalValue BalanceWriteOff { get; set; } + + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="WriteOffReasonCode", EmitDefaultValue=false)] + public StringValue WriteOffReasonCode { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PaymentMethod.cs b/Acumatica.Default_18.200.001/Model/PaymentMethod.cs new file mode 100644 index 00000000..d96830a3 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PaymentMethod.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PaymentMethod : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="AllowedCashAccounts", EmitDefaultValue=false)] + public List AllowedCashAccounts { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="IntegratedProcessing", EmitDefaultValue=false)] + public BooleanValue IntegratedProcessing { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="MeansOfPayment", EmitDefaultValue=false)] + public StringValue MeansOfPayment { get; set; } + + [DataMember(Name="PaymentMethodID", EmitDefaultValue=false)] + public StringValue PaymentMethodID { get; set; } + + [DataMember(Name="ProcessingCenters", EmitDefaultValue=false)] + public List ProcessingCenters { get; set; } + + [DataMember(Name="RequireRemittanceInformationforCashAccount", EmitDefaultValue=false)] + public BooleanValue RequireRemittanceInformationforCashAccount { get; set; } + + [DataMember(Name="UseInAP", EmitDefaultValue=false)] + public BooleanValue UseInAP { get; set; } + + [DataMember(Name="UseInAR", EmitDefaultValue=false)] + public BooleanValue UseInAR { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs b/Acumatica.Default_18.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs new file mode 100644 index 00000000..cb0fc61b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs @@ -0,0 +1,54 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PaymentMethodAllowedCashAccountDetail : Entity + { + + [DataMember(Name="APDefault", EmitDefaultValue=false)] + public BooleanValue APDefault { get; set; } + + [DataMember(Name="APLastRefNbr", EmitDefaultValue=false)] + public StringValue APLastRefNbr { get; set; } + + [DataMember(Name="APSuggestNextNbr", EmitDefaultValue=false)] + public BooleanValue APSuggestNextNbr { get; set; } + + [DataMember(Name="ARDefault", EmitDefaultValue=false)] + public BooleanValue ARDefault { get; set; } + + [DataMember(Name="ARDefaultForRefund", EmitDefaultValue=false)] + public BooleanValue ARDefaultForRefund { get; set; } + + [DataMember(Name="ARLastRefNbr", EmitDefaultValue=false)] + public StringValue ARLastRefNbr { get; set; } + + [DataMember(Name="ARSuggestNextNbr", EmitDefaultValue=false)] + public BooleanValue ARSuggestNextNbr { get; set; } + + [DataMember(Name="BatchLastRefNbr", EmitDefaultValue=false)] + public StringValue BatchLastRefNbr { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="UseInAP", EmitDefaultValue=false)] + public BooleanValue UseInAP { get; set; } + + [DataMember(Name="UseInAR", EmitDefaultValue=false)] + public BooleanValue UseInAR { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PaymentMethodProcessingCenterDetail.cs b/Acumatica.Default_18.200.001/Model/PaymentMethodProcessingCenterDetail.cs new file mode 100644 index 00000000..00275800 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PaymentMethodProcessingCenterDetail.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PaymentMethodProcessingCenterDetail : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Default", EmitDefaultValue=false)] + public BooleanValue Default { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="ProcCenterID", EmitDefaultValue=false)] + public StringValue ProcCenterID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PaymentOrderDetail.cs b/Acumatica.Default_18.200.001/Model/PaymentOrderDetail.cs new file mode 100644 index 00000000..e43b8d0e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PaymentOrderDetail.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PaymentOrderDetail : Entity + { + + [DataMember(Name="AppliedToOrder", EmitDefaultValue=false)] + public DecimalValue AppliedToOrder { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Payments.cs b/Acumatica.Default_18.200.001/Model/Payments.cs new file mode 100644 index 00000000..fba5dea2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Payments.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Payments : Entity + { + + [DataMember(Name="AppliedToOrder", EmitDefaultValue=false)] + public DecimalValue AppliedToOrder { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] + public DecimalValue PaymentAmount { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TransferredtoInvoice", EmitDefaultValue=false)] + public DecimalValue TransferredtoInvoice { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PhysicalInventoryCount.cs b/Acumatica.Default_18.200.001/Model/PhysicalInventoryCount.cs new file mode 100644 index 00000000..93e8000b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PhysicalInventoryCount.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PhysicalInventoryCount : Entity + { + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PhysicalInventoryCountDetail.cs b/Acumatica.Default_18.200.001/Model/PhysicalInventoryCountDetail.cs new file mode 100644 index 00000000..06943013 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PhysicalInventoryCountDetail.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PhysicalInventoryCountDetail : Entity + { + + [DataMember(Name="BookQty", EmitDefaultValue=false)] + public DecimalValue BookQty { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="PhysicalQty", EmitDefaultValue=false)] + public DecimalValue PhysicalQty { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PhysicalInventoryReview.cs b/Acumatica.Default_18.200.001/Model/PhysicalInventoryReview.cs new file mode 100644 index 00000000..816151e7 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PhysicalInventoryReview.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PhysicalInventoryReview : Entity + { + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="FreezeDate", EmitDefaultValue=false)] + public DateTimeValue FreezeDate { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TotalPhysicalQty", EmitDefaultValue=false)] + public DecimalValue TotalPhysicalQty { get; set; } + + [DataMember(Name="TotalVarianceCost", EmitDefaultValue=false)] + public DecimalValue TotalVarianceCost { get; set; } + + [DataMember(Name="TotalVarianceQty", EmitDefaultValue=false)] + public DecimalValue TotalVarianceQty { get; set; } + + [DataMember(Name="TypeID", EmitDefaultValue=false)] + public StringValue TypeID { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PhysicalInventoryReviewDetail.cs b/Acumatica.Default_18.200.001/Model/PhysicalInventoryReviewDetail.cs new file mode 100644 index 00000000..6e7dc115 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PhysicalInventoryReviewDetail.cs @@ -0,0 +1,57 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PhysicalInventoryReviewDetail : Entity + { + + [DataMember(Name="BookQty", EmitDefaultValue=false)] + public DecimalValue BookQty { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="ExtendedVarianceCost", EmitDefaultValue=false)] + public DecimalValue ExtendedVarianceCost { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="PhysicalQty", EmitDefaultValue=false)] + public DecimalValue PhysicalQty { get; set; } + + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="TagNbr", EmitDefaultValue=false)] + public IntValue TagNbr { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="VarianceQty", EmitDefaultValue=false)] + public DecimalValue VarianceQty { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProFormaFinancialDetails.cs b/Acumatica.Default_18.200.001/Model/ProFormaFinancialDetails.cs new file mode 100644 index 00000000..7ba38ea6 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProFormaFinancialDetails.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProFormaFinancialDetails : Entity + { + + [DataMember(Name="ARDocType", EmitDefaultValue=false)] + public StringValue ARDocType { get; set; } + + [DataMember(Name="ARRefNbr", EmitDefaultValue=false)] + public StringValue ARRefNbr { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] + public DateTimeValue CashDiscountDate { get; set; } + + [DataMember(Name="CustomerTaxZone", EmitDefaultValue=false)] + public StringValue CustomerTaxZone { get; set; } + + [DataMember(Name="CustomerUsageType", EmitDefaultValue=false)] + public StringValue CustomerUsageType { get; set; } + + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProFormaInvoice.cs b/Acumatica.Default_18.200.001/Model/ProFormaInvoice.cs new file mode 100644 index 00000000..8bbdb8df --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProFormaInvoice.cs @@ -0,0 +1,87 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProFormaInvoice : Entity + { + + [DataMember(Name="AmountDue", EmitDefaultValue=false)] + public DecimalValue AmountDue { get; set; } + + [DataMember(Name="ApprovalDetails", EmitDefaultValue=false)] + public List ApprovalDetails { get; set; } + + [DataMember(Name="BillingSettings", EmitDefaultValue=false)] + public BillToSettings BillingSettings { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] + public StringValue ExternalRefNbr { get; set; } + + [DataMember(Name="FinancialDetails", EmitDefaultValue=false)] + public ProFormaFinancialDetails FinancialDetails { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="InvoiceDate", EmitDefaultValue=false)] + public DateTimeValue InvoiceDate { get; set; } + + [DataMember(Name="InvoiceTotal", EmitDefaultValue=false)] + public DecimalValue InvoiceTotal { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="ProgressBilling", EmitDefaultValue=false)] + public List ProgressBilling { get; set; } + + [DataMember(Name="ProgressBillingTotal", EmitDefaultValue=false)] + public DecimalValue ProgressBillingTotal { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="RefNbr", EmitDefaultValue=false)] + public StringValue RefNbr { get; set; } + + [DataMember(Name="RetainageTotal", EmitDefaultValue=false)] + public DecimalValue RetainageTotal { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + [DataMember(Name="TimeAndMaterial", EmitDefaultValue=false)] + public List TimeAndMaterial { get; set; } + + [DataMember(Name="TimeAndMaterialTotal", EmitDefaultValue=false)] + public DecimalValue TimeAndMaterialTotal { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProFormaTaxDetail.cs b/Acumatica.Default_18.200.001/Model/ProFormaTaxDetail.cs new file mode 100644 index 00000000..06580e31 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProFormaTaxDetail.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProFormaTaxDetail : Entity + { + + [DataMember(Name="RetainedTax", EmitDefaultValue=false)] + public DecimalValue RetainedTax { get; set; } + + [DataMember(Name="RetainedTaxable", EmitDefaultValue=false)] + public DecimalValue RetainedTaxable { get; set; } + + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProgressBilling.cs b/Acumatica.Default_18.200.001/Model/ProgressBilling.cs new file mode 100644 index 00000000..9400d91a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProgressBilling.cs @@ -0,0 +1,72 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProgressBilling : Entity + { + + [DataMember(Name="ActualAmount", EmitDefaultValue=false)] + public DecimalValue ActualAmount { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="AmountToInvoice", EmitDefaultValue=false)] + public DecimalValue AmountToInvoice { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="CurrentInvoiced", EmitDefaultValue=false)] + public DecimalValue CurrentInvoiced { get; set; } + + [DataMember(Name="DeferralCode", EmitDefaultValue=false)] + public StringValue DeferralCode { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DraftInvoicesAmount", EmitDefaultValue=false)] + public DecimalValue DraftInvoicesAmount { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="PreviouslyInvoiced", EmitDefaultValue=false)] + public DecimalValue PreviouslyInvoiced { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="Retainage", EmitDefaultValue=false)] + public DecimalValue Retainage { get; set; } + + [DataMember(Name="RetainageAmount", EmitDefaultValue=false)] + public DecimalValue RetainageAmount { get; set; } + + [DataMember(Name="RevisedBudgetedAmount", EmitDefaultValue=false)] + public DecimalValue RevisedBudgetedAmount { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="StoredMaterial", EmitDefaultValue=false)] + public DecimalValue StoredMaterial { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="TotalCompleted", EmitDefaultValue=false)] + public DecimalValue TotalCompleted { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Project.cs b/Acumatica.Default_18.200.001/Model/Project.cs new file mode 100644 index 00000000..e95bde3e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Project.cs @@ -0,0 +1,87 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Project : Entity + { + + [DataMember(Name="ActivityHistory", EmitDefaultValue=false)] + public List ActivityHistory { get; set; } + + [DataMember(Name="ApprovalDetails", EmitDefaultValue=false)] + public List ApprovalDetails { get; set; } + + [DataMember(Name="Assets", EmitDefaultValue=false)] + public DecimalValue Assets { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="Balances", EmitDefaultValue=false)] + public List Balances { get; set; } + + [DataMember(Name="BillingAndAllocationSettings", EmitDefaultValue=false)] + public ProjectBillingAndAllocationSettings BillingAndAllocationSettings { get; set; } + + [DataMember(Name="BillToSettings", EmitDefaultValue=false)] + public BillToSettings BillToSettings { get; set; } + + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Employees", EmitDefaultValue=false)] + public List Employees { get; set; } + + [DataMember(Name="Equipments", EmitDefaultValue=false)] + public List Equipments { get; set; } + + [DataMember(Name="Expenses", EmitDefaultValue=false)] + public DecimalValue Expenses { get; set; } + + [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] + public StringValue ExternalRefNbr { get; set; } + + [DataMember(Name="GLAccounts", EmitDefaultValue=false)] + public ProjectGLAccount GLAccounts { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="Income", EmitDefaultValue=false)] + public DecimalValue Income { get; set; } + + [DataMember(Name="Invoices", EmitDefaultValue=false)] + public List Invoices { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Liabilities", EmitDefaultValue=false)] + public DecimalValue Liabilities { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="ProjectProperties", EmitDefaultValue=false)] + public ProjectProperties ProjectProperties { get; set; } + + [DataMember(Name="ProjectTemplateID", EmitDefaultValue=false)] + public StringValue ProjectTemplateID { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="UnionLocals", EmitDefaultValue=false)] + public List UnionLocals { get; set; } + + [DataMember(Name="VisibilitySettings", EmitDefaultValue=false)] + public VisibilitySettings VisibilitySettings { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectActivity.cs b/Acumatica.Default_18.200.001/Model/ProjectActivity.cs new file mode 100644 index 00000000..8c9eb44a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectActivity.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectActivity : Entity + { + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } + + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } + + [DataMember(Name="Category", EmitDefaultValue=false)] + public StringValue Category { get; set; } + + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectBalance.cs b/Acumatica.Default_18.200.001/Model/ProjectBalance.cs new file mode 100644 index 00000000..0b3ec446 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectBalance.cs @@ -0,0 +1,54 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectBalance : Entity + { + + [DataMember(Name="AccountGroup", EmitDefaultValue=false)] + public StringValue AccountGroup { get; set; } + + [DataMember(Name="ActualAmount", EmitDefaultValue=false)] + public DecimalValue ActualAmount { get; set; } + + [DataMember(Name="ActualOpenCommittedAmount", EmitDefaultValue=false)] + public DecimalValue ActualOpenCommittedAmount { get; set; } + + [DataMember(Name="BudgetedCOAmount", EmitDefaultValue=false)] + public DecimalValue BudgetedCOAmount { get; set; } + + [DataMember(Name="CommittedCOAmount", EmitDefaultValue=false)] + public DecimalValue CommittedCOAmount { get; set; } + + [DataMember(Name="CommittedInvoicedAmount", EmitDefaultValue=false)] + public DecimalValue CommittedInvoicedAmount { get; set; } + + [DataMember(Name="CommittedOpenAmount", EmitDefaultValue=false)] + public DecimalValue CommittedOpenAmount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="OriginalBudgetedAmount", EmitDefaultValue=false)] + public DecimalValue OriginalBudgetedAmount { get; set; } + + [DataMember(Name="OriginalCommittedAmount", EmitDefaultValue=false)] + public DecimalValue OriginalCommittedAmount { get; set; } + + [DataMember(Name="Performance", EmitDefaultValue=false)] + public DecimalValue Performance { get; set; } + + [DataMember(Name="RevisedBudgetedAmount", EmitDefaultValue=false)] + public DecimalValue RevisedBudgetedAmount { get; set; } + + [DataMember(Name="RevisedCommittedAmount", EmitDefaultValue=false)] + public DecimalValue RevisedCommittedAmount { get; set; } + + [DataMember(Name="VarianceAmount", EmitDefaultValue=false)] + public DecimalValue VarianceAmount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectBilling.cs b/Acumatica.Default_18.200.001/Model/ProjectBilling.cs new file mode 100644 index 00000000..8f538fda --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectBilling.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectBilling : Entity + { + + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } + + [DataMember(Name="CustomerClass", EmitDefaultValue=false)] + public StringValue CustomerClass { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="InvoiceDate", EmitDefaultValue=false)] + public DateTimeValue InvoiceDate { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="ProjectTemplate", EmitDefaultValue=false)] + public StringValue ProjectTemplate { get; set; } + + [DataMember(Name="StatementCycle", EmitDefaultValue=false)] + public StringValue StatementCycle { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectBillingAndAllocationSettings.cs b/Acumatica.Default_18.200.001/Model/ProjectBillingAndAllocationSettings.cs new file mode 100644 index 00000000..cbea6d28 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectBillingAndAllocationSettings.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectBillingAndAllocationSettings : Entity + { + + [DataMember(Name="AllocationRule", EmitDefaultValue=false)] + public StringValue AllocationRule { get; set; } + + [DataMember(Name="AutomaticallyReleaseARDocuments", EmitDefaultValue=false)] + public BooleanValue AutomaticallyReleaseARDocuments { get; set; } + + [DataMember(Name="BillingPeriod", EmitDefaultValue=false)] + public StringValue BillingPeriod { get; set; } + + [DataMember(Name="BillingRule", EmitDefaultValue=false)] + public StringValue BillingRule { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CreateProFormaOnBilling", EmitDefaultValue=false)] + public BooleanValue CreateProFormaOnBilling { get; set; } + + [DataMember(Name="LastBillingDate", EmitDefaultValue=false)] + public DateTimeValue LastBillingDate { get; set; } + + [DataMember(Name="NextBillingDate", EmitDefaultValue=false)] + public DateTimeValue NextBillingDate { get; set; } + + [DataMember(Name="RateTable", EmitDefaultValue=false)] + public StringValue RateTable { get; set; } + + [DataMember(Name="Retainage", EmitDefaultValue=false)] + public DecimalValue Retainage { get; set; } + + [DataMember(Name="RunAllocationOnReleaseOfProjectTransactions", EmitDefaultValue=false)] + public BooleanValue RunAllocationOnReleaseOfProjectTransactions { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="UseTMRevenueBudgetLimits", EmitDefaultValue=false)] + public BooleanValue UseTMRevenueBudgetLimits { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectBillingDetails.cs b/Acumatica.Default_18.200.001/Model/ProjectBillingDetails.cs new file mode 100644 index 00000000..775cb0d1 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectBillingDetails.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectBillingDetails : Entity + { + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public StringValue CustomerName { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="From", EmitDefaultValue=false)] + public DateTimeValue From { get; set; } + + [DataMember(Name="LastBillingDate", EmitDefaultValue=false)] + public DateTimeValue LastBillingDate { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } + + [DataMember(Name="To", EmitDefaultValue=false)] + public DateTimeValue To { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectBillingRules.cs b/Acumatica.Default_18.200.001/Model/ProjectBillingRules.cs new file mode 100644 index 00000000..aead04b9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectBillingRules.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectBillingRules : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="BillingRuleID", EmitDefaultValue=false)] + public StringValue BillingRuleID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectBudget.cs b/Acumatica.Default_18.200.001/Model/ProjectBudget.cs new file mode 100644 index 00000000..b20f4341 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectBudget.cs @@ -0,0 +1,147 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectBudget : Entity + { + + [DataMember(Name="AccountGroup", EmitDefaultValue=false)] + public StringValue AccountGroup { get; set; } + + [DataMember(Name="ActualAmount", EmitDefaultValue=false)] + public DecimalValue ActualAmount { get; set; } + + [DataMember(Name="ActualPlusOpenCommittedAmount", EmitDefaultValue=false)] + public DecimalValue ActualPlusOpenCommittedAmount { get; set; } + + [DataMember(Name="ActualQty", EmitDefaultValue=false)] + public DecimalValue ActualQty { get; set; } + + [DataMember(Name="AutoCompleted", EmitDefaultValue=false)] + public BooleanValue AutoCompleted { get; set; } + + [DataMember(Name="BudgetedCOAmount", EmitDefaultValue=false)] + public DecimalValue BudgetedCOAmount { get; set; } + + [DataMember(Name="BudgetedCOQty", EmitDefaultValue=false)] + public DecimalValue BudgetedCOQty { get; set; } + + [DataMember(Name="CommittedCOAmount", EmitDefaultValue=false)] + public DecimalValue CommittedCOAmount { get; set; } + + [DataMember(Name="CommittedCOQty", EmitDefaultValue=false)] + public DecimalValue CommittedCOQty { get; set; } + + [DataMember(Name="CommittedInvoicedAmount", EmitDefaultValue=false)] + public DecimalValue CommittedInvoicedAmount { get; set; } + + [DataMember(Name="CommittedInvoicedQty", EmitDefaultValue=false)] + public DecimalValue CommittedInvoicedQty { get; set; } + + [DataMember(Name="CommittedOpenAmount", EmitDefaultValue=false)] + public DecimalValue CommittedOpenAmount { get; set; } + + [DataMember(Name="CommittedOpenQty", EmitDefaultValue=false)] + public DecimalValue CommittedOpenQty { get; set; } + + [DataMember(Name="CommittedReceivedQty", EmitDefaultValue=false)] + public DecimalValue CommittedReceivedQty { get; set; } + + [DataMember(Name="Completed", EmitDefaultValue=false)] + public DecimalValue Completed { get; set; } + + [DataMember(Name="CostAtCompletion", EmitDefaultValue=false)] + public DecimalValue CostAtCompletion { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="CostToComplete", EmitDefaultValue=false)] + public DecimalValue CostToComplete { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DraftInvoicesAmount", EmitDefaultValue=false)] + public DecimalValue DraftInvoicesAmount { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LastCostAtCompletion", EmitDefaultValue=false)] + public DecimalValue LastCostAtCompletion { get; set; } + + [DataMember(Name="LastCostToComplete", EmitDefaultValue=false)] + public DecimalValue LastCostToComplete { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LastPercentageOfCompletion", EmitDefaultValue=false)] + public DecimalValue LastPercentageOfCompletion { get; set; } + + [DataMember(Name="OriginalBudgetedAmount", EmitDefaultValue=false)] + public DecimalValue OriginalBudgetedAmount { get; set; } + + [DataMember(Name="OriginalBudgetedQty", EmitDefaultValue=false)] + public DecimalValue OriginalBudgetedQty { get; set; } + + [DataMember(Name="OriginalCommittedAmount", EmitDefaultValue=false)] + public DecimalValue OriginalCommittedAmount { get; set; } + + [DataMember(Name="OriginalCommittedQty", EmitDefaultValue=false)] + public DecimalValue OriginalCommittedQty { get; set; } + + [DataMember(Name="PendingInvoiceAmount", EmitDefaultValue=false)] + public DecimalValue PendingInvoiceAmount { get; set; } + + [DataMember(Name="PercentageOfCompletion", EmitDefaultValue=false)] + public DecimalValue PercentageOfCompletion { get; set; } + + [DataMember(Name="Performance", EmitDefaultValue=false)] + public DecimalValue Performance { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="Retainage", EmitDefaultValue=false)] + public DecimalValue Retainage { get; set; } + + [DataMember(Name="RevenueTask", EmitDefaultValue=false)] + public IntValue RevenueTask { get; set; } + + [DataMember(Name="RevisedBudgetedAmount", EmitDefaultValue=false)] + public DecimalValue RevisedBudgetedAmount { get; set; } + + [DataMember(Name="RevisedBudgetedQty", EmitDefaultValue=false)] + public DecimalValue RevisedBudgetedQty { get; set; } + + [DataMember(Name="RevisedCommittedAmount", EmitDefaultValue=false)] + public DecimalValue RevisedCommittedAmount { get; set; } + + [DataMember(Name="RevisedCommittedQty", EmitDefaultValue=false)] + public DecimalValue RevisedCommittedQty { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UnitRate", EmitDefaultValue=false)] + public DecimalValue UnitRate { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="VarianceAmount", EmitDefaultValue=false)] + public DecimalValue VarianceAmount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectEmployee.cs b/Acumatica.Default_18.200.001/Model/ProjectEmployee.cs new file mode 100644 index 00000000..1af6887e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectEmployee.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectEmployee : Entity + { + + [DataMember(Name="Department", EmitDefaultValue=false)] + public StringValue Department { get; set; } + + [DataMember(Name="EmployeeID", EmitDefaultValue=false)] + public StringValue EmployeeID { get; set; } + + [DataMember(Name="EmployeeName", EmitDefaultValue=false)] + public StringValue EmployeeName { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectEquipment.cs b/Acumatica.Default_18.200.001/Model/ProjectEquipment.cs new file mode 100644 index 00000000..df2b0888 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectEquipment.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectEquipment : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EquipmentID", EmitDefaultValue=false)] + public StringValue EquipmentID { get; set; } + + [DataMember(Name="RunRate", EmitDefaultValue=false)] + public DecimalValue RunRate { get; set; } + + [DataMember(Name="RunRateItem", EmitDefaultValue=false)] + public StringValue RunRateItem { get; set; } + + [DataMember(Name="SetupRate", EmitDefaultValue=false)] + public DecimalValue SetupRate { get; set; } + + [DataMember(Name="SetupRateItem", EmitDefaultValue=false)] + public StringValue SetupRateItem { get; set; } + + [DataMember(Name="SuspendRate", EmitDefaultValue=false)] + public DecimalValue SuspendRate { get; set; } + + [DataMember(Name="SuspendRateItem", EmitDefaultValue=false)] + public StringValue SuspendRateItem { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectGLAccount.cs b/Acumatica.Default_18.200.001/Model/ProjectGLAccount.cs new file mode 100644 index 00000000..47149df2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectGLAccount.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectGLAccount : Entity + { + + [DataMember(Name="AccrualAccount", EmitDefaultValue=false)] + public StringValue AccrualAccount { get; set; } + + [DataMember(Name="AccrualSubaccount", EmitDefaultValue=false)] + public StringValue AccrualSubaccount { get; set; } + + [DataMember(Name="DefaultAccount", EmitDefaultValue=false)] + public StringValue DefaultAccount { get; set; } + + [DataMember(Name="DefaultSubaccount", EmitDefaultValue=false)] + public StringValue DefaultSubaccount { get; set; } + + [DataMember(Name="DefaultTaskForGLAccounts", EmitDefaultValue=false)] + public List DefaultTaskForGLAccounts { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectProFormaDetails.cs b/Acumatica.Default_18.200.001/Model/ProjectProFormaDetails.cs new file mode 100644 index 00000000..961ccd30 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectProFormaDetails.cs @@ -0,0 +1,72 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectProFormaDetails : Entity + { + + [DataMember(Name="ARDocDate", EmitDefaultValue=false)] + public DateTimeValue ARDocDate { get; set; } + + [DataMember(Name="ARDocDescription", EmitDefaultValue=false)] + public StringValue ARDocDescription { get; set; } + + [DataMember(Name="ARDocOriginalAmount", EmitDefaultValue=false)] + public DecimalValue ARDocOriginalAmount { get; set; } + + [DataMember(Name="ARDocStatus", EmitDefaultValue=false)] + public StringValue ARDocStatus { get; set; } + + [DataMember(Name="ARDocType", EmitDefaultValue=false)] + public StringValue ARDocType { get; set; } + + [DataMember(Name="ARReferenceNbr", EmitDefaultValue=false)] + public StringValue ARReferenceNbr { get; set; } + + [DataMember(Name="BillingNbr", EmitDefaultValue=false)] + public IntValue BillingNbr { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InvoiceTotal", EmitDefaultValue=false)] + public DecimalValue InvoiceTotal { get; set; } + + [DataMember(Name="OpenARBalance", EmitDefaultValue=false)] + public DecimalValue OpenARBalance { get; set; } + + [DataMember(Name="OriginalRefNbr", EmitDefaultValue=false)] + public StringValue OriginalRefNbr { get; set; } + + [DataMember(Name="OriginalRetainage", EmitDefaultValue=false)] + public DecimalValue OriginalRetainage { get; set; } + + [DataMember(Name="PaidRetainage", EmitDefaultValue=false)] + public DecimalValue PaidRetainage { get; set; } + + [DataMember(Name="ProFormaDate", EmitDefaultValue=false)] + public DateTimeValue ProFormaDate { get; set; } + + [DataMember(Name="ProFormaReferenceNbr", EmitDefaultValue=false)] + public StringValue ProFormaReferenceNbr { get; set; } + + [DataMember(Name="RetainageInvoice", EmitDefaultValue=false)] + public BooleanValue RetainageInvoice { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TotalAmount", EmitDefaultValue=false)] + public DecimalValue TotalAmount { get; set; } + + [DataMember(Name="UnpaidRetainage", EmitDefaultValue=false)] + public DecimalValue UnpaidRetainage { get; set; } + + [DataMember(Name="UnreleasedRetainage", EmitDefaultValue=false)] + public DecimalValue UnreleasedRetainage { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectProperties.cs b/Acumatica.Default_18.200.001/Model/ProjectProperties.cs new file mode 100644 index 00000000..80fe7bb7 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectProperties.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectProperties : Entity + { + + [DataMember(Name="CertifiedJob", EmitDefaultValue=false)] + public BooleanValue CertifiedJob { get; set; } + + [DataMember(Name="ChangeOrderWorkflow", EmitDefaultValue=false)] + public BooleanValue ChangeOrderWorkflow { get; set; } + + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } + + [DataMember(Name="LastRevenueChangeNbr", EmitDefaultValue=false)] + public StringValue LastRevenueChangeNbr { get; set; } + + [DataMember(Name="ProjectManager", EmitDefaultValue=false)] + public StringValue ProjectManager { get; set; } + + [DataMember(Name="RestrictEmployees", EmitDefaultValue=false)] + public BooleanValue RestrictEmployees { get; set; } + + [DataMember(Name="RestrictEquipment", EmitDefaultValue=false)] + public BooleanValue RestrictEquipment { get; set; } + + [DataMember(Name="RevenueBudgetLevel", EmitDefaultValue=false)] + public StringValue RevenueBudgetLevel { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="TrackProductionData", EmitDefaultValue=false)] + public BooleanValue TrackProductionData { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectTask.cs b/Acumatica.Default_18.200.001/Model/ProjectTask.cs new file mode 100644 index 00000000..0b06349a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectTask.cs @@ -0,0 +1,54 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectTask : Entity + { + + [DataMember(Name="ActivityHistory", EmitDefaultValue=false)] + public List ActivityHistory { get; set; } + + [DataMember(Name="Attribute", EmitDefaultValue=false)] + public List Attribute { get; set; } + + [DataMember(Name="BillingAndAllocationSettings", EmitDefaultValue=false)] + public ProjectTaskBillingAndAllocationSettings BillingAndAllocationSettings { get; set; } + + [DataMember(Name="CRMLink", EmitDefaultValue=false)] + public ProjectTaskToCRMLink CRMLink { get; set; } + + [DataMember(Name="Default", EmitDefaultValue=false)] + public BooleanValue Default { get; set; } + + [DataMember(Name="DefaultValues", EmitDefaultValue=false)] + public ProjectTaskDefaultValues DefaultValues { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] + public StringValue ExternalRefNbr { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="Properties", EmitDefaultValue=false)] + public ProjectTaskProperties Properties { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="VisibilitySettings", EmitDefaultValue=false)] + public VisibilitySettings VisibilitySettings { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectTaskBillingAndAllocationSettings.cs b/Acumatica.Default_18.200.001/Model/ProjectTaskBillingAndAllocationSettings.cs new file mode 100644 index 00000000..72148244 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectTaskBillingAndAllocationSettings.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectTaskBillingAndAllocationSettings : Entity + { + + [DataMember(Name="AllocationRule", EmitDefaultValue=false)] + public StringValue AllocationRule { get; set; } + + [DataMember(Name="BillingOption", EmitDefaultValue=false)] + public StringValue BillingOption { get; set; } + + [DataMember(Name="BillingRule", EmitDefaultValue=false)] + public StringValue BillingRule { get; set; } + + [DataMember(Name="BillSeparately", EmitDefaultValue=false)] + public BooleanValue BillSeparately { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="RateTable", EmitDefaultValue=false)] + public StringValue RateTable { get; set; } + + [DataMember(Name="WIPAccountGroup", EmitDefaultValue=false)] + public StringValue WIPAccountGroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectTaskDefaultValues.cs b/Acumatica.Default_18.200.001/Model/ProjectTaskDefaultValues.cs new file mode 100644 index 00000000..dc7feb7c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectTaskDefaultValues.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectTaskDefaultValues : Entity + { + + [DataMember(Name="AccrualAccount", EmitDefaultValue=false)] + public StringValue AccrualAccount { get; set; } + + [DataMember(Name="AccrualSubaccount", EmitDefaultValue=false)] + public StringValue AccrualSubaccount { get; set; } + + [DataMember(Name="DefaultAccount", EmitDefaultValue=false)] + public StringValue DefaultAccount { get; set; } + + [DataMember(Name="DefaultSubaccount", EmitDefaultValue=false)] + public StringValue DefaultSubaccount { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectTaskProperties.cs b/Acumatica.Default_18.200.001/Model/ProjectTaskProperties.cs new file mode 100644 index 00000000..177215ff --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectTaskProperties.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectTaskProperties : Entity + { + + [DataMember(Name="Approver", EmitDefaultValue=false)] + public StringValue Approver { get; set; } + + [DataMember(Name="Completed", EmitDefaultValue=false)] + public DecimalValue Completed { get; set; } + + [DataMember(Name="CompletionMethod", EmitDefaultValue=false)] + public StringValue CompletionMethod { get; set; } + + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } + + [DataMember(Name="PlannedEndDate", EmitDefaultValue=false)] + public DateTimeValue PlannedEndDate { get; set; } + + [DataMember(Name="PlannedStartDate", EmitDefaultValue=false)] + public DateTimeValue PlannedStartDate { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectTaskToCRMLink.cs b/Acumatica.Default_18.200.001/Model/ProjectTaskToCRMLink.cs new file mode 100644 index 00000000..b9bec244 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectTaskToCRMLink.cs @@ -0,0 +1,15 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectTaskToCRMLink : Entity + { + + [DataMember(Name="AccountedCampaign", EmitDefaultValue=false)] + public StringValue AccountedCampaign { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectTemplate.cs b/Acumatica.Default_18.200.001/Model/ProjectTemplate.cs new file mode 100644 index 00000000..c47bd9de --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectTemplate.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectTemplate : Entity + { + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BillingAndAllocationSettings", EmitDefaultValue=false)] + public ProjectBillingAndAllocationSettings BillingAndAllocationSettings { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Employees", EmitDefaultValue=false)] + public List Employees { get; set; } + + [DataMember(Name="Equipments", EmitDefaultValue=false)] + public List Equipments { get; set; } + + [DataMember(Name="GLAccounts", EmitDefaultValue=false)] + public ProjectGLAccount GLAccounts { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="ProjectProperties", EmitDefaultValue=false)] + public ProjectProperties ProjectProperties { get; set; } + + [DataMember(Name="ProjectTemplateID", EmitDefaultValue=false)] + public StringValue ProjectTemplateID { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="VisibilitySettings", EmitDefaultValue=false)] + public VisibilitySettings VisibilitySettings { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectTemplateTask.cs b/Acumatica.Default_18.200.001/Model/ProjectTemplateTask.cs new file mode 100644 index 00000000..6a63aaa7 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectTemplateTask.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectTemplateTask : Entity + { + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="BillingAndAllocationSettings", EmitDefaultValue=false)] + public ProjectTaskBillingAndAllocationSettings BillingAndAllocationSettings { get; set; } + + [DataMember(Name="DefaultValues", EmitDefaultValue=false)] + public ProjectTaskDefaultValues DefaultValues { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="ProjectTemplateID", EmitDefaultValue=false)] + public StringValue ProjectTemplateID { get; set; } + + [DataMember(Name="ProjectTemplateTaskID", EmitDefaultValue=false)] + public StringValue ProjectTemplateTaskID { get; set; } + + [DataMember(Name="Properties", EmitDefaultValue=false)] + public ProjectTemplateTaskProperties Properties { get; set; } + + [DataMember(Name="VisibilitySettings", EmitDefaultValue=false)] + public VisibilitySettings VisibilitySettings { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectTemplateTaskProperties.cs b/Acumatica.Default_18.200.001/Model/ProjectTemplateTaskProperties.cs new file mode 100644 index 00000000..67dec649 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectTemplateTaskProperties.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectTemplateTaskProperties : Entity + { + + [DataMember(Name="Approver", EmitDefaultValue=false)] + public StringValue Approver { get; set; } + + [DataMember(Name="AutomaticallyIncludeInProject", EmitDefaultValue=false)] + public BooleanValue AutomaticallyIncludeInProject { get; set; } + + [DataMember(Name="CompletionMethod", EmitDefaultValue=false)] + public StringValue CompletionMethod { get; set; } + + [DataMember(Name="Default", EmitDefaultValue=false)] + public BooleanValue Default { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectTransaction.cs b/Acumatica.Default_18.200.001/Model/ProjectTransaction.cs new file mode 100644 index 00000000..0d651534 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectTransaction.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectTransaction : Entity + { + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } + + [DataMember(Name="OriginalDocNbr", EmitDefaultValue=false)] + public StringValue OriginalDocNbr { get; set; } + + [DataMember(Name="OriginalDocType", EmitDefaultValue=false)] + public StringValue OriginalDocType { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TotalAmount", EmitDefaultValue=false)] + public DecimalValue TotalAmount { get; set; } + + [DataMember(Name="TotalBillableQty", EmitDefaultValue=false)] + public DecimalValue TotalBillableQty { get; set; } + + [DataMember(Name="TotalQty", EmitDefaultValue=false)] + public DecimalValue TotalQty { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectTransactionDetail.cs b/Acumatica.Default_18.200.001/Model/ProjectTransactionDetail.cs new file mode 100644 index 00000000..78c57f7a --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectTransactionDetail.cs @@ -0,0 +1,114 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectTransactionDetail : Entity + { + + [DataMember(Name="AccountGroup", EmitDefaultValue=false)] + public StringValue AccountGroup { get; set; } + + [DataMember(Name="AccountGroupDescription", EmitDefaultValue=false)] + public StringValue AccountGroupDescription { get; set; } + + [DataMember(Name="Allocated", EmitDefaultValue=false)] + public BooleanValue Allocated { get; set; } + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="BillableQty", EmitDefaultValue=false)] + public DecimalValue BillableQty { get; set; } + + [DataMember(Name="Billed", EmitDefaultValue=false)] + public BooleanValue Billed { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="CreditAccount", EmitDefaultValue=false)] + public StringValue CreditAccount { get; set; } + + [DataMember(Name="CreditSubaccount", EmitDefaultValue=false)] + public StringValue CreditSubaccount { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="DebitAccount", EmitDefaultValue=false)] + public StringValue DebitAccount { get; set; } + + [DataMember(Name="DebitSubaccount", EmitDefaultValue=false)] + public StringValue DebitSubaccount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EarningType", EmitDefaultValue=false)] + public StringValue EarningType { get; set; } + + [DataMember(Name="Employee", EmitDefaultValue=false)] + public StringValue Employee { get; set; } + + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } + + [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] + public StringValue ExternalRefNbr { get; set; } + + [DataMember(Name="FinPeriod", EmitDefaultValue=false)] + public StringValue FinPeriod { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="Multiplier", EmitDefaultValue=false)] + public DecimalValue Multiplier { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="TransactionID", EmitDefaultValue=false)] + public LongValue TransactionID { get; set; } + + [DataMember(Name="UnitRate", EmitDefaultValue=false)] + public DecimalValue UnitRate { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="UseBillableQtyInAmountFormula", EmitDefaultValue=false)] + public BooleanValue UseBillableQtyInAmountFormula { get; set; } + + [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] + public StringValue VendorOrCustomer { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ProjectUnionLocal.cs b/Acumatica.Default_18.200.001/Model/ProjectUnionLocal.cs new file mode 100644 index 00000000..cd752ba8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ProjectUnionLocal.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ProjectUnionLocal : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="UnionLocalID", EmitDefaultValue=false)] + public StringValue UnionLocalID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PurchaseOrder.cs b/Acumatica.Default_18.200.001/Model/PurchaseOrder.cs new file mode 100644 index 00000000..ed785e7d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PurchaseOrder.cs @@ -0,0 +1,84 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PurchaseOrder : Entity + { + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="ControlTotal", EmitDefaultValue=false)] + public DecimalValue ControlTotal { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LineTotal", EmitDefaultValue=false)] + public DecimalValue LineTotal { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderTotal", EmitDefaultValue=false)] + public DecimalValue OrderTotal { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="PromisedOn", EmitDefaultValue=false)] + public DateTimeValue PromisedOn { get; set; } + + [DataMember(Name="ShippingInstructions", EmitDefaultValue=false)] + public ShippingInstructions ShippingInstructions { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } + + [DataMember(Name="VendorRef", EmitDefaultValue=false)] + public StringValue VendorRef { get; set; } + + [DataMember(Name="VendorTaxZone", EmitDefaultValue=false)] + public StringValue VendorTaxZone { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PurchaseOrderDetail.cs b/Acumatica.Default_18.200.001/Model/PurchaseOrderDetail.cs new file mode 100644 index 00000000..737134da --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PurchaseOrderDetail.cs @@ -0,0 +1,114 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PurchaseOrderDetail : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="AlternateID", EmitDefaultValue=false)] + public StringValue AlternateID { get; set; } + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } + + [DataMember(Name="CalculateDiscountsOnImport", EmitDefaultValue=false)] + public BooleanValue CalculateDiscountsOnImport { get; set; } + + [DataMember(Name="Cancelled", EmitDefaultValue=false)] + public BooleanValue Cancelled { get; set; } + + [DataMember(Name="Completed", EmitDefaultValue=false)] + public BooleanValue Completed { get; set; } + + [DataMember(Name="CompleteOn", EmitDefaultValue=false)] + public DecimalValue CompleteOn { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] + public DecimalValue ExtendedCost { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineDescription", EmitDefaultValue=false)] + public StringValue LineDescription { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LineType", EmitDefaultValue=false)] + public StringValue LineType { get; set; } + + [DataMember(Name="MaxReceiptPercent", EmitDefaultValue=false)] + public DecimalValue MaxReceiptPercent { get; set; } + + [DataMember(Name="MinReceiptPercent", EmitDefaultValue=false)] + public DecimalValue MinReceiptPercent { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderQty", EmitDefaultValue=false)] + public DecimalValue OrderQty { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="OrigPONbr", EmitDefaultValue=false)] + public StringValue OrigPONbr { get; set; } + + [DataMember(Name="OrigPOType", EmitDefaultValue=false)] + public StringValue OrigPOType { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="Promised", EmitDefaultValue=false)] + public DateTimeValue Promised { get; set; } + + [DataMember(Name="QtyOnReceipts", EmitDefaultValue=false)] + public DecimalValue QtyOnReceipts { get; set; } + + [DataMember(Name="ReceiptAction", EmitDefaultValue=false)] + public StringValue ReceiptAction { get; set; } + + [DataMember(Name="ReceivedAmount", EmitDefaultValue=false)] + public DecimalValue ReceivedAmount { get; set; } + + [DataMember(Name="Requested", EmitDefaultValue=false)] + public DateTimeValue Requested { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PurchaseOrderTaxDetail.cs b/Acumatica.Default_18.200.001/Model/PurchaseOrderTaxDetail.cs new file mode 100644 index 00000000..04682f8b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PurchaseOrderTaxDetail.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PurchaseOrderTaxDetail : Entity + { + + [DataMember(Name="RetainedTaxableAmount", EmitDefaultValue=false)] + public DecimalValue RetainedTaxableAmount { get; set; } + + [DataMember(Name="RetainedTaxAmount", EmitDefaultValue=false)] + public DecimalValue RetainedTaxAmount { get; set; } + + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PurchaseReceipt.cs b/Acumatica.Default_18.200.001/Model/PurchaseReceipt.cs new file mode 100644 index 00000000..d4166113 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PurchaseReceipt.cs @@ -0,0 +1,69 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PurchaseReceipt : Entity + { + + [DataMember(Name="BillDate", EmitDefaultValue=false)] + public DateTimeValue BillDate { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="ControlAmount", EmitDefaultValue=false)] + public DecimalValue ControlAmount { get; set; } + + [DataMember(Name="ControlQty", EmitDefaultValue=false)] + public DecimalValue ControlQty { get; set; } + + [DataMember(Name="CreateBill", EmitDefaultValue=false)] + public BooleanValue CreateBill { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] + public StringValue ReceiptNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TotalAmount", EmitDefaultValue=false)] + public DecimalValue TotalAmount { get; set; } + + [DataMember(Name="TotalQty", EmitDefaultValue=false)] + public DecimalValue TotalQty { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UnbilledQuantity", EmitDefaultValue=false)] + public DecimalValue UnbilledQuantity { get; set; } + + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } + + [DataMember(Name="VendorRef", EmitDefaultValue=false)] + public StringValue VendorRef { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PurchaseReceiptDetail.cs b/Acumatica.Default_18.200.001/Model/PurchaseReceiptDetail.cs new file mode 100644 index 00000000..206c0535 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PurchaseReceiptDetail.cs @@ -0,0 +1,96 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PurchaseReceiptDetail : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="AccrualAccount", EmitDefaultValue=false)] + public StringValue AccrualAccount { get; set; } + + [DataMember(Name="AccrualSubaccount", EmitDefaultValue=false)] + public StringValue AccrualSubaccount { get; set; } + + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] + public DecimalValue ExtendedCost { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LineType", EmitDefaultValue=false)] + public StringValue LineType { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="OpenQty", EmitDefaultValue=false)] + public DecimalValue OpenQty { get; set; } + + [DataMember(Name="OrderedQty", EmitDefaultValue=false)] + public DecimalValue OrderedQty { get; set; } + + [DataMember(Name="POLineNbr", EmitDefaultValue=false)] + public IntValue POLineNbr { get; set; } + + [DataMember(Name="POOrderNbr", EmitDefaultValue=false)] + public StringValue POOrderNbr { get; set; } + + [DataMember(Name="POOrderType", EmitDefaultValue=false)] + public StringValue POOrderType { get; set; } + + [DataMember(Name="ReceiptQty", EmitDefaultValue=false)] + public DecimalValue ReceiptQty { get; set; } + + [DataMember(Name="Subaccount", EmitDefaultValue=false)] + public StringValue Subaccount { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] + public StringValue TransactionDescription { get; set; } + + [DataMember(Name="TransferOrderNbr", EmitDefaultValue=false)] + public StringValue TransferOrderNbr { get; set; } + + [DataMember(Name="TransferOrderType", EmitDefaultValue=false)] + public StringValue TransferOrderType { get; set; } + + [DataMember(Name="TransferShipmentNbr", EmitDefaultValue=false)] + public StringValue TransferShipmentNbr { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PurchaseReceiptDetailAllocation.cs b/Acumatica.Default_18.200.001/Model/PurchaseReceiptDetailAllocation.cs new file mode 100644 index 00000000..3cc7f5c8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PurchaseReceiptDetailAllocation.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PurchaseReceiptDetailAllocation : Entity + { + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] + public StringValue ReceiptNbr { get; set; } + + [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] + public IntValue SplitLineNbr { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/PurchaseSettings.cs b/Acumatica.Default_18.200.001/Model/PurchaseSettings.cs new file mode 100644 index 00000000..86bbeed0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/PurchaseSettings.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class PurchaseSettings : Entity + { + + [DataMember(Name="POSiteID", EmitDefaultValue=false)] + public StringValue POSiteID { get; set; } + + [DataMember(Name="POSource", EmitDefaultValue=false)] + public StringValue POSource { get; set; } + + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/RelationDetail.cs b/Acumatica.Default_18.200.001/Model/RelationDetail.cs new file mode 100644 index 00000000..5a3b3ae9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/RelationDetail.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class RelationDetail : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="AddToCc", EmitDefaultValue=false)] + public BooleanValue AddToCc { get; set; } + + [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] + public StringValue ContactDisplayName { get; set; } + + [DataMember(Name="ContactID", EmitDefaultValue=false)] + public IntValue ContactID { get; set; } + + [DataMember(Name="Document", EmitDefaultValue=false)] + public GuidValue Document { get; set; } + + [DataMember(Name="DocumentTargetNoteIDDescription", EmitDefaultValue=false)] + public StringValue DocumentTargetNoteIDDescription { get; set; } + + [DataMember(Name="Email", EmitDefaultValue=false)] + public StringValue Email { get; set; } + + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } + + [DataMember(Name="Primary", EmitDefaultValue=false)] + public BooleanValue Primary { get; set; } + + [DataMember(Name="RelationID", EmitDefaultValue=false)] + public IntValue RelationID { get; set; } + + [DataMember(Name="Role", EmitDefaultValue=false)] + public StringValue Role { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ReminderDetail.cs b/Acumatica.Default_18.200.001/Model/ReminderDetail.cs new file mode 100644 index 00000000..444efbcd --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ReminderDetail.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReminderDetail : Entity + { + + [DataMember(Name="IsActive", EmitDefaultValue=false)] + public BooleanValue IsActive { get; set; } + + [DataMember(Name="RemindAtDate", EmitDefaultValue=false)] + public DateTimeValue RemindAtDate { get; set; } + + [DataMember(Name="RemindAtTime", EmitDefaultValue=false)] + public DateTimeValue RemindAtTime { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ReplenishmentParameterStockItem.cs b/Acumatica.Default_18.200.001/Model/ReplenishmentParameterStockItem.cs new file mode 100644 index 00000000..26af14b4 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ReplenishmentParameterStockItem.cs @@ -0,0 +1,60 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReplenishmentParameterStockItem : Entity + { + + [DataMember(Name="DemandForecastModel", EmitDefaultValue=false)] + public StringValue DemandForecastModel { get; set; } + + [DataMember(Name="ForecastPeriodType", EmitDefaultValue=false)] + public StringValue ForecastPeriodType { get; set; } + + [DataMember(Name="LaunchDate", EmitDefaultValue=false)] + public DateTimeValue LaunchDate { get; set; } + + [DataMember(Name="MaxQty", EmitDefaultValue=false)] + public DecimalValue MaxQty { get; set; } + + [DataMember(Name="MaxShelfLifeInDays", EmitDefaultValue=false)] + public IntValue MaxShelfLifeInDays { get; set; } + + [DataMember(Name="Method", EmitDefaultValue=false)] + public StringValue Method { get; set; } + + [DataMember(Name="PeriodsToAnalyze", EmitDefaultValue=false)] + public IntValue PeriodsToAnalyze { get; set; } + + [DataMember(Name="ReorderPoint", EmitDefaultValue=false)] + public DecimalValue ReorderPoint { get; set; } + + [DataMember(Name="ReplenishmentClass", EmitDefaultValue=false)] + public StringValue ReplenishmentClass { get; set; } + + [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] + public StringValue ReplenishmentWarehouse { get; set; } + + [DataMember(Name="SafetyStock", EmitDefaultValue=false)] + public DecimalValue SafetyStock { get; set; } + + [DataMember(Name="Seasonality", EmitDefaultValue=false)] + public StringValue Seasonality { get; set; } + + [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] + public DecimalValue ServiceLevel { get; set; } + + [DataMember(Name="Source", EmitDefaultValue=false)] + public StringValue Source { get; set; } + + [DataMember(Name="TerminationDate", EmitDefaultValue=false)] + public DateTimeValue TerminationDate { get; set; } + + [DataMember(Name="TransferERQ", EmitDefaultValue=false)] + public DecimalValue TransferERQ { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ReportingGroup.cs b/Acumatica.Default_18.200.001/Model/ReportingGroup.cs new file mode 100644 index 00000000..d0c801dc --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ReportingGroup.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReportingGroup : Entity + { + + [DataMember(Name="GroupType", EmitDefaultValue=false)] + public StringValue GroupType { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ReportingSettings.cs b/Acumatica.Default_18.200.001/Model/ReportingSettings.cs new file mode 100644 index 00000000..7fdd4cf0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ReportingSettings.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ReportingSettings : Entity + { + + [DataMember(Name="ReportingGroups", EmitDefaultValue=false)] + public List ReportingGroups { get; set; } + + [DataMember(Name="TaxAgency", EmitDefaultValue=false)] + public StringValue TaxAgency { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoice.cs b/Acumatica.Default_18.200.001/Model/SalesInvoice.cs new file mode 100644 index 00000000..d57017ae --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoice.cs @@ -0,0 +1,93 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoice : Entity + { + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="ApplicationsCreditMemo", EmitDefaultValue=false)] + public List ApplicationsCreditMemo { get; set; } + + [DataMember(Name="ApplicationsInvoice", EmitDefaultValue=false)] + public List ApplicationsInvoice { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="BillingSettings", EmitDefaultValue=false)] + public BillToSettings BillingSettings { get; set; } + + [DataMember(Name="CashDiscount", EmitDefaultValue=false)] + public DecimalValue CashDiscount { get; set; } + + [DataMember(Name="Commissions", EmitDefaultValue=false)] + public SalesInvoiceCommissions Commissions { get; set; } + + [DataMember(Name="CreditHold", EmitDefaultValue=false)] + public BooleanValue CreditHold { get; set; } + + [DataMember(Name="Currency", EmitDefaultValue=false)] + public StringValue Currency { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="DiscountDetails", EmitDefaultValue=false)] + public List DiscountDetails { get; set; } + + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } + + [DataMember(Name="FinancialDetails", EmitDefaultValue=false)] + public SalesInvoiceFinancialDetails FinancialDetails { get; set; } + + [DataMember(Name="FreightDetails", EmitDefaultValue=false)] + public List FreightDetails { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="Totals", EmitDefaultValue=false)] + public SalesInvoiceTotals Totals { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="VATExemptTotal", EmitDefaultValue=false)] + public DecimalValue VATExemptTotal { get; set; } + + [DataMember(Name="VATTaxableTotal", EmitDefaultValue=false)] + public DecimalValue VATTaxableTotal { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoiceApplicationCreditMemo.cs b/Acumatica.Default_18.200.001/Model/SalesInvoiceApplicationCreditMemo.cs new file mode 100644 index 00000000..17f0cb07 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoiceApplicationCreditMemo.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceApplicationCreditMemo : Entity + { + + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="Currency", EmitDefaultValue=false)] + public StringValue Currency { get; set; } + + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } + + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoiceApplicationInvoice.cs b/Acumatica.Default_18.200.001/Model/SalesInvoiceApplicationInvoice.cs new file mode 100644 index 00000000..5b740469 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoiceApplicationInvoice.cs @@ -0,0 +1,57 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceApplicationInvoice : Entity + { + + [DataMember(Name="AdjustedDocReferenceNbr", EmitDefaultValue=false)] + public StringValue AdjustedDocReferenceNbr { get; set; } + + [DataMember(Name="AdjustingDocReferenceNbr", EmitDefaultValue=false)] + public StringValue AdjustingDocReferenceNbr { get; set; } + + [DataMember(Name="AdjustmentNbr", EmitDefaultValue=false)] + public IntValue AdjustmentNbr { get; set; } + + [DataMember(Name="AmountPaid", EmitDefaultValue=false)] + public DecimalValue AmountPaid { get; set; } + + [DataMember(Name="Balance", EmitDefaultValue=false)] + public DecimalValue Balance { get; set; } + + [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] + public DecimalValue CashDiscountTaken { get; set; } + + [DataMember(Name="Currency", EmitDefaultValue=false)] + public StringValue Currency { get; set; } + + [DataMember(Name="Customer", EmitDefaultValue=false)] + public StringValue Customer { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DocType", EmitDefaultValue=false)] + public StringValue DocType { get; set; } + + [DataMember(Name="DocumentType", EmitDefaultValue=false)] + public StringValue DocumentType { get; set; } + + [DataMember(Name="PaymentDate", EmitDefaultValue=false)] + public DateTimeValue PaymentDate { get; set; } + + [DataMember(Name="PaymentPeriod", EmitDefaultValue=false)] + public StringValue PaymentPeriod { get; set; } + + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoiceCommissions.cs b/Acumatica.Default_18.200.001/Model/SalesInvoiceCommissions.cs new file mode 100644 index 00000000..785e5ec9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoiceCommissions.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceCommissions : Entity + { + + [DataMember(Name="CommissionAmount", EmitDefaultValue=false)] + public DecimalValue CommissionAmount { get; set; } + + [DataMember(Name="SalesPersons", EmitDefaultValue=false)] + public List SalesPersons { get; set; } + + [DataMember(Name="TotalCommissionableAmount", EmitDefaultValue=false)] + public DecimalValue TotalCommissionableAmount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoiceDetail.cs b/Acumatica.Default_18.200.001/Model/SalesInvoiceDetail.cs new file mode 100644 index 00000000..d90d4321 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoiceDetail.cs @@ -0,0 +1,102 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceDetail : Entity + { + + [DataMember(Name="Amount", EmitDefaultValue=false)] + public DecimalValue Amount { get; set; } + + [DataMember(Name="BranchID", EmitDefaultValue=false)] + public StringValue BranchID { get; set; } + + [DataMember(Name="CalculateDiscountsOnImport", EmitDefaultValue=false)] + public BooleanValue CalculateDiscountsOnImport { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } + + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="InventoryDocType", EmitDefaultValue=false)] + public StringValue InventoryDocType { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="InventoryRefNbr", EmitDefaultValue=false)] + public StringValue InventoryRefNbr { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } + + [DataMember(Name="OrderLineNbr", EmitDefaultValue=false)] + public IntValue OrderLineNbr { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="OrigInvLineNbr", EmitDefaultValue=false)] + public IntValue OrigInvLineNbr { get; set; } + + [DataMember(Name="OrigInvNbr", EmitDefaultValue=false)] + public StringValue OrigInvNbr { get; set; } + + [DataMember(Name="OrigInvType", EmitDefaultValue=false)] + public StringValue OrigInvType { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] + public StringValue ShipmentNbr { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="TransactionDescr", EmitDefaultValue=false)] + public StringValue TransactionDescr { get; set; } + + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoiceDiscountDetails.cs b/Acumatica.Default_18.200.001/Model/SalesInvoiceDiscountDetails.cs new file mode 100644 index 00000000..06588efb --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoiceDiscountDetails.cs @@ -0,0 +1,57 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceDiscountDetails : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] + public DecimalValue DiscountableAmount { get; set; } + + [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] + public DecimalValue DiscountableQty { get; set; } + + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } + + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } + + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } + + [DataMember(Name="ExternalDiscountCode", EmitDefaultValue=false)] + public StringValue ExternalDiscountCode { get; set; } + + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public StringValue FreeItem { get; set; } + + [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] + public DecimalValue FreeItemQty { get; set; } + + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="SequenceID", EmitDefaultValue=false)] + public StringValue SequenceID { get; set; } + + [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] + public BooleanValue SkipDiscount { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoiceFinancialDetails.cs b/Acumatica.Default_18.200.001/Model/SalesInvoiceFinancialDetails.cs new file mode 100644 index 00000000..0b609a60 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoiceFinancialDetails.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceFinancialDetails : Entity + { + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CustomerTaxZone", EmitDefaultValue=false)] + public StringValue CustomerTaxZone { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoiceFreightDetail.cs b/Acumatica.Default_18.200.001/Model/SalesInvoiceFreightDetail.cs new file mode 100644 index 00000000..204b4f63 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoiceFreightDetail.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceFreightDetail : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="FreightAmount", EmitDefaultValue=false)] + public DecimalValue FreightAmount { get; set; } + + [DataMember(Name="FreightCost", EmitDefaultValue=false)] + public DecimalValue FreightCost { get; set; } + + [DataMember(Name="LineTotal", EmitDefaultValue=false)] + public DecimalValue LineTotal { get; set; } + + [DataMember(Name="PremiumFreightAmount", EmitDefaultValue=false)] + public DecimalValue PremiumFreightAmount { get; set; } + + [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] + public StringValue ShipmentNbr { get; set; } + + [DataMember(Name="ShipmentType", EmitDefaultValue=false)] + public StringValue ShipmentType { get; set; } + + [DataMember(Name="TotalFreightAmount", EmitDefaultValue=false)] + public DecimalValue TotalFreightAmount { get; set; } + + [DataMember(Name="Volume", EmitDefaultValue=false)] + public DecimalValue Volume { get; set; } + + [DataMember(Name="Weight", EmitDefaultValue=false)] + public DecimalValue Weight { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoiceSalesPersonDetail.cs b/Acumatica.Default_18.200.001/Model/SalesInvoiceSalesPersonDetail.cs new file mode 100644 index 00000000..b0da25ad --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoiceSalesPersonDetail.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceSalesPersonDetail : Entity + { + + [DataMember(Name="CommissionableAmount", EmitDefaultValue=false)] + public DecimalValue CommissionableAmount { get; set; } + + [DataMember(Name="CommissionAmount", EmitDefaultValue=false)] + public DecimalValue CommissionAmount { get; set; } + + [DataMember(Name="CommissionPercent", EmitDefaultValue=false)] + public DecimalValue CommissionPercent { get; set; } + + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoiceTaxDetail.cs b/Acumatica.Default_18.200.001/Model/SalesInvoiceTaxDetail.cs new file mode 100644 index 00000000..49f891a5 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoiceTaxDetail.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceTaxDetail : Entity + { + + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesInvoiceTotals.cs b/Acumatica.Default_18.200.001/Model/SalesInvoiceTotals.cs new file mode 100644 index 00000000..fb37f5c0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesInvoiceTotals.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesInvoiceTotals : Entity + { + + [DataMember(Name="DiscountTotal", EmitDefaultValue=false)] + public DecimalValue DiscountTotal { get; set; } + + [DataMember(Name="Freight", EmitDefaultValue=false)] + public DecimalValue Freight { get; set; } + + [DataMember(Name="LineTotal", EmitDefaultValue=false)] + public DecimalValue LineTotal { get; set; } + + [DataMember(Name="MiscTotal", EmitDefaultValue=false)] + public DecimalValue MiscTotal { get; set; } + + [DataMember(Name="PaymentTotal", EmitDefaultValue=false)] + public DecimalValue PaymentTotal { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesOrder.cs b/Acumatica.Default_18.200.001/Model/SalesOrder.cs new file mode 100644 index 00000000..f04b7a6e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesOrder.cs @@ -0,0 +1,189 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesOrder : Entity + { + + [DataMember(Name="Approved", EmitDefaultValue=false)] + public BooleanValue Approved { get; set; } + + [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] + public StringValue BaseCurrencyID { get; set; } + + [DataMember(Name="BillToAddress", EmitDefaultValue=false)] + public Address BillToAddress { get; set; } + + [DataMember(Name="BillToAddressOverride", EmitDefaultValue=false)] + public BooleanValue BillToAddressOverride { get; set; } + + [DataMember(Name="BillToAddressValidated", EmitDefaultValue=false)] + public BooleanValue BillToAddressValidated { get; set; } + + [DataMember(Name="BillToContact", EmitDefaultValue=false)] + public DocContact BillToContact { get; set; } + + [DataMember(Name="BillToContactOverride", EmitDefaultValue=false)] + public BooleanValue BillToContactOverride { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="Commissions", EmitDefaultValue=false)] + public Commissions Commissions { get; set; } + + [DataMember(Name="ControlTotal", EmitDefaultValue=false)] + public DecimalValue ControlTotal { get; set; } + + [DataMember(Name="CreditHold", EmitDefaultValue=false)] + public BooleanValue CreditHold { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] + public DecimalValue CurrencyRate { get; set; } + + [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] + public StringValue CurrencyRateTypeID { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] + public StringValue CustomerOrder { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DestinationWarehouseID", EmitDefaultValue=false)] + public StringValue DestinationWarehouseID { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="DisableAutomaticDiscountUpdate", EmitDefaultValue=false)] + public BooleanValue DisableAutomaticDiscountUpdate { get; set; } + + [DataMember(Name="DiscountDetails", EmitDefaultValue=false)] + public List DiscountDetails { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="ExternalRef", EmitDefaultValue=false)] + public StringValue ExternalRef { get; set; } + + [DataMember(Name="FinancialSettings", EmitDefaultValue=false)] + public FinancialSettings FinancialSettings { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="IsTaxValid", EmitDefaultValue=false)] + public BooleanValue IsTaxValid { get; set; } + + [DataMember(Name="LastModified", EmitDefaultValue=false)] + public DateTimeValue LastModified { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="NewCard", EmitDefaultValue=false)] + public BooleanValue NewCard { get; set; } + + [DataMember(Name="OrderedQty", EmitDefaultValue=false)] + public DecimalValue OrderedQty { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderTotal", EmitDefaultValue=false)] + public DecimalValue OrderTotal { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="PaymentCardIdentifier", EmitDefaultValue=false)] + public StringValue PaymentCardIdentifier { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="PaymentProfileID", EmitDefaultValue=false)] + public StringValue PaymentProfileID { get; set; } + + [DataMember(Name="PaymentRef", EmitDefaultValue=false)] + public StringValue PaymentRef { get; set; } + + [DataMember(Name="Payments", EmitDefaultValue=false)] + public List Payments { get; set; } + + [DataMember(Name="PreAuthorizationNbr", EmitDefaultValue=false)] + public StringValue PreAuthorizationNbr { get; set; } + + [DataMember(Name="PreAuthorizedAmount", EmitDefaultValue=false)] + public DecimalValue PreAuthorizedAmount { get; set; } + + [DataMember(Name="PreferredWarehouseID", EmitDefaultValue=false)] + public StringValue PreferredWarehouseID { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] + public DecimalValue ReciprocalRate { get; set; } + + [DataMember(Name="RequestedOn", EmitDefaultValue=false)] + public DateTimeValue RequestedOn { get; set; } + + [DataMember(Name="Shipments", EmitDefaultValue=false)] + public List Shipments { get; set; } + + [DataMember(Name="ShippingSettings", EmitDefaultValue=false)] + public ShippingSettings ShippingSettings { get; set; } + + [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] + public Address ShipToAddress { get; set; } + + [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] + public BooleanValue ShipToAddressOverride { get; set; } + + [DataMember(Name="ShipToAddressValidated", EmitDefaultValue=false)] + public BooleanValue ShipToAddressValidated { get; set; } + + [DataMember(Name="ShipToContact", EmitDefaultValue=false)] + public DocContact ShipToContact { get; set; } + + [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] + public BooleanValue ShipToContactOverride { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxDetails", EmitDefaultValue=false)] + public List TaxDetails { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + [DataMember(Name="Totals", EmitDefaultValue=false)] + public Totals Totals { get; set; } + + [DataMember(Name="VATExemptTotal", EmitDefaultValue=false)] + public DecimalValue VATExemptTotal { get; set; } + + [DataMember(Name="VATTaxableTotal", EmitDefaultValue=false)] + public DecimalValue VATTaxableTotal { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesOrderDetail.cs b/Acumatica.Default_18.200.001/Model/SalesOrderDetail.cs new file mode 100644 index 00000000..896447be --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesOrderDetail.cs @@ -0,0 +1,147 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesOrderDetail : Entity + { + + [DataMember(Name="Account", EmitDefaultValue=false)] + public StringValue Account { get; set; } + + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } + + [DataMember(Name="AlternateID", EmitDefaultValue=false)] + public StringValue AlternateID { get; set; } + + [DataMember(Name="AutoCreateIssue", EmitDefaultValue=false)] + public BooleanValue AutoCreateIssue { get; set; } + + [DataMember(Name="AverageCost", EmitDefaultValue=false)] + public DecimalValue AverageCost { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CalculateDiscountsOnImport", EmitDefaultValue=false)] + public BooleanValue CalculateDiscountsOnImport { get; set; } + + [DataMember(Name="Commissionable", EmitDefaultValue=false)] + public BooleanValue Commissionable { get; set; } + + [DataMember(Name="Completed", EmitDefaultValue=false)] + public BooleanValue Completed { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } + + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } + + [DataMember(Name="DiscountedUnitPrice", EmitDefaultValue=false)] + public DecimalValue DiscountedUnitPrice { get; set; } + + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } + + [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] + public DecimalValue ExtendedPrice { get; set; } + + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public BooleanValue FreeItem { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] + public StringValue LastModifiedDate { get; set; } + + [DataMember(Name="LineDescription", EmitDefaultValue=false)] + public StringValue LineDescription { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LineType", EmitDefaultValue=false)] + public StringValue LineType { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } + + [DataMember(Name="MarkForPO", EmitDefaultValue=false)] + public BooleanValue MarkForPO { get; set; } + + [DataMember(Name="OpenQty", EmitDefaultValue=false)] + public DecimalValue OpenQty { get; set; } + + [DataMember(Name="Operation", EmitDefaultValue=false)] + public StringValue Operation { get; set; } + + [DataMember(Name="OrderQty", EmitDefaultValue=false)] + public DecimalValue OrderQty { get; set; } + + [DataMember(Name="OvershipThreshold", EmitDefaultValue=false)] + public DecimalValue OvershipThreshold { get; set; } + + [DataMember(Name="POSource", EmitDefaultValue=false)] + public StringValue POSource { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="PurchasingSettings", EmitDefaultValue=false)] + public PurchaseSettings PurchasingSettings { get; set; } + + [DataMember(Name="QtyOnShipments", EmitDefaultValue=false)] + public DecimalValue QtyOnShipments { get; set; } + + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } + + [DataMember(Name="RequestedOn", EmitDefaultValue=false)] + public DateTimeValue RequestedOn { get; set; } + + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } + + [DataMember(Name="ShipOn", EmitDefaultValue=false)] + public DateTimeValue ShipOn { get; set; } + + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="UnbilledAmount", EmitDefaultValue=false)] + public DecimalValue UnbilledAmount { get; set; } + + [DataMember(Name="UndershipThreshold", EmitDefaultValue=false)] + public DecimalValue UndershipThreshold { get; set; } + + [DataMember(Name="UnitCost", EmitDefaultValue=false)] + public DecimalValue UnitCost { get; set; } + + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesOrderDetailAllocation.cs b/Acumatica.Default_18.200.001/Model/SalesOrderDetailAllocation.cs new file mode 100644 index 00000000..5851eec6 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesOrderDetailAllocation.cs @@ -0,0 +1,66 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesOrderDetailAllocation : Entity + { + + [DataMember(Name="Allocated", EmitDefaultValue=false)] + public BooleanValue Allocated { get; set; } + + [DataMember(Name="AllocWarehouseID", EmitDefaultValue=false)] + public StringValue AllocWarehouseID { get; set; } + + [DataMember(Name="Completed", EmitDefaultValue=false)] + public BooleanValue Completed { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="QtyOnShipments", EmitDefaultValue=false)] + public DecimalValue QtyOnShipments { get; set; } + + [DataMember(Name="QtyReceived", EmitDefaultValue=false)] + public DecimalValue QtyReceived { get; set; } + + [DataMember(Name="RelatedDocument", EmitDefaultValue=false)] + public StringValue RelatedDocument { get; set; } + + [DataMember(Name="ShipOn", EmitDefaultValue=false)] + public DateTimeValue ShipOn { get; set; } + + [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] + public IntValue SplitLineNbr { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesOrderShipment.cs b/Acumatica.Default_18.200.001/Model/SalesOrderShipment.cs new file mode 100644 index 00000000..96a161a5 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesOrderShipment.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesOrderShipment : Entity + { + + [DataMember(Name="InventoryDocType", EmitDefaultValue=false)] + public StringValue InventoryDocType { get; set; } + + [DataMember(Name="InventoryRefNbr", EmitDefaultValue=false)] + public StringValue InventoryRefNbr { get; set; } + + [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] + public StringValue InvoiceNbr { get; set; } + + [DataMember(Name="InvoiceType", EmitDefaultValue=false)] + public StringValue InvoiceType { get; set; } + + [DataMember(Name="ShipmentDate", EmitDefaultValue=false)] + public DateTimeValue ShipmentDate { get; set; } + + [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] + public StringValue ShipmentNbr { get; set; } + + [DataMember(Name="ShipmentType", EmitDefaultValue=false)] + public StringValue ShipmentType { get; set; } + + [DataMember(Name="ShippedQty", EmitDefaultValue=false)] + public DecimalValue ShippedQty { get; set; } + + [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] + public DecimalValue ShippedVolume { get; set; } + + [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] + public DecimalValue ShippedWeight { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesOrdersDiscountDetails.cs b/Acumatica.Default_18.200.001/Model/SalesOrdersDiscountDetails.cs new file mode 100644 index 00000000..bb70d2d9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesOrdersDiscountDetails.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesOrdersDiscountDetails : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] + public DecimalValue DiscountableAmount { get; set; } + + [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] + public DecimalValue DiscountableQty { get; set; } + + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public DecimalValue DiscountAmount { get; set; } + + [DataMember(Name="DiscountCode", EmitDefaultValue=false)] + public StringValue DiscountCode { get; set; } + + [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] + public DecimalValue DiscountPercent { get; set; } + + [DataMember(Name="ExternalDiscountCode", EmitDefaultValue=false)] + public StringValue ExternalDiscountCode { get; set; } + + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public StringValue FreeItem { get; set; } + + [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] + public DecimalValue FreeItemQty { get; set; } + + [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] + public BooleanValue ManualDiscount { get; set; } + + [DataMember(Name="SequenceID", EmitDefaultValue=false)] + public StringValue SequenceID { get; set; } + + [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] + public BooleanValue SkipDiscount { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesPersonDetail.cs b/Acumatica.Default_18.200.001/Model/SalesPersonDetail.cs new file mode 100644 index 00000000..f4b331ca --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesPersonDetail.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesPersonDetail : Entity + { + + [DataMember(Name="CommissionableAmount", EmitDefaultValue=false)] + public DecimalValue CommissionableAmount { get; set; } + + [DataMember(Name="CommissionAmount", EmitDefaultValue=false)] + public DecimalValue CommissionAmount { get; set; } + + [DataMember(Name="CommissionPercent", EmitDefaultValue=false)] + public DecimalValue CommissionPercent { get; set; } + + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesPriceDetail.cs b/Acumatica.Default_18.200.001/Model/SalesPriceDetail.cs new file mode 100644 index 00000000..71cc6015 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesPriceDetail.cs @@ -0,0 +1,57 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesPriceDetail : Entity + { + + [DataMember(Name="BreakQty", EmitDefaultValue=false)] + public DecimalValue BreakQty { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Price", EmitDefaultValue=false)] + public DecimalValue Price { get; set; } + + [DataMember(Name="PriceCode", EmitDefaultValue=false)] + public StringValue PriceCode { get; set; } + + [DataMember(Name="PriceType", EmitDefaultValue=false)] + public StringValue PriceType { get; set; } + + [DataMember(Name="Promotion", EmitDefaultValue=false)] + public BooleanValue Promotion { get; set; } + + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } + + [DataMember(Name="Tax", EmitDefaultValue=false)] + public StringValue Tax { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesPriceWorksheet.cs b/Acumatica.Default_18.200.001/Model/SalesPriceWorksheet.cs new file mode 100644 index 00000000..72ad8ac4 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesPriceWorksheet.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesPriceWorksheet : Entity + { + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="OverwriteOverlappingPrices", EmitDefaultValue=false)] + public BooleanValue OverwriteOverlappingPrices { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="SalesPrices", EmitDefaultValue=false)] + public List SalesPrices { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesPricesInquiry.cs b/Acumatica.Default_18.200.001/Model/SalesPricesInquiry.cs new file mode 100644 index 00000000..c3a3a0be --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesPricesInquiry.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesPricesInquiry : Entity + { + + [DataMember(Name="EffectiveAsOf", EmitDefaultValue=false)] + public DateTimeValue EffectiveAsOf { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="ItemClassID", EmitDefaultValue=false)] + public StringValue ItemClassID { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="PriceCode", EmitDefaultValue=false)] + public StringValue PriceCode { get; set; } + + [DataMember(Name="PriceManager", EmitDefaultValue=false)] + public StringValue PriceManager { get; set; } + + [DataMember(Name="PriceManagerIsMe", EmitDefaultValue=false)] + public BooleanValue PriceManagerIsMe { get; set; } + + [DataMember(Name="PriceType", EmitDefaultValue=false)] + public StringValue PriceType { get; set; } + + [DataMember(Name="PriceWorkgroup", EmitDefaultValue=false)] + public StringValue PriceWorkgroup { get; set; } + + [DataMember(Name="PriceWorkgroupIsMine", EmitDefaultValue=false)] + public BooleanValue PriceWorkgroupIsMine { get; set; } + + [DataMember(Name="SalesPriceDetails", EmitDefaultValue=false)] + public List SalesPriceDetails { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SalesPricesWorksheetDetail.cs b/Acumatica.Default_18.200.001/Model/SalesPricesWorksheetDetail.cs new file mode 100644 index 00000000..1234b574 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SalesPricesWorksheetDetail.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SalesPricesWorksheetDetail : Entity + { + + [DataMember(Name="BreakQty", EmitDefaultValue=false)] + public DecimalValue BreakQty { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineID", EmitDefaultValue=false)] + public IntValue LineID { get; set; } + + [DataMember(Name="PendingPrice", EmitDefaultValue=false)] + public DecimalValue PendingPrice { get; set; } + + [DataMember(Name="PriceCode", EmitDefaultValue=false)] + public StringValue PriceCode { get; set; } + + [DataMember(Name="PriceType", EmitDefaultValue=false)] + public StringValue PriceType { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="SourcePrice", EmitDefaultValue=false)] + public DecimalValue SourcePrice { get; set; } + + [DataMember(Name="Tax", EmitDefaultValue=false)] + public StringValue Tax { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Salesperson.cs b/Acumatica.Default_18.200.001/Model/Salesperson.cs new file mode 100644 index 00000000..1bb826d4 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Salesperson.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Salesperson : Entity + { + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="DefaultCommission", EmitDefaultValue=false)] + public DecimalValue DefaultCommission { get; set; } + + [DataMember(Name="IsActive", EmitDefaultValue=false)] + public BooleanValue IsActive { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Name", EmitDefaultValue=false)] + public StringValue Name { get; set; } + + [DataMember(Name="SalespersonID", EmitDefaultValue=false)] + public StringValue SalespersonID { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShipToSettings.cs b/Acumatica.Default_18.200.001/Model/ShipToSettings.cs new file mode 100644 index 00000000..b839ddb0 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShipToSettings.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShipToSettings : Entity + { + + [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] + public Address ShipToAddress { get; set; } + + [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] + public BooleanValue ShipToAddressOverride { get; set; } + + [DataMember(Name="ShipToContact", EmitDefaultValue=false)] + public DocContact ShipToContact { get; set; } + + [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] + public BooleanValue ShipToContactOverride { get; set; } + + [DataMember(Name="Validated", EmitDefaultValue=false)] + public BooleanValue Validated { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShipVia.cs b/Acumatica.Default_18.200.001/Model/ShipVia.cs new file mode 100644 index 00000000..07930c98 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShipVia.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShipVia : Entity + { + + [DataMember(Name="CalculationMethod", EmitDefaultValue=false)] + public StringValue CalculationMethod { get; set; } + + [DataMember(Name="Calendar", EmitDefaultValue=false)] + public StringValue Calendar { get; set; } + + [DataMember(Name="CarrierID", EmitDefaultValue=false)] + public StringValue CarrierID { get; set; } + + [DataMember(Name="CommonCarrier", EmitDefaultValue=false)] + public BooleanValue CommonCarrier { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="FreightExpenseAccount", EmitDefaultValue=false)] + public StringValue FreightExpenseAccount { get; set; } + + [DataMember(Name="FreightExpenseSubaccount", EmitDefaultValue=false)] + public StringValue FreightExpenseSubaccount { get; set; } + + [DataMember(Name="FreightRates", EmitDefaultValue=false)] + public List FreightRates { get; set; } + + [DataMember(Name="FreightSalesAccount", EmitDefaultValue=false)] + public StringValue FreightSalesAccount { get; set; } + + [DataMember(Name="FreightSalesSubaccount", EmitDefaultValue=false)] + public StringValue FreightSalesSubaccount { get; set; } + + [DataMember(Name="Packages", EmitDefaultValue=false)] + public List Packages { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShipViaFreightRate.cs b/Acumatica.Default_18.200.001/Model/ShipViaFreightRate.cs new file mode 100644 index 00000000..c2b6b737 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShipViaFreightRate.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShipViaFreightRate : Entity + { + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="Rate", EmitDefaultValue=false)] + public DecimalValue Rate { get; set; } + + [DataMember(Name="Volume", EmitDefaultValue=false)] + public DecimalValue Volume { get; set; } + + [DataMember(Name="Weight", EmitDefaultValue=false)] + public DecimalValue Weight { get; set; } + + [DataMember(Name="ZoneID", EmitDefaultValue=false)] + public StringValue ZoneID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Shipment.cs b/Acumatica.Default_18.200.001/Model/Shipment.cs new file mode 100644 index 00000000..522a65f8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Shipment.cs @@ -0,0 +1,141 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Shipment : Entity + { + + [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] + public StringValue BaseCurrencyID { get; set; } + + [DataMember(Name="ControlQty", EmitDefaultValue=false)] + public DecimalValue ControlQty { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] + public DecimalValue CurrencyRate { get; set; } + + [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] + public StringValue CurrencyRateTypeID { get; set; } + + [DataMember(Name="CurrencyViewState", EmitDefaultValue=false)] + public BooleanValue CurrencyViewState { get; set; } + + [DataMember(Name="CustomerID", EmitDefaultValue=false)] + public StringValue CustomerID { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="FreightAmount", EmitDefaultValue=false)] + public DecimalValue FreightAmount { get; set; } + + [DataMember(Name="FreightCost", EmitDefaultValue=false)] + public DecimalValue FreightCost { get; set; } + + [DataMember(Name="FreightCurrency", EmitDefaultValue=false)] + public StringValue FreightCurrency { get; set; } + + [DataMember(Name="GroundCollect", EmitDefaultValue=false)] + public BooleanValue GroundCollect { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="Insurance", EmitDefaultValue=false)] + public BooleanValue Insurance { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="Operation", EmitDefaultValue=false)] + public StringValue Operation { get; set; } + + [DataMember(Name="Orders", EmitDefaultValue=false)] + public List Orders { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="PackageCount", EmitDefaultValue=false)] + public IntValue PackageCount { get; set; } + + [DataMember(Name="Packages", EmitDefaultValue=false)] + public List Packages { get; set; } + + [DataMember(Name="PackageWeight", EmitDefaultValue=false)] + public DecimalValue PackageWeight { get; set; } + + [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] + public DecimalValue ReciprocalRate { get; set; } + + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } + + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } + + [DataMember(Name="ShipmentDate", EmitDefaultValue=false)] + public DateTimeValue ShipmentDate { get; set; } + + [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] + public StringValue ShipmentNbr { get; set; } + + [DataMember(Name="ShippedQty", EmitDefaultValue=false)] + public DecimalValue ShippedQty { get; set; } + + [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] + public DecimalValue ShippedVolume { get; set; } + + [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] + public DecimalValue ShippedWeight { get; set; } + + [DataMember(Name="ShippingSettings", EmitDefaultValue=false)] + public ShipToSettings ShippingSettings { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShippingZoneID", EmitDefaultValue=false)] + public StringValue ShippingZoneID { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="ToWarehouseID", EmitDefaultValue=false)] + public StringValue ToWarehouseID { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UseCustomersAccount", EmitDefaultValue=false)] + public BooleanValue UseCustomersAccount { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] + public StringValue WorkgroupID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShipmentDetail.cs b/Acumatica.Default_18.200.001/Model/ShipmentDetail.cs new file mode 100644 index 00000000..d53364fa --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShipmentDetail.cs @@ -0,0 +1,69 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShipmentDetail : Entity + { + + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="FreeItem", EmitDefaultValue=false)] + public BooleanValue FreeItem { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="OpenQty", EmitDefaultValue=false)] + public DecimalValue OpenQty { get; set; } + + [DataMember(Name="OrderedQty", EmitDefaultValue=false)] + public DecimalValue OrderedQty { get; set; } + + [DataMember(Name="OrderLineNbr", EmitDefaultValue=false)] + public IntValue OrderLineNbr { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="OriginalQty", EmitDefaultValue=false)] + public DecimalValue OriginalQty { get; set; } + + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } + + [DataMember(Name="ShippedQty", EmitDefaultValue=false)] + public DecimalValue ShippedQty { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShipmentDetailAllocation.cs b/Acumatica.Default_18.200.001/Model/ShipmentDetailAllocation.cs new file mode 100644 index 00000000..175dfa24 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShipmentDetailAllocation.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShipmentDetailAllocation : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShipmentOrderDetail.cs b/Acumatica.Default_18.200.001/Model/ShipmentOrderDetail.cs new file mode 100644 index 00000000..d751aca1 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShipmentOrderDetail.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShipmentOrderDetail : Entity + { + + [DataMember(Name="InventoryDocType", EmitDefaultValue=false)] + public StringValue InventoryDocType { get; set; } + + [DataMember(Name="InventoryRefNbr", EmitDefaultValue=false)] + public StringValue InventoryRefNbr { get; set; } + + [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] + public StringValue InvoiceNbr { get; set; } + + [DataMember(Name="InvoiceType", EmitDefaultValue=false)] + public StringValue InvoiceType { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] + public StringValue ShipmentNbr { get; set; } + + [DataMember(Name="ShipmentType", EmitDefaultValue=false)] + public StringValue ShipmentType { get; set; } + + [DataMember(Name="ShippedQty", EmitDefaultValue=false)] + public DecimalValue ShippedQty { get; set; } + + [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] + public DecimalValue ShippedVolume { get; set; } + + [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] + public DecimalValue ShippedWeight { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShipmentPackage.cs b/Acumatica.Default_18.200.001/Model/ShipmentPackage.cs new file mode 100644 index 00000000..06c2a055 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShipmentPackage.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShipmentPackage : Entity + { + + [DataMember(Name="BoxID", EmitDefaultValue=false)] + public StringValue BoxID { get; set; } + + [DataMember(Name="CODAmount", EmitDefaultValue=false)] + public DecimalValue CODAmount { get; set; } + + [DataMember(Name="Confirmed", EmitDefaultValue=false)] + public BooleanValue Confirmed { get; set; } + + [DataMember(Name="CustomRefNbr1", EmitDefaultValue=false)] + public StringValue CustomRefNbr1 { get; set; } + + [DataMember(Name="CustomRefNbr2", EmitDefaultValue=false)] + public StringValue CustomRefNbr2 { get; set; } + + [DataMember(Name="DeclaredValue", EmitDefaultValue=false)] + public DecimalValue DeclaredValue { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="TrackingNbr", EmitDefaultValue=false)] + public StringValue TrackingNbr { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="Weight", EmitDefaultValue=false)] + public DecimalValue Weight { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShippingBox.cs b/Acumatica.Default_18.200.001/Model/ShippingBox.cs new file mode 100644 index 00000000..f1e8b013 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShippingBox.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShippingBox : Entity + { + + [DataMember(Name="ActiveByDefault", EmitDefaultValue=false)] + public BooleanValue ActiveByDefault { get; set; } + + [DataMember(Name="BoxID", EmitDefaultValue=false)] + public StringValue BoxID { get; set; } + + [DataMember(Name="BoxWeight", EmitDefaultValue=false)] + public DecimalValue BoxWeight { get; set; } + + [DataMember(Name="CarriersPackage", EmitDefaultValue=false)] + public StringValue CarriersPackage { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Height", EmitDefaultValue=false)] + public IntValue Height { get; set; } + + [DataMember(Name="Length", EmitDefaultValue=false)] + public IntValue Length { get; set; } + + [DataMember(Name="MaxVolume", EmitDefaultValue=false)] + public DecimalValue MaxVolume { get; set; } + + [DataMember(Name="MaxWeight", EmitDefaultValue=false)] + public DecimalValue MaxWeight { get; set; } + + [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] + public StringValue VolumeUOM { get; set; } + + [DataMember(Name="WeightUOM", EmitDefaultValue=false)] + public StringValue WeightUOM { get; set; } + + [DataMember(Name="Width", EmitDefaultValue=false)] + public IntValue Width { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShippingInstructions.cs b/Acumatica.Default_18.200.001/Model/ShippingInstructions.cs new file mode 100644 index 00000000..375c6cbb --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShippingInstructions.cs @@ -0,0 +1,39 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShippingInstructions : Entity + { + + [DataMember(Name="ShippingDestinationType", EmitDefaultValue=false)] + public StringValue ShippingDestinationType { get; set; } + + [DataMember(Name="ShippingLocation", EmitDefaultValue=false)] + public StringValue ShippingLocation { get; set; } + + [DataMember(Name="ShipTo", EmitDefaultValue=false)] + public StringValue ShipTo { get; set; } + + [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] + public Address ShipToAddress { get; set; } + + [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] + public BooleanValue ShipToAddressOverride { get; set; } + + [DataMember(Name="ShipToAddressValidated", EmitDefaultValue=false)] + public BooleanValue ShipToAddressValidated { get; set; } + + [DataMember(Name="ShipToContact", EmitDefaultValue=false)] + public DocContact ShipToContact { get; set; } + + [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] + public BooleanValue ShipToContactOverride { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShippingSettings.cs b/Acumatica.Default_18.200.001/Model/ShippingSettings.cs new file mode 100644 index 00000000..772b12b2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShippingSettings.cs @@ -0,0 +1,63 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShippingSettings : Entity + { + + [DataMember(Name="CancelByDate", EmitDefaultValue=false)] + public DateTimeValue CancelByDate { get; set; } + + [DataMember(Name="Canceled", EmitDefaultValue=false)] + public BooleanValue Canceled { get; set; } + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="GroundCollect", EmitDefaultValue=false)] + public BooleanValue GroundCollect { get; set; } + + [DataMember(Name="Insurance", EmitDefaultValue=false)] + public BooleanValue Insurance { get; set; } + + [DataMember(Name="PreferredWarehouseID", EmitDefaultValue=false)] + public StringValue PreferredWarehouseID { get; set; } + + [DataMember(Name="Priority", EmitDefaultValue=false)] + public ShortValue Priority { get; set; } + + [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] + public BooleanValue ResidentialDelivery { get; set; } + + [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] + public BooleanValue SaturdayDelivery { get; set; } + + [DataMember(Name="ScheduledShipmentDate", EmitDefaultValue=false)] + public DateTimeValue ScheduledShipmentDate { get; set; } + + [DataMember(Name="ShippingRule", EmitDefaultValue=false)] + public StringValue ShippingRule { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShippingZone", EmitDefaultValue=false)] + public StringValue ShippingZone { get; set; } + + [DataMember(Name="ShipSeparately", EmitDefaultValue=false)] + public BooleanValue ShipSeparately { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="ShopForRates", EmitDefaultValue=false)] + public ShopForRates ShopForRates { get; set; } + + [DataMember(Name="UseCustomersAccount", EmitDefaultValue=false)] + public BooleanValue UseCustomersAccount { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShippingTerm.cs b/Acumatica.Default_18.200.001/Model/ShippingTerm.cs new file mode 100644 index 00000000..60e931b9 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShippingTerm.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShippingTerm : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="TermID", EmitDefaultValue=false)] + public StringValue TermID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShippingTermDetail.cs b/Acumatica.Default_18.200.001/Model/ShippingTermDetail.cs new file mode 100644 index 00000000..75711039 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShippingTermDetail.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShippingTermDetail : Entity + { + + [DataMember(Name="BreakAmount", EmitDefaultValue=false)] + public DecimalValue BreakAmount { get; set; } + + [DataMember(Name="FreightCost", EmitDefaultValue=false)] + public DecimalValue FreightCost { get; set; } + + [DataMember(Name="InvoiceAmount", EmitDefaultValue=false)] + public DecimalValue InvoiceAmount { get; set; } + + [DataMember(Name="LineHandling", EmitDefaultValue=false)] + public DecimalValue LineHandling { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="ShippingandHandling", EmitDefaultValue=false)] + public DecimalValue ShippingandHandling { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShippingZones.cs b/Acumatica.Default_18.200.001/Model/ShippingZones.cs new file mode 100644 index 00000000..f6fd9ed8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShippingZones.cs @@ -0,0 +1,18 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShippingZones : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ZoneID", EmitDefaultValue=false)] + public StringValue ZoneID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/ShopForRates.cs b/Acumatica.Default_18.200.001/Model/ShopForRates.cs new file mode 100644 index 00000000..dedb3637 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/ShopForRates.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class ShopForRates : Entity + { + + [DataMember(Name="IsManualPackage", EmitDefaultValue=false)] + public BooleanValue IsManualPackage { get; set; } + + [DataMember(Name="OrderWeight", EmitDefaultValue=false)] + public DecimalValue OrderWeight { get; set; } + + [DataMember(Name="PackageWeight", EmitDefaultValue=false)] + public DecimalValue PackageWeight { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/StatementCycle.cs b/Acumatica.Default_18.200.001/Model/StatementCycle.cs new file mode 100644 index 00000000..e5e9d6f3 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/StatementCycle.cs @@ -0,0 +1,69 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class StatementCycle : Entity + { + + [DataMember(Name="AgingPeriod1EndDay", EmitDefaultValue=false)] + public ShortValue AgingPeriod1EndDay { get; set; } + + [DataMember(Name="AgingPeriod1Message", EmitDefaultValue=false)] + public StringValue AgingPeriod1Message { get; set; } + + [DataMember(Name="AgingPeriod2EndDay", EmitDefaultValue=false)] + public ShortValue AgingPeriod2EndDay { get; set; } + + [DataMember(Name="AgingPeriod2Message", EmitDefaultValue=false)] + public StringValue AgingPeriod2Message { get; set; } + + [DataMember(Name="AgingPeriod3EndDay", EmitDefaultValue=false)] + public ShortValue AgingPeriod3EndDay { get; set; } + + [DataMember(Name="AgingPeriod3Message", EmitDefaultValue=false)] + public StringValue AgingPeriod3Message { get; set; } + + [DataMember(Name="AgingPeriod4Message", EmitDefaultValue=false)] + public StringValue AgingPeriod4Message { get; set; } + + [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] + public BooleanValue ApplyOverdueCharges { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CycleID", EmitDefaultValue=false)] + public StringValue CycleID { get; set; } + + [DataMember(Name="DayOfMonth", EmitDefaultValue=false)] + public ShortValue DayOfMonth { get; set; } + + [DataMember(Name="DayOfMonth1", EmitDefaultValue=false)] + public ShortValue DayOfMonth1 { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LastStatementDate", EmitDefaultValue=false)] + public DateTimeValue LastStatementDate { get; set; } + + [DataMember(Name="OverdueChargeID", EmitDefaultValue=false)] + public StringValue OverdueChargeID { get; set; } + + [DataMember(Name="PrepareOn", EmitDefaultValue=false)] + public StringValue PrepareOn { get; set; } + + [DataMember(Name="RequireOverdueChargesCalculationBeforeStatement", EmitDefaultValue=false)] + public BooleanValue RequireOverdueChargesCalculationBeforeStatement { get; set; } + + [DataMember(Name="RequirePaymentApplicationBeforeStatementProcessing", EmitDefaultValue=false)] + public BooleanValue RequirePaymentApplicationBeforeStatementProcessing { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/StockItem.cs b/Acumatica.Default_18.200.001/Model/StockItem.cs new file mode 100644 index 00000000..34fc4676 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/StockItem.cs @@ -0,0 +1,240 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class StockItem : Entity + { + + [DataMember(Name="ABCCode", EmitDefaultValue=false)] + public StringValue ABCCode { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="AutoIncrementalValue", EmitDefaultValue=false)] + public StringValue AutoIncrementalValue { get; set; } + + [DataMember(Name="AverageCost", EmitDefaultValue=false)] + public DecimalValue AverageCost { get; set; } + + [DataMember(Name="BaseUOM", EmitDefaultValue=false)] + public StringValue BaseUOM { get; set; } + + [DataMember(Name="Boxes", EmitDefaultValue=false)] + public List Boxes { get; set; } + + [DataMember(Name="Categories", EmitDefaultValue=false)] + public List Categories { get; set; } + + [DataMember(Name="COGSAccount", EmitDefaultValue=false)] + public StringValue COGSAccount { get; set; } + + [DataMember(Name="COGSSubaccount", EmitDefaultValue=false)] + public StringValue COGSSubaccount { get; set; } + + [DataMember(Name="Content", EmitDefaultValue=false)] + public StringValue Content { get; set; } + + [DataMember(Name="CrossReferences", EmitDefaultValue=false)] + public List CrossReferences { get; set; } + + [DataMember(Name="CurrentStdCost", EmitDefaultValue=false)] + public DecimalValue CurrentStdCost { get; set; } + + [DataMember(Name="DefaultIssueLocationID", EmitDefaultValue=false)] + public StringValue DefaultIssueLocationID { get; set; } + + [DataMember(Name="DefaultPrice", EmitDefaultValue=false)] + public DecimalValue DefaultPrice { get; set; } + + [DataMember(Name="DefaultReceiptLocationID", EmitDefaultValue=false)] + public StringValue DefaultReceiptLocationID { get; set; } + + [DataMember(Name="DefaultSubitem", EmitDefaultValue=false)] + public StringValue DefaultSubitem { get; set; } + + [DataMember(Name="DefaultWarehouseID", EmitDefaultValue=false)] + public StringValue DefaultWarehouseID { get; set; } + + [DataMember(Name="DeferralAccount", EmitDefaultValue=false)] + public StringValue DeferralAccount { get; set; } + + [DataMember(Name="DeferralSubaccount", EmitDefaultValue=false)] + public StringValue DeferralSubaccount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DimensionVolume", EmitDefaultValue=false)] + public DecimalValue DimensionVolume { get; set; } + + [DataMember(Name="DimensionWeight", EmitDefaultValue=false)] + public DecimalValue DimensionWeight { get; set; } + + [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] + public StringValue DiscountAccount { get; set; } + + [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] + public StringValue DiscountSubaccount { get; set; } + + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public StringValue ImageUrl { get; set; } + + [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] + public StringValue InventoryAccount { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] + public StringValue InventorySubaccount { get; set; } + + [DataMember(Name="IsAKit", EmitDefaultValue=false)] + public BooleanValue IsAKit { get; set; } + + [DataMember(Name="ItemClass", EmitDefaultValue=false)] + public StringValue ItemClass { get; set; } + + [DataMember(Name="ItemStatus", EmitDefaultValue=false)] + public StringValue ItemStatus { get; set; } + + [DataMember(Name="ItemType", EmitDefaultValue=false)] + public StringValue ItemType { get; set; } + + [DataMember(Name="LandedCostVarianceAccount", EmitDefaultValue=false)] + public StringValue LandedCostVarianceAccount { get; set; } + + [DataMember(Name="LandedCostVarianceSubaccount", EmitDefaultValue=false)] + public StringValue LandedCostVarianceSubaccount { get; set; } + + [DataMember(Name="LastCost", EmitDefaultValue=false)] + public DecimalValue LastCost { get; set; } + + [DataMember(Name="LastModified", EmitDefaultValue=false)] + public DateTimeValue LastModified { get; set; } + + [DataMember(Name="LastStdCost", EmitDefaultValue=false)] + public DecimalValue LastStdCost { get; set; } + + [DataMember(Name="LotSerialClass", EmitDefaultValue=false)] + public StringValue LotSerialClass { get; set; } + + [DataMember(Name="Markup", EmitDefaultValue=false)] + public DecimalValue Markup { get; set; } + + [DataMember(Name="MaxCost", EmitDefaultValue=false)] + public DecimalValue MaxCost { get; set; } + + [DataMember(Name="MinCost", EmitDefaultValue=false)] + public DecimalValue MinCost { get; set; } + + [DataMember(Name="MinMarkup", EmitDefaultValue=false)] + public DecimalValue MinMarkup { get; set; } + + [DataMember(Name="MSRP", EmitDefaultValue=false)] + public DecimalValue MSRP { get; set; } + + [DataMember(Name="PackagingOption", EmitDefaultValue=false)] + public StringValue PackagingOption { get; set; } + + [DataMember(Name="PackSeparately", EmitDefaultValue=false)] + public BooleanValue PackSeparately { get; set; } + + [DataMember(Name="PendingStdCost", EmitDefaultValue=false)] + public DecimalValue PendingStdCost { get; set; } + + [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] + public StringValue POAccrualAccount { get; set; } + + [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] + public StringValue POAccrualSubaccount { get; set; } + + [DataMember(Name="PostingClass", EmitDefaultValue=false)] + public StringValue PostingClass { get; set; } + + [DataMember(Name="PriceClass", EmitDefaultValue=false)] + public StringValue PriceClass { get; set; } + + [DataMember(Name="PriceManager", EmitDefaultValue=false)] + public StringValue PriceManager { get; set; } + + [DataMember(Name="PriceWorkgroup", EmitDefaultValue=false)] + public StringValue PriceWorkgroup { get; set; } + + [DataMember(Name="ProductManager", EmitDefaultValue=false)] + public StringValue ProductManager { get; set; } + + [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] + public StringValue ProductWorkgroup { get; set; } + + [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceAccount { get; set; } + + [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceSubaccount { get; set; } + + [DataMember(Name="PurchaseUOM", EmitDefaultValue=false)] + public StringValue PurchaseUOM { get; set; } + + [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] + public StringValue ReasonCodeSubaccount { get; set; } + + [DataMember(Name="ReplenishmentParameters", EmitDefaultValue=false)] + public List ReplenishmentParameters { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="SalesUOM", EmitDefaultValue=false)] + public StringValue SalesUOM { get; set; } + + [DataMember(Name="StandardCostRevaluationAccount", EmitDefaultValue=false)] + public StringValue StandardCostRevaluationAccount { get; set; } + + [DataMember(Name="StandardCostRevaluationSubaccount", EmitDefaultValue=false)] + public StringValue StandardCostRevaluationSubaccount { get; set; } + + [DataMember(Name="StandardCostVarianceAccount", EmitDefaultValue=false)] + public StringValue StandardCostVarianceAccount { get; set; } + + [DataMember(Name="StandardCostVarianceSubaccount", EmitDefaultValue=false)] + public StringValue StandardCostVarianceSubaccount { get; set; } + + [DataMember(Name="SubItems", EmitDefaultValue=false)] + public List SubItems { get; set; } + + [DataMember(Name="SubjectToCommission", EmitDefaultValue=false)] + public BooleanValue SubjectToCommission { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="UOMConversions", EmitDefaultValue=false)] + public List UOMConversions { get; set; } + + [DataMember(Name="UseOnEntry", EmitDefaultValue=false)] + public BooleanValue UseOnEntry { get; set; } + + [DataMember(Name="ValuationMethod", EmitDefaultValue=false)] + public StringValue ValuationMethod { get; set; } + + [DataMember(Name="VendorDetails", EmitDefaultValue=false)] + public List VendorDetails { get; set; } + + [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] + public StringValue VolumeUOM { get; set; } + + [DataMember(Name="WarehouseDetails", EmitDefaultValue=false)] + public List WarehouseDetails { get; set; } + + [DataMember(Name="WeightUOM", EmitDefaultValue=false)] + public StringValue WeightUOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/StockItemVendorDetail.cs b/Acumatica.Default_18.200.001/Model/StockItemVendorDetail.cs new file mode 100644 index 00000000..aca63d4c --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/StockItemVendorDetail.cs @@ -0,0 +1,69 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class StockItemVendorDetail : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="AddLeadTimeDays", EmitDefaultValue=false)] + public ShortValue AddLeadTimeDays { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Default", EmitDefaultValue=false)] + public BooleanValue Default { get; set; } + + [DataMember(Name="EOQ", EmitDefaultValue=false)] + public DecimalValue EOQ { get; set; } + + [DataMember(Name="LastVendorPrice", EmitDefaultValue=false)] + public DecimalValue LastVendorPrice { get; set; } + + [DataMember(Name="LeadTimeDays", EmitDefaultValue=false)] + public ShortValue LeadTimeDays { get; set; } + + [DataMember(Name="Location", EmitDefaultValue=false)] + public StringValue Location { get; set; } + + [DataMember(Name="LotSize", EmitDefaultValue=false)] + public DecimalValue LotSize { get; set; } + + [DataMember(Name="MaxOrderQty", EmitDefaultValue=false)] + public DecimalValue MaxOrderQty { get; set; } + + [DataMember(Name="MinOrderFrequencyInDays", EmitDefaultValue=false)] + public IntValue MinOrderFrequencyInDays { get; set; } + + [DataMember(Name="MinOrderQty", EmitDefaultValue=false)] + public DecimalValue MinOrderQty { get; set; } + + [DataMember(Name="Override", EmitDefaultValue=false)] + public BooleanValue Override { get; set; } + + [DataMember(Name="PurchaseUnit", EmitDefaultValue=false)] + public StringValue PurchaseUnit { get; set; } + + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } + + [DataMember(Name="VendorName", EmitDefaultValue=false)] + public StringValue VendorName { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/StockItemWarehouseDetail.cs b/Acumatica.Default_18.200.001/Model/StockItemWarehouseDetail.cs new file mode 100644 index 00000000..4c8e2c68 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/StockItemWarehouseDetail.cs @@ -0,0 +1,81 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class StockItemWarehouseDetail : Entity + { + + [DataMember(Name="DailyDemandForecast", EmitDefaultValue=false)] + public DecimalValue DailyDemandForecast { get; set; } + + [DataMember(Name="DailyDemandForecastErrorSTDEV", EmitDefaultValue=false)] + public DecimalValue DailyDemandForecastErrorSTDEV { get; set; } + + [DataMember(Name="DefaultIssueLocationID", EmitDefaultValue=false)] + public StringValue DefaultIssueLocationID { get; set; } + + [DataMember(Name="DefaultReceiptLocationID", EmitDefaultValue=false)] + public StringValue DefaultReceiptLocationID { get; set; } + + [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] + public StringValue InventoryAccount { get; set; } + + [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] + public StringValue InventorySubaccount { get; set; } + + [DataMember(Name="IsDefault", EmitDefaultValue=false)] + public BooleanValue IsDefault { get; set; } + + [DataMember(Name="LastForecastDate", EmitDefaultValue=false)] + public DateTimeValue LastForecastDate { get; set; } + + [DataMember(Name="Override", EmitDefaultValue=false)] + public BooleanValue Override { get; set; } + + [DataMember(Name="OverridePreferredVendor", EmitDefaultValue=false)] + public BooleanValue OverridePreferredVendor { get; set; } + + [DataMember(Name="OverrideReplenishmentSettings", EmitDefaultValue=false)] + public BooleanValue OverrideReplenishmentSettings { get; set; } + + [DataMember(Name="OverrideStdCost", EmitDefaultValue=false)] + public BooleanValue OverrideStdCost { get; set; } + + [DataMember(Name="PreferredVendor", EmitDefaultValue=false)] + public StringValue PreferredVendor { get; set; } + + [DataMember(Name="PriceOverride", EmitDefaultValue=false)] + public BooleanValue PriceOverride { get; set; } + + [DataMember(Name="ProductManager", EmitDefaultValue=false)] + public StringValue ProductManager { get; set; } + + [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] + public StringValue ProductWorkgroup { get; set; } + + [DataMember(Name="QtyOnHand", EmitDefaultValue=false)] + public DecimalValue QtyOnHand { get; set; } + + [DataMember(Name="ReplenishmentSource", EmitDefaultValue=false)] + public StringValue ReplenishmentSource { get; set; } + + [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] + public StringValue ReplenishmentWarehouse { get; set; } + + [DataMember(Name="Seasonality", EmitDefaultValue=false)] + public StringValue Seasonality { get; set; } + + [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] + public DecimalValue ServiceLevel { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/SubItemStockItem.cs b/Acumatica.Default_18.200.001/Model/SubItemStockItem.cs new file mode 100644 index 00000000..9ff81854 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/SubItemStockItem.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class SubItemStockItem : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="SegmentID", EmitDefaultValue=false)] + public ShortValue SegmentID { get; set; } + + [DataMember(Name="Value", EmitDefaultValue=false)] + public StringValue Value { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Subaccount.cs b/Acumatica.Default_18.200.001/Model/Subaccount.cs new file mode 100644 index 00000000..620a7505 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Subaccount.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Subaccount : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Secured", EmitDefaultValue=false)] + public BooleanValue Secured { get; set; } + + [DataMember(Name="SubaccountCD", EmitDefaultValue=false)] + public StringValue SubaccountCD { get; set; } + + [DataMember(Name="SubaccountID", EmitDefaultValue=false)] + public IntValue SubaccountID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Task.cs b/Acumatica.Default_18.200.001/Model/Task.cs new file mode 100644 index 00000000..34054a9d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Task.cs @@ -0,0 +1,72 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Task : Entity + { + + [DataMember(Name="Body", EmitDefaultValue=false)] + public StringValue Body { get; set; } + + [DataMember(Name="Category", EmitDefaultValue=false)] + public StringValue Category { get; set; } + + [DataMember(Name="CompletedAt", EmitDefaultValue=false)] + public DateTimeValue CompletedAt { get; set; } + + [DataMember(Name="CompletionPercentage", EmitDefaultValue=false)] + public IntValue CompletionPercentage { get; set; } + + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } + + [DataMember(Name="Internal", EmitDefaultValue=false)] + public BooleanValue Internal { get; set; } + + [DataMember(Name="NoteID", EmitDefaultValue=false)] + public GuidValue NoteID { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="Parent", EmitDefaultValue=false)] + public GuidValue Parent { get; set; } + + [DataMember(Name="ParentSummary", EmitDefaultValue=false)] + public StringValue ParentSummary { get; set; } + + [DataMember(Name="Priority", EmitDefaultValue=false)] + public StringValue Priority { get; set; } + + [DataMember(Name="RelatedActivities", EmitDefaultValue=false)] + public List RelatedActivities { get; set; } + + [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] + public StringValue RelatedEntityDescription { get; set; } + + [DataMember(Name="RelatedTasks", EmitDefaultValue=false)] + public List RelatedTasks { get; set; } + + [DataMember(Name="Reminder", EmitDefaultValue=false)] + public ReminderDetail Reminder { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } + + [DataMember(Name="TimeActivity", EmitDefaultValue=false)] + public TaskTimeActivity TimeActivity { get; set; } + + [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] + public StringValue WorkgroupID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TaskRelatedActivity.cs b/Acumatica.Default_18.200.001/Model/TaskRelatedActivity.cs new file mode 100644 index 00000000..9a94a2a3 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TaskRelatedActivity.cs @@ -0,0 +1,69 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TaskRelatedActivity : Entity + { + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } + + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } + + [DataMember(Name="Category", EmitDefaultValue=false)] + public StringValue Category { get; set; } + + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTimeValue CreatedAt { get; set; } + + [DataMember(Name="CreatedBy", EmitDefaultValue=false)] + public StringValue CreatedBy { get; set; } + + [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] + public StringValue IsCompleteIcon { get; set; } + + [DataMember(Name="NoteID", EmitDefaultValue=false)] + public GuidValue NoteID { get; set; } + + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } + + [DataMember(Name="Owner", EmitDefaultValue=false)] + public StringValue Owner { get; set; } + + [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] + public StringValue PriorityIcon { get; set; } + + [DataMember(Name="RefNoteID", EmitDefaultValue=false)] + public GuidValue RefNoteID { get; set; } + + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="Workgroup", EmitDefaultValue=false)] + public StringValue Workgroup { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TaskRelatedTask.cs b/Acumatica.Default_18.200.001/Model/TaskRelatedTask.cs new file mode 100644 index 00000000..568c745e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TaskRelatedTask.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TaskRelatedTask : Entity + { + + [DataMember(Name="CompletedAt", EmitDefaultValue=false)] + public DateTimeValue CompletedAt { get; set; } + + [DataMember(Name="DueDate", EmitDefaultValue=false)] + public DateTimeValue DueDate { get; set; } + + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Subject", EmitDefaultValue=false)] + public StringValue Subject { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TaskTimeActivity.cs b/Acumatica.Default_18.200.001/Model/TaskTimeActivity.cs new file mode 100644 index 00000000..14579995 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TaskTimeActivity.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TaskTimeActivity : Entity + { + + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } + + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Tax.cs b/Acumatica.Default_18.200.001/Model/Tax.cs new file mode 100644 index 00000000..0bbbf6bc --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Tax.cs @@ -0,0 +1,87 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Tax : Entity + { + + [DataMember(Name="CalculateOn", EmitDefaultValue=false)] + public StringValue CalculateOn { get; set; } + + [DataMember(Name="CashDiscount", EmitDefaultValue=false)] + public StringValue CashDiscount { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="DeductibleVAT", EmitDefaultValue=false)] + public BooleanValue DeductibleVAT { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EnterFromTaxBill", EmitDefaultValue=false)] + public BooleanValue EnterFromTaxBill { get; set; } + + [DataMember(Name="ExcludeFromTaxonTaxCalculation", EmitDefaultValue=false)] + public BooleanValue ExcludeFromTaxonTaxCalculation { get; set; } + + [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] + public BooleanValue IncludeInVATExemptTotal { get; set; } + + [DataMember(Name="IncludeInVATTaxableTotal", EmitDefaultValue=false)] + public BooleanValue IncludeInVATTaxableTotal { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="NotValidAfter", EmitDefaultValue=false)] + public DateTimeValue NotValidAfter { get; set; } + + [DataMember(Name="PendingVAT", EmitDefaultValue=false)] + public BooleanValue PendingVAT { get; set; } + + [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] + public BooleanValue ReverseVAT { get; set; } + + [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] + public BooleanValue StatisticalVAT { get; set; } + + [DataMember(Name="TaxAgency", EmitDefaultValue=false)] + public StringValue TaxAgency { get; set; } + + [DataMember(Name="TaxClaimableAccount", EmitDefaultValue=false)] + public StringValue TaxClaimableAccount { get; set; } + + [DataMember(Name="TaxClaimableSubaccount", EmitDefaultValue=false)] + public StringValue TaxClaimableSubaccount { get; set; } + + [DataMember(Name="TaxExpenseAccount", EmitDefaultValue=false)] + public StringValue TaxExpenseAccount { get; set; } + + [DataMember(Name="TaxExpenseSubaccount", EmitDefaultValue=false)] + public StringValue TaxExpenseSubaccount { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxPayableAccount", EmitDefaultValue=false)] + public StringValue TaxPayableAccount { get; set; } + + [DataMember(Name="TaxPayableSubaccount", EmitDefaultValue=false)] + public StringValue TaxPayableSubaccount { get; set; } + + [DataMember(Name="TaxSchedule", EmitDefaultValue=false)] + public List TaxSchedule { get; set; } + + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public StringValue TaxType { get; set; } + + [DataMember(Name="Zones", EmitDefaultValue=false)] + public List Zones { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TaxCategory.cs b/Acumatica.Default_18.200.001/Model/TaxCategory.cs new file mode 100644 index 00000000..6df4538d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TaxCategory.cs @@ -0,0 +1,33 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TaxCategory : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="ExcludeListedTaxes", EmitDefaultValue=false)] + public BooleanValue ExcludeListedTaxes { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="TaxCategoryID", EmitDefaultValue=false)] + public StringValue TaxCategoryID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TaxCategoryTaxDetail.cs b/Acumatica.Default_18.200.001/Model/TaxCategoryTaxDetail.cs new file mode 100644 index 00000000..26c9649b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TaxCategoryTaxDetail.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TaxCategoryTaxDetail : Entity + { + + [DataMember(Name="CalculateOn", EmitDefaultValue=false)] + public StringValue CalculateOn { get; set; } + + [DataMember(Name="CashDiscount", EmitDefaultValue=false)] + public StringValue CashDiscount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public StringValue TaxType { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TaxDetail.cs b/Acumatica.Default_18.200.001/Model/TaxDetail.cs new file mode 100644 index 00000000..538b86ee --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TaxDetail.cs @@ -0,0 +1,51 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TaxDetail : Entity + { + + [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] + public BooleanValue IncludeInVATExemptTotal { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="OrderNbr", EmitDefaultValue=false)] + public StringValue OrderNbr { get; set; } + + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public StringValue OrderType { get; set; } + + [DataMember(Name="PendingVAT", EmitDefaultValue=false)] + public BooleanValue PendingVAT { get; set; } + + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } + + [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] + public BooleanValue ReverseVAT { get; set; } + + [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] + public BooleanValue StatisticalVAT { get; set; } + + [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] + public DecimalValue TaxableAmount { get; set; } + + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public DecimalValue TaxAmount { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } + + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public StringValue TaxType { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TaxScheduleDetail.cs b/Acumatica.Default_18.200.001/Model/TaxScheduleDetail.cs new file mode 100644 index 00000000..5d020919 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TaxScheduleDetail.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TaxScheduleDetail : Entity + { + + [DataMember(Name="DeductibleTaxRate", EmitDefaultValue=false)] + public DecimalValue DeductibleTaxRate { get; set; } + + [DataMember(Name="MaxTaxableAmount", EmitDefaultValue=false)] + public DecimalValue MaxTaxableAmount { get; set; } + + [DataMember(Name="MinTaxableAmount", EmitDefaultValue=false)] + public DecimalValue MinTaxableAmount { get; set; } + + [DataMember(Name="ReportingGroup", EmitDefaultValue=false)] + public StringValue ReportingGroup { get; set; } + + [DataMember(Name="RevisionID", EmitDefaultValue=false)] + public IntValue RevisionID { get; set; } + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxRate", EmitDefaultValue=false)] + public DecimalValue TaxRate { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TaxZone.cs b/Acumatica.Default_18.200.001/Model/TaxZone.cs new file mode 100644 index 00000000..5500df23 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TaxZone.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TaxZone : Entity + { + + [DataMember(Name="ApplicableTaxes", EmitDefaultValue=false)] + public List ApplicableTaxes { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] + public StringValue TaxZoneID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TaxZoneApplicableTaxDetail.cs b/Acumatica.Default_18.200.001/Model/TaxZoneApplicableTaxDetail.cs new file mode 100644 index 00000000..42d9d0ce --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TaxZoneApplicableTaxDetail.cs @@ -0,0 +1,15 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TaxZoneApplicableTaxDetail : Entity + { + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TaxZoneDetail.cs b/Acumatica.Default_18.200.001/Model/TaxZoneDetail.cs new file mode 100644 index 00000000..e60ecc20 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TaxZoneDetail.cs @@ -0,0 +1,24 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TaxZoneDetail : Entity + { + + [DataMember(Name="DefaultTaxCategory", EmitDefaultValue=false)] + public StringValue DefaultTaxCategory { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="TaxID", EmitDefaultValue=false)] + public StringValue TaxID { get; set; } + + [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] + public StringValue TaxZoneID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TimeActivity.cs b/Acumatica.Default_18.200.001/Model/TimeActivity.cs new file mode 100644 index 00000000..c1dfdca2 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TimeActivity.cs @@ -0,0 +1,54 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TimeActivity : Entity + { + + [DataMember(Name="Approver", EmitDefaultValue=false)] + public StringValue Approver { get; set; } + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } + + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="EarningType", EmitDefaultValue=false)] + public StringValue EarningType { get; set; } + + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } + + [DataMember(Name="Project", EmitDefaultValue=false)] + public StringValue Project { get; set; } + + [DataMember(Name="ProjectTask", EmitDefaultValue=false)] + public StringValue ProjectTask { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Released", EmitDefaultValue=false)] + public BooleanValue Released { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + [DataMember(Name="TrackTime", EmitDefaultValue=false)] + public BooleanValue TrackTime { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TimeAndMaterial.cs b/Acumatica.Default_18.200.001/Model/TimeAndMaterial.cs new file mode 100644 index 00000000..1d75f9f5 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TimeAndMaterial.cs @@ -0,0 +1,84 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TimeAndMaterial : Entity + { + + [DataMember(Name="AmountToInvoice", EmitDefaultValue=false)] + public DecimalValue AmountToInvoice { get; set; } + + [DataMember(Name="BilledAmount", EmitDefaultValue=false)] + public DecimalValue BilledAmount { get; set; } + + [DataMember(Name="BilledQty", EmitDefaultValue=false)] + public DecimalValue BilledQty { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="DeferralCode", EmitDefaultValue=false)] + public StringValue DeferralCode { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EmployeeID", EmitDefaultValue=false)] + public StringValue EmployeeID { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="MaxAvailableAmount", EmitDefaultValue=false)] + public DecimalValue MaxAvailableAmount { get; set; } + + [DataMember(Name="MaxLimitAmount", EmitDefaultValue=false)] + public DecimalValue MaxLimitAmount { get; set; } + + [DataMember(Name="OverLimitAmount", EmitDefaultValue=false)] + public DecimalValue OverLimitAmount { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="QtyToInvoice", EmitDefaultValue=false)] + public DecimalValue QtyToInvoice { get; set; } + + [DataMember(Name="Retainage", EmitDefaultValue=false)] + public DecimalValue Retainage { get; set; } + + [DataMember(Name="RetainageAmount", EmitDefaultValue=false)] + public DecimalValue RetainageAmount { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxCategory", EmitDefaultValue=false)] + public StringValue TaxCategory { get; set; } + + [DataMember(Name="UnitPrice", EmitDefaultValue=false)] + public DecimalValue UnitPrice { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TimeEntry.cs b/Acumatica.Default_18.200.001/Model/TimeEntry.cs new file mode 100644 index 00000000..7a06ed70 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TimeEntry.cs @@ -0,0 +1,81 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TimeEntry : Entity + { + + [DataMember(Name="ApprovalStatus", EmitDefaultValue=false)] + public StringValue ApprovalStatus { get; set; } + + [DataMember(Name="Approver", EmitDefaultValue=false)] + public StringValue Approver { get; set; } + + [DataMember(Name="Billable", EmitDefaultValue=false)] + public BooleanValue Billable { get; set; } + + [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] + public StringValue BillableOvertime { get; set; } + + [DataMember(Name="BillableTime", EmitDefaultValue=false)] + public StringValue BillableTime { get; set; } + + [DataMember(Name="CertifiedJob", EmitDefaultValue=false)] + public BooleanValue CertifiedJob { get; set; } + + [DataMember(Name="CostCode", EmitDefaultValue=false)] + public StringValue CostCode { get; set; } + + [DataMember(Name="CostRate", EmitDefaultValue=false)] + public DecimalValue CostRate { get; set; } + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="EarningType", EmitDefaultValue=false)] + public StringValue EarningType { get; set; } + + [DataMember(Name="Employee", EmitDefaultValue=false)] + public StringValue Employee { get; set; } + + [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] + public StringValue ExternalRefNbr { get; set; } + + [DataMember(Name="LaborItem", EmitDefaultValue=false)] + public StringValue LaborItem { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Overtime", EmitDefaultValue=false)] + public StringValue Overtime { get; set; } + + [DataMember(Name="ProjectID", EmitDefaultValue=false)] + public StringValue ProjectID { get; set; } + + [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] + public StringValue ProjectTaskID { get; set; } + + [DataMember(Name="Summary", EmitDefaultValue=false)] + public StringValue Summary { get; set; } + + [DataMember(Name="Time", EmitDefaultValue=false)] + public DateTimeValue Time { get; set; } + + [DataMember(Name="TimeEntryID", EmitDefaultValue=false)] + public GuidValue TimeEntryID { get; set; } + + [DataMember(Name="TimeSpent", EmitDefaultValue=false)] + public StringValue TimeSpent { get; set; } + + [DataMember(Name="UnionLocal", EmitDefaultValue=false)] + public StringValue UnionLocal { get; set; } + + [DataMember(Name="WCCCode", EmitDefaultValue=false)] + public StringValue WCCCode { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Totals.cs b/Acumatica.Default_18.200.001/Model/Totals.cs new file mode 100644 index 00000000..dbb7ac99 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Totals.cs @@ -0,0 +1,57 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Totals : Entity + { + + [DataMember(Name="DiscountTotal", EmitDefaultValue=false)] + public DecimalValue DiscountTotal { get; set; } + + [DataMember(Name="Freight", EmitDefaultValue=false)] + public DecimalValue Freight { get; set; } + + [DataMember(Name="FreightCost", EmitDefaultValue=false)] + public DecimalValue FreightCost { get; set; } + + [DataMember(Name="FreightCostIsuptodate", EmitDefaultValue=false)] + public BooleanValue FreightCostIsuptodate { get; set; } + + [DataMember(Name="FreightTaxCategory", EmitDefaultValue=false)] + public StringValue FreightTaxCategory { get; set; } + + [DataMember(Name="LineTotalAmount", EmitDefaultValue=false)] + public DecimalValue LineTotalAmount { get; set; } + + [DataMember(Name="MiscTotalAmount", EmitDefaultValue=false)] + public DecimalValue MiscTotalAmount { get; set; } + + [DataMember(Name="OrderVolume", EmitDefaultValue=false)] + public DecimalValue OrderVolume { get; set; } + + [DataMember(Name="OrderWeight", EmitDefaultValue=false)] + public DecimalValue OrderWeight { get; set; } + + [DataMember(Name="PackageWeight", EmitDefaultValue=false)] + public DecimalValue PackageWeight { get; set; } + + [DataMember(Name="PremiumFreight", EmitDefaultValue=false)] + public DecimalValue PremiumFreight { get; set; } + + [DataMember(Name="TaxTotal", EmitDefaultValue=false)] + public DecimalValue TaxTotal { get; set; } + + [DataMember(Name="UnbilledAmount", EmitDefaultValue=false)] + public DecimalValue UnbilledAmount { get; set; } + + [DataMember(Name="UnbilledQty", EmitDefaultValue=false)] + public DecimalValue UnbilledQty { get; set; } + + [DataMember(Name="UnpaidBalance", EmitDefaultValue=false)] + public DecimalValue UnpaidBalance { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TransferOrder.cs b/Acumatica.Default_18.200.001/Model/TransferOrder.cs new file mode 100644 index 00000000..16720611 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TransferOrder.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TransferOrder : Entity + { + + [DataMember(Name="Date", EmitDefaultValue=false)] + public DateTimeValue Date { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="ExternalRef", EmitDefaultValue=false)] + public StringValue ExternalRef { get; set; } + + [DataMember(Name="FromWarehouseID", EmitDefaultValue=false)] + public StringValue FromWarehouseID { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="PostPeriod", EmitDefaultValue=false)] + public StringValue PostPeriod { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TotalQty", EmitDefaultValue=false)] + public DecimalValue TotalQty { get; set; } + + [DataMember(Name="ToWarehouseID", EmitDefaultValue=false)] + public StringValue ToWarehouseID { get; set; } + + [DataMember(Name="TransferType", EmitDefaultValue=false)] + public StringValue TransferType { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TransferOrderDetail.cs b/Acumatica.Default_18.200.001/Model/TransferOrderDetail.cs new file mode 100644 index 00000000..4d166d06 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TransferOrderDetail.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TransferOrderDetail : Entity + { + + [DataMember(Name="Allocations", EmitDefaultValue=false)] + public List Allocations { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="FromLocationID", EmitDefaultValue=false)] + public StringValue FromLocationID { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineNbr", EmitDefaultValue=false)] + public IntValue LineNbr { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="ReasonCode", EmitDefaultValue=false)] + public StringValue ReasonCode { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + [DataMember(Name="ToLocationID", EmitDefaultValue=false)] + public StringValue ToLocationID { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TransferOrderDetailAllocation.cs b/Acumatica.Default_18.200.001/Model/TransferOrderDetailAllocation.cs new file mode 100644 index 00000000..66db1259 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TransferOrderDetailAllocation.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TransferOrderDetailAllocation : Entity + { + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] + public StringValue LotSerialNbr { get; set; } + + [DataMember(Name="Qty", EmitDefaultValue=false)] + public DecimalValue Qty { get; set; } + + [DataMember(Name="SplitLineNumber", EmitDefaultValue=false)] + public IntValue SplitLineNumber { get; set; } + + [DataMember(Name="Subitem", EmitDefaultValue=false)] + public StringValue Subitem { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TrialBalance.cs b/Acumatica.Default_18.200.001/Model/TrialBalance.cs new file mode 100644 index 00000000..2aa493cd --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TrialBalance.cs @@ -0,0 +1,57 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TrialBalance : Entity + { + + [DataMember(Name="BatchNbr", EmitDefaultValue=false)] + public StringValue BatchNbr { get; set; } + + [DataMember(Name="Branch", EmitDefaultValue=false)] + public StringValue Branch { get; set; } + + [DataMember(Name="ControlTotal", EmitDefaultValue=false)] + public DecimalValue ControlTotal { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CreditTotal", EmitDefaultValue=false)] + public DecimalValue CreditTotal { get; set; } + + [DataMember(Name="DebitTotal", EmitDefaultValue=false)] + public DecimalValue DebitTotal { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Details", EmitDefaultValue=false)] + public List Details { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="ImportDate", EmitDefaultValue=false)] + public DateTimeValue ImportDate { get; set; } + + [DataMember(Name="ImportNbr", EmitDefaultValue=false)] + public StringValue ImportNbr { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Ledger", EmitDefaultValue=false)] + public StringValue Ledger { get; set; } + + [DataMember(Name="Period", EmitDefaultValue=false)] + public StringValue Period { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/TrialBalanceDetail.cs b/Acumatica.Default_18.200.001/Model/TrialBalanceDetail.cs new file mode 100644 index 00000000..e4ad1332 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/TrialBalanceDetail.cs @@ -0,0 +1,48 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class TrialBalanceDetail : Entity + { + + [DataMember(Name="CurrencyYTDBalance", EmitDefaultValue=false)] + public DecimalValue CurrencyYTDBalance { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="ImportedAccount", EmitDefaultValue=false)] + public StringValue ImportedAccount { get; set; } + + [DataMember(Name="ImportedSubaccount", EmitDefaultValue=false)] + public StringValue ImportedSubaccount { get; set; } + + [DataMember(Name="Line", EmitDefaultValue=false)] + public IntValue Line { get; set; } + + [DataMember(Name="MapNbr", EmitDefaultValue=false)] + public StringValue MapNbr { get; set; } + + [DataMember(Name="MappedAccount", EmitDefaultValue=false)] + public StringValue MappedAccount { get; set; } + + [DataMember(Name="MappedSubaccount", EmitDefaultValue=false)] + public StringValue MappedSubaccount { get; set; } + + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Type", EmitDefaultValue=false)] + public StringValue Type { get; set; } + + [DataMember(Name="YTDBalance", EmitDefaultValue=false)] + public DecimalValue YTDBalance { get; set; } + + } +} \ No newline at end of file diff --git a/Default.18.200.001/Model/TrialBalanceProcess.cs b/Acumatica.Default_18.200.001/Model/TrialBalanceProcess.cs similarity index 100% rename from Default.18.200.001/Model/TrialBalanceProcess.cs rename to Acumatica.Default_18.200.001/Model/TrialBalanceProcess.cs diff --git a/Default.18.200.001/Model/TrialBalanceProcessAll.cs b/Acumatica.Default_18.200.001/Model/TrialBalanceProcessAll.cs similarity index 100% rename from Default.18.200.001/Model/TrialBalanceProcessAll.cs rename to Acumatica.Default_18.200.001/Model/TrialBalanceProcessAll.cs diff --git a/Acumatica.Default_18.200.001/Model/UnionLocal.cs b/Acumatica.Default_18.200.001/Model/UnionLocal.cs new file mode 100644 index 00000000..291219fc --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/UnionLocal.cs @@ -0,0 +1,21 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class UnionLocal : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="UnionLocalID", EmitDefaultValue=false)] + public StringValue UnionLocalID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/UnitsOfMeasure.cs b/Acumatica.Default_18.200.001/Model/UnitsOfMeasure.cs new file mode 100644 index 00000000..6a394f0d --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/UnitsOfMeasure.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class UnitsOfMeasure : Entity + { + + [DataMember(Name="ConversionFactor", EmitDefaultValue=false)] + public DecimalValue ConversionFactor { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="FromUOM", EmitDefaultValue=false)] + public StringValue FromUOM { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="MultiplyOrDivide", EmitDefaultValue=false)] + public StringValue MultiplyOrDivide { get; set; } + + [DataMember(Name="ToUOM", EmitDefaultValue=false)] + public StringValue ToUOM { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Vendor.cs b/Acumatica.Default_18.200.001/Model/Vendor.cs new file mode 100644 index 00000000..ecf17dea --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Vendor.cs @@ -0,0 +1,171 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Vendor : Entity + { + + [DataMember(Name="AccountRef", EmitDefaultValue=false)] + public StringValue AccountRef { get; set; } + + [DataMember(Name="APAccount", EmitDefaultValue=false)] + public StringValue APAccount { get; set; } + + [DataMember(Name="APSubaccount", EmitDefaultValue=false)] + public StringValue APSubaccount { get; set; } + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="CashAccount", EmitDefaultValue=false)] + public StringValue CashAccount { get; set; } + + [DataMember(Name="Contacts", EmitDefaultValue=false)] + public List Contacts { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] + public StringValue CurrencyRateType { get; set; } + + [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] + public BooleanValue EnableCurrencyOverride { get; set; } + + [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] + public BooleanValue EnableRateOverride { get; set; } + + [DataMember(Name="F1099Box", EmitDefaultValue=false)] + public StringValue F1099Box { get; set; } + + [DataMember(Name="F1099Vendor", EmitDefaultValue=false)] + public BooleanValue F1099Vendor { get; set; } + + [DataMember(Name="FATCA", EmitDefaultValue=false)] + public BooleanValue FATCA { get; set; } + + [DataMember(Name="FOBPoint", EmitDefaultValue=false)] + public StringValue FOBPoint { get; set; } + + [DataMember(Name="ForeignEntity", EmitDefaultValue=false)] + public BooleanValue ForeignEntity { get; set; } + + [DataMember(Name="LandedCostVendor", EmitDefaultValue=false)] + public BooleanValue LandedCostVendor { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="LeadTimedays", EmitDefaultValue=false)] + public ShortValue LeadTimedays { get; set; } + + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public StringValue LocationName { get; set; } + + [DataMember(Name="MainContact", EmitDefaultValue=false)] + public Contact MainContact { get; set; } + + [DataMember(Name="MaxReceipt", EmitDefaultValue=false)] + public DecimalValue MaxReceipt { get; set; } + + [DataMember(Name="MinReceipt", EmitDefaultValue=false)] + public DecimalValue MinReceipt { get; set; } + + [DataMember(Name="ParentAccount", EmitDefaultValue=false)] + public StringValue ParentAccount { get; set; } + + [DataMember(Name="PaymentBy", EmitDefaultValue=false)] + public StringValue PaymentBy { get; set; } + + [DataMember(Name="PaymentInstructions", EmitDefaultValue=false)] + public List PaymentInstructions { get; set; } + + [DataMember(Name="PaymentLeadTimedays", EmitDefaultValue=false)] + public ShortValue PaymentLeadTimedays { get; set; } + + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public StringValue PaymentMethod { get; set; } + + [DataMember(Name="PaySeparately", EmitDefaultValue=false)] + public BooleanValue PaySeparately { get; set; } + + [DataMember(Name="PrintOrders", EmitDefaultValue=false)] + public BooleanValue PrintOrders { get; set; } + + [DataMember(Name="ReceiptAction", EmitDefaultValue=false)] + public StringValue ReceiptAction { get; set; } + + [DataMember(Name="ReceivingBranch", EmitDefaultValue=false)] + public StringValue ReceivingBranch { get; set; } + + [DataMember(Name="RemittanceAddressSameasMain", EmitDefaultValue=false)] + public BooleanValue RemittanceAddressSameasMain { get; set; } + + [DataMember(Name="RemittanceContact", EmitDefaultValue=false)] + public Contact RemittanceContact { get; set; } + + [DataMember(Name="RemittanceContactSameasMain", EmitDefaultValue=false)] + public BooleanValue RemittanceContactSameasMain { get; set; } + + [DataMember(Name="SendOrdersbyEmail", EmitDefaultValue=false)] + public BooleanValue SendOrdersbyEmail { get; set; } + + [DataMember(Name="ShippersContactSameasMain", EmitDefaultValue=false)] + public BooleanValue ShippersContactSameasMain { get; set; } + + [DataMember(Name="ShippingAddressSameasMain", EmitDefaultValue=false)] + public BooleanValue ShippingAddressSameasMain { get; set; } + + [DataMember(Name="ShippingContact", EmitDefaultValue=false)] + public Contact ShippingContact { get; set; } + + [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] + public StringValue ShippingTerms { get; set; } + + [DataMember(Name="ShipVia", EmitDefaultValue=false)] + public StringValue ShipVia { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="TaxCalculationMode", EmitDefaultValue=false)] + public StringValue TaxCalculationMode { get; set; } + + [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] + public StringValue TaxRegistrationID { get; set; } + + [DataMember(Name="TaxZone", EmitDefaultValue=false)] + public StringValue TaxZone { get; set; } + + [DataMember(Name="Terms", EmitDefaultValue=false)] + public StringValue Terms { get; set; } + + [DataMember(Name="ThresholdReceipt", EmitDefaultValue=false)] + public DecimalValue ThresholdReceipt { get; set; } + + [DataMember(Name="VendorClass", EmitDefaultValue=false)] + public StringValue VendorClass { get; set; } + + [DataMember(Name="VendorID", EmitDefaultValue=false)] + public StringValue VendorID { get; set; } + + [DataMember(Name="VendorIsLaborUnion", EmitDefaultValue=false)] + public BooleanValue VendorIsLaborUnion { get; set; } + + [DataMember(Name="VendorIsTaxAgency", EmitDefaultValue=false)] + public BooleanValue VendorIsTaxAgency { get; set; } + + [DataMember(Name="VendorName", EmitDefaultValue=false)] + public StringValue VendorName { get; set; } + + [DataMember(Name="Warehouse", EmitDefaultValue=false)] + public StringValue Warehouse { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/VendorClass.cs b/Acumatica.Default_18.200.001/Model/VendorClass.cs new file mode 100644 index 00000000..20fc4d83 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/VendorClass.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class VendorClass : Entity + { + + [DataMember(Name="Attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + [DataMember(Name="ClassID", EmitDefaultValue=false)] + public StringValue ClassID { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/VendorPriceDetail.cs b/Acumatica.Default_18.200.001/Model/VendorPriceDetail.cs new file mode 100644 index 00000000..287c01ba --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/VendorPriceDetail.cs @@ -0,0 +1,54 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class VendorPriceDetail : Entity + { + + [DataMember(Name="BreakQty", EmitDefaultValue=false)] + public DecimalValue BreakQty { get; set; } + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="Price", EmitDefaultValue=false)] + public DecimalValue Price { get; set; } + + [DataMember(Name="Promotional", EmitDefaultValue=false)] + public BooleanValue Promotional { get; set; } + + [DataMember(Name="RecordID", EmitDefaultValue=false)] + public IntValue RecordID { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } + + [DataMember(Name="VendorName", EmitDefaultValue=false)] + public StringValue VendorName { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/VendorPriceWorksheet.cs b/Acumatica.Default_18.200.001/Model/VendorPriceWorksheet.cs new file mode 100644 index 00000000..9b407d0f --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/VendorPriceWorksheet.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class VendorPriceWorksheet : Entity + { + + [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] + public DateTimeValue CreatedDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] + public DateTimeValue EffectiveDate { get; set; } + + [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] + public DateTimeValue ExpirationDate { get; set; } + + [DataMember(Name="Hold", EmitDefaultValue=false)] + public BooleanValue Hold { get; set; } + + [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue LastModifiedDateTime { get; set; } + + [DataMember(Name="OverwriteOverlappingPrices", EmitDefaultValue=false)] + public BooleanValue OverwriteOverlappingPrices { get; set; } + + [DataMember(Name="Promotional", EmitDefaultValue=false)] + public BooleanValue Promotional { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="VendorSalesPrices", EmitDefaultValue=false)] + public List VendorSalesPrices { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/VendorPriceWorksheetDetail.cs b/Acumatica.Default_18.200.001/Model/VendorPriceWorksheetDetail.cs new file mode 100644 index 00000000..50b2a48e --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/VendorPriceWorksheetDetail.cs @@ -0,0 +1,45 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class VendorPriceWorksheetDetail : Entity + { + + [DataMember(Name="BreakQty", EmitDefaultValue=false)] + public DecimalValue BreakQty { get; set; } + + [DataMember(Name="CurrencyID", EmitDefaultValue=false)] + public StringValue CurrencyID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="LineID", EmitDefaultValue=false)] + public IntValue LineID { get; set; } + + [DataMember(Name="PendingPrice", EmitDefaultValue=false)] + public DecimalValue PendingPrice { get; set; } + + [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] + public StringValue ReferenceNbr { get; set; } + + [DataMember(Name="SourcePrice", EmitDefaultValue=false)] + public DecimalValue SourcePrice { get; set; } + + [DataMember(Name="Tax", EmitDefaultValue=false)] + public StringValue Tax { get; set; } + + [DataMember(Name="UOM", EmitDefaultValue=false)] + public StringValue UOM { get; set; } + + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/VendorPricesInquiry.cs b/Acumatica.Default_18.200.001/Model/VendorPricesInquiry.cs new file mode 100644 index 00000000..8bd30dd8 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/VendorPricesInquiry.cs @@ -0,0 +1,30 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class VendorPricesInquiry : Entity + { + + [DataMember(Name="InventoryID", EmitDefaultValue=false)] + public StringValue InventoryID { get; set; } + + [DataMember(Name="ItemClass", EmitDefaultValue=false)] + public StringValue ItemClass { get; set; } + + [DataMember(Name="ProductManager", EmitDefaultValue=false)] + public StringValue ProductManager { get; set; } + + [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] + public StringValue ProductWorkgroup { get; set; } + + [DataMember(Name="Vendor", EmitDefaultValue=false)] + public StringValue Vendor { get; set; } + + [DataMember(Name="VendorPriceDetails", EmitDefaultValue=false)] + public List VendorPriceDetails { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/VisibilitySettings.cs b/Acumatica.Default_18.200.001/Model/VisibilitySettings.cs new file mode 100644 index 00000000..137d8e83 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/VisibilitySettings.cs @@ -0,0 +1,42 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class VisibilitySettings : Entity + { + + [DataMember(Name="AP", EmitDefaultValue=false)] + public BooleanValue AP { get; set; } + + [DataMember(Name="AR", EmitDefaultValue=false)] + public BooleanValue AR { get; set; } + + [DataMember(Name="CA", EmitDefaultValue=false)] + public BooleanValue CA { get; set; } + + [DataMember(Name="CRM", EmitDefaultValue=false)] + public BooleanValue CRM { get; set; } + + [DataMember(Name="Expenses", EmitDefaultValue=false)] + public BooleanValue Expenses { get; set; } + + [DataMember(Name="GL", EmitDefaultValue=false)] + public BooleanValue GL { get; set; } + + [DataMember(Name="IN", EmitDefaultValue=false)] + public BooleanValue IN { get; set; } + + [DataMember(Name="PO", EmitDefaultValue=false)] + public BooleanValue PO { get; set; } + + [DataMember(Name="SO", EmitDefaultValue=false)] + public BooleanValue SO { get; set; } + + [DataMember(Name="TimeEntries", EmitDefaultValue=false)] + public BooleanValue TimeEntries { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/VoucherEntryCode.cs b/Acumatica.Default_18.200.001/Model/VoucherEntryCode.cs new file mode 100644 index 00000000..e2e28d74 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/VoucherEntryCode.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class VoucherEntryCode : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="Module", EmitDefaultValue=false)] + public StringValue Module { get; set; } + + [DataMember(Name="ModuleTransactionType", EmitDefaultValue=false)] + public StringValue ModuleTransactionType { get; set; } + + [DataMember(Name="UniqueTransactionCode", EmitDefaultValue=false)] + public StringValue UniqueTransactionCode { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/Warehouse.cs b/Acumatica.Default_18.200.001/Model/Warehouse.cs new file mode 100644 index 00000000..7d0d872b --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/Warehouse.cs @@ -0,0 +1,108 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class Warehouse : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="COGSExpenseAccount", EmitDefaultValue=false)] + public StringValue COGSExpenseAccount { get; set; } + + [DataMember(Name="COGSExpenseSubaccount", EmitDefaultValue=false)] + public StringValue COGSExpenseSubaccount { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] + public StringValue DiscountAccount { get; set; } + + [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] + public StringValue DiscountSubaccount { get; set; } + + [DataMember(Name="DropShipLocationID", EmitDefaultValue=false)] + public StringValue DropShipLocationID { get; set; } + + [DataMember(Name="FreightChargeAccount", EmitDefaultValue=false)] + public StringValue FreightChargeAccount { get; set; } + + [DataMember(Name="FreightChargeSubaccount", EmitDefaultValue=false)] + public StringValue FreightChargeSubaccount { get; set; } + + [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] + public StringValue InventoryAccount { get; set; } + + [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] + public StringValue InventorySubaccount { get; set; } + + [DataMember(Name="LandedCostVarianceAccount", EmitDefaultValue=false)] + public StringValue LandedCostVarianceAccount { get; set; } + + [DataMember(Name="LandedCostVarianceSubaccount", EmitDefaultValue=false)] + public StringValue LandedCostVarianceSubaccount { get; set; } + + [DataMember(Name="Locations", EmitDefaultValue=false)] + public List Locations { get; set; } + + [DataMember(Name="MiscChargeAccount", EmitDefaultValue=false)] + public StringValue MiscChargeAccount { get; set; } + + [DataMember(Name="MiscChargeSubaccount", EmitDefaultValue=false)] + public StringValue MiscChargeSubaccount { get; set; } + + [DataMember(Name="OverrideInventoryAccountSubaccount", EmitDefaultValue=false)] + public BooleanValue OverrideInventoryAccountSubaccount { get; set; } + + [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] + public StringValue POAccrualAccount { get; set; } + + [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] + public StringValue POAccrualSubaccount { get; set; } + + [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceAccount { get; set; } + + [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] + public StringValue PurchasePriceVarianceSubaccount { get; set; } + + [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] + public StringValue ReasonCodeSubaccount { get; set; } + + [DataMember(Name="ReceivingLocationID", EmitDefaultValue=false)] + public StringValue ReceivingLocationID { get; set; } + + [DataMember(Name="RMALocationID", EmitDefaultValue=false)] + public StringValue RMALocationID { get; set; } + + [DataMember(Name="SalesAccount", EmitDefaultValue=false)] + public StringValue SalesAccount { get; set; } + + [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] + public StringValue SalesSubaccount { get; set; } + + [DataMember(Name="ShippingLocationID", EmitDefaultValue=false)] + public StringValue ShippingLocationID { get; set; } + + [DataMember(Name="StandardCostRevaluationAccount", EmitDefaultValue=false)] + public StringValue StandardCostRevaluationAccount { get; set; } + + [DataMember(Name="StandardCostRevaluationSubaccount", EmitDefaultValue=false)] + public StringValue StandardCostRevaluationSubaccount { get; set; } + + [DataMember(Name="StandardCostVarianceAccount", EmitDefaultValue=false)] + public StringValue StandardCostVarianceAccount { get; set; } + + [DataMember(Name="StandardCostVarianceSubaccount", EmitDefaultValue=false)] + public StringValue StandardCostVarianceSubaccount { get; set; } + + [DataMember(Name="WarehouseID", EmitDefaultValue=false)] + public StringValue WarehouseID { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/WarehouseLocation.cs b/Acumatica.Default_18.200.001/Model/WarehouseLocation.cs new file mode 100644 index 00000000..6872a588 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/WarehouseLocation.cs @@ -0,0 +1,36 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class WarehouseLocation : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="AssemblyAllowed", EmitDefaultValue=false)] + public BooleanValue AssemblyAllowed { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="LocationID", EmitDefaultValue=false)] + public StringValue LocationID { get; set; } + + [DataMember(Name="PickPriority", EmitDefaultValue=false)] + public ShortValue PickPriority { get; set; } + + [DataMember(Name="ReceiptsAllowed", EmitDefaultValue=false)] + public BooleanValue ReceiptsAllowed { get; set; } + + [DataMember(Name="SalesAllowed", EmitDefaultValue=false)] + public BooleanValue SalesAllowed { get; set; } + + [DataMember(Name="TransfersAllowed", EmitDefaultValue=false)] + public BooleanValue TransfersAllowed { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.Default_18.200.001/Model/WorkClassCompensationCode.cs b/Acumatica.Default_18.200.001/Model/WorkClassCompensationCode.cs new file mode 100644 index 00000000..7c966910 --- /dev/null +++ b/Acumatica.Default_18.200.001/Model/WorkClassCompensationCode.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.Default_18_200_001.Model +{ + [DataContract] + public partial class WorkClassCompensationCode : Entity + { + + [DataMember(Name="Active", EmitDefaultValue=false)] + public BooleanValue Active { get; set; } + + [DataMember(Name="CostCodeFrom", EmitDefaultValue=false)] + public StringValue CostCodeFrom { get; set; } + + [DataMember(Name="CostCodeTo", EmitDefaultValue=false)] + public StringValue CostCodeTo { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="WCCCode", EmitDefaultValue=false)] + public StringValue WCCCode { get; set; } + + } +} \ No newline at end of file diff --git a/Default.18.200.001/Properties/AssemblyInfo.cs b/Acumatica.Default_18.200.001/Properties/AssemblyInfo.cs similarity index 97% rename from Default.18.200.001/Properties/AssemblyInfo.cs rename to Acumatica.Default_18.200.001/Properties/AssemblyInfo.cs index 18cf8981..f6f6aaac 100644 --- a/Default.18.200.001/Properties/AssemblyInfo.cs +++ b/Acumatica.Default_18.200.001/Properties/AssemblyInfo.cs @@ -1,36 +1,36 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Default.18.200.001")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Default.18.200.001")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("b26a386b-f5da-4679-acba-1541251b696b")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Default.18.200.001")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Default.18.200.001")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b26a386b-f5da-4679-acba-1541251b696b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Default.18.200.001/app.config b/Acumatica.Default_18.200.001/app.config similarity index 97% rename from Default.18.200.001/app.config rename to Acumatica.Default_18.200.001/app.config index d876472d..e936cc13 100644 --- a/Default.18.200.001/app.config +++ b/Acumatica.Default_18.200.001/app.config @@ -1,11 +1,11 @@ - - - - - - - - - - + + + + + + + + + + \ No newline at end of file diff --git a/Default.18.200.001/packages.config b/Acumatica.Default_18.200.001/packages.config similarity index 98% rename from Default.18.200.001/packages.config rename to Acumatica.Default_18.200.001/packages.config index dada126f..58a45dc8 100644 --- a/Default.18.200.001/packages.config +++ b/Acumatica.Default_18.200.001/packages.config @@ -1,6 +1,6 @@ - - - - - + + + + + \ No newline at end of file diff --git a/Acumatica.DeviceHub_17.200.001/Model/Actions/UpdatePrinterList.cs b/Acumatica.DeviceHub_17.200.001/Model/Actions/UpdatePrinterList.cs index cff97796..53a5bd36 100644 --- a/Acumatica.DeviceHub_17.200.001/Model/Actions/UpdatePrinterList.cs +++ b/Acumatica.DeviceHub_17.200.001/Model/Actions/UpdatePrinterList.cs @@ -1,13 +1,14 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; +using Acumatica.RESTClient.Model; +using System.Runtime.Serialization; -namespace Acumatica.DeviceHub_17_200_001.Model +namespace Acumatica.DeviceHub_17_200_001.Model { - [DataContract] - public partial class UpdatePrinterList : EntityAction - { - public UpdatePrinterList(Printer entity) : base(entity) - { } - } -} + [DataContract] + public partial class UpdatePrinterList : EntityAction + { + public UpdatePrinterList(Printer entity) : base(entity) + { } + public UpdatePrinterList() : base() + { } + } +} diff --git a/Acumatica.DeviceHub_17.200.001/Model/PrintJob.cs b/Acumatica.DeviceHub_17.200.001/Model/PrintJob.cs index a921004a..2f9e9cfc 100644 --- a/Acumatica.DeviceHub_17.200.001/Model/PrintJob.cs +++ b/Acumatica.DeviceHub_17.200.001/Model/PrintJob.cs @@ -1,238 +1,36 @@ -/* - * DeviceHub/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; -namespace Acumatica.DeviceHub_17_200_001.Model -{ - /// - /// PrintJob - /// - [DataContract] - public partial class PrintJob : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdBy. - /// creationDateTime. - /// description. - /// jobID. - /// printer. - /// reportID. - /// selected. - /// status. - public PrintJob(StringValue createdBy = default(StringValue), DateTimeValue creationDateTime = default(DateTimeValue), StringValue description = default(StringValue), IntValue jobID = default(IntValue), StringValue printer = default(StringValue), StringValue reportID = default(StringValue), BooleanValue selected = default(BooleanValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedBy = createdBy; - this.CreationDateTime = creationDateTime; - this.Description = description; - this.JobID = jobID; - this.Printer = printer; - this.ReportID = reportID; - this.Selected = selected; - this.Status = status; - } - - /// - /// Gets or Sets CreatedBy - /// - [DataMember(Name="CreatedBy", EmitDefaultValue=false)] - public StringValue CreatedBy { get; set; } - - /// - /// Gets or Sets CreationDateTime - /// - [DataMember(Name="CreationDateTime", EmitDefaultValue=false)] - public DateTimeValue CreationDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets JobID - /// - [DataMember(Name="JobID", EmitDefaultValue=false)] - public IntValue JobID { get; set; } - - /// - /// Gets or Sets Printer - /// - [DataMember(Name="Printer", EmitDefaultValue=false)] - public StringValue Printer { get; set; } - - /// - /// Gets or Sets ReportID - /// - [DataMember(Name="ReportID", EmitDefaultValue=false)] - public StringValue ReportID { get; set; } - - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PrintJob {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n"); - sb.Append(" CreationDateTime: ").Append(CreationDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" JobID: ").Append(JobID).Append("\n"); - sb.Append(" Printer: ").Append(Printer).Append("\n"); - sb.Append(" ReportID: ").Append(ReportID).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PrintJob); - } - - /// - /// Returns true if PrintJob instances are equal - /// - /// Instance of PrintJob to be compared - /// Boolean - public bool Equals(PrintJob input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreatedBy == input.CreatedBy || - (this.CreatedBy != null && - this.CreatedBy.Equals(input.CreatedBy)) - ) && base.Equals(input) && - ( - this.CreationDateTime == input.CreationDateTime || - (this.CreationDateTime != null && - this.CreationDateTime.Equals(input.CreationDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.JobID == input.JobID || - (this.JobID != null && - this.JobID.Equals(input.JobID)) - ) && base.Equals(input) && - ( - this.Printer == input.Printer || - (this.Printer != null && - this.Printer.Equals(input.Printer)) - ) && base.Equals(input) && - ( - this.ReportID == input.ReportID || - (this.ReportID != null && - this.ReportID.Equals(input.ReportID)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedBy != null) - hashCode = hashCode * 59 + this.CreatedBy.GetHashCode(); - if (this.CreationDateTime != null) - hashCode = hashCode * 59 + this.CreationDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.JobID != null) - hashCode = hashCode * 59 + this.JobID.GetHashCode(); - if (this.Printer != null) - hashCode = hashCode * 59 + this.Printer.GetHashCode(); - if (this.ReportID != null) - hashCode = hashCode * 59 + this.ReportID.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} +namespace Acumatica.DeviceHub_17_200_001.Model +{ + [DataContract] + public partial class PrintJob : Entity + { + + [DataMember(Name="CreatedBy", EmitDefaultValue=false)] + public StringValue CreatedBy { get; set; } + + [DataMember(Name="CreationDateTime", EmitDefaultValue=false)] + public DateTimeValue CreationDateTime { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="JobID", EmitDefaultValue=false)] + public IntValue JobID { get; set; } + + [DataMember(Name="Printer", EmitDefaultValue=false)] + public StringValue Printer { get; set; } + + [DataMember(Name="ReportID", EmitDefaultValue=false)] + public StringValue ReportID { get; set; } + + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.DeviceHub_17.200.001/Model/Printer.cs b/Acumatica.DeviceHub_17.200.001/Model/Printer.cs index 9a38d43c..f084d3f0 100644 --- a/Acumatica.DeviceHub_17.200.001/Model/Printer.cs +++ b/Acumatica.DeviceHub_17.200.001/Model/Printer.cs @@ -1,158 +1,21 @@ -/* - * DeviceHub/17.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; -namespace Acumatica.DeviceHub_17_200_001.Model -{ - /// - /// Printer - /// - [DataContract] - public partial class Printer : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// isActive. - /// printerName. - public Printer(StringValue description = default(StringValue), BooleanValue isActive = default(BooleanValue), StringValue printerName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.IsActive = isActive; - this.PrinterName = printerName; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="IsActive", EmitDefaultValue=false)] - public BooleanValue IsActive { get; set; } - - /// - /// Gets or Sets PrinterName - /// - [DataMember(Name="PrinterName", EmitDefaultValue=false)] - public StringValue PrinterName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Printer {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" PrinterName: ").Append(PrinterName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Printer); - } - - /// - /// Returns true if Printer instances are equal - /// - /// Instance of Printer to be compared - /// Boolean - public bool Equals(Printer input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && base.Equals(input) && - ( - this.PrinterName == input.PrinterName || - (this.PrinterName != null && - this.PrinterName.Equals(input.PrinterName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.PrinterName != null) - hashCode = hashCode * 59 + this.PrinterName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} +namespace Acumatica.DeviceHub_17_200_001.Model +{ + [DataContract] + public partial class Printer : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="IsActive", EmitDefaultValue=false)] + public BooleanValue IsActive { get; set; } + + [DataMember(Name="PrinterName", EmitDefaultValue=false)] + public StringValue PrinterName { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.DeviceHub_19.200.001/Model/Actions/UpdatePrinterList.cs b/Acumatica.DeviceHub_19.200.001/Model/Actions/UpdatePrinterList.cs index 19a23e2a..b805bd44 100644 --- a/Acumatica.DeviceHub_19.200.001/Model/Actions/UpdatePrinterList.cs +++ b/Acumatica.DeviceHub_19.200.001/Model/Actions/UpdatePrinterList.cs @@ -1,13 +1,14 @@ - using Acumatica.RESTClient.Model; using System.Runtime.Serialization; namespace Acumatica.DeviceHub_19_200_001.Model { - [DataContract] - public partial class UpdatePrinterList : EntityAction - { - public UpdatePrinterList(Printer entity) : base(entity) - { } - } + [DataContract] + public partial class UpdatePrinterList : EntityAction + { + public UpdatePrinterList(Printer entity) : base(entity) + { } + public UpdatePrinterList() : base() + { } + } } diff --git a/Acumatica.DeviceHub_19.200.001/Model/Actions/UpdateScannerList.cs b/Acumatica.DeviceHub_19.200.001/Model/Actions/UpdateScannerList.cs index 501fce6c..cefc84f9 100644 --- a/Acumatica.DeviceHub_19.200.001/Model/Actions/UpdateScannerList.cs +++ b/Acumatica.DeviceHub_19.200.001/Model/Actions/UpdateScannerList.cs @@ -1,13 +1,14 @@ - using Acumatica.RESTClient.Model; using System.Runtime.Serialization; namespace Acumatica.DeviceHub_19_200_001.Model { - [DataContract] - public partial class UpdateScannerList : EntityAction - { - public UpdateScannerList(Scanner entity) : base(entity) - { } - } + [DataContract] + public partial class UpdateScannerList : EntityAction + { + public UpdateScannerList(Scanner entity) : base(entity) + { } + public UpdateScannerList() : base() + { } + } } diff --git a/Acumatica.DeviceHub_19.200.001/Model/PrintJob.cs b/Acumatica.DeviceHub_19.200.001/Model/PrintJob.cs index ff2a5ad2..5f797f75 100644 --- a/Acumatica.DeviceHub_19.200.001/Model/PrintJob.cs +++ b/Acumatica.DeviceHub_19.200.001/Model/PrintJob.cs @@ -1,254 +1,45 @@ -/* - * DeviceHub/19.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; -namespace Acumatica.DeviceHub_19_200_001.Model -{ - /// - /// PrintJob - /// - [DataContract] - public partial class PrintJob : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdBy. - /// creationDateTime. - /// description. - /// jobID. - /// deviceHub. - /// printer. - /// reportID. - /// selected. - /// status. - public PrintJob(StringValue createdBy = default(StringValue), DateTimeValue creationDateTime = default(DateTimeValue), StringValue description = default(StringValue), IntValue jobID = default(IntValue), StringValue deviceHub = default(StringValue), StringValue printer = default(StringValue), StringValue reportID = default(StringValue), BooleanValue selected = default(BooleanValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedBy = createdBy; - this.CreationDateTime = creationDateTime; - this.Description = description; - this.JobID = jobID; - this.DeviceHub = deviceHub; - this.Printer = printer; - this.ReportID = reportID; - this.Selected = selected; - this.Status = status; - } - - /// - /// Gets or Sets CreatedBy - /// - [DataMember(Name="CreatedBy", EmitDefaultValue=false)] - public StringValue CreatedBy { get; set; } - - /// - /// Gets or Sets CreationDateTime - /// - [DataMember(Name="CreationDateTime", EmitDefaultValue=false)] - public DateTimeValue CreationDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets JobID - /// - [DataMember(Name="JobID", EmitDefaultValue=false)] - public IntValue JobID { get; set; } - - /// - /// Gets or Sets DeviceHub - /// - [DataMember(Name="DeviceHub", EmitDefaultValue=false)] - public StringValue DeviceHub { get; set; } - - /// - /// Gets or Sets Printer - /// - [DataMember(Name="Printer", EmitDefaultValue=false)] - public StringValue Printer { get; set; } - - /// - /// Gets or Sets ReportID - /// - [DataMember(Name="ReportID", EmitDefaultValue=false)] - public StringValue ReportID { get; set; } - - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PrintJob {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n"); - sb.Append(" CreationDateTime: ").Append(CreationDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" JobID: ").Append(JobID).Append("\n"); - sb.Append(" DeviceHub: ").Append(DeviceHub).Append("\n"); - sb.Append(" Printer: ").Append(Printer).Append("\n"); - sb.Append(" ReportID: ").Append(ReportID).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PrintJob); - } - - /// - /// Returns true if PrintJob instances are equal - /// - /// Instance of PrintJob to be compared - /// Boolean - public bool Equals(PrintJob input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreatedBy == input.CreatedBy || - (this.CreatedBy != null && - this.CreatedBy.Equals(input.CreatedBy)) - ) && base.Equals(input) && - ( - this.CreationDateTime == input.CreationDateTime || - (this.CreationDateTime != null && - this.CreationDateTime.Equals(input.CreationDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.JobID == input.JobID || - (this.JobID != null && - this.JobID.Equals(input.JobID)) - ) && base.Equals(input) && - ( - this.DeviceHub == input.DeviceHub || - (this.DeviceHub != null && - this.DeviceHub.Equals(input.DeviceHub)) - ) && base.Equals(input) && - ( - this.Printer == input.Printer || - (this.Printer != null && - this.Printer.Equals(input.Printer)) - ) && base.Equals(input) && - ( - this.ReportID == input.ReportID || - (this.ReportID != null && - this.ReportID.Equals(input.ReportID)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedBy != null) - hashCode = hashCode * 59 + this.CreatedBy.GetHashCode(); - if (this.CreationDateTime != null) - hashCode = hashCode * 59 + this.CreationDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.JobID != null) - hashCode = hashCode * 59 + this.JobID.GetHashCode(); - if (this.DeviceHub != null) - hashCode = hashCode * 59 + this.DeviceHub.GetHashCode(); - if (this.Printer != null) - hashCode = hashCode * 59 + this.Printer.GetHashCode(); - if (this.ReportID != null) - hashCode = hashCode * 59 + this.ReportID.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} +namespace Acumatica.DeviceHub_19_200_001.Model +{ + [DataContract] + public partial class PrintJob : Entity + { + + [DataMember(Name="JobID", EmitDefaultValue=false)] + public IntValue JobID { get; set; } + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="DeviceHub", EmitDefaultValue=false)] + public StringValue DeviceHub { get; set; } + + [DataMember(Name="Printer", EmitDefaultValue=false)] + public StringValue Printer { get; set; } + + [DataMember(Name="ReportID", EmitDefaultValue=false)] + public StringValue ReportID { get; set; } + + [DataMember(Name="NumberOfCopies", EmitDefaultValue=false)] + public IntValue NumberOfCopies { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + [DataMember(Name="Selected", EmitDefaultValue=false)] + public BooleanValue Selected { get; set; } + + [DataMember(Name="CreatedBy", EmitDefaultValue=false)] + public StringValue CreatedBy { get; set; } + + [DataMember(Name="CreationDateTime", EmitDefaultValue=false)] + public DateTimeValue CreationDateTime { get; set; } + + [DataMember(Name="ModifiedDateTime", EmitDefaultValue=false)] + public DateTimeValue ModifiedDateTime { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.DeviceHub_19.200.001/Model/PrintJobsInquiry.cs b/Acumatica.DeviceHub_19.200.001/Model/PrintJobsInquiry.cs new file mode 100644 index 00000000..9155de52 --- /dev/null +++ b/Acumatica.DeviceHub_19.200.001/Model/PrintJobsInquiry.cs @@ -0,0 +1,27 @@ +using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Acumatica.DeviceHub_19_200_001.Model +{ + [DataContract] + public partial class PrintJobsInquiry : Entity + { + + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTimeValue StartDate { get; set; } + + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTimeValue EndDate { get; set; } + + [DataMember(Name="HideProcessed", EmitDefaultValue=false)] + public BooleanValue HideProcessed { get; set; } + + [DataMember(Name="JobID", EmitDefaultValue=false)] + public IntValue JobID { get; set; } + + [DataMember(Name="Jobs", EmitDefaultValue=false)] + public List Jobs { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.DeviceHub_19.200.001/Model/Printer.cs b/Acumatica.DeviceHub_19.200.001/Model/Printer.cs index eea7a397..d5635773 100644 --- a/Acumatica.DeviceHub_19.200.001/Model/Printer.cs +++ b/Acumatica.DeviceHub_19.200.001/Model/Printer.cs @@ -1,174 +1,24 @@ -/* - * DeviceHub/19.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; -namespace Acumatica.DeviceHub_19_200_001.Model -{ - /// - /// Printer - /// - [DataContract] - public partial class Printer : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// isActive. - /// deviceHub. - /// printerName. - public Printer(StringValue description = default(StringValue), BooleanValue isActive = default(BooleanValue), StringValue deviceHub = default(StringValue), StringValue printerName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.IsActive = isActive; - this.DeviceHub = deviceHub; - this.PrinterName = printerName; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="IsActive", EmitDefaultValue=false)] - public BooleanValue IsActive { get; set; } - - /// - /// Gets or Sets DeviceHub - /// - [DataMember(Name="DeviceHub", EmitDefaultValue=false)] - public StringValue DeviceHub { get; set; } - - /// - /// Gets or Sets PrinterName - /// - [DataMember(Name="PrinterName", EmitDefaultValue=false)] - public StringValue PrinterName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Printer {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" DeviceHub: ").Append(DeviceHub).Append("\n"); - sb.Append(" PrinterName: ").Append(PrinterName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Printer); - } - - /// - /// Returns true if Printer instances are equal - /// - /// Instance of Printer to be compared - /// Boolean - public bool Equals(Printer input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && base.Equals(input) && - ( - this.DeviceHub == input.DeviceHub || - (this.DeviceHub != null && - this.DeviceHub.Equals(input.DeviceHub)) - ) && base.Equals(input) && - ( - this.PrinterName == input.PrinterName || - (this.PrinterName != null && - this.PrinterName.Equals(input.PrinterName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.DeviceHub != null) - hashCode = hashCode * 59 + this.DeviceHub.GetHashCode(); - if (this.PrinterName != null) - hashCode = hashCode * 59 + this.PrinterName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} +namespace Acumatica.DeviceHub_19_200_001.Model +{ + [DataContract] + public partial class Printer : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="IsActive", EmitDefaultValue=false)] + public BooleanValue IsActive { get; set; } + + [DataMember(Name="DeviceHub", EmitDefaultValue=false)] + public StringValue DeviceHub { get; set; } + + [DataMember(Name="PrinterName", EmitDefaultValue=false)] + public StringValue PrinterName { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.DeviceHub_19.200.001/Model/ScanJob.cs b/Acumatica.DeviceHub_19.200.001/Model/ScanJob.cs index 7d52a107..5a8529d3 100644 --- a/Acumatica.DeviceHub_19.200.001/Model/ScanJob.cs +++ b/Acumatica.DeviceHub_19.200.001/Model/ScanJob.cs @@ -1,206 +1,30 @@ -/* - * DeviceHub/19.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; -namespace Acumatica.DeviceHub_19_200_001.Model -{ - /// - /// ScanJob - /// - [DataContract] - public partial class ScanJob : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// error. - /// errorTrace. - /// scanJobID. - /// deviceHub. - /// scanner. - /// status. - public ScanJob(StringValue error = default(StringValue), StringValue errorTrace = default(StringValue), IntValue scanJobID = default(IntValue), StringValue deviceHub = default(StringValue), StringValue scanner = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Error = error; - this.ErrorTrace = errorTrace; - this.ScanJobID = scanJobID; - this.DeviceHub = deviceHub; - this.Scanner = scanner; - this.Status = status; - } - - /// - /// Gets or Sets Error - /// - [DataMember(Name="Error", EmitDefaultValue=false)] - public StringValue Error { get; set; } - - /// - /// Gets or Sets ErrorTrace - /// - [DataMember(Name="ErrorTrace", EmitDefaultValue=false)] - public StringValue ErrorTrace { get; set; } - - /// - /// Gets or Sets ScanJobID - /// - [DataMember(Name="ScanJobID", EmitDefaultValue=false)] - public IntValue ScanJobID { get; set; } - - /// - /// Gets or Sets DeviceHub - /// - [DataMember(Name="DeviceHub", EmitDefaultValue=false)] - public StringValue DeviceHub { get; set; } - - /// - /// Gets or Sets Scanner - /// - [DataMember(Name="Scanner", EmitDefaultValue=false)] - public StringValue Scanner { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ScanJob {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Error: ").Append(Error).Append("\n"); - sb.Append(" ErrorTrace: ").Append(ErrorTrace).Append("\n"); - sb.Append(" ScanJobID: ").Append(ScanJobID).Append("\n"); - sb.Append(" DeviceHub: ").Append(DeviceHub).Append("\n"); - sb.Append(" Scanner: ").Append(Scanner).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ScanJob); - } - - /// - /// Returns true if ScanJob instances are equal - /// - /// Instance of ScanJob to be compared - /// Boolean - public bool Equals(ScanJob input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Error == input.Error || - (this.Error != null && - this.Error.Equals(input.Error)) - ) && base.Equals(input) && - ( - this.ErrorTrace == input.ErrorTrace || - (this.ErrorTrace != null && - this.ErrorTrace.Equals(input.ErrorTrace)) - ) && base.Equals(input) && - ( - this.ScanJobID == input.ScanJobID || - (this.ScanJobID != null && - this.ScanJobID.Equals(input.ScanJobID)) - ) && base.Equals(input) && - ( - this.DeviceHub == input.DeviceHub || - (this.DeviceHub != null && - this.DeviceHub.Equals(input.DeviceHub)) - ) && base.Equals(input) && - ( - this.Scanner == input.Scanner || - (this.Scanner != null && - this.Scanner.Equals(input.Scanner)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Error != null) - hashCode = hashCode * 59 + this.Error.GetHashCode(); - if (this.ErrorTrace != null) - hashCode = hashCode * 59 + this.ErrorTrace.GetHashCode(); - if (this.ScanJobID != null) - hashCode = hashCode * 59 + this.ScanJobID.GetHashCode(); - if (this.DeviceHub != null) - hashCode = hashCode * 59 + this.DeviceHub.GetHashCode(); - if (this.Scanner != null) - hashCode = hashCode * 59 + this.Scanner.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} +namespace Acumatica.DeviceHub_19_200_001.Model +{ + [DataContract] + public partial class ScanJob : Entity + { + + [DataMember(Name="Error", EmitDefaultValue=false)] + public StringValue Error { get; set; } + + [DataMember(Name="ErrorTrace", EmitDefaultValue=false)] + public StringValue ErrorTrace { get; set; } + + [DataMember(Name="ScanJobID", EmitDefaultValue=false)] + public IntValue ScanJobID { get; set; } + + [DataMember(Name="DeviceHub", EmitDefaultValue=false)] + public StringValue DeviceHub { get; set; } + + [DataMember(Name="Scanner", EmitDefaultValue=false)] + public StringValue Scanner { get; set; } + + [DataMember(Name="Status", EmitDefaultValue=false)] + public StringValue Status { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.DeviceHub_19.200.001/Model/Scanner.cs b/Acumatica.DeviceHub_19.200.001/Model/Scanner.cs index 2fcdb3ab..add190db 100644 --- a/Acumatica.DeviceHub_19.200.001/Model/Scanner.cs +++ b/Acumatica.DeviceHub_19.200.001/Model/Scanner.cs @@ -1,302 +1,48 @@ -/* - * DeviceHub/19.200.001 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; using Acumatica.RESTClient.Model; +using System.Collections.Generic; +using System.Runtime.Serialization; -namespace Acumatica.DeviceHub_19_200_001.Model -{ - /// - /// Scanner - /// - [DataContract] - public partial class Scanner : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// fileTypeComboValues. - /// fileTypeDefValue. - /// isActive. - /// paperSourceComboValues. - /// paperSourceDefValue. - /// pixelTypeComboValues. - /// pixelTypeDefValue. - /// resolutionComboValues. - /// resolutionDefValue. - /// deviceHub. - /// scannerName. - public Scanner(StringValue description = default(StringValue), StringValue fileTypeComboValues = default(StringValue), StringValue fileTypeDefValue = default(StringValue), BooleanValue isActive = default(BooleanValue), StringValue paperSourceComboValues = default(StringValue), StringValue paperSourceDefValue = default(StringValue), StringValue pixelTypeComboValues = default(StringValue), StringValue pixelTypeDefValue = default(StringValue), StringValue resolutionComboValues = default(StringValue), StringValue resolutionDefValue = default(StringValue), StringValue deviceHub = default(StringValue), StringValue scannerName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.FileTypeComboValues = fileTypeComboValues; - this.FileTypeDefValue = fileTypeDefValue; - this.IsActive = isActive; - this.PaperSourceComboValues = paperSourceComboValues; - this.PaperSourceDefValue = paperSourceDefValue; - this.PixelTypeComboValues = pixelTypeComboValues; - this.PixelTypeDefValue = pixelTypeDefValue; - this.ResolutionComboValues = resolutionComboValues; - this.ResolutionDefValue = resolutionDefValue; - this.DeviceHub = deviceHub; - this.ScannerName = scannerName; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets FileTypeComboValues - /// - [DataMember(Name="FileTypeComboValues", EmitDefaultValue=false)] - public StringValue FileTypeComboValues { get; set; } - - /// - /// Gets or Sets FileTypeDefValue - /// - [DataMember(Name="FileTypeDefValue", EmitDefaultValue=false)] - public StringValue FileTypeDefValue { get; set; } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="IsActive", EmitDefaultValue=false)] - public BooleanValue IsActive { get; set; } - - /// - /// Gets or Sets PaperSourceComboValues - /// - [DataMember(Name="PaperSourceComboValues", EmitDefaultValue=false)] - public StringValue PaperSourceComboValues { get; set; } - - /// - /// Gets or Sets PaperSourceDefValue - /// - [DataMember(Name="PaperSourceDefValue", EmitDefaultValue=false)] - public StringValue PaperSourceDefValue { get; set; } - - /// - /// Gets or Sets PixelTypeComboValues - /// - [DataMember(Name="PixelTypeComboValues", EmitDefaultValue=false)] - public StringValue PixelTypeComboValues { get; set; } - - /// - /// Gets or Sets PixelTypeDefValue - /// - [DataMember(Name="PixelTypeDefValue", EmitDefaultValue=false)] - public StringValue PixelTypeDefValue { get; set; } - - /// - /// Gets or Sets ResolutionComboValues - /// - [DataMember(Name="ResolutionComboValues", EmitDefaultValue=false)] - public StringValue ResolutionComboValues { get; set; } - - /// - /// Gets or Sets ResolutionDefValue - /// - [DataMember(Name="ResolutionDefValue", EmitDefaultValue=false)] - public StringValue ResolutionDefValue { get; set; } - - /// - /// Gets or Sets DeviceHub - /// - [DataMember(Name="DeviceHub", EmitDefaultValue=false)] - public StringValue DeviceHub { get; set; } - - /// - /// Gets or Sets ScannerName - /// - [DataMember(Name="ScannerName", EmitDefaultValue=false)] - public StringValue ScannerName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Scanner {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" FileTypeComboValues: ").Append(FileTypeComboValues).Append("\n"); - sb.Append(" FileTypeDefValue: ").Append(FileTypeDefValue).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" PaperSourceComboValues: ").Append(PaperSourceComboValues).Append("\n"); - sb.Append(" PaperSourceDefValue: ").Append(PaperSourceDefValue).Append("\n"); - sb.Append(" PixelTypeComboValues: ").Append(PixelTypeComboValues).Append("\n"); - sb.Append(" PixelTypeDefValue: ").Append(PixelTypeDefValue).Append("\n"); - sb.Append(" ResolutionComboValues: ").Append(ResolutionComboValues).Append("\n"); - sb.Append(" ResolutionDefValue: ").Append(ResolutionDefValue).Append("\n"); - sb.Append(" DeviceHub: ").Append(DeviceHub).Append("\n"); - sb.Append(" ScannerName: ").Append(ScannerName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Scanner); - } - - /// - /// Returns true if Scanner instances are equal - /// - /// Instance of Scanner to be compared - /// Boolean - public bool Equals(Scanner input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.FileTypeComboValues == input.FileTypeComboValues || - (this.FileTypeComboValues != null && - this.FileTypeComboValues.Equals(input.FileTypeComboValues)) - ) && base.Equals(input) && - ( - this.FileTypeDefValue == input.FileTypeDefValue || - (this.FileTypeDefValue != null && - this.FileTypeDefValue.Equals(input.FileTypeDefValue)) - ) && base.Equals(input) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && base.Equals(input) && - ( - this.PaperSourceComboValues == input.PaperSourceComboValues || - (this.PaperSourceComboValues != null && - this.PaperSourceComboValues.Equals(input.PaperSourceComboValues)) - ) && base.Equals(input) && - ( - this.PaperSourceDefValue == input.PaperSourceDefValue || - (this.PaperSourceDefValue != null && - this.PaperSourceDefValue.Equals(input.PaperSourceDefValue)) - ) && base.Equals(input) && - ( - this.PixelTypeComboValues == input.PixelTypeComboValues || - (this.PixelTypeComboValues != null && - this.PixelTypeComboValues.Equals(input.PixelTypeComboValues)) - ) && base.Equals(input) && - ( - this.PixelTypeDefValue == input.PixelTypeDefValue || - (this.PixelTypeDefValue != null && - this.PixelTypeDefValue.Equals(input.PixelTypeDefValue)) - ) && base.Equals(input) && - ( - this.ResolutionComboValues == input.ResolutionComboValues || - (this.ResolutionComboValues != null && - this.ResolutionComboValues.Equals(input.ResolutionComboValues)) - ) && base.Equals(input) && - ( - this.ResolutionDefValue == input.ResolutionDefValue || - (this.ResolutionDefValue != null && - this.ResolutionDefValue.Equals(input.ResolutionDefValue)) - ) && base.Equals(input) && - ( - this.DeviceHub == input.DeviceHub || - (this.DeviceHub != null && - this.DeviceHub.Equals(input.DeviceHub)) - ) && base.Equals(input) && - ( - this.ScannerName == input.ScannerName || - (this.ScannerName != null && - this.ScannerName.Equals(input.ScannerName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.FileTypeComboValues != null) - hashCode = hashCode * 59 + this.FileTypeComboValues.GetHashCode(); - if (this.FileTypeDefValue != null) - hashCode = hashCode * 59 + this.FileTypeDefValue.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.PaperSourceComboValues != null) - hashCode = hashCode * 59 + this.PaperSourceComboValues.GetHashCode(); - if (this.PaperSourceDefValue != null) - hashCode = hashCode * 59 + this.PaperSourceDefValue.GetHashCode(); - if (this.PixelTypeComboValues != null) - hashCode = hashCode * 59 + this.PixelTypeComboValues.GetHashCode(); - if (this.PixelTypeDefValue != null) - hashCode = hashCode * 59 + this.PixelTypeDefValue.GetHashCode(); - if (this.ResolutionComboValues != null) - hashCode = hashCode * 59 + this.ResolutionComboValues.GetHashCode(); - if (this.ResolutionDefValue != null) - hashCode = hashCode * 59 + this.ResolutionDefValue.GetHashCode(); - if (this.DeviceHub != null) - hashCode = hashCode * 59 + this.DeviceHub.GetHashCode(); - if (this.ScannerName != null) - hashCode = hashCode * 59 + this.ScannerName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} +namespace Acumatica.DeviceHub_19_200_001.Model +{ + [DataContract] + public partial class Scanner : Entity + { + + [DataMember(Name="Description", EmitDefaultValue=false)] + public StringValue Description { get; set; } + + [DataMember(Name="FileTypeComboValues", EmitDefaultValue=false)] + public StringValue FileTypeComboValues { get; set; } + + [DataMember(Name="FileTypeDefValue", EmitDefaultValue=false)] + public StringValue FileTypeDefValue { get; set; } + + [DataMember(Name="IsActive", EmitDefaultValue=false)] + public BooleanValue IsActive { get; set; } + + [DataMember(Name="PaperSourceComboValues", EmitDefaultValue=false)] + public StringValue PaperSourceComboValues { get; set; } + + [DataMember(Name="PaperSourceDefValue", EmitDefaultValue=false)] + public StringValue PaperSourceDefValue { get; set; } + + [DataMember(Name="PixelTypeComboValues", EmitDefaultValue=false)] + public StringValue PixelTypeComboValues { get; set; } + + [DataMember(Name="PixelTypeDefValue", EmitDefaultValue=false)] + public StringValue PixelTypeDefValue { get; set; } + + [DataMember(Name="ResolutionComboValues", EmitDefaultValue=false)] + public StringValue ResolutionComboValues { get; set; } + + [DataMember(Name="ResolutionDefValue", EmitDefaultValue=false)] + public StringValue ResolutionDefValue { get; set; } + + [DataMember(Name="DeviceHub", EmitDefaultValue=false)] + public StringValue DeviceHub { get; set; } + + [DataMember(Name="ScannerName", EmitDefaultValue=false)] + public StringValue ScannerName { get; set; } + + } +} \ No newline at end of file diff --git a/Acumatica.RESTClient/Model/Entity.cs b/Acumatica.RESTClient/Model/Entity.cs index 91bd9c51..c9a37266 100644 --- a/Acumatica.RESTClient/Model/Entity.cs +++ b/Acumatica.RESTClient/Model/Entity.cs @@ -28,7 +28,7 @@ namespace Acumatica.RESTClient.Model /// Entity /// [DataContract] - public abstract class Entity : IEquatable, IValidatableObject + public abstract class Entity { public IEnumerable GetStringFields() { @@ -64,22 +64,6 @@ public IEnumerable GetLinkedEntities() [Obsolete("ReturnBehavior property is for backward compatibility with SOAP only. Please use $select and $expand parameters instead.")] public ReturnBehavior ReturnBehavior { get; set; } - /// - /// Initializes a new instance of the class. - /// - /// id. - /// rowNumber. - /// note. - /// custom. - /// files. - public Entity(Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) - { - this.Id = id; - this.RowNumber = rowNumber; - this.Note = note; - this.Custom = custom; - this.Files = files; - } /// /// Gets or Sets Id @@ -117,15 +101,7 @@ public IEnumerable GetLinkedEntities() /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class Entity {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" RowNumber: ").Append(RowNumber).Append("\n"); - sb.Append(" Note: ").Append(Note).Append("\n"); - sb.Append(" Custom: ").Append(Custom).Append("\n"); - sb.Append(" Files: ").Append(Files).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); + return ToJson().ToString(); } /// @@ -137,96 +113,6 @@ public virtual string ToJson() return JsonConvert.SerializeObject(this, Formatting.Indented); } - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Entity); - } - - /// - /// Returns true if Entity instances are equal - /// - /// Instance of Entity to be compared - /// Boolean - public bool Equals(Entity input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.RowNumber == input.RowNumber || - (this.RowNumber != null && - this.RowNumber.Equals(input.RowNumber)) - ) && - ( - this.Note == input.Note || - (this.Note != null && - this.Note.Equals(input.Note)) - ) && - ( - this.Custom == input.Custom || - this.Custom != null && - this.Custom.SequenceEqual(input.Custom) - ) && - ( - this.Files == input.Files || - this.Files != null && - this.Files.SequenceEqual(input.Files) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.RowNumber != null) - hashCode = hashCode * 59 + this.RowNumber.GetHashCode(); - if (this.Note != null) - hashCode = hashCode * 59 + this.Note.GetHashCode(); - if (this.Custom != null) - hashCode = hashCode * 59 + this.Custom.GetHashCode(); - if (this.Files != null) - hashCode = hashCode * 59 + this.Files.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) - { - yield break; - } } } diff --git a/Default.18.200.001/Model/Account.cs b/Default.18.200.001/Model/Account.cs deleted file mode 100644 index afcf730f..00000000 --- a/Default.18.200.001/Model/Account.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Account - /// - [DataContract] - public partial class Account : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountCD. - /// accountClass. - /// accountGroup. - /// accountID. - /// active. - /// cashAccount. - /// chartOfAccountsOrder. - /// consolidationAccount. - /// createdDateTime. - /// currencyID. - /// description. - /// lastModifiedDateTime. - /// postOption. - /// requireUnits. - /// revaluationRateType. - /// secured. - /// taxCategory. - /// type. - /// useDefaultSubaccount. - public Account(StringValue accountCD = default(StringValue), StringValue accountClass = default(StringValue), StringValue accountGroup = default(StringValue), IntValue accountID = default(IntValue), BooleanValue active = default(BooleanValue), BooleanValue cashAccount = default(BooleanValue), IntValue chartOfAccountsOrder = default(IntValue), StringValue consolidationAccount = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue postOption = default(StringValue), BooleanValue requireUnits = default(BooleanValue), StringValue revaluationRateType = default(StringValue), BooleanValue secured = default(BooleanValue), StringValue taxCategory = default(StringValue), StringValue type = default(StringValue), BooleanValue useDefaultSubaccount = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountCD = accountCD; - this.AccountClass = accountClass; - this.AccountGroup = accountGroup; - this.AccountID = accountID; - this.Active = active; - this.CashAccount = cashAccount; - this.ChartOfAccountsOrder = chartOfAccountsOrder; - this.ConsolidationAccount = consolidationAccount; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PostOption = postOption; - this.RequireUnits = requireUnits; - this.RevaluationRateType = revaluationRateType; - this.Secured = secured; - this.TaxCategory = taxCategory; - this.Type = type; - this.UseDefaultSubaccount = useDefaultSubaccount; - } - - /// - /// Gets or Sets AccountCD - /// - [DataMember(Name="AccountCD", EmitDefaultValue=false)] - public StringValue AccountCD { get; set; } - - /// - /// Gets or Sets AccountClass - /// - [DataMember(Name="AccountClass", EmitDefaultValue=false)] - public StringValue AccountClass { get; set; } - - /// - /// Gets or Sets AccountGroup - /// - [DataMember(Name="AccountGroup", EmitDefaultValue=false)] - public StringValue AccountGroup { get; set; } - - /// - /// Gets or Sets AccountID - /// - [DataMember(Name="AccountID", EmitDefaultValue=false)] - public IntValue AccountID { get; set; } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public BooleanValue CashAccount { get; set; } - - /// - /// Gets or Sets ChartOfAccountsOrder - /// - [DataMember(Name="ChartOfAccountsOrder", EmitDefaultValue=false)] - public IntValue ChartOfAccountsOrder { get; set; } - - /// - /// Gets or Sets ConsolidationAccount - /// - [DataMember(Name="ConsolidationAccount", EmitDefaultValue=false)] - public StringValue ConsolidationAccount { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets PostOption - /// - [DataMember(Name="PostOption", EmitDefaultValue=false)] - public StringValue PostOption { get; set; } - - /// - /// Gets or Sets RequireUnits - /// - [DataMember(Name="RequireUnits", EmitDefaultValue=false)] - public BooleanValue RequireUnits { get; set; } - - /// - /// Gets or Sets RevaluationRateType - /// - [DataMember(Name="RevaluationRateType", EmitDefaultValue=false)] - public StringValue RevaluationRateType { get; set; } - - /// - /// Gets or Sets Secured - /// - [DataMember(Name="Secured", EmitDefaultValue=false)] - public BooleanValue Secured { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UseDefaultSubaccount - /// - [DataMember(Name="UseDefaultSubaccount", EmitDefaultValue=false)] - public BooleanValue UseDefaultSubaccount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Account {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountCD: ").Append(AccountCD).Append("\n"); - sb.Append(" AccountClass: ").Append(AccountClass).Append("\n"); - sb.Append(" AccountGroup: ").Append(AccountGroup).Append("\n"); - sb.Append(" AccountID: ").Append(AccountID).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" ChartOfAccountsOrder: ").Append(ChartOfAccountsOrder).Append("\n"); - sb.Append(" ConsolidationAccount: ").Append(ConsolidationAccount).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PostOption: ").Append(PostOption).Append("\n"); - sb.Append(" RequireUnits: ").Append(RequireUnits).Append("\n"); - sb.Append(" RevaluationRateType: ").Append(RevaluationRateType).Append("\n"); - sb.Append(" Secured: ").Append(Secured).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UseDefaultSubaccount: ").Append(UseDefaultSubaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Account); - } - - /// - /// Returns true if Account instances are equal - /// - /// Instance of Account to be compared - /// Boolean - public bool Equals(Account input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountCD == input.AccountCD || - (this.AccountCD != null && - this.AccountCD.Equals(input.AccountCD)) - ) && base.Equals(input) && - ( - this.AccountClass == input.AccountClass || - (this.AccountClass != null && - this.AccountClass.Equals(input.AccountClass)) - ) && base.Equals(input) && - ( - this.AccountGroup == input.AccountGroup || - (this.AccountGroup != null && - this.AccountGroup.Equals(input.AccountGroup)) - ) && base.Equals(input) && - ( - this.AccountID == input.AccountID || - (this.AccountID != null && - this.AccountID.Equals(input.AccountID)) - ) && base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.ChartOfAccountsOrder == input.ChartOfAccountsOrder || - (this.ChartOfAccountsOrder != null && - this.ChartOfAccountsOrder.Equals(input.ChartOfAccountsOrder)) - ) && base.Equals(input) && - ( - this.ConsolidationAccount == input.ConsolidationAccount || - (this.ConsolidationAccount != null && - this.ConsolidationAccount.Equals(input.ConsolidationAccount)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PostOption == input.PostOption || - (this.PostOption != null && - this.PostOption.Equals(input.PostOption)) - ) && base.Equals(input) && - ( - this.RequireUnits == input.RequireUnits || - (this.RequireUnits != null && - this.RequireUnits.Equals(input.RequireUnits)) - ) && base.Equals(input) && - ( - this.RevaluationRateType == input.RevaluationRateType || - (this.RevaluationRateType != null && - this.RevaluationRateType.Equals(input.RevaluationRateType)) - ) && base.Equals(input) && - ( - this.Secured == input.Secured || - (this.Secured != null && - this.Secured.Equals(input.Secured)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UseDefaultSubaccount == input.UseDefaultSubaccount || - (this.UseDefaultSubaccount != null && - this.UseDefaultSubaccount.Equals(input.UseDefaultSubaccount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountCD != null) - hashCode = hashCode * 59 + this.AccountCD.GetHashCode(); - if (this.AccountClass != null) - hashCode = hashCode * 59 + this.AccountClass.GetHashCode(); - if (this.AccountGroup != null) - hashCode = hashCode * 59 + this.AccountGroup.GetHashCode(); - if (this.AccountID != null) - hashCode = hashCode * 59 + this.AccountID.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.ChartOfAccountsOrder != null) - hashCode = hashCode * 59 + this.ChartOfAccountsOrder.GetHashCode(); - if (this.ConsolidationAccount != null) - hashCode = hashCode * 59 + this.ConsolidationAccount.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PostOption != null) - hashCode = hashCode * 59 + this.PostOption.GetHashCode(); - if (this.RequireUnits != null) - hashCode = hashCode * 59 + this.RequireUnits.GetHashCode(); - if (this.RevaluationRateType != null) - hashCode = hashCode * 59 + this.RevaluationRateType.GetHashCode(); - if (this.Secured != null) - hashCode = hashCode * 59 + this.Secured.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UseDefaultSubaccount != null) - hashCode = hashCode * 59 + this.UseDefaultSubaccount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountByPeriodInquiry.cs b/Default.18.200.001/Model/AccountByPeriodInquiry.cs deleted file mode 100644 index fb96cd9f..00000000 --- a/Default.18.200.001/Model/AccountByPeriodInquiry.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountByPeriodInquiry - /// - [DataContract] - public partial class AccountByPeriodInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// branchID. - /// financialYear. - /// ledger. - /// results. - /// subaccount. - public AccountByPeriodInquiry(StringValue account = default(StringValue), StringValue branchID = default(StringValue), StringValue financialYear = default(StringValue), StringValue ledger = default(StringValue), IEnumerable results = default(IEnumerable), StringValue subaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.BranchID = branchID; - this.FinancialYear = financialYear; - this.Ledger = ledger; - this.Results = results; - this.Subaccount = subaccount; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets FinancialYear - /// - [DataMember(Name="FinancialYear", EmitDefaultValue=false)] - public StringValue FinancialYear { get; set; } - - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public IEnumerable Results { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountByPeriodInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" FinancialYear: ").Append(FinancialYear).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountByPeriodInquiry); - } - - /// - /// Returns true if AccountByPeriodInquiry instances are equal - /// - /// Instance of AccountByPeriodInquiry to be compared - /// Boolean - public bool Equals(AccountByPeriodInquiry input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.FinancialYear == input.FinancialYear || - (this.FinancialYear != null && - this.FinancialYear.Equals(input.FinancialYear)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.FinancialYear != null) - hashCode = hashCode * 59 + this.FinancialYear.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountByPeriodRow.cs b/Default.18.200.001/Model/AccountByPeriodRow.cs deleted file mode 100644 index 149d9762..00000000 --- a/Default.18.200.001/Model/AccountByPeriodRow.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountByPeriodRow - /// - [DataContract] - public partial class AccountByPeriodRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// beginingBalance. - /// creditTotal. - /// currencyBeginingBalance. - /// currencyCreditTotal. - /// currencyDebitTotal. - /// currencyEndingBalance. - /// currencyID. - /// currencyPtdTotal. - /// debitTotal. - /// endingBalance. - /// ledgerID. - /// period. - /// ptdTotal. - public AccountByPeriodRow(DecimalValue beginingBalance = default(DecimalValue), DecimalValue creditTotal = default(DecimalValue), DecimalValue currencyBeginingBalance = default(DecimalValue), DecimalValue currencyCreditTotal = default(DecimalValue), DecimalValue currencyDebitTotal = default(DecimalValue), DecimalValue currencyEndingBalance = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue currencyPtdTotal = default(DecimalValue), DecimalValue debitTotal = default(DecimalValue), DecimalValue endingBalance = default(DecimalValue), IntValue ledgerID = default(IntValue), StringValue period = default(StringValue), DecimalValue ptdTotal = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BeginingBalance = beginingBalance; - this.CreditTotal = creditTotal; - this.CurrencyBeginingBalance = currencyBeginingBalance; - this.CurrencyCreditTotal = currencyCreditTotal; - this.CurrencyDebitTotal = currencyDebitTotal; - this.CurrencyEndingBalance = currencyEndingBalance; - this.CurrencyID = currencyID; - this.CurrencyPtdTotal = currencyPtdTotal; - this.DebitTotal = debitTotal; - this.EndingBalance = endingBalance; - this.LedgerID = ledgerID; - this.Period = period; - this.PtdTotal = ptdTotal; - } - - /// - /// Gets or Sets BeginingBalance - /// - [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] - public DecimalValue BeginingBalance { get; set; } - - /// - /// Gets or Sets CreditTotal - /// - [DataMember(Name="CreditTotal", EmitDefaultValue=false)] - public DecimalValue CreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyBeginingBalance - /// - [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyBeginingBalance { get; set; } - - /// - /// Gets or Sets CurrencyCreditTotal - /// - [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyCreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyDebitTotal - /// - [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyDebitTotal { get; set; } - - /// - /// Gets or Sets CurrencyEndingBalance - /// - [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyEndingBalance { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyPtdTotal - /// - [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyPtdTotal { get; set; } - - /// - /// Gets or Sets DebitTotal - /// - [DataMember(Name="DebitTotal", EmitDefaultValue=false)] - public DecimalValue DebitTotal { get; set; } - - /// - /// Gets or Sets EndingBalance - /// - [DataMember(Name="EndingBalance", EmitDefaultValue=false)] - public DecimalValue EndingBalance { get; set; } - - /// - /// Gets or Sets LedgerID - /// - [DataMember(Name="LedgerID", EmitDefaultValue=false)] - public IntValue LedgerID { get; set; } - - /// - /// Gets or Sets Period - /// - [DataMember(Name="Period", EmitDefaultValue=false)] - public StringValue Period { get; set; } - - /// - /// Gets or Sets PtdTotal - /// - [DataMember(Name="PtdTotal", EmitDefaultValue=false)] - public DecimalValue PtdTotal { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountByPeriodRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BeginingBalance: ").Append(BeginingBalance).Append("\n"); - sb.Append(" CreditTotal: ").Append(CreditTotal).Append("\n"); - sb.Append(" CurrencyBeginingBalance: ").Append(CurrencyBeginingBalance).Append("\n"); - sb.Append(" CurrencyCreditTotal: ").Append(CurrencyCreditTotal).Append("\n"); - sb.Append(" CurrencyDebitTotal: ").Append(CurrencyDebitTotal).Append("\n"); - sb.Append(" CurrencyEndingBalance: ").Append(CurrencyEndingBalance).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyPtdTotal: ").Append(CurrencyPtdTotal).Append("\n"); - sb.Append(" DebitTotal: ").Append(DebitTotal).Append("\n"); - sb.Append(" EndingBalance: ").Append(EndingBalance).Append("\n"); - sb.Append(" LedgerID: ").Append(LedgerID).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" PtdTotal: ").Append(PtdTotal).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountByPeriodRow); - } - - /// - /// Returns true if AccountByPeriodRow instances are equal - /// - /// Instance of AccountByPeriodRow to be compared - /// Boolean - public bool Equals(AccountByPeriodRow input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BeginingBalance == input.BeginingBalance || - (this.BeginingBalance != null && - this.BeginingBalance.Equals(input.BeginingBalance)) - ) && base.Equals(input) && - ( - this.CreditTotal == input.CreditTotal || - (this.CreditTotal != null && - this.CreditTotal.Equals(input.CreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyBeginingBalance == input.CurrencyBeginingBalance || - (this.CurrencyBeginingBalance != null && - this.CurrencyBeginingBalance.Equals(input.CurrencyBeginingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyCreditTotal == input.CurrencyCreditTotal || - (this.CurrencyCreditTotal != null && - this.CurrencyCreditTotal.Equals(input.CurrencyCreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyDebitTotal == input.CurrencyDebitTotal || - (this.CurrencyDebitTotal != null && - this.CurrencyDebitTotal.Equals(input.CurrencyDebitTotal)) - ) && base.Equals(input) && - ( - this.CurrencyEndingBalance == input.CurrencyEndingBalance || - (this.CurrencyEndingBalance != null && - this.CurrencyEndingBalance.Equals(input.CurrencyEndingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyPtdTotal == input.CurrencyPtdTotal || - (this.CurrencyPtdTotal != null && - this.CurrencyPtdTotal.Equals(input.CurrencyPtdTotal)) - ) && base.Equals(input) && - ( - this.DebitTotal == input.DebitTotal || - (this.DebitTotal != null && - this.DebitTotal.Equals(input.DebitTotal)) - ) && base.Equals(input) && - ( - this.EndingBalance == input.EndingBalance || - (this.EndingBalance != null && - this.EndingBalance.Equals(input.EndingBalance)) - ) && base.Equals(input) && - ( - this.LedgerID == input.LedgerID || - (this.LedgerID != null && - this.LedgerID.Equals(input.LedgerID)) - ) && base.Equals(input) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && base.Equals(input) && - ( - this.PtdTotal == input.PtdTotal || - (this.PtdTotal != null && - this.PtdTotal.Equals(input.PtdTotal)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BeginingBalance != null) - hashCode = hashCode * 59 + this.BeginingBalance.GetHashCode(); - if (this.CreditTotal != null) - hashCode = hashCode * 59 + this.CreditTotal.GetHashCode(); - if (this.CurrencyBeginingBalance != null) - hashCode = hashCode * 59 + this.CurrencyBeginingBalance.GetHashCode(); - if (this.CurrencyCreditTotal != null) - hashCode = hashCode * 59 + this.CurrencyCreditTotal.GetHashCode(); - if (this.CurrencyDebitTotal != null) - hashCode = hashCode * 59 + this.CurrencyDebitTotal.GetHashCode(); - if (this.CurrencyEndingBalance != null) - hashCode = hashCode * 59 + this.CurrencyEndingBalance.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyPtdTotal != null) - hashCode = hashCode * 59 + this.CurrencyPtdTotal.GetHashCode(); - if (this.DebitTotal != null) - hashCode = hashCode * 59 + this.DebitTotal.GetHashCode(); - if (this.EndingBalance != null) - hashCode = hashCode * 59 + this.EndingBalance.GetHashCode(); - if (this.LedgerID != null) - hashCode = hashCode * 59 + this.LedgerID.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.PtdTotal != null) - hashCode = hashCode * 59 + this.PtdTotal.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountBySubaccountInquiry.cs b/Default.18.200.001/Model/AccountBySubaccountInquiry.cs deleted file mode 100644 index 44438373..00000000 --- a/Default.18.200.001/Model/AccountBySubaccountInquiry.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountBySubaccountInquiry - /// - [DataContract] - public partial class AccountBySubaccountInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// branch. - /// ledger. - /// period. - /// results. - /// subaccount. - public AccountBySubaccountInquiry(StringValue account = default(StringValue), StringValue branch = default(StringValue), StringValue ledger = default(StringValue), StringValue period = default(StringValue), IEnumerable results = default(IEnumerable), StringValue subaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Branch = branch; - this.Ledger = ledger; - this.Period = period; - this.Results = results; - this.Subaccount = subaccount; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } - - /// - /// Gets or Sets Period - /// - [DataMember(Name="Period", EmitDefaultValue=false)] - public StringValue Period { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public IEnumerable Results { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountBySubaccountInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountBySubaccountInquiry); - } - - /// - /// Returns true if AccountBySubaccountInquiry instances are equal - /// - /// Instance of AccountBySubaccountInquiry to be compared - /// Boolean - public bool Equals(AccountBySubaccountInquiry input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountBySubaccountRow.cs b/Default.18.200.001/Model/AccountBySubaccountRow.cs deleted file mode 100644 index 124fedf6..00000000 --- a/Default.18.200.001/Model/AccountBySubaccountRow.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountBySubaccountRow - /// - [DataContract] - public partial class AccountBySubaccountRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// beginingBalance. - /// creditTotal. - /// currencyBeginingBalance. - /// currencyCreditTotal. - /// currencyDebitTotal. - /// currencyEndingBalance. - /// currencyID. - /// currencyPtdTotal. - /// debitTotal. - /// endingBalance. - /// ledgerID. - /// ptdTotal. - /// subaccount. - public AccountBySubaccountRow(DecimalValue beginingBalance = default(DecimalValue), DecimalValue creditTotal = default(DecimalValue), DecimalValue currencyBeginingBalance = default(DecimalValue), DecimalValue currencyCreditTotal = default(DecimalValue), DecimalValue currencyDebitTotal = default(DecimalValue), DecimalValue currencyEndingBalance = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue currencyPtdTotal = default(DecimalValue), DecimalValue debitTotal = default(DecimalValue), DecimalValue endingBalance = default(DecimalValue), IntValue ledgerID = default(IntValue), DecimalValue ptdTotal = default(DecimalValue), StringValue subaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BeginingBalance = beginingBalance; - this.CreditTotal = creditTotal; - this.CurrencyBeginingBalance = currencyBeginingBalance; - this.CurrencyCreditTotal = currencyCreditTotal; - this.CurrencyDebitTotal = currencyDebitTotal; - this.CurrencyEndingBalance = currencyEndingBalance; - this.CurrencyID = currencyID; - this.CurrencyPtdTotal = currencyPtdTotal; - this.DebitTotal = debitTotal; - this.EndingBalance = endingBalance; - this.LedgerID = ledgerID; - this.PtdTotal = ptdTotal; - this.Subaccount = subaccount; - } - - /// - /// Gets or Sets BeginingBalance - /// - [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] - public DecimalValue BeginingBalance { get; set; } - - /// - /// Gets or Sets CreditTotal - /// - [DataMember(Name="CreditTotal", EmitDefaultValue=false)] - public DecimalValue CreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyBeginingBalance - /// - [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyBeginingBalance { get; set; } - - /// - /// Gets or Sets CurrencyCreditTotal - /// - [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyCreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyDebitTotal - /// - [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyDebitTotal { get; set; } - - /// - /// Gets or Sets CurrencyEndingBalance - /// - [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyEndingBalance { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyPtdTotal - /// - [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyPtdTotal { get; set; } - - /// - /// Gets or Sets DebitTotal - /// - [DataMember(Name="DebitTotal", EmitDefaultValue=false)] - public DecimalValue DebitTotal { get; set; } - - /// - /// Gets or Sets EndingBalance - /// - [DataMember(Name="EndingBalance", EmitDefaultValue=false)] - public DecimalValue EndingBalance { get; set; } - - /// - /// Gets or Sets LedgerID - /// - [DataMember(Name="LedgerID", EmitDefaultValue=false)] - public IntValue LedgerID { get; set; } - - /// - /// Gets or Sets PtdTotal - /// - [DataMember(Name="PtdTotal", EmitDefaultValue=false)] - public DecimalValue PtdTotal { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountBySubaccountRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BeginingBalance: ").Append(BeginingBalance).Append("\n"); - sb.Append(" CreditTotal: ").Append(CreditTotal).Append("\n"); - sb.Append(" CurrencyBeginingBalance: ").Append(CurrencyBeginingBalance).Append("\n"); - sb.Append(" CurrencyCreditTotal: ").Append(CurrencyCreditTotal).Append("\n"); - sb.Append(" CurrencyDebitTotal: ").Append(CurrencyDebitTotal).Append("\n"); - sb.Append(" CurrencyEndingBalance: ").Append(CurrencyEndingBalance).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyPtdTotal: ").Append(CurrencyPtdTotal).Append("\n"); - sb.Append(" DebitTotal: ").Append(DebitTotal).Append("\n"); - sb.Append(" EndingBalance: ").Append(EndingBalance).Append("\n"); - sb.Append(" LedgerID: ").Append(LedgerID).Append("\n"); - sb.Append(" PtdTotal: ").Append(PtdTotal).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountBySubaccountRow); - } - - /// - /// Returns true if AccountBySubaccountRow instances are equal - /// - /// Instance of AccountBySubaccountRow to be compared - /// Boolean - public bool Equals(AccountBySubaccountRow input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BeginingBalance == input.BeginingBalance || - (this.BeginingBalance != null && - this.BeginingBalance.Equals(input.BeginingBalance)) - ) && base.Equals(input) && - ( - this.CreditTotal == input.CreditTotal || - (this.CreditTotal != null && - this.CreditTotal.Equals(input.CreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyBeginingBalance == input.CurrencyBeginingBalance || - (this.CurrencyBeginingBalance != null && - this.CurrencyBeginingBalance.Equals(input.CurrencyBeginingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyCreditTotal == input.CurrencyCreditTotal || - (this.CurrencyCreditTotal != null && - this.CurrencyCreditTotal.Equals(input.CurrencyCreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyDebitTotal == input.CurrencyDebitTotal || - (this.CurrencyDebitTotal != null && - this.CurrencyDebitTotal.Equals(input.CurrencyDebitTotal)) - ) && base.Equals(input) && - ( - this.CurrencyEndingBalance == input.CurrencyEndingBalance || - (this.CurrencyEndingBalance != null && - this.CurrencyEndingBalance.Equals(input.CurrencyEndingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyPtdTotal == input.CurrencyPtdTotal || - (this.CurrencyPtdTotal != null && - this.CurrencyPtdTotal.Equals(input.CurrencyPtdTotal)) - ) && base.Equals(input) && - ( - this.DebitTotal == input.DebitTotal || - (this.DebitTotal != null && - this.DebitTotal.Equals(input.DebitTotal)) - ) && base.Equals(input) && - ( - this.EndingBalance == input.EndingBalance || - (this.EndingBalance != null && - this.EndingBalance.Equals(input.EndingBalance)) - ) && base.Equals(input) && - ( - this.LedgerID == input.LedgerID || - (this.LedgerID != null && - this.LedgerID.Equals(input.LedgerID)) - ) && base.Equals(input) && - ( - this.PtdTotal == input.PtdTotal || - (this.PtdTotal != null && - this.PtdTotal.Equals(input.PtdTotal)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BeginingBalance != null) - hashCode = hashCode * 59 + this.BeginingBalance.GetHashCode(); - if (this.CreditTotal != null) - hashCode = hashCode * 59 + this.CreditTotal.GetHashCode(); - if (this.CurrencyBeginingBalance != null) - hashCode = hashCode * 59 + this.CurrencyBeginingBalance.GetHashCode(); - if (this.CurrencyCreditTotal != null) - hashCode = hashCode * 59 + this.CurrencyCreditTotal.GetHashCode(); - if (this.CurrencyDebitTotal != null) - hashCode = hashCode * 59 + this.CurrencyDebitTotal.GetHashCode(); - if (this.CurrencyEndingBalance != null) - hashCode = hashCode * 59 + this.CurrencyEndingBalance.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyPtdTotal != null) - hashCode = hashCode * 59 + this.CurrencyPtdTotal.GetHashCode(); - if (this.DebitTotal != null) - hashCode = hashCode * 59 + this.DebitTotal.GetHashCode(); - if (this.EndingBalance != null) - hashCode = hashCode * 59 + this.EndingBalance.GetHashCode(); - if (this.LedgerID != null) - hashCode = hashCode * 59 + this.LedgerID.GetHashCode(); - if (this.PtdTotal != null) - hashCode = hashCode * 59 + this.PtdTotal.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountDetailsInquiry.cs b/Default.18.200.001/Model/AccountDetailsInquiry.cs deleted file mode 100644 index 8b93d5b5..00000000 --- a/Default.18.200.001/Model/AccountDetailsInquiry.cs +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountDetailsInquiry - /// - [DataContract] - public partial class AccountDetailsInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// beginingBalance. - /// branch. - /// endingBalance. - /// fromDate. - /// fromPeriod. - /// includeReclassified. - /// includeUnposted. - /// includeUnreleased. - /// ledger. - /// periodEndDate. - /// periodStartDate. - /// results. - /// subaccount. - /// toDate. - /// toPeriod. - /// turnover. - public AccountDetailsInquiry(StringValue account = default(StringValue), DecimalValue beginingBalance = default(DecimalValue), StringValue branch = default(StringValue), DecimalValue endingBalance = default(DecimalValue), DateTimeValue fromDate = default(DateTimeValue), StringValue fromPeriod = default(StringValue), BooleanValue includeReclassified = default(BooleanValue), BooleanValue includeUnposted = default(BooleanValue), BooleanValue includeUnreleased = default(BooleanValue), StringValue ledger = default(StringValue), DateTimeValue periodEndDate = default(DateTimeValue), DateTimeValue periodStartDate = default(DateTimeValue), IEnumerable results = default(IEnumerable), StringValue subaccount = default(StringValue), DateTimeValue toDate = default(DateTimeValue), StringValue toPeriod = default(StringValue), DecimalValue turnover = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.BeginingBalance = beginingBalance; - this.Branch = branch; - this.EndingBalance = endingBalance; - this.FromDate = fromDate; - this.FromPeriod = fromPeriod; - this.IncludeReclassified = includeReclassified; - this.IncludeUnposted = includeUnposted; - this.IncludeUnreleased = includeUnreleased; - this.Ledger = ledger; - this.PeriodEndDate = periodEndDate; - this.PeriodStartDate = periodStartDate; - this.Results = results; - this.Subaccount = subaccount; - this.ToDate = toDate; - this.ToPeriod = toPeriod; - this.Turnover = turnover; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets BeginingBalance - /// - [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] - public DecimalValue BeginingBalance { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets EndingBalance - /// - [DataMember(Name="EndingBalance", EmitDefaultValue=false)] - public DecimalValue EndingBalance { get; set; } - - /// - /// Gets or Sets FromDate - /// - [DataMember(Name="FromDate", EmitDefaultValue=false)] - public DateTimeValue FromDate { get; set; } - - /// - /// Gets or Sets FromPeriod - /// - [DataMember(Name="FromPeriod", EmitDefaultValue=false)] - public StringValue FromPeriod { get; set; } - - /// - /// Gets or Sets IncludeReclassified - /// - [DataMember(Name="IncludeReclassified", EmitDefaultValue=false)] - public BooleanValue IncludeReclassified { get; set; } - - /// - /// Gets or Sets IncludeUnposted - /// - [DataMember(Name="IncludeUnposted", EmitDefaultValue=false)] - public BooleanValue IncludeUnposted { get; set; } - - /// - /// Gets or Sets IncludeUnreleased - /// - [DataMember(Name="IncludeUnreleased", EmitDefaultValue=false)] - public BooleanValue IncludeUnreleased { get; set; } - - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } - - /// - /// Gets or Sets PeriodEndDate - /// - [DataMember(Name="PeriodEndDate", EmitDefaultValue=false)] - public DateTimeValue PeriodEndDate { get; set; } - - /// - /// Gets or Sets PeriodStartDate - /// - [DataMember(Name="PeriodStartDate", EmitDefaultValue=false)] - public DateTimeValue PeriodStartDate { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public IEnumerable Results { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets ToDate - /// - [DataMember(Name="ToDate", EmitDefaultValue=false)] - public DateTimeValue ToDate { get; set; } - - /// - /// Gets or Sets ToPeriod - /// - [DataMember(Name="ToPeriod", EmitDefaultValue=false)] - public StringValue ToPeriod { get; set; } - - /// - /// Gets or Sets Turnover - /// - [DataMember(Name="Turnover", EmitDefaultValue=false)] - public DecimalValue Turnover { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountDetailsInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" BeginingBalance: ").Append(BeginingBalance).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" EndingBalance: ").Append(EndingBalance).Append("\n"); - sb.Append(" FromDate: ").Append(FromDate).Append("\n"); - sb.Append(" FromPeriod: ").Append(FromPeriod).Append("\n"); - sb.Append(" IncludeReclassified: ").Append(IncludeReclassified).Append("\n"); - sb.Append(" IncludeUnposted: ").Append(IncludeUnposted).Append("\n"); - sb.Append(" IncludeUnreleased: ").Append(IncludeUnreleased).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" PeriodEndDate: ").Append(PeriodEndDate).Append("\n"); - sb.Append(" PeriodStartDate: ").Append(PeriodStartDate).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" ToDate: ").Append(ToDate).Append("\n"); - sb.Append(" ToPeriod: ").Append(ToPeriod).Append("\n"); - sb.Append(" Turnover: ").Append(Turnover).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountDetailsInquiry); - } - - /// - /// Returns true if AccountDetailsInquiry instances are equal - /// - /// Instance of AccountDetailsInquiry to be compared - /// Boolean - public bool Equals(AccountDetailsInquiry input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.BeginingBalance == input.BeginingBalance || - (this.BeginingBalance != null && - this.BeginingBalance.Equals(input.BeginingBalance)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.EndingBalance == input.EndingBalance || - (this.EndingBalance != null && - this.EndingBalance.Equals(input.EndingBalance)) - ) && base.Equals(input) && - ( - this.FromDate == input.FromDate || - (this.FromDate != null && - this.FromDate.Equals(input.FromDate)) - ) && base.Equals(input) && - ( - this.FromPeriod == input.FromPeriod || - (this.FromPeriod != null && - this.FromPeriod.Equals(input.FromPeriod)) - ) && base.Equals(input) && - ( - this.IncludeReclassified == input.IncludeReclassified || - (this.IncludeReclassified != null && - this.IncludeReclassified.Equals(input.IncludeReclassified)) - ) && base.Equals(input) && - ( - this.IncludeUnposted == input.IncludeUnposted || - (this.IncludeUnposted != null && - this.IncludeUnposted.Equals(input.IncludeUnposted)) - ) && base.Equals(input) && - ( - this.IncludeUnreleased == input.IncludeUnreleased || - (this.IncludeUnreleased != null && - this.IncludeUnreleased.Equals(input.IncludeUnreleased)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.PeriodEndDate == input.PeriodEndDate || - (this.PeriodEndDate != null && - this.PeriodEndDate.Equals(input.PeriodEndDate)) - ) && base.Equals(input) && - ( - this.PeriodStartDate == input.PeriodStartDate || - (this.PeriodStartDate != null && - this.PeriodStartDate.Equals(input.PeriodStartDate)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.ToDate == input.ToDate || - (this.ToDate != null && - this.ToDate.Equals(input.ToDate)) - ) && base.Equals(input) && - ( - this.ToPeriod == input.ToPeriod || - (this.ToPeriod != null && - this.ToPeriod.Equals(input.ToPeriod)) - ) && base.Equals(input) && - ( - this.Turnover == input.Turnover || - (this.Turnover != null && - this.Turnover.Equals(input.Turnover)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.BeginingBalance != null) - hashCode = hashCode * 59 + this.BeginingBalance.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.EndingBalance != null) - hashCode = hashCode * 59 + this.EndingBalance.GetHashCode(); - if (this.FromDate != null) - hashCode = hashCode * 59 + this.FromDate.GetHashCode(); - if (this.FromPeriod != null) - hashCode = hashCode * 59 + this.FromPeriod.GetHashCode(); - if (this.IncludeReclassified != null) - hashCode = hashCode * 59 + this.IncludeReclassified.GetHashCode(); - if (this.IncludeUnposted != null) - hashCode = hashCode * 59 + this.IncludeUnposted.GetHashCode(); - if (this.IncludeUnreleased != null) - hashCode = hashCode * 59 + this.IncludeUnreleased.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.PeriodEndDate != null) - hashCode = hashCode * 59 + this.PeriodEndDate.GetHashCode(); - if (this.PeriodStartDate != null) - hashCode = hashCode * 59 + this.PeriodStartDate.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.ToDate != null) - hashCode = hashCode * 59 + this.ToDate.GetHashCode(); - if (this.ToPeriod != null) - hashCode = hashCode * 59 + this.ToPeriod.GetHashCode(); - if (this.Turnover != null) - hashCode = hashCode * 59 + this.Turnover.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountDetailsRow.cs b/Default.18.200.001/Model/AccountDetailsRow.cs deleted file mode 100644 index 788e8105..00000000 --- a/Default.18.200.001/Model/AccountDetailsRow.cs +++ /dev/null @@ -1,494 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountDetailsRow - /// - [DataContract] - public partial class AccountDetailsRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// batchNbr. - /// beginingBalance. - /// branch. - /// creditAmount. - /// currencyBeginingBalance. - /// currencyCreditAmount. - /// currencyDebitAmount. - /// currencyEndingBalance. - /// currencyID. - /// debitAmount. - /// description. - /// endingBalance. - /// includedinReclassHistory. - /// inventoryID. - /// lineNbr. - /// module. - /// period. - /// reclassBatchNbr. - /// referenceNbr. - /// selected. - /// subaccount. - /// transactionDate. - /// vendorOrCustomer. - public AccountDetailsRow(StringValue account = default(StringValue), StringValue batchNbr = default(StringValue), DecimalValue beginingBalance = default(DecimalValue), StringValue branch = default(StringValue), DecimalValue creditAmount = default(DecimalValue), DecimalValue currencyBeginingBalance = default(DecimalValue), DecimalValue currencyCreditAmount = default(DecimalValue), DecimalValue currencyDebitAmount = default(DecimalValue), DecimalValue currencyEndingBalance = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue debitAmount = default(DecimalValue), StringValue description = default(StringValue), DecimalValue endingBalance = default(DecimalValue), BooleanValue includedinReclassHistory = default(BooleanValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue module = default(StringValue), StringValue period = default(StringValue), StringValue reclassBatchNbr = default(StringValue), StringValue referenceNbr = default(StringValue), BooleanValue selected = default(BooleanValue), StringValue subaccount = default(StringValue), DateTimeValue transactionDate = default(DateTimeValue), StringValue vendorOrCustomer = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.BatchNbr = batchNbr; - this.BeginingBalance = beginingBalance; - this.Branch = branch; - this.CreditAmount = creditAmount; - this.CurrencyBeginingBalance = currencyBeginingBalance; - this.CurrencyCreditAmount = currencyCreditAmount; - this.CurrencyDebitAmount = currencyDebitAmount; - this.CurrencyEndingBalance = currencyEndingBalance; - this.CurrencyID = currencyID; - this.DebitAmount = debitAmount; - this.Description = description; - this.EndingBalance = endingBalance; - this.IncludedinReclassHistory = includedinReclassHistory; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.Module = module; - this.Period = period; - this.ReclassBatchNbr = reclassBatchNbr; - this.ReferenceNbr = referenceNbr; - this.Selected = selected; - this.Subaccount = subaccount; - this.TransactionDate = transactionDate; - this.VendorOrCustomer = vendorOrCustomer; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets BeginingBalance - /// - [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] - public DecimalValue BeginingBalance { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CreditAmount - /// - [DataMember(Name="CreditAmount", EmitDefaultValue=false)] - public DecimalValue CreditAmount { get; set; } - - /// - /// Gets or Sets CurrencyBeginingBalance - /// - [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyBeginingBalance { get; set; } - - /// - /// Gets or Sets CurrencyCreditAmount - /// - [DataMember(Name="CurrencyCreditAmount", EmitDefaultValue=false)] - public DecimalValue CurrencyCreditAmount { get; set; } - - /// - /// Gets or Sets CurrencyDebitAmount - /// - [DataMember(Name="CurrencyDebitAmount", EmitDefaultValue=false)] - public DecimalValue CurrencyDebitAmount { get; set; } - - /// - /// Gets or Sets CurrencyEndingBalance - /// - [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyEndingBalance { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets DebitAmount - /// - [DataMember(Name="DebitAmount", EmitDefaultValue=false)] - public DecimalValue DebitAmount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EndingBalance - /// - [DataMember(Name="EndingBalance", EmitDefaultValue=false)] - public DecimalValue EndingBalance { get; set; } - - /// - /// Gets or Sets IncludedinReclassHistory - /// - [DataMember(Name="IncludedinReclassHistory", EmitDefaultValue=false)] - public BooleanValue IncludedinReclassHistory { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } - - /// - /// Gets or Sets Period - /// - [DataMember(Name="Period", EmitDefaultValue=false)] - public StringValue Period { get; set; } - - /// - /// Gets or Sets ReclassBatchNbr - /// - [DataMember(Name="ReclassBatchNbr", EmitDefaultValue=false)] - public StringValue ReclassBatchNbr { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets TransactionDate - /// - [DataMember(Name="TransactionDate", EmitDefaultValue=false)] - public DateTimeValue TransactionDate { get; set; } - - /// - /// Gets or Sets VendorOrCustomer - /// - [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] - public StringValue VendorOrCustomer { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountDetailsRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" BeginingBalance: ").Append(BeginingBalance).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CreditAmount: ").Append(CreditAmount).Append("\n"); - sb.Append(" CurrencyBeginingBalance: ").Append(CurrencyBeginingBalance).Append("\n"); - sb.Append(" CurrencyCreditAmount: ").Append(CurrencyCreditAmount).Append("\n"); - sb.Append(" CurrencyDebitAmount: ").Append(CurrencyDebitAmount).Append("\n"); - sb.Append(" CurrencyEndingBalance: ").Append(CurrencyEndingBalance).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" DebitAmount: ").Append(DebitAmount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EndingBalance: ").Append(EndingBalance).Append("\n"); - sb.Append(" IncludedinReclassHistory: ").Append(IncludedinReclassHistory).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" ReclassBatchNbr: ").Append(ReclassBatchNbr).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" TransactionDate: ").Append(TransactionDate).Append("\n"); - sb.Append(" VendorOrCustomer: ").Append(VendorOrCustomer).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountDetailsRow); - } - - /// - /// Returns true if AccountDetailsRow instances are equal - /// - /// Instance of AccountDetailsRow to be compared - /// Boolean - public bool Equals(AccountDetailsRow input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.BeginingBalance == input.BeginingBalance || - (this.BeginingBalance != null && - this.BeginingBalance.Equals(input.BeginingBalance)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CreditAmount == input.CreditAmount || - (this.CreditAmount != null && - this.CreditAmount.Equals(input.CreditAmount)) - ) && base.Equals(input) && - ( - this.CurrencyBeginingBalance == input.CurrencyBeginingBalance || - (this.CurrencyBeginingBalance != null && - this.CurrencyBeginingBalance.Equals(input.CurrencyBeginingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyCreditAmount == input.CurrencyCreditAmount || - (this.CurrencyCreditAmount != null && - this.CurrencyCreditAmount.Equals(input.CurrencyCreditAmount)) - ) && base.Equals(input) && - ( - this.CurrencyDebitAmount == input.CurrencyDebitAmount || - (this.CurrencyDebitAmount != null && - this.CurrencyDebitAmount.Equals(input.CurrencyDebitAmount)) - ) && base.Equals(input) && - ( - this.CurrencyEndingBalance == input.CurrencyEndingBalance || - (this.CurrencyEndingBalance != null && - this.CurrencyEndingBalance.Equals(input.CurrencyEndingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.DebitAmount == input.DebitAmount || - (this.DebitAmount != null && - this.DebitAmount.Equals(input.DebitAmount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EndingBalance == input.EndingBalance || - (this.EndingBalance != null && - this.EndingBalance.Equals(input.EndingBalance)) - ) && base.Equals(input) && - ( - this.IncludedinReclassHistory == input.IncludedinReclassHistory || - (this.IncludedinReclassHistory != null && - this.IncludedinReclassHistory.Equals(input.IncludedinReclassHistory)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && base.Equals(input) && - ( - this.ReclassBatchNbr == input.ReclassBatchNbr || - (this.ReclassBatchNbr != null && - this.ReclassBatchNbr.Equals(input.ReclassBatchNbr)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.TransactionDate == input.TransactionDate || - (this.TransactionDate != null && - this.TransactionDate.Equals(input.TransactionDate)) - ) && base.Equals(input) && - ( - this.VendorOrCustomer == input.VendorOrCustomer || - (this.VendorOrCustomer != null && - this.VendorOrCustomer.Equals(input.VendorOrCustomer)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.BeginingBalance != null) - hashCode = hashCode * 59 + this.BeginingBalance.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CreditAmount != null) - hashCode = hashCode * 59 + this.CreditAmount.GetHashCode(); - if (this.CurrencyBeginingBalance != null) - hashCode = hashCode * 59 + this.CurrencyBeginingBalance.GetHashCode(); - if (this.CurrencyCreditAmount != null) - hashCode = hashCode * 59 + this.CurrencyCreditAmount.GetHashCode(); - if (this.CurrencyDebitAmount != null) - hashCode = hashCode * 59 + this.CurrencyDebitAmount.GetHashCode(); - if (this.CurrencyEndingBalance != null) - hashCode = hashCode * 59 + this.CurrencyEndingBalance.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.DebitAmount != null) - hashCode = hashCode * 59 + this.DebitAmount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EndingBalance != null) - hashCode = hashCode * 59 + this.EndingBalance.GetHashCode(); - if (this.IncludedinReclassHistory != null) - hashCode = hashCode * 59 + this.IncludedinReclassHistory.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.ReclassBatchNbr != null) - hashCode = hashCode * 59 + this.ReclassBatchNbr.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.TransactionDate != null) - hashCode = hashCode * 59 + this.TransactionDate.GetHashCode(); - if (this.VendorOrCustomer != null) - hashCode = hashCode * 59 + this.VendorOrCustomer.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountGroup.cs b/Default.18.200.001/Model/AccountGroup.cs deleted file mode 100644 index 94db53e5..00000000 --- a/Default.18.200.001/Model/AccountGroup.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountGroup - /// - [DataContract] - public partial class AccountGroup : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountGroupID. - /// active. - /// attributes. - /// defaultAccountID. - /// description. - /// expense. - /// sortOrder. - /// type. - public AccountGroup(StringValue accountGroupID = default(StringValue), BooleanValue active = default(BooleanValue), IEnumerable attributes = default(IEnumerable), StringValue defaultAccountID = default(StringValue), StringValue description = default(StringValue), BooleanValue expense = default(BooleanValue), ShortValue sortOrder = default(ShortValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountGroupID = accountGroupID; - this.Active = active; - this.Attributes = attributes; - this.DefaultAccountID = defaultAccountID; - this.Description = description; - this.Expense = expense; - this.SortOrder = sortOrder; - this.Type = type; - } - - /// - /// Gets or Sets AccountGroupID - /// - [DataMember(Name="AccountGroupID", EmitDefaultValue=false)] - public StringValue AccountGroupID { get; set; } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets DefaultAccountID - /// - [DataMember(Name="DefaultAccountID", EmitDefaultValue=false)] - public StringValue DefaultAccountID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Expense - /// - [DataMember(Name="Expense", EmitDefaultValue=false)] - public BooleanValue Expense { get; set; } - - /// - /// Gets or Sets SortOrder - /// - [DataMember(Name="SortOrder", EmitDefaultValue=false)] - public ShortValue SortOrder { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountGroup {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountGroupID: ").Append(AccountGroupID).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" DefaultAccountID: ").Append(DefaultAccountID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Expense: ").Append(Expense).Append("\n"); - sb.Append(" SortOrder: ").Append(SortOrder).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountGroup); - } - - /// - /// Returns true if AccountGroup instances are equal - /// - /// Instance of AccountGroup to be compared - /// Boolean - public bool Equals(AccountGroup input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountGroupID == input.AccountGroupID || - (this.AccountGroupID != null && - this.AccountGroupID.Equals(input.AccountGroupID)) - ) && base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.DefaultAccountID == input.DefaultAccountID || - (this.DefaultAccountID != null && - this.DefaultAccountID.Equals(input.DefaultAccountID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Expense == input.Expense || - (this.Expense != null && - this.Expense.Equals(input.Expense)) - ) && base.Equals(input) && - ( - this.SortOrder == input.SortOrder || - (this.SortOrder != null && - this.SortOrder.Equals(input.SortOrder)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountGroupID != null) - hashCode = hashCode * 59 + this.AccountGroupID.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.DefaultAccountID != null) - hashCode = hashCode * 59 + this.DefaultAccountID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Expense != null) - hashCode = hashCode * 59 + this.Expense.GetHashCode(); - if (this.SortOrder != null) - hashCode = hashCode * 59 + this.SortOrder.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountLocation.cs b/Default.18.200.001/Model/AccountLocation.cs deleted file mode 100644 index f5c831da..00000000 --- a/Default.18.200.001/Model/AccountLocation.cs +++ /dev/null @@ -1,734 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountLocation - /// - [DataContract] - public partial class AccountLocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// address. - /// addressSameAsMain. - /// addressValidated. - /// aRAccount. - /// aRSubaccount. - /// businessAccountID. - /// calendar. - /// cases. - /// contact. - /// defaultProject. - /// discountAccount. - /// discountSubaccount. - /// entityUsageType. - /// fedExGroundCollect. - /// fOBPoint. - /// freightAccount. - /// freightSubaccount. - /// insurance. - /// leadTimeInDays. - /// locationID. - /// locationName. - /// opportunities. - /// orderPriority. - /// priceClass. - /// residentialDelivery. - /// salesAccount. - /// salesSubaccount. - /// sameAsDefaultLocation. - /// saturdayDelivery. - /// shippingBranch. - /// shippingRule. - /// shippingTerms. - /// shippingZone. - /// shipVia. - /// taxExemptionNumber. - /// taxRegistrationID. - /// taxZone. - /// warehouse. - public AccountLocation(BooleanValue active = default(BooleanValue), Address address = default(Address), BooleanValue addressSameAsMain = default(BooleanValue), BooleanValue addressValidated = default(BooleanValue), StringValue aRAccount = default(StringValue), StringValue aRSubaccount = default(StringValue), StringValue businessAccountID = default(StringValue), StringValue calendar = default(StringValue), IEnumerable cases = default(IEnumerable), AccountLocationContact contact = default(AccountLocationContact), StringValue defaultProject = default(StringValue), StringValue discountAccount = default(StringValue), StringValue discountSubaccount = default(StringValue), StringValue entityUsageType = default(StringValue), BooleanValue fedExGroundCollect = default(BooleanValue), StringValue fOBPoint = default(StringValue), StringValue freightAccount = default(StringValue), StringValue freightSubaccount = default(StringValue), BooleanValue insurance = default(BooleanValue), ShortValue leadTimeInDays = default(ShortValue), StringValue locationID = default(StringValue), StringValue locationName = default(StringValue), IEnumerable opportunities = default(IEnumerable), ShortValue orderPriority = default(ShortValue), StringValue priceClass = default(StringValue), BooleanValue residentialDelivery = default(BooleanValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), BooleanValue sameAsDefaultLocation = default(BooleanValue), BooleanValue saturdayDelivery = default(BooleanValue), StringValue shippingBranch = default(StringValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shippingZone = default(StringValue), StringValue shipVia = default(StringValue), StringValue taxExemptionNumber = default(StringValue), StringValue taxRegistrationID = default(StringValue), StringValue taxZone = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Address = address; - this.AddressSameAsMain = addressSameAsMain; - this.AddressValidated = addressValidated; - this.ARAccount = aRAccount; - this.ARSubaccount = aRSubaccount; - this.BusinessAccountID = businessAccountID; - this.Calendar = calendar; - this.Cases = cases; - this.Contact = contact; - this.DefaultProject = defaultProject; - this.DiscountAccount = discountAccount; - this.DiscountSubaccount = discountSubaccount; - this.EntityUsageType = entityUsageType; - this.FedExGroundCollect = fedExGroundCollect; - this.FOBPoint = fOBPoint; - this.FreightAccount = freightAccount; - this.FreightSubaccount = freightSubaccount; - this.Insurance = insurance; - this.LeadTimeInDays = leadTimeInDays; - this.LocationID = locationID; - this.LocationName = locationName; - this.Opportunities = opportunities; - this.OrderPriority = orderPriority; - this.PriceClass = priceClass; - this.ResidentialDelivery = residentialDelivery; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.SameAsDefaultLocation = sameAsDefaultLocation; - this.SaturdayDelivery = saturdayDelivery; - this.ShippingBranch = shippingBranch; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShippingZone = shippingZone; - this.ShipVia = shipVia; - this.TaxExemptionNumber = taxExemptionNumber; - this.TaxRegistrationID = taxRegistrationID; - this.TaxZone = taxZone; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Address - /// - [DataMember(Name="Address", EmitDefaultValue=false)] - public Address Address { get; set; } - - /// - /// Gets or Sets AddressSameAsMain - /// - [DataMember(Name="AddressSameAsMain", EmitDefaultValue=false)] - public BooleanValue AddressSameAsMain { get; set; } - - /// - /// Gets or Sets AddressValidated - /// - [DataMember(Name="AddressValidated", EmitDefaultValue=false)] - public BooleanValue AddressValidated { get; set; } - - /// - /// Gets or Sets ARAccount - /// - [DataMember(Name="ARAccount", EmitDefaultValue=false)] - public StringValue ARAccount { get; set; } - - /// - /// Gets or Sets ARSubaccount - /// - [DataMember(Name="ARSubaccount", EmitDefaultValue=false)] - public StringValue ARSubaccount { get; set; } - - /// - /// Gets or Sets BusinessAccountID - /// - [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] - public StringValue BusinessAccountID { get; set; } - - /// - /// Gets or Sets Calendar - /// - [DataMember(Name="Calendar", EmitDefaultValue=false)] - public StringValue Calendar { get; set; } - - /// - /// Gets or Sets Cases - /// - [DataMember(Name="Cases", EmitDefaultValue=false)] - public IEnumerable Cases { get; set; } - - /// - /// Gets or Sets Contact - /// - [DataMember(Name="Contact", EmitDefaultValue=false)] - public AccountLocationContact Contact { get; set; } - - /// - /// Gets or Sets DefaultProject - /// - [DataMember(Name="DefaultProject", EmitDefaultValue=false)] - public StringValue DefaultProject { get; set; } - - /// - /// Gets or Sets DiscountAccount - /// - [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] - public StringValue DiscountAccount { get; set; } - - /// - /// Gets or Sets DiscountSubaccount - /// - [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] - public StringValue DiscountSubaccount { get; set; } - - /// - /// Gets or Sets EntityUsageType - /// - [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] - public StringValue EntityUsageType { get; set; } - - /// - /// Gets or Sets FedExGroundCollect - /// - [DataMember(Name="FedExGroundCollect", EmitDefaultValue=false)] - public BooleanValue FedExGroundCollect { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets FreightAccount - /// - [DataMember(Name="FreightAccount", EmitDefaultValue=false)] - public StringValue FreightAccount { get; set; } - - /// - /// Gets or Sets FreightSubaccount - /// - [DataMember(Name="FreightSubaccount", EmitDefaultValue=false)] - public StringValue FreightSubaccount { get; set; } - - /// - /// Gets or Sets Insurance - /// - [DataMember(Name="Insurance", EmitDefaultValue=false)] - public BooleanValue Insurance { get; set; } - - /// - /// Gets or Sets LeadTimeInDays - /// - [DataMember(Name="LeadTimeInDays", EmitDefaultValue=false)] - public ShortValue LeadTimeInDays { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets Opportunities - /// - [DataMember(Name="Opportunities", EmitDefaultValue=false)] - public IEnumerable Opportunities { get; set; } - - /// - /// Gets or Sets OrderPriority - /// - [DataMember(Name="OrderPriority", EmitDefaultValue=false)] - public ShortValue OrderPriority { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets SameAsDefaultLocation - /// - [DataMember(Name="SameAsDefaultLocation", EmitDefaultValue=false)] - public BooleanValue SameAsDefaultLocation { get; set; } - - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } - - /// - /// Gets or Sets ShippingBranch - /// - [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] - public StringValue ShippingBranch { get; set; } - - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShippingZone - /// - [DataMember(Name="ShippingZone", EmitDefaultValue=false)] - public StringValue ShippingZone { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets TaxExemptionNumber - /// - [DataMember(Name="TaxExemptionNumber", EmitDefaultValue=false)] - public StringValue TaxExemptionNumber { get; set; } - - /// - /// Gets or Sets TaxRegistrationID - /// - [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] - public StringValue TaxRegistrationID { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountLocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" AddressSameAsMain: ").Append(AddressSameAsMain).Append("\n"); - sb.Append(" AddressValidated: ").Append(AddressValidated).Append("\n"); - sb.Append(" ARAccount: ").Append(ARAccount).Append("\n"); - sb.Append(" ARSubaccount: ").Append(ARSubaccount).Append("\n"); - sb.Append(" BusinessAccountID: ").Append(BusinessAccountID).Append("\n"); - sb.Append(" Calendar: ").Append(Calendar).Append("\n"); - sb.Append(" Cases: ").Append(Cases).Append("\n"); - sb.Append(" Contact: ").Append(Contact).Append("\n"); - sb.Append(" DefaultProject: ").Append(DefaultProject).Append("\n"); - sb.Append(" DiscountAccount: ").Append(DiscountAccount).Append("\n"); - sb.Append(" DiscountSubaccount: ").Append(DiscountSubaccount).Append("\n"); - sb.Append(" EntityUsageType: ").Append(EntityUsageType).Append("\n"); - sb.Append(" FedExGroundCollect: ").Append(FedExGroundCollect).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" FreightAccount: ").Append(FreightAccount).Append("\n"); - sb.Append(" FreightSubaccount: ").Append(FreightSubaccount).Append("\n"); - sb.Append(" Insurance: ").Append(Insurance).Append("\n"); - sb.Append(" LeadTimeInDays: ").Append(LeadTimeInDays).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" Opportunities: ").Append(Opportunities).Append("\n"); - sb.Append(" OrderPriority: ").Append(OrderPriority).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" SameAsDefaultLocation: ").Append(SameAsDefaultLocation).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" ShippingBranch: ").Append(ShippingBranch).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZone: ").Append(ShippingZone).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" TaxExemptionNumber: ").Append(TaxExemptionNumber).Append("\n"); - sb.Append(" TaxRegistrationID: ").Append(TaxRegistrationID).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountLocation); - } - - /// - /// Returns true if AccountLocation instances are equal - /// - /// Instance of AccountLocation to be compared - /// Boolean - public bool Equals(AccountLocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && base.Equals(input) && - ( - this.AddressSameAsMain == input.AddressSameAsMain || - (this.AddressSameAsMain != null && - this.AddressSameAsMain.Equals(input.AddressSameAsMain)) - ) && base.Equals(input) && - ( - this.AddressValidated == input.AddressValidated || - (this.AddressValidated != null && - this.AddressValidated.Equals(input.AddressValidated)) - ) && base.Equals(input) && - ( - this.ARAccount == input.ARAccount || - (this.ARAccount != null && - this.ARAccount.Equals(input.ARAccount)) - ) && base.Equals(input) && - ( - this.ARSubaccount == input.ARSubaccount || - (this.ARSubaccount != null && - this.ARSubaccount.Equals(input.ARSubaccount)) - ) && base.Equals(input) && - ( - this.BusinessAccountID == input.BusinessAccountID || - (this.BusinessAccountID != null && - this.BusinessAccountID.Equals(input.BusinessAccountID)) - ) && base.Equals(input) && - ( - this.Calendar == input.Calendar || - (this.Calendar != null && - this.Calendar.Equals(input.Calendar)) - ) && base.Equals(input) && - ( - this.Cases == input.Cases || - this.Cases != null && - this.Cases.SequenceEqual(input.Cases) - ) && base.Equals(input) && - ( - this.Contact == input.Contact || - (this.Contact != null && - this.Contact.Equals(input.Contact)) - ) && base.Equals(input) && - ( - this.DefaultProject == input.DefaultProject || - (this.DefaultProject != null && - this.DefaultProject.Equals(input.DefaultProject)) - ) && base.Equals(input) && - ( - this.DiscountAccount == input.DiscountAccount || - (this.DiscountAccount != null && - this.DiscountAccount.Equals(input.DiscountAccount)) - ) && base.Equals(input) && - ( - this.DiscountSubaccount == input.DiscountSubaccount || - (this.DiscountSubaccount != null && - this.DiscountSubaccount.Equals(input.DiscountSubaccount)) - ) && base.Equals(input) && - ( - this.EntityUsageType == input.EntityUsageType || - (this.EntityUsageType != null && - this.EntityUsageType.Equals(input.EntityUsageType)) - ) && base.Equals(input) && - ( - this.FedExGroundCollect == input.FedExGroundCollect || - (this.FedExGroundCollect != null && - this.FedExGroundCollect.Equals(input.FedExGroundCollect)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.FreightAccount == input.FreightAccount || - (this.FreightAccount != null && - this.FreightAccount.Equals(input.FreightAccount)) - ) && base.Equals(input) && - ( - this.FreightSubaccount == input.FreightSubaccount || - (this.FreightSubaccount != null && - this.FreightSubaccount.Equals(input.FreightSubaccount)) - ) && base.Equals(input) && - ( - this.Insurance == input.Insurance || - (this.Insurance != null && - this.Insurance.Equals(input.Insurance)) - ) && base.Equals(input) && - ( - this.LeadTimeInDays == input.LeadTimeInDays || - (this.LeadTimeInDays != null && - this.LeadTimeInDays.Equals(input.LeadTimeInDays)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.Opportunities == input.Opportunities || - this.Opportunities != null && - this.Opportunities.SequenceEqual(input.Opportunities) - ) && base.Equals(input) && - ( - this.OrderPriority == input.OrderPriority || - (this.OrderPriority != null && - this.OrderPriority.Equals(input.OrderPriority)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.SameAsDefaultLocation == input.SameAsDefaultLocation || - (this.SameAsDefaultLocation != null && - this.SameAsDefaultLocation.Equals(input.SameAsDefaultLocation)) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.ShippingBranch == input.ShippingBranch || - (this.ShippingBranch != null && - this.ShippingBranch.Equals(input.ShippingBranch)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZone == input.ShippingZone || - (this.ShippingZone != null && - this.ShippingZone.Equals(input.ShippingZone)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.TaxExemptionNumber == input.TaxExemptionNumber || - (this.TaxExemptionNumber != null && - this.TaxExemptionNumber.Equals(input.TaxExemptionNumber)) - ) && base.Equals(input) && - ( - this.TaxRegistrationID == input.TaxRegistrationID || - (this.TaxRegistrationID != null && - this.TaxRegistrationID.Equals(input.TaxRegistrationID)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.AddressSameAsMain != null) - hashCode = hashCode * 59 + this.AddressSameAsMain.GetHashCode(); - if (this.AddressValidated != null) - hashCode = hashCode * 59 + this.AddressValidated.GetHashCode(); - if (this.ARAccount != null) - hashCode = hashCode * 59 + this.ARAccount.GetHashCode(); - if (this.ARSubaccount != null) - hashCode = hashCode * 59 + this.ARSubaccount.GetHashCode(); - if (this.BusinessAccountID != null) - hashCode = hashCode * 59 + this.BusinessAccountID.GetHashCode(); - if (this.Calendar != null) - hashCode = hashCode * 59 + this.Calendar.GetHashCode(); - if (this.Cases != null) - hashCode = hashCode * 59 + this.Cases.GetHashCode(); - if (this.Contact != null) - hashCode = hashCode * 59 + this.Contact.GetHashCode(); - if (this.DefaultProject != null) - hashCode = hashCode * 59 + this.DefaultProject.GetHashCode(); - if (this.DiscountAccount != null) - hashCode = hashCode * 59 + this.DiscountAccount.GetHashCode(); - if (this.DiscountSubaccount != null) - hashCode = hashCode * 59 + this.DiscountSubaccount.GetHashCode(); - if (this.EntityUsageType != null) - hashCode = hashCode * 59 + this.EntityUsageType.GetHashCode(); - if (this.FedExGroundCollect != null) - hashCode = hashCode * 59 + this.FedExGroundCollect.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.FreightAccount != null) - hashCode = hashCode * 59 + this.FreightAccount.GetHashCode(); - if (this.FreightSubaccount != null) - hashCode = hashCode * 59 + this.FreightSubaccount.GetHashCode(); - if (this.Insurance != null) - hashCode = hashCode * 59 + this.Insurance.GetHashCode(); - if (this.LeadTimeInDays != null) - hashCode = hashCode * 59 + this.LeadTimeInDays.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.Opportunities != null) - hashCode = hashCode * 59 + this.Opportunities.GetHashCode(); - if (this.OrderPriority != null) - hashCode = hashCode * 59 + this.OrderPriority.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.SameAsDefaultLocation != null) - hashCode = hashCode * 59 + this.SameAsDefaultLocation.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.ShippingBranch != null) - hashCode = hashCode * 59 + this.ShippingBranch.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZone != null) - hashCode = hashCode * 59 + this.ShippingZone.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.TaxExemptionNumber != null) - hashCode = hashCode * 59 + this.TaxExemptionNumber.GetHashCode(); - if (this.TaxRegistrationID != null) - hashCode = hashCode * 59 + this.TaxRegistrationID.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountLocationContact.cs b/Default.18.200.001/Model/AccountLocationContact.cs deleted file mode 100644 index 5ca92915..00000000 --- a/Default.18.200.001/Model/AccountLocationContact.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountLocationContact - /// - [DataContract] - public partial class AccountLocationContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attention. - /// companyName. - /// email. - /// fax. - /// faxType. - /// phone1. - /// phone1Type. - /// phone2. - /// phone2Type. - /// sameAsMain. - /// webSite. - public AccountLocationContact(StringValue attention = default(StringValue), StringValue companyName = default(StringValue), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue faxType = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone1Type = default(StringValue), StringValue phone2 = default(StringValue), StringValue phone2Type = default(StringValue), BooleanValue sameAsMain = default(BooleanValue), StringValue webSite = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attention = attention; - this.CompanyName = companyName; - this.Email = email; - this.Fax = fax; - this.FaxType = faxType; - this.Phone1 = phone1; - this.Phone1Type = phone1Type; - this.Phone2 = phone2; - this.Phone2Type = phone2Type; - this.SameAsMain = sameAsMain; - this.WebSite = webSite; - } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets CompanyName - /// - [DataMember(Name="CompanyName", EmitDefaultValue=false)] - public StringValue CompanyName { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets FaxType - /// - [DataMember(Name="FaxType", EmitDefaultValue=false)] - public StringValue FaxType { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Phone1Type - /// - [DataMember(Name="Phone1Type", EmitDefaultValue=false)] - public StringValue Phone1Type { get; set; } - - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } - - /// - /// Gets or Sets Phone2Type - /// - [DataMember(Name="Phone2Type", EmitDefaultValue=false)] - public StringValue Phone2Type { get; set; } - - /// - /// Gets or Sets SameAsMain - /// - [DataMember(Name="SameAsMain", EmitDefaultValue=false)] - public BooleanValue SameAsMain { get; set; } - - /// - /// Gets or Sets WebSite - /// - [DataMember(Name="WebSite", EmitDefaultValue=false)] - public StringValue WebSite { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountLocationContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" FaxType: ").Append(FaxType).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone1Type: ").Append(Phone1Type).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" Phone2Type: ").Append(Phone2Type).Append("\n"); - sb.Append(" SameAsMain: ").Append(SameAsMain).Append("\n"); - sb.Append(" WebSite: ").Append(WebSite).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountLocationContact); - } - - /// - /// Returns true if AccountLocationContact instances are equal - /// - /// Instance of AccountLocationContact to be compared - /// Boolean - public bool Equals(AccountLocationContact input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.CompanyName == input.CompanyName || - (this.CompanyName != null && - this.CompanyName.Equals(input.CompanyName)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.FaxType == input.FaxType || - (this.FaxType != null && - this.FaxType.Equals(input.FaxType)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone1Type == input.Phone1Type || - (this.Phone1Type != null && - this.Phone1Type.Equals(input.Phone1Type)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.Phone2Type == input.Phone2Type || - (this.Phone2Type != null && - this.Phone2Type.Equals(input.Phone2Type)) - ) && base.Equals(input) && - ( - this.SameAsMain == input.SameAsMain || - (this.SameAsMain != null && - this.SameAsMain.Equals(input.SameAsMain)) - ) && base.Equals(input) && - ( - this.WebSite == input.WebSite || - (this.WebSite != null && - this.WebSite.Equals(input.WebSite)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.CompanyName != null) - hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.FaxType != null) - hashCode = hashCode * 59 + this.FaxType.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone1Type != null) - hashCode = hashCode * 59 + this.Phone1Type.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.Phone2Type != null) - hashCode = hashCode * 59 + this.Phone2Type.GetHashCode(); - if (this.SameAsMain != null) - hashCode = hashCode * 59 + this.SameAsMain.GetHashCode(); - if (this.WebSite != null) - hashCode = hashCode * 59 + this.WebSite.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountSummaryInquiry.cs b/Default.18.200.001/Model/AccountSummaryInquiry.cs deleted file mode 100644 index 2f57fb3f..00000000 --- a/Default.18.200.001/Model/AccountSummaryInquiry.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountSummaryInquiry - /// - [DataContract] - public partial class AccountSummaryInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountClass. - /// branch. - /// ledger. - /// period. - /// results. - /// subaccount. - public AccountSummaryInquiry(StringValue accountClass = default(StringValue), StringValue branch = default(StringValue), StringValue ledger = default(StringValue), StringValue period = default(StringValue), IEnumerable results = default(IEnumerable), StringValue subaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountClass = accountClass; - this.Branch = branch; - this.Ledger = ledger; - this.Period = period; - this.Results = results; - this.Subaccount = subaccount; - } - - /// - /// Gets or Sets AccountClass - /// - [DataMember(Name="AccountClass", EmitDefaultValue=false)] - public StringValue AccountClass { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } - - /// - /// Gets or Sets Period - /// - [DataMember(Name="Period", EmitDefaultValue=false)] - public StringValue Period { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public IEnumerable Results { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountSummaryInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountClass: ").Append(AccountClass).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountSummaryInquiry); - } - - /// - /// Returns true if AccountSummaryInquiry instances are equal - /// - /// Instance of AccountSummaryInquiry to be compared - /// Boolean - public bool Equals(AccountSummaryInquiry input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountClass == input.AccountClass || - (this.AccountClass != null && - this.AccountClass.Equals(input.AccountClass)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountClass != null) - hashCode = hashCode * 59 + this.AccountClass.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AccountSummaryRow.cs b/Default.18.200.001/Model/AccountSummaryRow.cs deleted file mode 100644 index 0b5f4734..00000000 --- a/Default.18.200.001/Model/AccountSummaryRow.cs +++ /dev/null @@ -1,430 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AccountSummaryRow - /// - [DataContract] - public partial class AccountSummaryRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// accountClass. - /// beginingBalance. - /// branch. - /// consolidationAccount. - /// creditTotal. - /// currencyBeginingBalance. - /// currencyCreditTotal. - /// currencyDebitTotal. - /// currencyEndingBalance. - /// currencyID. - /// currencyPtdTotal. - /// debitTotal. - /// description. - /// endingBalance. - /// lastActivity. - /// ledgerID. - /// ptdTotal. - /// subaccount. - /// type. - public AccountSummaryRow(StringValue account = default(StringValue), StringValue accountClass = default(StringValue), DecimalValue beginingBalance = default(DecimalValue), StringValue branch = default(StringValue), StringValue consolidationAccount = default(StringValue), DecimalValue creditTotal = default(DecimalValue), DecimalValue currencyBeginingBalance = default(DecimalValue), DecimalValue currencyCreditTotal = default(DecimalValue), DecimalValue currencyDebitTotal = default(DecimalValue), DecimalValue currencyEndingBalance = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue currencyPtdTotal = default(DecimalValue), DecimalValue debitTotal = default(DecimalValue), StringValue description = default(StringValue), DecimalValue endingBalance = default(DecimalValue), StringValue lastActivity = default(StringValue), IntValue ledgerID = default(IntValue), DecimalValue ptdTotal = default(DecimalValue), StringValue subaccount = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.AccountClass = accountClass; - this.BeginingBalance = beginingBalance; - this.Branch = branch; - this.ConsolidationAccount = consolidationAccount; - this.CreditTotal = creditTotal; - this.CurrencyBeginingBalance = currencyBeginingBalance; - this.CurrencyCreditTotal = currencyCreditTotal; - this.CurrencyDebitTotal = currencyDebitTotal; - this.CurrencyEndingBalance = currencyEndingBalance; - this.CurrencyID = currencyID; - this.CurrencyPtdTotal = currencyPtdTotal; - this.DebitTotal = debitTotal; - this.Description = description; - this.EndingBalance = endingBalance; - this.LastActivity = lastActivity; - this.LedgerID = ledgerID; - this.PtdTotal = ptdTotal; - this.Subaccount = subaccount; - this.Type = type; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets AccountClass - /// - [DataMember(Name="AccountClass", EmitDefaultValue=false)] - public StringValue AccountClass { get; set; } - - /// - /// Gets or Sets BeginingBalance - /// - [DataMember(Name="BeginingBalance", EmitDefaultValue=false)] - public DecimalValue BeginingBalance { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ConsolidationAccount - /// - [DataMember(Name="ConsolidationAccount", EmitDefaultValue=false)] - public StringValue ConsolidationAccount { get; set; } - - /// - /// Gets or Sets CreditTotal - /// - [DataMember(Name="CreditTotal", EmitDefaultValue=false)] - public DecimalValue CreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyBeginingBalance - /// - [DataMember(Name="CurrencyBeginingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyBeginingBalance { get; set; } - - /// - /// Gets or Sets CurrencyCreditTotal - /// - [DataMember(Name="CurrencyCreditTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyCreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyDebitTotal - /// - [DataMember(Name="CurrencyDebitTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyDebitTotal { get; set; } - - /// - /// Gets or Sets CurrencyEndingBalance - /// - [DataMember(Name="CurrencyEndingBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyEndingBalance { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyPtdTotal - /// - [DataMember(Name="CurrencyPtdTotal", EmitDefaultValue=false)] - public DecimalValue CurrencyPtdTotal { get; set; } - - /// - /// Gets or Sets DebitTotal - /// - [DataMember(Name="DebitTotal", EmitDefaultValue=false)] - public DecimalValue DebitTotal { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EndingBalance - /// - [DataMember(Name="EndingBalance", EmitDefaultValue=false)] - public DecimalValue EndingBalance { get; set; } - - /// - /// Gets or Sets LastActivity - /// - [DataMember(Name="LastActivity", EmitDefaultValue=false)] - public StringValue LastActivity { get; set; } - - /// - /// Gets or Sets LedgerID - /// - [DataMember(Name="LedgerID", EmitDefaultValue=false)] - public IntValue LedgerID { get; set; } - - /// - /// Gets or Sets PtdTotal - /// - [DataMember(Name="PtdTotal", EmitDefaultValue=false)] - public DecimalValue PtdTotal { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AccountSummaryRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" AccountClass: ").Append(AccountClass).Append("\n"); - sb.Append(" BeginingBalance: ").Append(BeginingBalance).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ConsolidationAccount: ").Append(ConsolidationAccount).Append("\n"); - sb.Append(" CreditTotal: ").Append(CreditTotal).Append("\n"); - sb.Append(" CurrencyBeginingBalance: ").Append(CurrencyBeginingBalance).Append("\n"); - sb.Append(" CurrencyCreditTotal: ").Append(CurrencyCreditTotal).Append("\n"); - sb.Append(" CurrencyDebitTotal: ").Append(CurrencyDebitTotal).Append("\n"); - sb.Append(" CurrencyEndingBalance: ").Append(CurrencyEndingBalance).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyPtdTotal: ").Append(CurrencyPtdTotal).Append("\n"); - sb.Append(" DebitTotal: ").Append(DebitTotal).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EndingBalance: ").Append(EndingBalance).Append("\n"); - sb.Append(" LastActivity: ").Append(LastActivity).Append("\n"); - sb.Append(" LedgerID: ").Append(LedgerID).Append("\n"); - sb.Append(" PtdTotal: ").Append(PtdTotal).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AccountSummaryRow); - } - - /// - /// Returns true if AccountSummaryRow instances are equal - /// - /// Instance of AccountSummaryRow to be compared - /// Boolean - public bool Equals(AccountSummaryRow input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.AccountClass == input.AccountClass || - (this.AccountClass != null && - this.AccountClass.Equals(input.AccountClass)) - ) && base.Equals(input) && - ( - this.BeginingBalance == input.BeginingBalance || - (this.BeginingBalance != null && - this.BeginingBalance.Equals(input.BeginingBalance)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ConsolidationAccount == input.ConsolidationAccount || - (this.ConsolidationAccount != null && - this.ConsolidationAccount.Equals(input.ConsolidationAccount)) - ) && base.Equals(input) && - ( - this.CreditTotal == input.CreditTotal || - (this.CreditTotal != null && - this.CreditTotal.Equals(input.CreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyBeginingBalance == input.CurrencyBeginingBalance || - (this.CurrencyBeginingBalance != null && - this.CurrencyBeginingBalance.Equals(input.CurrencyBeginingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyCreditTotal == input.CurrencyCreditTotal || - (this.CurrencyCreditTotal != null && - this.CurrencyCreditTotal.Equals(input.CurrencyCreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyDebitTotal == input.CurrencyDebitTotal || - (this.CurrencyDebitTotal != null && - this.CurrencyDebitTotal.Equals(input.CurrencyDebitTotal)) - ) && base.Equals(input) && - ( - this.CurrencyEndingBalance == input.CurrencyEndingBalance || - (this.CurrencyEndingBalance != null && - this.CurrencyEndingBalance.Equals(input.CurrencyEndingBalance)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyPtdTotal == input.CurrencyPtdTotal || - (this.CurrencyPtdTotal != null && - this.CurrencyPtdTotal.Equals(input.CurrencyPtdTotal)) - ) && base.Equals(input) && - ( - this.DebitTotal == input.DebitTotal || - (this.DebitTotal != null && - this.DebitTotal.Equals(input.DebitTotal)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EndingBalance == input.EndingBalance || - (this.EndingBalance != null && - this.EndingBalance.Equals(input.EndingBalance)) - ) && base.Equals(input) && - ( - this.LastActivity == input.LastActivity || - (this.LastActivity != null && - this.LastActivity.Equals(input.LastActivity)) - ) && base.Equals(input) && - ( - this.LedgerID == input.LedgerID || - (this.LedgerID != null && - this.LedgerID.Equals(input.LedgerID)) - ) && base.Equals(input) && - ( - this.PtdTotal == input.PtdTotal || - (this.PtdTotal != null && - this.PtdTotal.Equals(input.PtdTotal)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.AccountClass != null) - hashCode = hashCode * 59 + this.AccountClass.GetHashCode(); - if (this.BeginingBalance != null) - hashCode = hashCode * 59 + this.BeginingBalance.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ConsolidationAccount != null) - hashCode = hashCode * 59 + this.ConsolidationAccount.GetHashCode(); - if (this.CreditTotal != null) - hashCode = hashCode * 59 + this.CreditTotal.GetHashCode(); - if (this.CurrencyBeginingBalance != null) - hashCode = hashCode * 59 + this.CurrencyBeginingBalance.GetHashCode(); - if (this.CurrencyCreditTotal != null) - hashCode = hashCode * 59 + this.CurrencyCreditTotal.GetHashCode(); - if (this.CurrencyDebitTotal != null) - hashCode = hashCode * 59 + this.CurrencyDebitTotal.GetHashCode(); - if (this.CurrencyEndingBalance != null) - hashCode = hashCode * 59 + this.CurrencyEndingBalance.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyPtdTotal != null) - hashCode = hashCode * 59 + this.CurrencyPtdTotal.GetHashCode(); - if (this.DebitTotal != null) - hashCode = hashCode * 59 + this.DebitTotal.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EndingBalance != null) - hashCode = hashCode * 59 + this.EndingBalance.GetHashCode(); - if (this.LastActivity != null) - hashCode = hashCode * 59 + this.LastActivity.GetHashCode(); - if (this.LedgerID != null) - hashCode = hashCode * 59 + this.LedgerID.GetHashCode(); - if (this.PtdTotal != null) - hashCode = hashCode * 59 + this.PtdTotal.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Actions/AcceptInvitationEvent.cs b/Default.18.200.001/Model/Actions/AcceptInvitationEvent.cs deleted file mode 100644 index a5b29e2a..00000000 --- a/Default.18.200.001/Model/Actions/AcceptInvitationEvent.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class AcceptInvitationEvent : EntityAction - { - public AcceptInvitationEvent(Event entity) : base(entity) - { } - public AcceptInvitationEvent() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ApproveChangeOrder.cs b/Default.18.200.001/Model/Actions/ApproveChangeOrder.cs deleted file mode 100644 index 940bfa1b..00000000 --- a/Default.18.200.001/Model/Actions/ApproveChangeOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ApproveChangeOrder : EntityAction - { - public ApproveChangeOrder(ChangeOrder entity) : base(entity) - { } - public ApproveChangeOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ApproveExpenseClaim.cs b/Default.18.200.001/Model/Actions/ApproveExpenseClaim.cs deleted file mode 100644 index 86482197..00000000 --- a/Default.18.200.001/Model/Actions/ApproveExpenseClaim.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ApproveExpenseClaim : EntityAction - { - public ApproveExpenseClaim(ExpenseClaim entity) : base(entity) - { } - public ApproveExpenseClaim() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ApproveExpenseReceipt.cs b/Default.18.200.001/Model/Actions/ApproveExpenseReceipt.cs deleted file mode 100644 index 82609ae2..00000000 --- a/Default.18.200.001/Model/Actions/ApproveExpenseReceipt.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ApproveExpenseReceipt : EntityAction - { - public ApproveExpenseReceipt(ExpenseReceipt entity) : base(entity) - { } - public ApproveExpenseReceipt() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ApproveProFormaInvoice.cs b/Default.18.200.001/Model/Actions/ApproveProFormaInvoice.cs deleted file mode 100644 index cdfc2a3f..00000000 --- a/Default.18.200.001/Model/Actions/ApproveProFormaInvoice.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ApproveProFormaInvoice : EntityAction - { - public ApproveProFormaInvoice(ProFormaInvoice entity) : base(entity) - { } - public ApproveProFormaInvoice() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ApproveProject.cs b/Default.18.200.001/Model/Actions/ApproveProject.cs deleted file mode 100644 index 9944e6ef..00000000 --- a/Default.18.200.001/Model/Actions/ApproveProject.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ApproveProject : EntityAction - { - public ApproveProject(Project entity) : base(entity) - { } - public ApproveProject() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ArchiveEmail.cs b/Default.18.200.001/Model/Actions/ArchiveEmail.cs deleted file mode 100644 index a08c2dbe..00000000 --- a/Default.18.200.001/Model/Actions/ArchiveEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ArchiveEmail : EntityAction - { - public ArchiveEmail(Email entity) : base(entity) - { } - public ArchiveEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/AssignCase.cs b/Default.18.200.001/Model/Actions/AssignCase.cs deleted file mode 100644 index 8d96ddbf..00000000 --- a/Default.18.200.001/Model/Actions/AssignCase.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class AssignCase : EntityAction - { - public AssignCase(Case entity) : base(entity) - { } - public AssignCase() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/AutoRecalculateDiscounts.cs b/Default.18.200.001/Model/Actions/AutoRecalculateDiscounts.cs deleted file mode 100644 index d9414582..00000000 --- a/Default.18.200.001/Model/Actions/AutoRecalculateDiscounts.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class AutoRecalculateDiscounts : EntityAction - { - public AutoRecalculateDiscounts(SalesOrder entity) : base(entity) - { } - public AutoRecalculateDiscounts() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CancelActivityEvent.cs b/Default.18.200.001/Model/Actions/CancelActivityEvent.cs deleted file mode 100644 index 923cdc7c..00000000 --- a/Default.18.200.001/Model/Actions/CancelActivityEvent.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CancelActivityEvent : EntityAction - { - public CancelActivityEvent(Event entity) : base(entity) - { } - public CancelActivityEvent() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CancelActivityTask.cs b/Default.18.200.001/Model/Actions/CancelActivityTask.cs deleted file mode 100644 index 1256e084..00000000 --- a/Default.18.200.001/Model/Actions/CancelActivityTask.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CancelActivityTask : EntityAction - { - public CancelActivityTask(Task entity) : base(entity) - { } - public CancelActivityTask() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CancelPhysicalInventory.cs b/Default.18.200.001/Model/Actions/CancelPhysicalInventory.cs deleted file mode 100644 index ce5ed5f5..00000000 --- a/Default.18.200.001/Model/Actions/CancelPhysicalInventory.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CancelPhysicalInventory : EntityAction - { - public CancelPhysicalInventory(PhysicalInventoryReview entity) : base(entity) - { } - public CancelPhysicalInventory() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CancelSalesOrder.cs b/Default.18.200.001/Model/Actions/CancelSalesOrder.cs deleted file mode 100644 index e7ee1c89..00000000 --- a/Default.18.200.001/Model/Actions/CancelSalesOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CancelSalesOrder : EntityAction - { - public CancelSalesOrder(SalesOrder entity) : base(entity) - { } - public CancelSalesOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CancelSendingEmail.cs b/Default.18.200.001/Model/Actions/CancelSendingEmail.cs deleted file mode 100644 index eb225aad..00000000 --- a/Default.18.200.001/Model/Actions/CancelSendingEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CancelSendingEmail : EntityAction - { - public CancelSendingEmail(Email entity) : base(entity) - { } - public CancelSendingEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CaptureCreditCardPayment.cs b/Default.18.200.001/Model/Actions/CaptureCreditCardPayment.cs deleted file mode 100644 index 6c7a26eb..00000000 --- a/Default.18.200.001/Model/Actions/CaptureCreditCardPayment.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CaptureCreditCardPayment : EntityAction - { - public CaptureCreditCardPayment(Payment entity) : base(entity) - { } - public CaptureCreditCardPayment() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs b/Default.18.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs deleted file mode 100644 index 6864cc97..00000000 --- a/Default.18.200.001/Model/Actions/CheckForBusinessAccountDuplicates.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CheckForBusinessAccountDuplicates : EntityAction - { - public CheckForBusinessAccountDuplicates(BusinessAccount entity) : base(entity) - { } - public CheckForBusinessAccountDuplicates() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CheckForContactDuplicates.cs b/Default.18.200.001/Model/Actions/CheckForContactDuplicates.cs deleted file mode 100644 index 61ad47d3..00000000 --- a/Default.18.200.001/Model/Actions/CheckForContactDuplicates.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CheckForContactDuplicates : EntityAction - { - public CheckForContactDuplicates(Contact entity) : base(entity) - { } - public CheckForContactDuplicates() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CheckLeadForDuplicates.cs b/Default.18.200.001/Model/Actions/CheckLeadForDuplicates.cs deleted file mode 100644 index 6b679268..00000000 --- a/Default.18.200.001/Model/Actions/CheckLeadForDuplicates.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CheckLeadForDuplicates : EntityAction - { - public CheckLeadForDuplicates(Lead entity) : base(entity) - { } - public CheckLeadForDuplicates() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ClaimExpenseReceipt.cs b/Default.18.200.001/Model/Actions/ClaimExpenseReceipt.cs deleted file mode 100644 index b05693cd..00000000 --- a/Default.18.200.001/Model/Actions/ClaimExpenseReceipt.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ClaimExpenseReceipt : EntityAction - { - public ClaimExpenseReceipt(ExpenseReceipt entity) : base(entity) - { } - public ClaimExpenseReceipt() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CloseContactAsDuplicate.cs b/Default.18.200.001/Model/Actions/CloseContactAsDuplicate.cs deleted file mode 100644 index fc28fa48..00000000 --- a/Default.18.200.001/Model/Actions/CloseContactAsDuplicate.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CloseContactAsDuplicate : EntityAction - { - public CloseContactAsDuplicate(Contact entity) : base(entity) - { } - public CloseContactAsDuplicate() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CloseLeadAsDuplicate.cs b/Default.18.200.001/Model/Actions/CloseLeadAsDuplicate.cs deleted file mode 100644 index 69df64c0..00000000 --- a/Default.18.200.001/Model/Actions/CloseLeadAsDuplicate.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CloseLeadAsDuplicate : EntityAction - { - public CloseLeadAsDuplicate(Lead entity) : base(entity) - { } - public CloseLeadAsDuplicate() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CompleteActivity.cs b/Default.18.200.001/Model/Actions/CompleteActivity.cs deleted file mode 100644 index 24571dcc..00000000 --- a/Default.18.200.001/Model/Actions/CompleteActivity.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CompleteActivity : EntityAction - { - public CompleteActivity(Activity entity) : base(entity) - { } - public CompleteActivity() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CompleteAndFollowUpEvent.cs b/Default.18.200.001/Model/Actions/CompleteAndFollowUpEvent.cs deleted file mode 100644 index 7b641d83..00000000 --- a/Default.18.200.001/Model/Actions/CompleteAndFollowUpEvent.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CompleteAndFollowUpEvent : EntityAction - { - public CompleteAndFollowUpEvent(Event entity) : base(entity) - { } - public CompleteAndFollowUpEvent() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CompleteAndFollowUpTask.cs b/Default.18.200.001/Model/Actions/CompleteAndFollowUpTask.cs deleted file mode 100644 index 5aa8507d..00000000 --- a/Default.18.200.001/Model/Actions/CompleteAndFollowUpTask.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CompleteAndFollowUpTask : EntityAction - { - public CompleteAndFollowUpTask(Task entity) : base(entity) - { } - public CompleteAndFollowUpTask() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CompleteEvent.cs b/Default.18.200.001/Model/Actions/CompleteEvent.cs deleted file mode 100644 index 2a0a9a92..00000000 --- a/Default.18.200.001/Model/Actions/CompleteEvent.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CompleteEvent : EntityAction - { - public CompleteEvent(Event entity) : base(entity) - { } - public CompleteEvent() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CompletePhysicalInventory.cs b/Default.18.200.001/Model/Actions/CompletePhysicalInventory.cs deleted file mode 100644 index b672fd13..00000000 --- a/Default.18.200.001/Model/Actions/CompletePhysicalInventory.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CompletePhysicalInventory : EntityAction - { - public CompletePhysicalInventory(PhysicalInventoryReview entity) : base(entity) - { } - public CompletePhysicalInventory() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CompleteTask.cs b/Default.18.200.001/Model/Actions/CompleteTask.cs deleted file mode 100644 index a7b1d708..00000000 --- a/Default.18.200.001/Model/Actions/CompleteTask.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CompleteTask : EntityAction - { - public CompleteTask(Task entity) : base(entity) - { } - public CompleteTask() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CompleteTimeEntry.cs b/Default.18.200.001/Model/Actions/CompleteTimeEntry.cs deleted file mode 100644 index 50d285f4..00000000 --- a/Default.18.200.001/Model/Actions/CompleteTimeEntry.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CompleteTimeEntry : EntityAction - { - public CompleteTimeEntry(TimeEntry entity) : base(entity) - { } - public CompleteTimeEntry() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ConfirmShipment.cs b/Default.18.200.001/Model/Actions/ConfirmShipment.cs deleted file mode 100644 index ff2d75d2..00000000 --- a/Default.18.200.001/Model/Actions/ConfirmShipment.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ConfirmShipment : EntityAction - { - public ConfirmShipment(Shipment entity) : base(entity) - { } - public ConfirmShipment() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs b/Default.18.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs deleted file mode 100644 index a6271f16..00000000 --- a/Default.18.200.001/Model/Actions/ConvertBusinessAccountToCustomer.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ConvertBusinessAccountToCustomer : EntityAction - { - public ConvertBusinessAccountToCustomer(BusinessAccount entity) : base(entity) - { } - public ConvertBusinessAccountToCustomer() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs b/Default.18.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs deleted file mode 100644 index fe7d0448..00000000 --- a/Default.18.200.001/Model/Actions/ConvertBusinessAccountToVendor.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ConvertBusinessAccountToVendor : EntityAction - { - public ConvertBusinessAccountToVendor(BusinessAccount entity) : base(entity) - { } - public ConvertBusinessAccountToVendor() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ConvertLeadToContact.cs b/Default.18.200.001/Model/Actions/ConvertLeadToContact.cs deleted file mode 100644 index 342eec0e..00000000 --- a/Default.18.200.001/Model/Actions/ConvertLeadToContact.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ConvertLeadToContact : EntityAction - { - public ConvertLeadToContact(Lead entity) : base(entity) - { } - public ConvertLeadToContact() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ConvertLeadToOpportunity.cs b/Default.18.200.001/Model/Actions/ConvertLeadToOpportunity.cs deleted file mode 100644 index 04647a43..00000000 --- a/Default.18.200.001/Model/Actions/ConvertLeadToOpportunity.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ConvertLeadToOpportunity : EntityAction - { - public ConvertLeadToOpportunity(Lead entity) : base(entity) - { } - public ConvertLeadToOpportunity() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CopyFromCompany.cs b/Default.18.200.001/Model/Actions/CopyFromCompany.cs deleted file mode 100644 index e4184f0d..00000000 --- a/Default.18.200.001/Model/Actions/CopyFromCompany.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CopyFromCompany : EntityAction - { - public CopyFromCompany(Contact entity) : base(entity) - { } - public CopyFromCompany() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CorrectShipment.cs b/Default.18.200.001/Model/Actions/CorrectShipment.cs deleted file mode 100644 index 156a1ae3..00000000 --- a/Default.18.200.001/Model/Actions/CorrectShipment.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CorrectShipment : EntityAction - { - public CorrectShipment(Shipment entity) : base(entity) - { } - public CorrectShipment() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CreateAPBill.cs b/Default.18.200.001/Model/Actions/CreateAPBill.cs deleted file mode 100644 index f91d20d9..00000000 --- a/Default.18.200.001/Model/Actions/CreateAPBill.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CreateAPBill : EntityAction - { - public CreateAPBill(PurchaseReceipt entity) : base(entity) - { } - public CreateAPBill() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CreateCaseFromEmail.cs b/Default.18.200.001/Model/Actions/CreateCaseFromEmail.cs deleted file mode 100644 index 83dc08ec..00000000 --- a/Default.18.200.001/Model/Actions/CreateCaseFromEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CreateCaseFromEmail : EntityAction - { - public CreateCaseFromEmail(Email entity) : base(entity) - { } - public CreateCaseFromEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CreateContactFromEmail.cs b/Default.18.200.001/Model/Actions/CreateContactFromEmail.cs deleted file mode 100644 index 198c2c16..00000000 --- a/Default.18.200.001/Model/Actions/CreateContactFromEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CreateContactFromEmail : EntityAction - { - public CreateContactFromEmail(Email entity) : base(entity) - { } - public CreateContactFromEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CreateContactFromOpportunity.cs b/Default.18.200.001/Model/Actions/CreateContactFromOpportunity.cs deleted file mode 100644 index 1ec5c4f8..00000000 --- a/Default.18.200.001/Model/Actions/CreateContactFromOpportunity.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CreateContactFromOpportunity : EntityAction - { - public CreateContactFromOpportunity(Opportunity entity) : base(entity) - { } - public CreateContactFromOpportunity() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CreateEventFromEmail.cs b/Default.18.200.001/Model/Actions/CreateEventFromEmail.cs deleted file mode 100644 index efcfe509..00000000 --- a/Default.18.200.001/Model/Actions/CreateEventFromEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CreateEventFromEmail : EntityAction - { - public CreateEventFromEmail(Email entity) : base(entity) - { } - public CreateEventFromEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CreateExpenseReceiptFromEmail.cs b/Default.18.200.001/Model/Actions/CreateExpenseReceiptFromEmail.cs deleted file mode 100644 index 390497be..00000000 --- a/Default.18.200.001/Model/Actions/CreateExpenseReceiptFromEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CreateExpenseReceiptFromEmail : EntityAction - { - public CreateExpenseReceiptFromEmail(Email entity) : base(entity) - { } - public CreateExpenseReceiptFromEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CreateLeadFromEmail.cs b/Default.18.200.001/Model/Actions/CreateLeadFromEmail.cs deleted file mode 100644 index b7aad08f..00000000 --- a/Default.18.200.001/Model/Actions/CreateLeadFromEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CreateLeadFromEmail : EntityAction - { - public CreateLeadFromEmail(Email entity) : base(entity) - { } - public CreateLeadFromEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CreateOpportunityFromEmail.cs b/Default.18.200.001/Model/Actions/CreateOpportunityFromEmail.cs deleted file mode 100644 index 0921532c..00000000 --- a/Default.18.200.001/Model/Actions/CreateOpportunityFromEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CreateOpportunityFromEmail : EntityAction - { - public CreateOpportunityFromEmail(Email entity) : base(entity) - { } - public CreateOpportunityFromEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CreateOpportunityInvoice.cs b/Default.18.200.001/Model/Actions/CreateOpportunityInvoice.cs deleted file mode 100644 index 4655eda4..00000000 --- a/Default.18.200.001/Model/Actions/CreateOpportunityInvoice.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CreateOpportunityInvoice : EntityAction - { - public CreateOpportunityInvoice(Opportunity entity) : base(entity) - { } - public CreateOpportunityInvoice() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/CreateTaskFromEmail.cs b/Default.18.200.001/Model/Actions/CreateTaskFromEmail.cs deleted file mode 100644 index b3d041e7..00000000 --- a/Default.18.200.001/Model/Actions/CreateTaskFromEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class CreateTaskFromEmail : EntityAction - { - public CreateTaskFromEmail(Email entity) : base(entity) - { } - public CreateTaskFromEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/DownloadEmlFileEmail.cs b/Default.18.200.001/Model/Actions/DownloadEmlFileEmail.cs deleted file mode 100644 index 5b35306c..00000000 --- a/Default.18.200.001/Model/Actions/DownloadEmlFileEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class DownloadEmlFileEmail : EntityAction - { - public DownloadEmlFileEmail(Email entity) : base(entity) - { } - public DownloadEmlFileEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/EmailChangeOrder.cs b/Default.18.200.001/Model/Actions/EmailChangeOrder.cs deleted file mode 100644 index f0089412..00000000 --- a/Default.18.200.001/Model/Actions/EmailChangeOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class EmailChangeOrder : EntityAction - { - public EmailChangeOrder(ChangeOrder entity) : base(entity) - { } - public EmailChangeOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/EmailProFormaInvoice.cs b/Default.18.200.001/Model/Actions/EmailProFormaInvoice.cs deleted file mode 100644 index 321b5353..00000000 --- a/Default.18.200.001/Model/Actions/EmailProFormaInvoice.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class EmailProFormaInvoice : EntityAction - { - public EmailProFormaInvoice(ProFormaInvoice entity) : base(entity) - { } - public EmailProFormaInvoice() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/EnterAPBill.cs b/Default.18.200.001/Model/Actions/EnterAPBill.cs deleted file mode 100644 index 0fe181f0..00000000 --- a/Default.18.200.001/Model/Actions/EnterAPBill.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class EnterAPBill : EntityAction - { - public EnterAPBill(PurchaseOrder entity) : base(entity) - { } - public EnterAPBill() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/EnterPOReceipt.cs b/Default.18.200.001/Model/Actions/EnterPOReceipt.cs deleted file mode 100644 index 5f5ea50b..00000000 --- a/Default.18.200.001/Model/Actions/EnterPOReceipt.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class EnterPOReceipt : EntityAction - { - public EnterPOReceipt(PurchaseOrder entity) : base(entity) - { } - public EnterPOReceipt() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ExportCardEvent.cs b/Default.18.200.001/Model/Actions/ExportCardEvent.cs deleted file mode 100644 index 127d39fe..00000000 --- a/Default.18.200.001/Model/Actions/ExportCardEvent.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ExportCardEvent : EntityAction - { - public ExportCardEvent(Event entity) : base(entity) - { } - public ExportCardEvent() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/FinishCountingPhysicalInventory.cs b/Default.18.200.001/Model/Actions/FinishCountingPhysicalInventory.cs deleted file mode 100644 index c3a6d30c..00000000 --- a/Default.18.200.001/Model/Actions/FinishCountingPhysicalInventory.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class FinishCountingPhysicalInventory : EntityAction - { - public FinishCountingPhysicalInventory(PhysicalInventoryReview entity) : base(entity) - { } - public FinishCountingPhysicalInventory() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/GeneratePeriods.cs b/Default.18.200.001/Model/Actions/GeneratePeriods.cs deleted file mode 100644 index b01d994e..00000000 --- a/Default.18.200.001/Model/Actions/GeneratePeriods.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class GeneratePeriods : EntityAction - { - public GeneratePeriods(FinancialPeriod entity) : base(entity) - { } - public GeneratePeriods() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/InviteAllEvent.cs b/Default.18.200.001/Model/Actions/InviteAllEvent.cs deleted file mode 100644 index c4b9ed40..00000000 --- a/Default.18.200.001/Model/Actions/InviteAllEvent.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class InviteAllEvent : EntityAction - { - public InviteAllEvent(Event entity) : base(entity) - { } - public InviteAllEvent() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/InviteEvent.cs b/Default.18.200.001/Model/Actions/InviteEvent.cs deleted file mode 100644 index 83678c96..00000000 --- a/Default.18.200.001/Model/Actions/InviteEvent.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class InviteEvent : EntityAction - { - public InviteEvent(Event entity) : base(entity) - { } - public InviteEvent() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/LockProjectBudget.cs b/Default.18.200.001/Model/Actions/LockProjectBudget.cs deleted file mode 100644 index ab2c53bd..00000000 --- a/Default.18.200.001/Model/Actions/LockProjectBudget.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class LockProjectBudget : EntityAction - { - public LockProjectBudget(Project entity) : base(entity) - { } - public LockProjectBudget() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/LockProjectCommitments.cs b/Default.18.200.001/Model/Actions/LockProjectCommitments.cs deleted file mode 100644 index b030a4ee..00000000 --- a/Default.18.200.001/Model/Actions/LockProjectCommitments.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class LockProjectCommitments : EntityAction - { - public LockProjectCommitments(Project entity) : base(entity) - { } - public LockProjectCommitments() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs b/Default.18.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs deleted file mode 100644 index 5c5422f0..00000000 --- a/Default.18.200.001/Model/Actions/MarkBusinessAccountAsValidated.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class MarkBusinessAccountAsValidated : EntityAction - { - public MarkBusinessAccountAsValidated(BusinessAccount entity) : base(entity) - { } - public MarkBusinessAccountAsValidated() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/MarkContactAsValidated.cs b/Default.18.200.001/Model/Actions/MarkContactAsValidated.cs deleted file mode 100644 index 0bea908e..00000000 --- a/Default.18.200.001/Model/Actions/MarkContactAsValidated.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class MarkContactAsValidated : EntityAction - { - public MarkContactAsValidated(Contact entity) : base(entity) - { } - public MarkContactAsValidated() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/OpenSalesOrder.cs b/Default.18.200.001/Model/Actions/OpenSalesOrder.cs deleted file mode 100644 index 9464e5c9..00000000 --- a/Default.18.200.001/Model/Actions/OpenSalesOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class OpenSalesOrder : EntityAction - { - public OpenSalesOrder(SalesOrder entity) : base(entity) - { } - public OpenSalesOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/OpenTimeEntry.cs b/Default.18.200.001/Model/Actions/OpenTimeEntry.cs deleted file mode 100644 index af76c9cd..00000000 --- a/Default.18.200.001/Model/Actions/OpenTimeEntry.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class OpenTimeEntry : EntityAction - { - public OpenTimeEntry(TimeEntry entity) : base(entity) - { } - public OpenTimeEntry() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/PrepareInvoice.cs b/Default.18.200.001/Model/Actions/PrepareInvoice.cs deleted file mode 100644 index a4e5530c..00000000 --- a/Default.18.200.001/Model/Actions/PrepareInvoice.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class PrepareInvoice : EntityAction - { - public PrepareInvoice(Shipment entity) : base(entity) - { } - public PrepareInvoice() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/PrepareSalesInvoice.cs b/Default.18.200.001/Model/Actions/PrepareSalesInvoice.cs deleted file mode 100644 index f8cd8f7e..00000000 --- a/Default.18.200.001/Model/Actions/PrepareSalesInvoice.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class PrepareSalesInvoice : EntityAction - { - public PrepareSalesInvoice(SalesOrder entity) : base(entity) - { } - public PrepareSalesInvoice() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ProcessAllEmailProcessing.cs b/Default.18.200.001/Model/Actions/ProcessAllEmailProcessing.cs deleted file mode 100644 index 897437ac..00000000 --- a/Default.18.200.001/Model/Actions/ProcessAllEmailProcessing.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ProcessAllEmailProcessing : EntityAction - { - public ProcessAllEmailProcessing(EmailProcessing entity) : base(entity) - { } - public ProcessAllEmailProcessing() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ProcessAllManageFinancialPeriods.cs b/Default.18.200.001/Model/Actions/ProcessAllManageFinancialPeriods.cs deleted file mode 100644 index 755fe307..00000000 --- a/Default.18.200.001/Model/Actions/ProcessAllManageFinancialPeriods.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ProcessAllManageFinancialPeriods : EntityAction - { - public ProcessAllManageFinancialPeriods(ManageFinancialPeriods entity) : base(entity) - { } - public ProcessAllManageFinancialPeriods() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ProcessEmail.cs b/Default.18.200.001/Model/Actions/ProcessEmail.cs deleted file mode 100644 index e0b3f776..00000000 --- a/Default.18.200.001/Model/Actions/ProcessEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ProcessEmail : EntityAction - { - public ProcessEmail(Email entity) : base(entity) - { } - public ProcessEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ProcessEmailProcessing.cs b/Default.18.200.001/Model/Actions/ProcessEmailProcessing.cs deleted file mode 100644 index 13093560..00000000 --- a/Default.18.200.001/Model/Actions/ProcessEmailProcessing.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ProcessEmailProcessing : EntityAction - { - public ProcessEmailProcessing(EmailProcessing entity) : base(entity) - { } - public ProcessEmailProcessing() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ProcessManageFinancialPeriods.cs b/Default.18.200.001/Model/Actions/ProcessManageFinancialPeriods.cs deleted file mode 100644 index 917a066f..00000000 --- a/Default.18.200.001/Model/Actions/ProcessManageFinancialPeriods.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ProcessManageFinancialPeriods : EntityAction - { - public ProcessManageFinancialPeriods(ManageFinancialPeriods entity) : base(entity) - { } - public ProcessManageFinancialPeriods() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ProjectBillingProcess.cs b/Default.18.200.001/Model/Actions/ProjectBillingProcess.cs deleted file mode 100644 index d033e26b..00000000 --- a/Default.18.200.001/Model/Actions/ProjectBillingProcess.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ProjectBillingProcess : EntityAction - { - public ProjectBillingProcess(ProjectBilling entity) : base(entity) - { } - public ProjectBillingProcess() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ProjectBillingProcessAll.cs b/Default.18.200.001/Model/Actions/ProjectBillingProcessAll.cs deleted file mode 100644 index a1acd859..00000000 --- a/Default.18.200.001/Model/Actions/ProjectBillingProcessAll.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ProjectBillingProcessAll : EntityAction - { - public ProjectBillingProcessAll(ProjectBilling entity) : base(entity) - { } - public ProjectBillingProcessAll() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/PutOnHoldExpenseClaim.cs b/Default.18.200.001/Model/Actions/PutOnHoldExpenseClaim.cs deleted file mode 100644 index 28089c54..00000000 --- a/Default.18.200.001/Model/Actions/PutOnHoldExpenseClaim.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class PutOnHoldExpenseClaim : EntityAction - { - public PutOnHoldExpenseClaim(ExpenseClaim entity) : base(entity) - { } - public PutOnHoldExpenseClaim() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/PutOnHoldExpenseReceipt.cs b/Default.18.200.001/Model/Actions/PutOnHoldExpenseReceipt.cs deleted file mode 100644 index c4ee68a0..00000000 --- a/Default.18.200.001/Model/Actions/PutOnHoldExpenseReceipt.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class PutOnHoldExpenseReceipt : EntityAction - { - public PutOnHoldExpenseReceipt(ExpenseReceipt entity) : base(entity) - { } - public PutOnHoldExpenseReceipt() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/RejectChangeOrder.cs b/Default.18.200.001/Model/Actions/RejectChangeOrder.cs deleted file mode 100644 index ba02bd7d..00000000 --- a/Default.18.200.001/Model/Actions/RejectChangeOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class RejectChangeOrder : EntityAction - { - public RejectChangeOrder(ChangeOrder entity) : base(entity) - { } - public RejectChangeOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/RejectExpenseClaim.cs b/Default.18.200.001/Model/Actions/RejectExpenseClaim.cs deleted file mode 100644 index 51583e0f..00000000 --- a/Default.18.200.001/Model/Actions/RejectExpenseClaim.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class RejectExpenseClaim : EntityAction - { - public RejectExpenseClaim(ExpenseClaim entity) : base(entity) - { } - public RejectExpenseClaim() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/RejectExpenseReceipt.cs b/Default.18.200.001/Model/Actions/RejectExpenseReceipt.cs deleted file mode 100644 index f48faeb2..00000000 --- a/Default.18.200.001/Model/Actions/RejectExpenseReceipt.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class RejectExpenseReceipt : EntityAction - { - public RejectExpenseReceipt(ExpenseReceipt entity) : base(entity) - { } - public RejectExpenseReceipt() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/RejectInvitationEvent.cs b/Default.18.200.001/Model/Actions/RejectInvitationEvent.cs deleted file mode 100644 index b641450c..00000000 --- a/Default.18.200.001/Model/Actions/RejectInvitationEvent.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class RejectInvitationEvent : EntityAction - { - public RejectInvitationEvent(Event entity) : base(entity) - { } - public RejectInvitationEvent() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/RejectProFormaInvoice.cs b/Default.18.200.001/Model/Actions/RejectProFormaInvoice.cs deleted file mode 100644 index ad8199c2..00000000 --- a/Default.18.200.001/Model/Actions/RejectProFormaInvoice.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class RejectProFormaInvoice : EntityAction - { - public RejectProFormaInvoice(ProFormaInvoice entity) : base(entity) - { } - public RejectProFormaInvoice() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/RejectProject.cs b/Default.18.200.001/Model/Actions/RejectProject.cs deleted file mode 100644 index 3d54b481..00000000 --- a/Default.18.200.001/Model/Actions/RejectProject.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class RejectProject : EntityAction - { - public RejectProject(Project entity) : base(entity) - { } - public RejectProject() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseAdjustment.cs b/Default.18.200.001/Model/Actions/ReleaseAdjustment.cs deleted file mode 100644 index 742654da..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseAdjustment.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseAdjustment : EntityAction - { - public ReleaseAdjustment(Adjustment entity) : base(entity) - { } - public ReleaseAdjustment() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseBill.cs b/Default.18.200.001/Model/Actions/ReleaseBill.cs deleted file mode 100644 index 7bdce93b..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseBill.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseBill : EntityAction - { - public ReleaseBill(Bill entity) : base(entity) - { } - public ReleaseBill() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseCase.cs b/Default.18.200.001/Model/Actions/ReleaseCase.cs deleted file mode 100644 index 2c004be8..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseCase.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseCase : EntityAction - { - public ReleaseCase(Case entity) : base(entity) - { } - public ReleaseCase() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseCashSale.cs b/Default.18.200.001/Model/Actions/ReleaseCashSale.cs deleted file mode 100644 index 8b4df2c3..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseCashSale.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseCashSale : EntityAction - { - public ReleaseCashSale(CashSale entity) : base(entity) - { } - public ReleaseCashSale() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseChangeOrder.cs b/Default.18.200.001/Model/Actions/ReleaseChangeOrder.cs deleted file mode 100644 index 71cf64b5..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseChangeOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseChangeOrder : EntityAction - { - public ReleaseChangeOrder(ChangeOrder entity) : base(entity) - { } - public ReleaseChangeOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseCheck.cs b/Default.18.200.001/Model/Actions/ReleaseCheck.cs deleted file mode 100644 index 3c26eb93..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseCheck.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseCheck : EntityAction - { - public ReleaseCheck(Check entity) : base(entity) - { } - public ReleaseCheck() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseExpenseClaim.cs b/Default.18.200.001/Model/Actions/ReleaseExpenseClaim.cs deleted file mode 100644 index da455f28..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseExpenseClaim.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseExpenseClaim : EntityAction - { - public ReleaseExpenseClaim(ExpenseClaim entity) : base(entity) - { } - public ReleaseExpenseClaim() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseFromCreditHoldSalesOrder.cs b/Default.18.200.001/Model/Actions/ReleaseFromCreditHoldSalesOrder.cs deleted file mode 100644 index d2b0d06c..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseFromCreditHoldSalesOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseFromCreditHoldSalesOrder : EntityAction - { - public ReleaseFromCreditHoldSalesOrder(SalesOrder entity) : base(entity) - { } - public ReleaseFromCreditHoldSalesOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseInventoryReceipt.cs b/Default.18.200.001/Model/Actions/ReleaseInventoryReceipt.cs deleted file mode 100644 index b8084d2e..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseInventoryReceipt.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseInventoryReceipt : EntityAction - { - public ReleaseInventoryReceipt(InventoryReceipt entity) : base(entity) - { } - public ReleaseInventoryReceipt() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseInvoice.cs b/Default.18.200.001/Model/Actions/ReleaseInvoice.cs deleted file mode 100644 index 62c193ff..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseInvoice.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseInvoice : EntityAction - { - public ReleaseInvoice(Invoice entity) : base(entity) - { } - public ReleaseInvoice() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseJournalTransaction.cs b/Default.18.200.001/Model/Actions/ReleaseJournalTransaction.cs deleted file mode 100644 index f3156168..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseJournalTransaction.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseJournalTransaction : EntityAction - { - public ReleaseJournalTransaction(JournalTransaction entity) : base(entity) - { } - public ReleaseJournalTransaction() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseJournalVoucher.cs b/Default.18.200.001/Model/Actions/ReleaseJournalVoucher.cs deleted file mode 100644 index 74c5ec08..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseJournalVoucher.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseJournalVoucher : EntityAction - { - public ReleaseJournalVoucher(JournalVoucher entity) : base(entity) - { } - public ReleaseJournalVoucher() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseKitAssembly.cs b/Default.18.200.001/Model/Actions/ReleaseKitAssembly.cs deleted file mode 100644 index 746a77cc..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseKitAssembly.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseKitAssembly : EntityAction - { - public ReleaseKitAssembly(KitAssembly entity) : base(entity) - { } - public ReleaseKitAssembly() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleasePayment.cs b/Default.18.200.001/Model/Actions/ReleasePayment.cs deleted file mode 100644 index 3cf9dd25..00000000 --- a/Default.18.200.001/Model/Actions/ReleasePayment.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleasePayment : EntityAction - { - public ReleasePayment(Payment entity) : base(entity) - { } - public ReleasePayment() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseProFormaInvoice.cs b/Default.18.200.001/Model/Actions/ReleaseProFormaInvoice.cs deleted file mode 100644 index b4ed2444..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseProFormaInvoice.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseProFormaInvoice : EntityAction - { - public ReleaseProFormaInvoice(ProFormaInvoice entity) : base(entity) - { } - public ReleaseProFormaInvoice() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleasePurchaseReceipt.cs b/Default.18.200.001/Model/Actions/ReleasePurchaseReceipt.cs deleted file mode 100644 index c9312524..00000000 --- a/Default.18.200.001/Model/Actions/ReleasePurchaseReceipt.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleasePurchaseReceipt : EntityAction - { - public ReleasePurchaseReceipt(PurchaseReceipt entity) : base(entity) - { } - public ReleasePurchaseReceipt() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseSalesInvoice.cs b/Default.18.200.001/Model/Actions/ReleaseSalesInvoice.cs deleted file mode 100644 index c0964980..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseSalesInvoice.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseSalesInvoice : EntityAction - { - public ReleaseSalesInvoice(SalesInvoice entity) : base(entity) - { } - public ReleaseSalesInvoice() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs b/Default.18.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs deleted file mode 100644 index 435c5e2a..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseSalesPriceWorksheet.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseSalesPriceWorksheet : EntityAction - { - public ReleaseSalesPriceWorksheet(SalesPriceWorksheet entity) : base(entity) - { } - public ReleaseSalesPriceWorksheet() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseTransactions.cs b/Default.18.200.001/Model/Actions/ReleaseTransactions.cs deleted file mode 100644 index bae1f28d..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseTransactions.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseTransactions : EntityAction - { - public ReleaseTransactions(ProjectTransaction entity) : base(entity) - { } - public ReleaseTransactions() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseTransferOrder.cs b/Default.18.200.001/Model/Actions/ReleaseTransferOrder.cs deleted file mode 100644 index da7622e1..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseTransferOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseTransferOrder : EntityAction - { - public ReleaseTransferOrder(TransferOrder entity) : base(entity) - { } - public ReleaseTransferOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseTrialBalance.cs b/Default.18.200.001/Model/Actions/ReleaseTrialBalance.cs deleted file mode 100644 index a6cf5075..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseTrialBalance.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseTrialBalance : EntityAction - { - public ReleaseTrialBalance(TrialBalance entity) : base(entity) - { } - public ReleaseTrialBalance() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs b/Default.18.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs deleted file mode 100644 index 0651a4f9..00000000 --- a/Default.18.200.001/Model/Actions/ReleaseVendorPriceWorksheet.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReleaseVendorPriceWorksheet : EntityAction - { - public ReleaseVendorPriceWorksheet(VendorPriceWorksheet entity) : base(entity) - { } - public ReleaseVendorPriceWorksheet() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReopenSalesOrder.cs b/Default.18.200.001/Model/Actions/ReopenSalesOrder.cs deleted file mode 100644 index e3577971..00000000 --- a/Default.18.200.001/Model/Actions/ReopenSalesOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReopenSalesOrder : EntityAction - { - public ReopenSalesOrder(SalesOrder entity) : base(entity) - { } - public ReopenSalesOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/RestoreArchivedEmail.cs b/Default.18.200.001/Model/Actions/RestoreArchivedEmail.cs deleted file mode 100644 index 54edaa9c..00000000 --- a/Default.18.200.001/Model/Actions/RestoreArchivedEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class RestoreArchivedEmail : EntityAction - { - public RestoreArchivedEmail(Email entity) : base(entity) - { } - public RestoreArchivedEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/RestoreDeletedEmail.cs b/Default.18.200.001/Model/Actions/RestoreDeletedEmail.cs deleted file mode 100644 index 4f80325c..00000000 --- a/Default.18.200.001/Model/Actions/RestoreDeletedEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class RestoreDeletedEmail : EntityAction - { - public RestoreDeletedEmail(Email entity) : base(entity) - { } - public RestoreDeletedEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReverseBill.cs b/Default.18.200.001/Model/Actions/ReverseBill.cs deleted file mode 100644 index 67aba720..00000000 --- a/Default.18.200.001/Model/Actions/ReverseBill.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReverseBill : EntityAction - { - public ReverseBill(Bill entity) : base(entity) - { } - public ReverseBill() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReverseChangeOrder.cs b/Default.18.200.001/Model/Actions/ReverseChangeOrder.cs deleted file mode 100644 index 7a8a9753..00000000 --- a/Default.18.200.001/Model/Actions/ReverseChangeOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReverseChangeOrder : EntityAction - { - public ReverseChangeOrder(ChangeOrder entity) : base(entity) - { } - public ReverseChangeOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ReverseInvoice.cs b/Default.18.200.001/Model/Actions/ReverseInvoice.cs deleted file mode 100644 index 838682d1..00000000 --- a/Default.18.200.001/Model/Actions/ReverseInvoice.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ReverseInvoice : EntityAction - { - public ReverseInvoice(Invoice entity) : base(entity) - { } - public ReverseInvoice() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/RunProjectAllocation.cs b/Default.18.200.001/Model/Actions/RunProjectAllocation.cs deleted file mode 100644 index ead2e2d7..00000000 --- a/Default.18.200.001/Model/Actions/RunProjectAllocation.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class RunProjectAllocation : EntityAction - { - public RunProjectAllocation(Project entity) : base(entity) - { } - public RunProjectAllocation() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/RunProjectBilling.cs b/Default.18.200.001/Model/Actions/RunProjectBilling.cs deleted file mode 100644 index 6f259ab8..00000000 --- a/Default.18.200.001/Model/Actions/RunProjectBilling.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class RunProjectBilling : EntityAction - { - public RunProjectBilling(Project entity) : base(entity) - { } - public RunProjectBilling() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/SalesInvoiceAddOrder.cs b/Default.18.200.001/Model/Actions/SalesInvoiceAddOrder.cs deleted file mode 100644 index 55de32b9..00000000 --- a/Default.18.200.001/Model/Actions/SalesInvoiceAddOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class SalesInvoiceAddOrder : EntityAction - { - public SalesInvoiceAddOrder(SalesInvoice entity) : base(entity) - { } - public SalesInvoiceAddOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/SalesInvoiceAutoApply.cs b/Default.18.200.001/Model/Actions/SalesInvoiceAutoApply.cs deleted file mode 100644 index d25b0ae0..00000000 --- a/Default.18.200.001/Model/Actions/SalesInvoiceAutoApply.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class SalesInvoiceAutoApply : EntityAction - { - public SalesInvoiceAutoApply(SalesInvoice entity) : base(entity) - { } - public SalesInvoiceAutoApply() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/SalesOrderCreatePurchaseOrder.cs b/Default.18.200.001/Model/Actions/SalesOrderCreatePurchaseOrder.cs deleted file mode 100644 index a70d7052..00000000 --- a/Default.18.200.001/Model/Actions/SalesOrderCreatePurchaseOrder.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class SalesOrderCreatePurchaseOrder : EntityAction - { - public SalesOrderCreatePurchaseOrder(SalesOrder entity) : base(entity) - { } - public SalesOrderCreatePurchaseOrder() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/SendEmail.cs b/Default.18.200.001/Model/Actions/SendEmail.cs deleted file mode 100644 index 48d0c3d7..00000000 --- a/Default.18.200.001/Model/Actions/SendEmail.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class SendEmail : EntityAction - { - public SendEmail(Email entity) : base(entity) - { } - public SendEmail() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/SubmitExpenseClaim.cs b/Default.18.200.001/Model/Actions/SubmitExpenseClaim.cs deleted file mode 100644 index f87dba82..00000000 --- a/Default.18.200.001/Model/Actions/SubmitExpenseClaim.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class SubmitExpenseClaim : EntityAction - { - public SubmitExpenseClaim(ExpenseClaim entity) : base(entity) - { } - public SubmitExpenseClaim() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/SubmitExpenseReceipt.cs b/Default.18.200.001/Model/Actions/SubmitExpenseReceipt.cs deleted file mode 100644 index a64ec4af..00000000 --- a/Default.18.200.001/Model/Actions/SubmitExpenseReceipt.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class SubmitExpenseReceipt : EntityAction - { - public SubmitExpenseReceipt(ExpenseReceipt entity) : base(entity) - { } - public SubmitExpenseReceipt() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/TakeCase.cs b/Default.18.200.001/Model/Actions/TakeCase.cs deleted file mode 100644 index cabe0075..00000000 --- a/Default.18.200.001/Model/Actions/TakeCase.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class TakeCase : EntityAction - { - public TakeCase(Case entity) : base(entity) - { } - public TakeCase() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/UnlockProjectBudget.cs b/Default.18.200.001/Model/Actions/UnlockProjectBudget.cs deleted file mode 100644 index c85065d2..00000000 --- a/Default.18.200.001/Model/Actions/UnlockProjectBudget.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class UnlockProjectBudget : EntityAction - { - public UnlockProjectBudget(Project entity) : base(entity) - { } - public UnlockProjectBudget() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/UnlockProjectCommitments.cs b/Default.18.200.001/Model/Actions/UnlockProjectCommitments.cs deleted file mode 100644 index bcb8f110..00000000 --- a/Default.18.200.001/Model/Actions/UnlockProjectCommitments.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class UnlockProjectCommitments : EntityAction - { - public UnlockProjectCommitments(Project entity) : base(entity) - { } - public UnlockProjectCommitments() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/UpdateIN.cs b/Default.18.200.001/Model/Actions/UpdateIN.cs deleted file mode 100644 index b8ad54a6..00000000 --- a/Default.18.200.001/Model/Actions/UpdateIN.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class UpdateIN : EntityAction - { - public UpdateIN(Shipment entity) : base(entity) - { } - public UpdateIN() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs b/Default.18.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs deleted file mode 100644 index dffe5e28..00000000 --- a/Default.18.200.001/Model/Actions/UpdateStandardCostNonStockItem.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class UpdateStandardCostNonStockItem : EntityAction - { - public UpdateStandardCostNonStockItem(NonStockItem entity) : base(entity) - { } - public UpdateStandardCostNonStockItem() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/UpdateStandardCostStockItem.cs b/Default.18.200.001/Model/Actions/UpdateStandardCostStockItem.cs deleted file mode 100644 index 3129f74e..00000000 --- a/Default.18.200.001/Model/Actions/UpdateStandardCostStockItem.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class UpdateStandardCostStockItem : EntityAction - { - public UpdateStandardCostStockItem(StockItem entity) : base(entity) - { } - public UpdateStandardCostStockItem() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs b/Default.18.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs deleted file mode 100644 index d8d4e57c..00000000 --- a/Default.18.200.001/Model/Actions/ValidateBusinessAccountAddresses.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ValidateBusinessAccountAddresses : EntityAction - { - public ValidateBusinessAccountAddresses(BusinessAccount entity) : base(entity) - { } - public ValidateBusinessAccountAddresses() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ValidateContactAddress.cs b/Default.18.200.001/Model/Actions/ValidateContactAddress.cs deleted file mode 100644 index adab7d83..00000000 --- a/Default.18.200.001/Model/Actions/ValidateContactAddress.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ValidateContactAddress : EntityAction - { - public ValidateContactAddress(Contact entity) : base(entity) - { } - public ValidateContactAddress() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ValidateLeadAddress.cs b/Default.18.200.001/Model/Actions/ValidateLeadAddress.cs deleted file mode 100644 index b0dfc2d1..00000000 --- a/Default.18.200.001/Model/Actions/ValidateLeadAddress.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ValidateLeadAddress : EntityAction - { - public ValidateLeadAddress(Lead entity) : base(entity) - { } - public ValidateLeadAddress() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/ValidateProjectBalance.cs b/Default.18.200.001/Model/Actions/ValidateProjectBalance.cs deleted file mode 100644 index aa4cb023..00000000 --- a/Default.18.200.001/Model/Actions/ValidateProjectBalance.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class ValidateProjectBalance : EntityAction - { - public ValidateProjectBalance(Project entity) : base(entity) - { } - public ValidateProjectBalance() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Actions/VoidPayment.cs b/Default.18.200.001/Model/Actions/VoidPayment.cs deleted file mode 100644 index c092811e..00000000 --- a/Default.18.200.001/Model/Actions/VoidPayment.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Acumatica.RESTClient.Model; -using System.Runtime.Serialization; - -namespace Acumatica.Default_18_200_001.Model -{ -[DataContract] - public partial class VoidPayment : EntityAction - { - public VoidPayment(Payment entity) : base(entity) - { } - public VoidPayment() : base() - { } - } -} diff --git a/Default.18.200.001/Model/Activity.cs b/Default.18.200.001/Model/Activity.cs deleted file mode 100644 index 43828254..00000000 --- a/Default.18.200.001/Model/Activity.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Activity - /// - [DataContract] - public partial class Activity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// body. - /// date. - /// _internal. - /// noteID. - /// owner. - /// relatedEntityDescription. - /// status. - /// summary. - /// task. - /// timeActivity. - /// type. - /// workgroup. - public Activity(StringValue body = default(StringValue), DateTimeValue date = default(DateTimeValue), BooleanValue _internal = default(BooleanValue), GuidValue noteID = default(GuidValue), StringValue owner = default(StringValue), StringValue relatedEntityDescription = default(StringValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue task = default(StringValue), TimeActivity timeActivity = default(TimeActivity), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Body = body; - this.Date = date; - this.Internal = _internal; - this.NoteID = noteID; - this.Owner = owner; - this.RelatedEntityDescription = relatedEntityDescription; - this.Status = status; - this.Summary = summary; - this.Task = task; - this.TimeActivity = timeActivity; - this.Type = type; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Body - /// - [DataMember(Name="Body", EmitDefaultValue=false)] - public StringValue Body { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Internal - /// - [DataMember(Name="Internal", EmitDefaultValue=false)] - public BooleanValue Internal { get; set; } - - /// - /// Gets or Sets NoteID - /// - [DataMember(Name="NoteID", EmitDefaultValue=false)] - public GuidValue NoteID { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets RelatedEntityDescription - /// - [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] - public StringValue RelatedEntityDescription { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } - - /// - /// Gets or Sets Task - /// - [DataMember(Name="Task", EmitDefaultValue=false)] - public StringValue Task { get; set; } - - /// - /// Gets or Sets TimeActivity - /// - [DataMember(Name="TimeActivity", EmitDefaultValue=false)] - public TimeActivity TimeActivity { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Activity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Body: ").Append(Body).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Internal: ").Append(Internal).Append("\n"); - sb.Append(" NoteID: ").Append(NoteID).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" RelatedEntityDescription: ").Append(RelatedEntityDescription).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" Task: ").Append(Task).Append("\n"); - sb.Append(" TimeActivity: ").Append(TimeActivity).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Activity); - } - - /// - /// Returns true if Activity instances are equal - /// - /// Instance of Activity to be compared - /// Boolean - public bool Equals(Activity input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Body == input.Body || - (this.Body != null && - this.Body.Equals(input.Body)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Internal == input.Internal || - (this.Internal != null && - this.Internal.Equals(input.Internal)) - ) && base.Equals(input) && - ( - this.NoteID == input.NoteID || - (this.NoteID != null && - this.NoteID.Equals(input.NoteID)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.RelatedEntityDescription == input.RelatedEntityDescription || - (this.RelatedEntityDescription != null && - this.RelatedEntityDescription.Equals(input.RelatedEntityDescription)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.Task == input.Task || - (this.Task != null && - this.Task.Equals(input.Task)) - ) && base.Equals(input) && - ( - this.TimeActivity == input.TimeActivity || - (this.TimeActivity != null && - this.TimeActivity.Equals(input.TimeActivity)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Body != null) - hashCode = hashCode * 59 + this.Body.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Internal != null) - hashCode = hashCode * 59 + this.Internal.GetHashCode(); - if (this.NoteID != null) - hashCode = hashCode * 59 + this.NoteID.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.RelatedEntityDescription != null) - hashCode = hashCode * 59 + this.RelatedEntityDescription.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.Task != null) - hashCode = hashCode * 59 + this.Task.GetHashCode(); - if (this.TimeActivity != null) - hashCode = hashCode * 59 + this.TimeActivity.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ActivityDetail.cs b/Default.18.200.001/Model/ActivityDetail.cs deleted file mode 100644 index 499ece9c..00000000 --- a/Default.18.200.001/Model/ActivityDetail.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ActivityDetail - /// - [DataContract] - public partial class ActivityDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// classIcon. - /// createdAt. - /// creatorID. - /// creatorUsername. - /// isCompleteIcon. - /// noteID. - /// owner. - /// priorityIcon. - /// project. - /// projectTask. - /// refNoteID. - /// released. - /// reminderIcon. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - /// workgroupID. - public ActivityDetail(StringValue classIcon = default(StringValue), DateTimeValue createdAt = default(DateTimeValue), StringValue creatorID = default(StringValue), StringValue creatorUsername = default(StringValue), StringValue isCompleteIcon = default(StringValue), GuidValue noteID = default(GuidValue), StringValue owner = default(StringValue), StringValue priorityIcon = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), GuidValue refNoteID = default(GuidValue), BooleanValue released = default(BooleanValue), StringValue reminderIcon = default(StringValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), StringValue workgroupID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ClassIcon = classIcon; - this.CreatedAt = createdAt; - this.CreatorID = creatorID; - this.CreatorUsername = creatorUsername; - this.IsCompleteIcon = isCompleteIcon; - this.NoteID = noteID; - this.Owner = owner; - this.PriorityIcon = priorityIcon; - this.Project = project; - this.ProjectTask = projectTask; - this.RefNoteID = refNoteID; - this.Released = released; - this.ReminderIcon = reminderIcon; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - this.WorkgroupID = workgroupID; - } - - /// - /// Gets or Sets ClassIcon - /// - [DataMember(Name="ClassIcon", EmitDefaultValue=false)] - public StringValue ClassIcon { get; set; } - - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name="CreatedAt", EmitDefaultValue=false)] - public DateTimeValue CreatedAt { get; set; } - - /// - /// Gets or Sets CreatorID - /// - [DataMember(Name="CreatorID", EmitDefaultValue=false)] - public StringValue CreatorID { get; set; } - - /// - /// Gets or Sets CreatorUsername - /// - [DataMember(Name="CreatorUsername", EmitDefaultValue=false)] - public StringValue CreatorUsername { get; set; } - - /// - /// Gets or Sets IsCompleteIcon - /// - [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] - public StringValue IsCompleteIcon { get; set; } - - /// - /// Gets or Sets NoteID - /// - [DataMember(Name="NoteID", EmitDefaultValue=false)] - public GuidValue NoteID { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets PriorityIcon - /// - [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] - public StringValue PriorityIcon { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets RefNoteID - /// - [DataMember(Name="RefNoteID", EmitDefaultValue=false)] - public GuidValue RefNoteID { get; set; } - - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } - - /// - /// Gets or Sets ReminderIcon - /// - [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] - public StringValue ReminderIcon { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets WorkgroupID - /// - [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] - public StringValue WorkgroupID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ActivityDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ClassIcon: ").Append(ClassIcon).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" CreatorID: ").Append(CreatorID).Append("\n"); - sb.Append(" CreatorUsername: ").Append(CreatorUsername).Append("\n"); - sb.Append(" IsCompleteIcon: ").Append(IsCompleteIcon).Append("\n"); - sb.Append(" NoteID: ").Append(NoteID).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PriorityIcon: ").Append(PriorityIcon).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" RefNoteID: ").Append(RefNoteID).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" ReminderIcon: ").Append(ReminderIcon).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" WorkgroupID: ").Append(WorkgroupID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ActivityDetail); - } - - /// - /// Returns true if ActivityDetail instances are equal - /// - /// Instance of ActivityDetail to be compared - /// Boolean - public bool Equals(ActivityDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ClassIcon == input.ClassIcon || - (this.ClassIcon != null && - this.ClassIcon.Equals(input.ClassIcon)) - ) && base.Equals(input) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && base.Equals(input) && - ( - this.CreatorID == input.CreatorID || - (this.CreatorID != null && - this.CreatorID.Equals(input.CreatorID)) - ) && base.Equals(input) && - ( - this.CreatorUsername == input.CreatorUsername || - (this.CreatorUsername != null && - this.CreatorUsername.Equals(input.CreatorUsername)) - ) && base.Equals(input) && - ( - this.IsCompleteIcon == input.IsCompleteIcon || - (this.IsCompleteIcon != null && - this.IsCompleteIcon.Equals(input.IsCompleteIcon)) - ) && base.Equals(input) && - ( - this.NoteID == input.NoteID || - (this.NoteID != null && - this.NoteID.Equals(input.NoteID)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PriorityIcon == input.PriorityIcon || - (this.PriorityIcon != null && - this.PriorityIcon.Equals(input.PriorityIcon)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.RefNoteID == input.RefNoteID || - (this.RefNoteID != null && - this.RefNoteID.Equals(input.RefNoteID)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.ReminderIcon == input.ReminderIcon || - (this.ReminderIcon != null && - this.ReminderIcon.Equals(input.ReminderIcon)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.WorkgroupID == input.WorkgroupID || - (this.WorkgroupID != null && - this.WorkgroupID.Equals(input.WorkgroupID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ClassIcon != null) - hashCode = hashCode * 59 + this.ClassIcon.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.CreatorID != null) - hashCode = hashCode * 59 + this.CreatorID.GetHashCode(); - if (this.CreatorUsername != null) - hashCode = hashCode * 59 + this.CreatorUsername.GetHashCode(); - if (this.IsCompleteIcon != null) - hashCode = hashCode * 59 + this.IsCompleteIcon.GetHashCode(); - if (this.NoteID != null) - hashCode = hashCode * 59 + this.NoteID.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PriorityIcon != null) - hashCode = hashCode * 59 + this.PriorityIcon.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.RefNoteID != null) - hashCode = hashCode * 59 + this.RefNoteID.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.ReminderIcon != null) - hashCode = hashCode * 59 + this.ReminderIcon.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.WorkgroupID != null) - hashCode = hashCode * 59 + this.WorkgroupID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Address.cs b/Default.18.200.001/Model/Address.cs deleted file mode 100644 index 01d0a753..00000000 --- a/Default.18.200.001/Model/Address.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Address - /// - [DataContract] - public partial class Address : Entity, IEquatable
, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// addressLine1. - /// addressLine2. - /// city. - /// country. - /// postalCode. - /// state. - /// validated. - public Address(StringValue addressLine1 = default(StringValue), StringValue addressLine2 = default(StringValue), StringValue city = default(StringValue), StringValue country = default(StringValue), StringValue postalCode = default(StringValue), StringValue state = default(StringValue), BooleanValue validated = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AddressLine1 = addressLine1; - this.AddressLine2 = addressLine2; - this.City = city; - this.Country = country; - this.PostalCode = postalCode; - this.State = state; - this.Validated = validated; - } - - /// - /// Gets or Sets AddressLine1 - /// - [DataMember(Name="AddressLine1", EmitDefaultValue=false)] - public StringValue AddressLine1 { get; set; } - - /// - /// Gets or Sets AddressLine2 - /// - [DataMember(Name="AddressLine2", EmitDefaultValue=false)] - public StringValue AddressLine2 { get; set; } - - /// - /// Gets or Sets City - /// - [DataMember(Name="City", EmitDefaultValue=false)] - public StringValue City { get; set; } - - /// - /// Gets or Sets Country - /// - [DataMember(Name="Country", EmitDefaultValue=false)] - public StringValue Country { get; set; } - - /// - /// Gets or Sets PostalCode - /// - [DataMember(Name="PostalCode", EmitDefaultValue=false)] - public StringValue PostalCode { get; set; } - - /// - /// Gets or Sets State - /// - [DataMember(Name="State", EmitDefaultValue=false)] - public StringValue State { get; set; } - - /// - /// Gets or Sets Validated - /// - [DataMember(Name="Validated", EmitDefaultValue=false)] - public BooleanValue Validated { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Address {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AddressLine1: ").Append(AddressLine1).Append("\n"); - sb.Append(" AddressLine2: ").Append(AddressLine2).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" Validated: ").Append(Validated).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Address); - } - - /// - /// Returns true if Address instances are equal - /// - /// Instance of Address to be compared - /// Boolean - public bool Equals(Address input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AddressLine1 == input.AddressLine1 || - (this.AddressLine1 != null && - this.AddressLine1.Equals(input.AddressLine1)) - ) && base.Equals(input) && - ( - this.AddressLine2 == input.AddressLine2 || - (this.AddressLine2 != null && - this.AddressLine2.Equals(input.AddressLine2)) - ) && base.Equals(input) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && base.Equals(input) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ) && base.Equals(input) && - ( - this.PostalCode == input.PostalCode || - (this.PostalCode != null && - this.PostalCode.Equals(input.PostalCode)) - ) && base.Equals(input) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && base.Equals(input) && - ( - this.Validated == input.Validated || - (this.Validated != null && - this.Validated.Equals(input.Validated)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AddressLine1 != null) - hashCode = hashCode * 59 + this.AddressLine1.GetHashCode(); - if (this.AddressLine2 != null) - hashCode = hashCode * 59 + this.AddressLine2.GetHashCode(); - if (this.City != null) - hashCode = hashCode * 59 + this.City.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - if (this.PostalCode != null) - hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.Validated != null) - hashCode = hashCode * 59 + this.Validated.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Adjustment.cs b/Default.18.200.001/Model/Adjustment.cs deleted file mode 100644 index 30b02490..00000000 --- a/Default.18.200.001/Model/Adjustment.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Adjustment - /// - [DataContract] - public partial class Adjustment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// date. - /// description. - /// details. - /// externalRef. - /// hold. - /// referenceNbr. - /// status. - /// totalCost. - /// totalQty. - public Adjustment(DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), StringValue externalRef = default(StringValue), BooleanValue hold = default(BooleanValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalCost = default(DecimalValue), DecimalValue totalQty = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Date = date; - this.Description = description; - this.Details = details; - this.ExternalRef = externalRef; - this.Hold = hold; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TotalCost = totalCost; - this.TotalQty = totalQty; - } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets ExternalRef - /// - [DataMember(Name="ExternalRef", EmitDefaultValue=false)] - public StringValue ExternalRef { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TotalCost - /// - [DataMember(Name="TotalCost", EmitDefaultValue=false)] - public DecimalValue TotalCost { get; set; } - - /// - /// Gets or Sets TotalQty - /// - [DataMember(Name="TotalQty", EmitDefaultValue=false)] - public DecimalValue TotalQty { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Adjustment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" ExternalRef: ").Append(ExternalRef).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalCost: ").Append(TotalCost).Append("\n"); - sb.Append(" TotalQty: ").Append(TotalQty).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Adjustment); - } - - /// - /// Returns true if Adjustment instances are equal - /// - /// Instance of Adjustment to be compared - /// Boolean - public bool Equals(Adjustment input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.ExternalRef == input.ExternalRef || - (this.ExternalRef != null && - this.ExternalRef.Equals(input.ExternalRef)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalCost == input.TotalCost || - (this.TotalCost != null && - this.TotalCost.Equals(input.TotalCost)) - ) && base.Equals(input) && - ( - this.TotalQty == input.TotalQty || - (this.TotalQty != null && - this.TotalQty.Equals(input.TotalQty)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.ExternalRef != null) - hashCode = hashCode * 59 + this.ExternalRef.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalCost != null) - hashCode = hashCode * 59 + this.TotalCost.GetHashCode(); - if (this.TotalQty != null) - hashCode = hashCode * 59 + this.TotalQty.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AdjustmentDetail.cs b/Default.18.200.001/Model/AdjustmentDetail.cs deleted file mode 100644 index dfa15904..00000000 --- a/Default.18.200.001/Model/AdjustmentDetail.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AdjustmentDetail - /// - [DataContract] - public partial class AdjustmentDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// branchID. - /// description. - /// expirationDate. - /// extendedCost. - /// inventoryID. - /// locationID. - /// lotSerialNbr. - /// qty. - /// reasonCode. - /// receiptNbr. - /// subitem. - /// uOM. - /// warehouseID. - public AdjustmentDetail(StringValue branchID = default(StringValue), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), DecimalValue extendedCost = default(DecimalValue), StringValue inventoryID = default(StringValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue reasonCode = default(StringValue), StringValue receiptNbr = default(StringValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BranchID = branchID; - this.Description = description; - this.ExpirationDate = expirationDate; - this.ExtendedCost = extendedCost; - this.InventoryID = inventoryID; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.ReasonCode = reasonCode; - this.ReceiptNbr = receiptNbr; - this.Subitem = subitem; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets ExtendedCost - /// - [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] - public DecimalValue ExtendedCost { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } - - /// - /// Gets or Sets ReceiptNbr - /// - [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] - public StringValue ReceiptNbr { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AdjustmentDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" ExtendedCost: ").Append(ExtendedCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" ReceiptNbr: ").Append(ReceiptNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AdjustmentDetail); - } - - /// - /// Returns true if AdjustmentDetail instances are equal - /// - /// Instance of AdjustmentDetail to be compared - /// Boolean - public bool Equals(AdjustmentDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.ExtendedCost == input.ExtendedCost || - (this.ExtendedCost != null && - this.ExtendedCost.Equals(input.ExtendedCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.ReceiptNbr == input.ReceiptNbr || - (this.ReceiptNbr != null && - this.ReceiptNbr.Equals(input.ReceiptNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.ExtendedCost != null) - hashCode = hashCode * 59 + this.ExtendedCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.ReceiptNbr != null) - hashCode = hashCode * 59 + this.ReceiptNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AllocationRule.cs b/Default.18.200.001/Model/AllocationRule.cs deleted file mode 100644 index e0d964ac..00000000 --- a/Default.18.200.001/Model/AllocationRule.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AllocationRule - /// - [DataContract] - public partial class AllocationRule : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocationRuleID. - /// description. - public AllocationRule(StringValue allocationRuleID = default(StringValue), StringValue description = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllocationRuleID = allocationRuleID; - this.Description = description; - } - - /// - /// Gets or Sets AllocationRuleID - /// - [DataMember(Name="AllocationRuleID", EmitDefaultValue=false)] - public StringValue AllocationRuleID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AllocationRule {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllocationRuleID: ").Append(AllocationRuleID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AllocationRule); - } - - /// - /// Returns true if AllocationRule instances are equal - /// - /// Instance of AllocationRule to be compared - /// Boolean - public bool Equals(AllocationRule input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AllocationRuleID == input.AllocationRuleID || - (this.AllocationRuleID != null && - this.AllocationRuleID.Equals(input.AllocationRuleID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllocationRuleID != null) - hashCode = hashCode * 59 + this.AllocationRuleID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Approval.cs b/Default.18.200.001/Model/Approval.cs deleted file mode 100644 index 347f2493..00000000 --- a/Default.18.200.001/Model/Approval.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Approval - /// - [DataContract] - public partial class Approval : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// approvedBy. - /// approvedByName. - /// approver. - /// approverName. - /// date. - /// status. - /// workgroup. - public Approval(StringValue approvedBy = default(StringValue), StringValue approvedByName = default(StringValue), StringValue approver = default(StringValue), StringValue approverName = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue status = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApprovedBy = approvedBy; - this.ApprovedByName = approvedByName; - this.Approver = approver; - this.ApproverName = approverName; - this.Date = date; - this.Status = status; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets ApprovedBy - /// - [DataMember(Name="ApprovedBy", EmitDefaultValue=false)] - public StringValue ApprovedBy { get; set; } - - /// - /// Gets or Sets ApprovedByName - /// - [DataMember(Name="ApprovedByName", EmitDefaultValue=false)] - public StringValue ApprovedByName { get; set; } - - /// - /// Gets or Sets Approver - /// - [DataMember(Name="Approver", EmitDefaultValue=false)] - public StringValue Approver { get; set; } - - /// - /// Gets or Sets ApproverName - /// - [DataMember(Name="ApproverName", EmitDefaultValue=false)] - public StringValue ApproverName { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Approval {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApprovedBy: ").Append(ApprovedBy).Append("\n"); - sb.Append(" ApprovedByName: ").Append(ApprovedByName).Append("\n"); - sb.Append(" Approver: ").Append(Approver).Append("\n"); - sb.Append(" ApproverName: ").Append(ApproverName).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Approval); - } - - /// - /// Returns true if Approval instances are equal - /// - /// Instance of Approval to be compared - /// Boolean - public bool Equals(Approval input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ApprovedBy == input.ApprovedBy || - (this.ApprovedBy != null && - this.ApprovedBy.Equals(input.ApprovedBy)) - ) && base.Equals(input) && - ( - this.ApprovedByName == input.ApprovedByName || - (this.ApprovedByName != null && - this.ApprovedByName.Equals(input.ApprovedByName)) - ) && base.Equals(input) && - ( - this.Approver == input.Approver || - (this.Approver != null && - this.Approver.Equals(input.Approver)) - ) && base.Equals(input) && - ( - this.ApproverName == input.ApproverName || - (this.ApproverName != null && - this.ApproverName.Equals(input.ApproverName)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApprovedBy != null) - hashCode = hashCode * 59 + this.ApprovedBy.GetHashCode(); - if (this.ApprovedByName != null) - hashCode = hashCode * 59 + this.ApprovedByName.GetHashCode(); - if (this.Approver != null) - hashCode = hashCode * 59 + this.Approver.GetHashCode(); - if (this.ApproverName != null) - hashCode = hashCode * 59 + this.ApproverName.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AttributeDefinition.cs b/Default.18.200.001/Model/AttributeDefinition.cs deleted file mode 100644 index 423ccf52..00000000 --- a/Default.18.200.001/Model/AttributeDefinition.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AttributeDefinition - /// - [DataContract] - public partial class AttributeDefinition : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributeID. - /// controlType. - /// createdDateTime. - /// description. - /// entryMask. - /// _internal. - /// lastModifiedDateTime. - /// regExp. - /// values. - public AttributeDefinition(StringValue attributeID = default(StringValue), StringValue controlType = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), StringValue entryMask = default(StringValue), BooleanValue _internal = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue regExp = default(StringValue), IEnumerable values = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AttributeID = attributeID; - this.ControlType = controlType; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.EntryMask = entryMask; - this.Internal = _internal; - this.LastModifiedDateTime = lastModifiedDateTime; - this.RegExp = regExp; - this.Values = values; - } - - /// - /// Gets or Sets AttributeID - /// - [DataMember(Name="AttributeID", EmitDefaultValue=false)] - public StringValue AttributeID { get; set; } - - /// - /// Gets or Sets ControlType - /// - [DataMember(Name="ControlType", EmitDefaultValue=false)] - public StringValue ControlType { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EntryMask - /// - [DataMember(Name="EntryMask", EmitDefaultValue=false)] - public StringValue EntryMask { get; set; } - - /// - /// Gets or Sets Internal - /// - [DataMember(Name="Internal", EmitDefaultValue=false)] - public BooleanValue Internal { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets RegExp - /// - [DataMember(Name="RegExp", EmitDefaultValue=false)] - public StringValue RegExp { get; set; } - - /// - /// Gets or Sets Values - /// - [DataMember(Name="Values", EmitDefaultValue=false)] - public IEnumerable Values { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttributeDefinition {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AttributeID: ").Append(AttributeID).Append("\n"); - sb.Append(" ControlType: ").Append(ControlType).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EntryMask: ").Append(EntryMask).Append("\n"); - sb.Append(" Internal: ").Append(Internal).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" RegExp: ").Append(RegExp).Append("\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttributeDefinition); - } - - /// - /// Returns true if AttributeDefinition instances are equal - /// - /// Instance of AttributeDefinition to be compared - /// Boolean - public bool Equals(AttributeDefinition input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AttributeID == input.AttributeID || - (this.AttributeID != null && - this.AttributeID.Equals(input.AttributeID)) - ) && base.Equals(input) && - ( - this.ControlType == input.ControlType || - (this.ControlType != null && - this.ControlType.Equals(input.ControlType)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EntryMask == input.EntryMask || - (this.EntryMask != null && - this.EntryMask.Equals(input.EntryMask)) - ) && base.Equals(input) && - ( - this.Internal == input.Internal || - (this.Internal != null && - this.Internal.Equals(input.Internal)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.RegExp == input.RegExp || - (this.RegExp != null && - this.RegExp.Equals(input.RegExp)) - ) && base.Equals(input) && - ( - this.Values == input.Values || - this.Values != null && - this.Values.SequenceEqual(input.Values) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AttributeID != null) - hashCode = hashCode * 59 + this.AttributeID.GetHashCode(); - if (this.ControlType != null) - hashCode = hashCode * 59 + this.ControlType.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EntryMask != null) - hashCode = hashCode * 59 + this.EntryMask.GetHashCode(); - if (this.Internal != null) - hashCode = hashCode * 59 + this.Internal.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.RegExp != null) - hashCode = hashCode * 59 + this.RegExp.GetHashCode(); - if (this.Values != null) - hashCode = hashCode * 59 + this.Values.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AttributeDefinitionValue.cs b/Default.18.200.001/Model/AttributeDefinitionValue.cs deleted file mode 100644 index 24dc4641..00000000 --- a/Default.18.200.001/Model/AttributeDefinitionValue.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AttributeDefinitionValue - /// - [DataContract] - public partial class AttributeDefinitionValue : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// disabled. - /// sortOrder. - /// valueID. - public AttributeDefinitionValue(StringValue description = default(StringValue), BooleanValue disabled = default(BooleanValue), ShortValue sortOrder = default(ShortValue), StringValue valueID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.Disabled = disabled; - this.SortOrder = sortOrder; - this.ValueID = valueID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Disabled - /// - [DataMember(Name="Disabled", EmitDefaultValue=false)] - public BooleanValue Disabled { get; set; } - - /// - /// Gets or Sets SortOrder - /// - [DataMember(Name="SortOrder", EmitDefaultValue=false)] - public ShortValue SortOrder { get; set; } - - /// - /// Gets or Sets ValueID - /// - [DataMember(Name="ValueID", EmitDefaultValue=false)] - public StringValue ValueID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttributeDefinitionValue {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Disabled: ").Append(Disabled).Append("\n"); - sb.Append(" SortOrder: ").Append(SortOrder).Append("\n"); - sb.Append(" ValueID: ").Append(ValueID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttributeDefinitionValue); - } - - /// - /// Returns true if AttributeDefinitionValue instances are equal - /// - /// Instance of AttributeDefinitionValue to be compared - /// Boolean - public bool Equals(AttributeDefinitionValue input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Disabled == input.Disabled || - (this.Disabled != null && - this.Disabled.Equals(input.Disabled)) - ) && base.Equals(input) && - ( - this.SortOrder == input.SortOrder || - (this.SortOrder != null && - this.SortOrder.Equals(input.SortOrder)) - ) && base.Equals(input) && - ( - this.ValueID == input.ValueID || - (this.ValueID != null && - this.ValueID.Equals(input.ValueID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Disabled != null) - hashCode = hashCode * 59 + this.Disabled.GetHashCode(); - if (this.SortOrder != null) - hashCode = hashCode * 59 + this.SortOrder.GetHashCode(); - if (this.ValueID != null) - hashCode = hashCode * 59 + this.ValueID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AttributeDetail.cs b/Default.18.200.001/Model/AttributeDetail.cs deleted file mode 100644 index 36d40c75..00000000 --- a/Default.18.200.001/Model/AttributeDetail.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AttributeDetail - /// - [DataContract] - public partial class AttributeDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attribute. - /// refNoteID. - /// required. - /// value. - public AttributeDetail(StringValue attribute = default(StringValue), GuidValue refNoteID = default(GuidValue), BooleanValue required = default(BooleanValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attribute = attribute; - this.RefNoteID = refNoteID; - this.Required = required; - this.Value = value; - } - - /// - /// Gets or Sets Attribute - /// - [DataMember(Name="Attribute", EmitDefaultValue=false)] - public StringValue Attribute { get; set; } - - /// - /// Gets or Sets RefNoteID - /// - [DataMember(Name="RefNoteID", EmitDefaultValue=false)] - public GuidValue RefNoteID { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="Required", EmitDefaultValue=false)] - public BooleanValue Required { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttributeDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attribute: ").Append(Attribute).Append("\n"); - sb.Append(" RefNoteID: ").Append(RefNoteID).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttributeDetail); - } - - /// - /// Returns true if AttributeDetail instances are equal - /// - /// Instance of AttributeDetail to be compared - /// Boolean - public bool Equals(AttributeDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attribute == input.Attribute || - (this.Attribute != null && - this.Attribute.Equals(input.Attribute)) - ) && base.Equals(input) && - ( - this.RefNoteID == input.RefNoteID || - (this.RefNoteID != null && - this.RefNoteID.Equals(input.RefNoteID)) - ) && base.Equals(input) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attribute != null) - hashCode = hashCode * 59 + this.Attribute.GetHashCode(); - if (this.RefNoteID != null) - hashCode = hashCode * 59 + this.RefNoteID.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/AttributeValue.cs b/Default.18.200.001/Model/AttributeValue.cs deleted file mode 100644 index f9509319..00000000 --- a/Default.18.200.001/Model/AttributeValue.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// AttributeValue - /// - [DataContract] - public partial class AttributeValue : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributeID. - /// required. - /// value. - public AttributeValue(StringValue attributeID = default(StringValue), BooleanValue required = default(BooleanValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AttributeID = attributeID; - this.Required = required; - this.Value = value; - } - - /// - /// Gets or Sets AttributeID - /// - [DataMember(Name="AttributeID", EmitDefaultValue=false)] - public StringValue AttributeID { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="Required", EmitDefaultValue=false)] - public BooleanValue Required { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class AttributeValue {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AttributeID: ").Append(AttributeID).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as AttributeValue); - } - - /// - /// Returns true if AttributeValue instances are equal - /// - /// Instance of AttributeValue to be compared - /// Boolean - public bool Equals(AttributeValue input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AttributeID == input.AttributeID || - (this.AttributeID != null && - this.AttributeID.Equals(input.AttributeID)) - ) && base.Equals(input) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AttributeID != null) - hashCode = hashCode * 59 + this.AttributeID.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Bill.cs b/Default.18.200.001/Model/Bill.cs deleted file mode 100644 index 40cb2f70..00000000 --- a/Default.18.200.001/Model/Bill.cs +++ /dev/null @@ -1,478 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Bill - /// - [DataContract] - public partial class Bill : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// applications. - /// approvedForPayment. - /// balance. - /// branchID. - /// cashAccount. - /// currencyID. - /// date. - /// description. - /// details. - /// dueDate. - /// hold. - /// locationID. - /// postPeriod. - /// project. - /// referenceNbr. - /// status. - /// taxDetails. - /// taxTotal. - /// terms. - /// type. - /// vendor. - /// vendorRef. - public Bill(DecimalValue amount = default(DecimalValue), IEnumerable applications = default(IEnumerable), BooleanValue approvedForPayment = default(BooleanValue), DecimalValue balance = default(DecimalValue), StringValue branchID = default(StringValue), StringValue cashAccount = default(StringValue), StringValue currencyID = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), DateTimeValue dueDate = default(DateTimeValue), BooleanValue hold = default(BooleanValue), StringValue locationID = default(StringValue), StringValue postPeriod = default(StringValue), StringValue project = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), IEnumerable taxDetails = default(IEnumerable), DecimalValue taxTotal = default(DecimalValue), StringValue terms = default(StringValue), StringValue type = default(StringValue), StringValue vendor = default(StringValue), StringValue vendorRef = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.Applications = applications; - this.ApprovedForPayment = approvedForPayment; - this.Balance = balance; - this.BranchID = branchID; - this.CashAccount = cashAccount; - this.CurrencyID = currencyID; - this.Date = date; - this.Description = description; - this.Details = details; - this.DueDate = dueDate; - this.Hold = hold; - this.LocationID = locationID; - this.PostPeriod = postPeriod; - this.Project = project; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TaxDetails = taxDetails; - this.TaxTotal = taxTotal; - this.Terms = terms; - this.Type = type; - this.Vendor = vendor; - this.VendorRef = vendorRef; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Applications - /// - [DataMember(Name="Applications", EmitDefaultValue=false)] - public IEnumerable Applications { get; set; } - - /// - /// Gets or Sets ApprovedForPayment - /// - [DataMember(Name="ApprovedForPayment", EmitDefaultValue=false)] - public BooleanValue ApprovedForPayment { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public IEnumerable TaxDetails { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } - - /// - /// Gets or Sets VendorRef - /// - [DataMember(Name="VendorRef", EmitDefaultValue=false)] - public StringValue VendorRef { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Bill {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Applications: ").Append(Applications).Append("\n"); - sb.Append(" ApprovedForPayment: ").Append(ApprovedForPayment).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append(" VendorRef: ").Append(VendorRef).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Bill); - } - - /// - /// Returns true if Bill instances are equal - /// - /// Instance of Bill to be compared - /// Boolean - public bool Equals(Bill input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Applications == input.Applications || - this.Applications != null && - this.Applications.SequenceEqual(input.Applications) - ) && base.Equals(input) && - ( - this.ApprovedForPayment == input.ApprovedForPayment || - (this.ApprovedForPayment != null && - this.ApprovedForPayment.Equals(input.ApprovedForPayment)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ) && base.Equals(input) && - ( - this.VendorRef == input.VendorRef || - (this.VendorRef != null && - this.VendorRef.Equals(input.VendorRef)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Applications != null) - hashCode = hashCode * 59 + this.Applications.GetHashCode(); - if (this.ApprovedForPayment != null) - hashCode = hashCode * 59 + this.ApprovedForPayment.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - if (this.VendorRef != null) - hashCode = hashCode * 59 + this.VendorRef.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BillApplicationDetail.cs b/Default.18.200.001/Model/BillApplicationDetail.cs deleted file mode 100644 index b14784a3..00000000 --- a/Default.18.200.001/Model/BillApplicationDetail.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BillApplicationDetail - /// - [DataContract] - public partial class BillApplicationDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// docType. - /// referenceNbr. - /// status. - public BillApplicationDetail(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - this.Status = status; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BillApplicationDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BillApplicationDetail); - } - - /// - /// Returns true if BillApplicationDetail instances are equal - /// - /// Instance of BillApplicationDetail to be compared - /// Boolean - public bool Equals(BillApplicationDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BillDetail.cs b/Default.18.200.001/Model/BillDetail.cs deleted file mode 100644 index cd3bcb2c..00000000 --- a/Default.18.200.001/Model/BillDetail.cs +++ /dev/null @@ -1,462 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BillDetail - /// - [DataContract] - public partial class BillDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// amount. - /// branch. - /// calculateDiscountsOnImport. - /// costCode. - /// description. - /// extendedCost. - /// inventoryID. - /// nonBillable. - /// pOLine. - /// pOOrderNbr. - /// pOOrderType. - /// pOReceiptLine. - /// pOReceiptNbr. - /// project. - /// projectTask. - /// qty. - /// subaccount. - /// taxCategory. - /// transactionDescription. - /// unitCost. - /// uOM. - public BillDetail(StringValue account = default(StringValue), DecimalValue amount = default(DecimalValue), StringValue branch = default(StringValue), BooleanValue calculateDiscountsOnImport = default(BooleanValue), StringValue costCode = default(StringValue), StringValue description = default(StringValue), DecimalValue extendedCost = default(DecimalValue), StringValue inventoryID = default(StringValue), BooleanValue nonBillable = default(BooleanValue), IntValue pOLine = default(IntValue), StringValue pOOrderNbr = default(StringValue), StringValue pOOrderType = default(StringValue), IntValue pOReceiptLine = default(IntValue), StringValue pOReceiptNbr = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subaccount = default(StringValue), StringValue taxCategory = default(StringValue), StringValue transactionDescription = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Amount = amount; - this.Branch = branch; - this.CalculateDiscountsOnImport = calculateDiscountsOnImport; - this.CostCode = costCode; - this.Description = description; - this.ExtendedCost = extendedCost; - this.InventoryID = inventoryID; - this.NonBillable = nonBillable; - this.POLine = pOLine; - this.POOrderNbr = pOOrderNbr; - this.POOrderType = pOOrderType; - this.POReceiptLine = pOReceiptLine; - this.POReceiptNbr = pOReceiptNbr; - this.Project = project; - this.ProjectTask = projectTask; - this.Qty = qty; - this.Subaccount = subaccount; - this.TaxCategory = taxCategory; - this.TransactionDescription = transactionDescription; - this.UnitCost = unitCost; - this.UOM = uOM; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CalculateDiscountsOnImport - /// - [DataMember(Name="CalculateDiscountsOnImport", EmitDefaultValue=false)] - public BooleanValue CalculateDiscountsOnImport { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExtendedCost - /// - [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] - public DecimalValue ExtendedCost { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets NonBillable - /// - [DataMember(Name="NonBillable", EmitDefaultValue=false)] - public BooleanValue NonBillable { get; set; } - - /// - /// Gets or Sets POLine - /// - [DataMember(Name="POLine", EmitDefaultValue=false)] - public IntValue POLine { get; set; } - - /// - /// Gets or Sets POOrderNbr - /// - [DataMember(Name="POOrderNbr", EmitDefaultValue=false)] - public StringValue POOrderNbr { get; set; } - - /// - /// Gets or Sets POOrderType - /// - [DataMember(Name="POOrderType", EmitDefaultValue=false)] - public StringValue POOrderType { get; set; } - - /// - /// Gets or Sets POReceiptLine - /// - [DataMember(Name="POReceiptLine", EmitDefaultValue=false)] - public IntValue POReceiptLine { get; set; } - - /// - /// Gets or Sets POReceiptNbr - /// - [DataMember(Name="POReceiptNbr", EmitDefaultValue=false)] - public StringValue POReceiptNbr { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BillDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CalculateDiscountsOnImport: ").Append(CalculateDiscountsOnImport).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExtendedCost: ").Append(ExtendedCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" NonBillable: ").Append(NonBillable).Append("\n"); - sb.Append(" POLine: ").Append(POLine).Append("\n"); - sb.Append(" POOrderNbr: ").Append(POOrderNbr).Append("\n"); - sb.Append(" POOrderType: ").Append(POOrderType).Append("\n"); - sb.Append(" POReceiptLine: ").Append(POReceiptLine).Append("\n"); - sb.Append(" POReceiptNbr: ").Append(POReceiptNbr).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BillDetail); - } - - /// - /// Returns true if BillDetail instances are equal - /// - /// Instance of BillDetail to be compared - /// Boolean - public bool Equals(BillDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CalculateDiscountsOnImport == input.CalculateDiscountsOnImport || - (this.CalculateDiscountsOnImport != null && - this.CalculateDiscountsOnImport.Equals(input.CalculateDiscountsOnImport)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExtendedCost == input.ExtendedCost || - (this.ExtendedCost != null && - this.ExtendedCost.Equals(input.ExtendedCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.NonBillable == input.NonBillable || - (this.NonBillable != null && - this.NonBillable.Equals(input.NonBillable)) - ) && base.Equals(input) && - ( - this.POLine == input.POLine || - (this.POLine != null && - this.POLine.Equals(input.POLine)) - ) && base.Equals(input) && - ( - this.POOrderNbr == input.POOrderNbr || - (this.POOrderNbr != null && - this.POOrderNbr.Equals(input.POOrderNbr)) - ) && base.Equals(input) && - ( - this.POOrderType == input.POOrderType || - (this.POOrderType != null && - this.POOrderType.Equals(input.POOrderType)) - ) && base.Equals(input) && - ( - this.POReceiptLine == input.POReceiptLine || - (this.POReceiptLine != null && - this.POReceiptLine.Equals(input.POReceiptLine)) - ) && base.Equals(input) && - ( - this.POReceiptNbr == input.POReceiptNbr || - (this.POReceiptNbr != null && - this.POReceiptNbr.Equals(input.POReceiptNbr)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CalculateDiscountsOnImport != null) - hashCode = hashCode * 59 + this.CalculateDiscountsOnImport.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExtendedCost != null) - hashCode = hashCode * 59 + this.ExtendedCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.NonBillable != null) - hashCode = hashCode * 59 + this.NonBillable.GetHashCode(); - if (this.POLine != null) - hashCode = hashCode * 59 + this.POLine.GetHashCode(); - if (this.POOrderNbr != null) - hashCode = hashCode * 59 + this.POOrderNbr.GetHashCode(); - if (this.POOrderType != null) - hashCode = hashCode * 59 + this.POOrderType.GetHashCode(); - if (this.POReceiptLine != null) - hashCode = hashCode * 59 + this.POReceiptLine.GetHashCode(); - if (this.POReceiptNbr != null) - hashCode = hashCode * 59 + this.POReceiptNbr.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BillTaxDetail.cs b/Default.18.200.001/Model/BillTaxDetail.cs deleted file mode 100644 index a9f26f78..00000000 --- a/Default.18.200.001/Model/BillTaxDetail.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BillTaxDetail - /// - [DataContract] - public partial class BillTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - public BillTaxDetail(DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BillTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BillTaxDetail); - } - - /// - /// Returns true if BillTaxDetail instances are equal - /// - /// Instance of BillTaxDetail to be compared - /// Boolean - public bool Equals(BillTaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BillToSettings.cs b/Default.18.200.001/Model/BillToSettings.cs deleted file mode 100644 index 347a5a57..00000000 --- a/Default.18.200.001/Model/BillToSettings.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BillToSettings - /// - [DataContract] - public partial class BillToSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billToAddress. - /// billToAddressOverride. - /// billToContact. - /// billToContactOverride. - /// customerLocation. - public BillToSettings(Address billToAddress = default(Address), BooleanValue billToAddressOverride = default(BooleanValue), DocContact billToContact = default(DocContact), BooleanValue billToContactOverride = default(BooleanValue), StringValue customerLocation = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillToAddress = billToAddress; - this.BillToAddressOverride = billToAddressOverride; - this.BillToContact = billToContact; - this.BillToContactOverride = billToContactOverride; - this.CustomerLocation = customerLocation; - } - - /// - /// Gets or Sets BillToAddress - /// - [DataMember(Name="BillToAddress", EmitDefaultValue=false)] - public Address BillToAddress { get; set; } - - /// - /// Gets or Sets BillToAddressOverride - /// - [DataMember(Name="BillToAddressOverride", EmitDefaultValue=false)] - public BooleanValue BillToAddressOverride { get; set; } - - /// - /// Gets or Sets BillToContact - /// - [DataMember(Name="BillToContact", EmitDefaultValue=false)] - public DocContact BillToContact { get; set; } - - /// - /// Gets or Sets BillToContactOverride - /// - [DataMember(Name="BillToContactOverride", EmitDefaultValue=false)] - public BooleanValue BillToContactOverride { get; set; } - - /// - /// Gets or Sets CustomerLocation - /// - [DataMember(Name="CustomerLocation", EmitDefaultValue=false)] - public StringValue CustomerLocation { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BillToSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillToAddress: ").Append(BillToAddress).Append("\n"); - sb.Append(" BillToAddressOverride: ").Append(BillToAddressOverride).Append("\n"); - sb.Append(" BillToContact: ").Append(BillToContact).Append("\n"); - sb.Append(" BillToContactOverride: ").Append(BillToContactOverride).Append("\n"); - sb.Append(" CustomerLocation: ").Append(CustomerLocation).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BillToSettings); - } - - /// - /// Returns true if BillToSettings instances are equal - /// - /// Instance of BillToSettings to be compared - /// Boolean - public bool Equals(BillToSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BillToAddress == input.BillToAddress || - (this.BillToAddress != null && - this.BillToAddress.Equals(input.BillToAddress)) - ) && base.Equals(input) && - ( - this.BillToAddressOverride == input.BillToAddressOverride || - (this.BillToAddressOverride != null && - this.BillToAddressOverride.Equals(input.BillToAddressOverride)) - ) && base.Equals(input) && - ( - this.BillToContact == input.BillToContact || - (this.BillToContact != null && - this.BillToContact.Equals(input.BillToContact)) - ) && base.Equals(input) && - ( - this.BillToContactOverride == input.BillToContactOverride || - (this.BillToContactOverride != null && - this.BillToContactOverride.Equals(input.BillToContactOverride)) - ) && base.Equals(input) && - ( - this.CustomerLocation == input.CustomerLocation || - (this.CustomerLocation != null && - this.CustomerLocation.Equals(input.CustomerLocation)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillToAddress != null) - hashCode = hashCode * 59 + this.BillToAddress.GetHashCode(); - if (this.BillToAddressOverride != null) - hashCode = hashCode * 59 + this.BillToAddressOverride.GetHashCode(); - if (this.BillToContact != null) - hashCode = hashCode * 59 + this.BillToContact.GetHashCode(); - if (this.BillToContactOverride != null) - hashCode = hashCode * 59 + this.BillToContactOverride.GetHashCode(); - if (this.CustomerLocation != null) - hashCode = hashCode * 59 + this.CustomerLocation.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BoxStockItem.cs b/Default.18.200.001/Model/BoxStockItem.cs deleted file mode 100644 index 594de31f..00000000 --- a/Default.18.200.001/Model/BoxStockItem.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BoxStockItem - /// - [DataContract] - public partial class BoxStockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// boxID. - /// description. - /// maxQty. - /// maxVolume. - /// maxWeight. - /// qty. - /// uOM. - public BoxStockItem(StringValue boxID = default(StringValue), StringValue description = default(StringValue), DecimalValue maxQty = default(DecimalValue), DecimalValue maxVolume = default(DecimalValue), DecimalValue maxWeight = default(DecimalValue), DecimalValue qty = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BoxID = boxID; - this.Description = description; - this.MaxQty = maxQty; - this.MaxVolume = maxVolume; - this.MaxWeight = maxWeight; - this.Qty = qty; - this.UOM = uOM; - } - - /// - /// Gets or Sets BoxID - /// - [DataMember(Name="BoxID", EmitDefaultValue=false)] - public StringValue BoxID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets MaxQty - /// - [DataMember(Name="MaxQty", EmitDefaultValue=false)] - public DecimalValue MaxQty { get; set; } - - /// - /// Gets or Sets MaxVolume - /// - [DataMember(Name="MaxVolume", EmitDefaultValue=false)] - public DecimalValue MaxVolume { get; set; } - - /// - /// Gets or Sets MaxWeight - /// - [DataMember(Name="MaxWeight", EmitDefaultValue=false)] - public DecimalValue MaxWeight { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BoxStockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BoxID: ").Append(BoxID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" MaxQty: ").Append(MaxQty).Append("\n"); - sb.Append(" MaxVolume: ").Append(MaxVolume).Append("\n"); - sb.Append(" MaxWeight: ").Append(MaxWeight).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BoxStockItem); - } - - /// - /// Returns true if BoxStockItem instances are equal - /// - /// Instance of BoxStockItem to be compared - /// Boolean - public bool Equals(BoxStockItem input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BoxID == input.BoxID || - (this.BoxID != null && - this.BoxID.Equals(input.BoxID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.MaxQty == input.MaxQty || - (this.MaxQty != null && - this.MaxQty.Equals(input.MaxQty)) - ) && base.Equals(input) && - ( - this.MaxVolume == input.MaxVolume || - (this.MaxVolume != null && - this.MaxVolume.Equals(input.MaxVolume)) - ) && base.Equals(input) && - ( - this.MaxWeight == input.MaxWeight || - (this.MaxWeight != null && - this.MaxWeight.Equals(input.MaxWeight)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BoxID != null) - hashCode = hashCode * 59 + this.BoxID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.MaxQty != null) - hashCode = hashCode * 59 + this.MaxQty.GetHashCode(); - if (this.MaxVolume != null) - hashCode = hashCode * 59 + this.MaxVolume.GetHashCode(); - if (this.MaxWeight != null) - hashCode = hashCode * 59 + this.MaxWeight.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccount.cs b/Default.18.200.001/Model/BusinessAccount.cs deleted file mode 100644 index 44462a64..00000000 --- a/Default.18.200.001/Model/BusinessAccount.cs +++ /dev/null @@ -1,686 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccount - /// - [DataContract] - public partial class BusinessAccount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountRef. - /// activities. - /// attributes. - /// businessAccountID. - /// campaigns. - /// cases. - /// classID. - /// contacts. - /// contracts. - /// defaultLocationSettings. - /// duplicate. - /// duplicates. - /// lastIncomingActivity. - /// lastModifiedDateTime. - /// lastOutgoingActivity. - /// locations. - /// mainAddress. - /// mainAddressValidated. - /// mainContact. - /// marketingLists. - /// name. - /// opportunities. - /// orders. - /// owner. - /// ownerEmployeeName. - /// parentAccount. - /// relations. - /// shippingAddress. - /// shippingAddressSameAsMain. - /// shippingAddressValidated. - /// shippingContact. - /// sourceCampaign. - /// status. - /// type. - /// workgroup. - /// workgroupDescription. - public BusinessAccount(StringValue accountRef = default(StringValue), IEnumerable activities = default(IEnumerable), IEnumerable attributes = default(IEnumerable), StringValue businessAccountID = default(StringValue), IEnumerable campaigns = default(IEnumerable), IEnumerable cases = default(IEnumerable), StringValue classID = default(StringValue), IEnumerable contacts = default(IEnumerable), IEnumerable contracts = default(IEnumerable), BusinessAccountDefaultLocationSetting defaultLocationSettings = default(BusinessAccountDefaultLocationSetting), StringValue duplicate = default(StringValue), IEnumerable duplicates = default(IEnumerable), DateTimeValue lastIncomingActivity = default(DateTimeValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DateTimeValue lastOutgoingActivity = default(DateTimeValue), IEnumerable locations = default(IEnumerable), Address mainAddress = default(Address), BooleanValue mainAddressValidated = default(BooleanValue), BusinessAccountMainContact mainContact = default(BusinessAccountMainContact), IEnumerable marketingLists = default(IEnumerable), StringValue name = default(StringValue), IEnumerable opportunities = default(IEnumerable), IEnumerable orders = default(IEnumerable), StringValue owner = default(StringValue), StringValue ownerEmployeeName = default(StringValue), StringValue parentAccount = default(StringValue), IEnumerable relations = default(IEnumerable), Address shippingAddress = default(Address), BooleanValue shippingAddressSameAsMain = default(BooleanValue), BooleanValue shippingAddressValidated = default(BooleanValue), BusinessAccountShippingContact shippingContact = default(BusinessAccountShippingContact), StringValue sourceCampaign = default(StringValue), StringValue status = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), StringValue workgroupDescription = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountRef = accountRef; - this.Activities = activities; - this.Attributes = attributes; - this.BusinessAccountID = businessAccountID; - this.Campaigns = campaigns; - this.Cases = cases; - this.ClassID = classID; - this.Contacts = contacts; - this.Contracts = contracts; - this.DefaultLocationSettings = defaultLocationSettings; - this.Duplicate = duplicate; - this.Duplicates = duplicates; - this.LastIncomingActivity = lastIncomingActivity; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LastOutgoingActivity = lastOutgoingActivity; - this.Locations = locations; - this.MainAddress = mainAddress; - this.MainAddressValidated = mainAddressValidated; - this.MainContact = mainContact; - this.MarketingLists = marketingLists; - this.Name = name; - this.Opportunities = opportunities; - this.Orders = orders; - this.Owner = owner; - this.OwnerEmployeeName = ownerEmployeeName; - this.ParentAccount = parentAccount; - this.Relations = relations; - this.ShippingAddress = shippingAddress; - this.ShippingAddressSameAsMain = shippingAddressSameAsMain; - this.ShippingAddressValidated = shippingAddressValidated; - this.ShippingContact = shippingContact; - this.SourceCampaign = sourceCampaign; - this.Status = status; - this.Type = type; - this.Workgroup = workgroup; - this.WorkgroupDescription = workgroupDescription; - } - - /// - /// Gets or Sets AccountRef - /// - [DataMember(Name="AccountRef", EmitDefaultValue=false)] - public StringValue AccountRef { get; set; } - - /// - /// Gets or Sets Activities - /// - [DataMember(Name="Activities", EmitDefaultValue=false)] - public IEnumerable Activities { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets BusinessAccountID - /// - [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] - public StringValue BusinessAccountID { get; set; } - - /// - /// Gets or Sets Campaigns - /// - [DataMember(Name="Campaigns", EmitDefaultValue=false)] - public IEnumerable Campaigns { get; set; } - - /// - /// Gets or Sets Cases - /// - [DataMember(Name="Cases", EmitDefaultValue=false)] - public IEnumerable Cases { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets Contacts - /// - [DataMember(Name="Contacts", EmitDefaultValue=false)] - public IEnumerable Contacts { get; set; } - - /// - /// Gets or Sets Contracts - /// - [DataMember(Name="Contracts", EmitDefaultValue=false)] - public IEnumerable Contracts { get; set; } - - /// - /// Gets or Sets DefaultLocationSettings - /// - [DataMember(Name="DefaultLocationSettings", EmitDefaultValue=false)] - public BusinessAccountDefaultLocationSetting DefaultLocationSettings { get; set; } - - /// - /// Gets or Sets Duplicate - /// - [DataMember(Name="Duplicate", EmitDefaultValue=false)] - public StringValue Duplicate { get; set; } - - /// - /// Gets or Sets Duplicates - /// - [DataMember(Name="Duplicates", EmitDefaultValue=false)] - public IEnumerable Duplicates { get; set; } - - /// - /// Gets or Sets LastIncomingActivity - /// - [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] - public DateTimeValue LastIncomingActivity { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LastOutgoingActivity - /// - [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] - public DateTimeValue LastOutgoingActivity { get; set; } - - /// - /// Gets or Sets Locations - /// - [DataMember(Name="Locations", EmitDefaultValue=false)] - public IEnumerable Locations { get; set; } - - /// - /// Gets or Sets MainAddress - /// - [DataMember(Name="MainAddress", EmitDefaultValue=false)] - public Address MainAddress { get; set; } - - /// - /// Gets or Sets MainAddressValidated - /// - [DataMember(Name="MainAddressValidated", EmitDefaultValue=false)] - public BooleanValue MainAddressValidated { get; set; } - - /// - /// Gets or Sets MainContact - /// - [DataMember(Name="MainContact", EmitDefaultValue=false)] - public BusinessAccountMainContact MainContact { get; set; } - - /// - /// Gets or Sets MarketingLists - /// - [DataMember(Name="MarketingLists", EmitDefaultValue=false)] - public IEnumerable MarketingLists { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Gets or Sets Opportunities - /// - [DataMember(Name="Opportunities", EmitDefaultValue=false)] - public IEnumerable Opportunities { get; set; } - - /// - /// Gets or Sets Orders - /// - [DataMember(Name="Orders", EmitDefaultValue=false)] - public IEnumerable Orders { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets OwnerEmployeeName - /// - [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] - public StringValue OwnerEmployeeName { get; set; } - - /// - /// Gets or Sets ParentAccount - /// - [DataMember(Name="ParentAccount", EmitDefaultValue=false)] - public StringValue ParentAccount { get; set; } - - /// - /// Gets or Sets Relations - /// - [DataMember(Name="Relations", EmitDefaultValue=false)] - public IEnumerable Relations { get; set; } - - /// - /// Gets or Sets ShippingAddress - /// - [DataMember(Name="ShippingAddress", EmitDefaultValue=false)] - public Address ShippingAddress { get; set; } - - /// - /// Gets or Sets ShippingAddressSameAsMain - /// - [DataMember(Name="ShippingAddressSameAsMain", EmitDefaultValue=false)] - public BooleanValue ShippingAddressSameAsMain { get; set; } - - /// - /// Gets or Sets ShippingAddressValidated - /// - [DataMember(Name="ShippingAddressValidated", EmitDefaultValue=false)] - public BooleanValue ShippingAddressValidated { get; set; } - - /// - /// Gets or Sets ShippingContact - /// - [DataMember(Name="ShippingContact", EmitDefaultValue=false)] - public BusinessAccountShippingContact ShippingContact { get; set; } - - /// - /// Gets or Sets SourceCampaign - /// - [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] - public StringValue SourceCampaign { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Gets or Sets WorkgroupDescription - /// - [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] - public StringValue WorkgroupDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountRef: ").Append(AccountRef).Append("\n"); - sb.Append(" Activities: ").Append(Activities).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BusinessAccountID: ").Append(BusinessAccountID).Append("\n"); - sb.Append(" Campaigns: ").Append(Campaigns).Append("\n"); - sb.Append(" Cases: ").Append(Cases).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" Contacts: ").Append(Contacts).Append("\n"); - sb.Append(" Contracts: ").Append(Contracts).Append("\n"); - sb.Append(" DefaultLocationSettings: ").Append(DefaultLocationSettings).Append("\n"); - sb.Append(" Duplicate: ").Append(Duplicate).Append("\n"); - sb.Append(" Duplicates: ").Append(Duplicates).Append("\n"); - sb.Append(" LastIncomingActivity: ").Append(LastIncomingActivity).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LastOutgoingActivity: ").Append(LastOutgoingActivity).Append("\n"); - sb.Append(" Locations: ").Append(Locations).Append("\n"); - sb.Append(" MainAddress: ").Append(MainAddress).Append("\n"); - sb.Append(" MainAddressValidated: ").Append(MainAddressValidated).Append("\n"); - sb.Append(" MainContact: ").Append(MainContact).Append("\n"); - sb.Append(" MarketingLists: ").Append(MarketingLists).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Opportunities: ").Append(Opportunities).Append("\n"); - sb.Append(" Orders: ").Append(Orders).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerEmployeeName: ").Append(OwnerEmployeeName).Append("\n"); - sb.Append(" ParentAccount: ").Append(ParentAccount).Append("\n"); - sb.Append(" Relations: ").Append(Relations).Append("\n"); - sb.Append(" ShippingAddress: ").Append(ShippingAddress).Append("\n"); - sb.Append(" ShippingAddressSameAsMain: ").Append(ShippingAddressSameAsMain).Append("\n"); - sb.Append(" ShippingAddressValidated: ").Append(ShippingAddressValidated).Append("\n"); - sb.Append(" ShippingContact: ").Append(ShippingContact).Append("\n"); - sb.Append(" SourceCampaign: ").Append(SourceCampaign).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append(" WorkgroupDescription: ").Append(WorkgroupDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccount); - } - - /// - /// Returns true if BusinessAccount instances are equal - /// - /// Instance of BusinessAccount to be compared - /// Boolean - public bool Equals(BusinessAccount input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountRef == input.AccountRef || - (this.AccountRef != null && - this.AccountRef.Equals(input.AccountRef)) - ) && base.Equals(input) && - ( - this.Activities == input.Activities || - this.Activities != null && - this.Activities.SequenceEqual(input.Activities) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BusinessAccountID == input.BusinessAccountID || - (this.BusinessAccountID != null && - this.BusinessAccountID.Equals(input.BusinessAccountID)) - ) && base.Equals(input) && - ( - this.Campaigns == input.Campaigns || - this.Campaigns != null && - this.Campaigns.SequenceEqual(input.Campaigns) - ) && base.Equals(input) && - ( - this.Cases == input.Cases || - this.Cases != null && - this.Cases.SequenceEqual(input.Cases) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.Contacts == input.Contacts || - this.Contacts != null && - this.Contacts.SequenceEqual(input.Contacts) - ) && base.Equals(input) && - ( - this.Contracts == input.Contracts || - this.Contracts != null && - this.Contracts.SequenceEqual(input.Contracts) - ) && base.Equals(input) && - ( - this.DefaultLocationSettings == input.DefaultLocationSettings || - (this.DefaultLocationSettings != null && - this.DefaultLocationSettings.Equals(input.DefaultLocationSettings)) - ) && base.Equals(input) && - ( - this.Duplicate == input.Duplicate || - (this.Duplicate != null && - this.Duplicate.Equals(input.Duplicate)) - ) && base.Equals(input) && - ( - this.Duplicates == input.Duplicates || - this.Duplicates != null && - this.Duplicates.SequenceEqual(input.Duplicates) - ) && base.Equals(input) && - ( - this.LastIncomingActivity == input.LastIncomingActivity || - (this.LastIncomingActivity != null && - this.LastIncomingActivity.Equals(input.LastIncomingActivity)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LastOutgoingActivity == input.LastOutgoingActivity || - (this.LastOutgoingActivity != null && - this.LastOutgoingActivity.Equals(input.LastOutgoingActivity)) - ) && base.Equals(input) && - ( - this.Locations == input.Locations || - this.Locations != null && - this.Locations.SequenceEqual(input.Locations) - ) && base.Equals(input) && - ( - this.MainAddress == input.MainAddress || - (this.MainAddress != null && - this.MainAddress.Equals(input.MainAddress)) - ) && base.Equals(input) && - ( - this.MainAddressValidated == input.MainAddressValidated || - (this.MainAddressValidated != null && - this.MainAddressValidated.Equals(input.MainAddressValidated)) - ) && base.Equals(input) && - ( - this.MainContact == input.MainContact || - (this.MainContact != null && - this.MainContact.Equals(input.MainContact)) - ) && base.Equals(input) && - ( - this.MarketingLists == input.MarketingLists || - this.MarketingLists != null && - this.MarketingLists.SequenceEqual(input.MarketingLists) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.Opportunities == input.Opportunities || - this.Opportunities != null && - this.Opportunities.SequenceEqual(input.Opportunities) - ) && base.Equals(input) && - ( - this.Orders == input.Orders || - this.Orders != null && - this.Orders.SequenceEqual(input.Orders) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.OwnerEmployeeName == input.OwnerEmployeeName || - (this.OwnerEmployeeName != null && - this.OwnerEmployeeName.Equals(input.OwnerEmployeeName)) - ) && base.Equals(input) && - ( - this.ParentAccount == input.ParentAccount || - (this.ParentAccount != null && - this.ParentAccount.Equals(input.ParentAccount)) - ) && base.Equals(input) && - ( - this.Relations == input.Relations || - this.Relations != null && - this.Relations.SequenceEqual(input.Relations) - ) && base.Equals(input) && - ( - this.ShippingAddress == input.ShippingAddress || - (this.ShippingAddress != null && - this.ShippingAddress.Equals(input.ShippingAddress)) - ) && base.Equals(input) && - ( - this.ShippingAddressSameAsMain == input.ShippingAddressSameAsMain || - (this.ShippingAddressSameAsMain != null && - this.ShippingAddressSameAsMain.Equals(input.ShippingAddressSameAsMain)) - ) && base.Equals(input) && - ( - this.ShippingAddressValidated == input.ShippingAddressValidated || - (this.ShippingAddressValidated != null && - this.ShippingAddressValidated.Equals(input.ShippingAddressValidated)) - ) && base.Equals(input) && - ( - this.ShippingContact == input.ShippingContact || - (this.ShippingContact != null && - this.ShippingContact.Equals(input.ShippingContact)) - ) && base.Equals(input) && - ( - this.SourceCampaign == input.SourceCampaign || - (this.SourceCampaign != null && - this.SourceCampaign.Equals(input.SourceCampaign)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ) && base.Equals(input) && - ( - this.WorkgroupDescription == input.WorkgroupDescription || - (this.WorkgroupDescription != null && - this.WorkgroupDescription.Equals(input.WorkgroupDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountRef != null) - hashCode = hashCode * 59 + this.AccountRef.GetHashCode(); - if (this.Activities != null) - hashCode = hashCode * 59 + this.Activities.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BusinessAccountID != null) - hashCode = hashCode * 59 + this.BusinessAccountID.GetHashCode(); - if (this.Campaigns != null) - hashCode = hashCode * 59 + this.Campaigns.GetHashCode(); - if (this.Cases != null) - hashCode = hashCode * 59 + this.Cases.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.Contacts != null) - hashCode = hashCode * 59 + this.Contacts.GetHashCode(); - if (this.Contracts != null) - hashCode = hashCode * 59 + this.Contracts.GetHashCode(); - if (this.DefaultLocationSettings != null) - hashCode = hashCode * 59 + this.DefaultLocationSettings.GetHashCode(); - if (this.Duplicate != null) - hashCode = hashCode * 59 + this.Duplicate.GetHashCode(); - if (this.Duplicates != null) - hashCode = hashCode * 59 + this.Duplicates.GetHashCode(); - if (this.LastIncomingActivity != null) - hashCode = hashCode * 59 + this.LastIncomingActivity.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LastOutgoingActivity != null) - hashCode = hashCode * 59 + this.LastOutgoingActivity.GetHashCode(); - if (this.Locations != null) - hashCode = hashCode * 59 + this.Locations.GetHashCode(); - if (this.MainAddress != null) - hashCode = hashCode * 59 + this.MainAddress.GetHashCode(); - if (this.MainAddressValidated != null) - hashCode = hashCode * 59 + this.MainAddressValidated.GetHashCode(); - if (this.MainContact != null) - hashCode = hashCode * 59 + this.MainContact.GetHashCode(); - if (this.MarketingLists != null) - hashCode = hashCode * 59 + this.MarketingLists.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Opportunities != null) - hashCode = hashCode * 59 + this.Opportunities.GetHashCode(); - if (this.Orders != null) - hashCode = hashCode * 59 + this.Orders.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerEmployeeName != null) - hashCode = hashCode * 59 + this.OwnerEmployeeName.GetHashCode(); - if (this.ParentAccount != null) - hashCode = hashCode * 59 + this.ParentAccount.GetHashCode(); - if (this.Relations != null) - hashCode = hashCode * 59 + this.Relations.GetHashCode(); - if (this.ShippingAddress != null) - hashCode = hashCode * 59 + this.ShippingAddress.GetHashCode(); - if (this.ShippingAddressSameAsMain != null) - hashCode = hashCode * 59 + this.ShippingAddressSameAsMain.GetHashCode(); - if (this.ShippingAddressValidated != null) - hashCode = hashCode * 59 + this.ShippingAddressValidated.GetHashCode(); - if (this.ShippingContact != null) - hashCode = hashCode * 59 + this.ShippingContact.GetHashCode(); - if (this.SourceCampaign != null) - hashCode = hashCode * 59 + this.SourceCampaign.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - if (this.WorkgroupDescription != null) - hashCode = hashCode * 59 + this.WorkgroupDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountActivityDetail.cs b/Default.18.200.001/Model/BusinessAccountActivityDetail.cs deleted file mode 100644 index 04bf6564..00000000 --- a/Default.18.200.001/Model/BusinessAccountActivityDetail.cs +++ /dev/null @@ -1,430 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountActivityDetail - /// - [DataContract] - public partial class BusinessAccountActivityDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// classIcon. - /// createdAt. - /// creatorID. - /// creatorUsername. - /// isCompleteIcon. - /// noteID. - /// owner. - /// priorityIcon. - /// project. - /// projectTask. - /// refNoteID. - /// relatedEntityDescription. - /// released. - /// reminderIcon. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - /// workgroup. - public BusinessAccountActivityDetail(StringValue classIcon = default(StringValue), DateTimeValue createdAt = default(DateTimeValue), StringValue creatorID = default(StringValue), StringValue creatorUsername = default(StringValue), StringValue isCompleteIcon = default(StringValue), GuidValue noteID = default(GuidValue), StringValue owner = default(StringValue), StringValue priorityIcon = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), GuidValue refNoteID = default(GuidValue), StringValue relatedEntityDescription = default(StringValue), BooleanValue released = default(BooleanValue), StringValue reminderIcon = default(StringValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ClassIcon = classIcon; - this.CreatedAt = createdAt; - this.CreatorID = creatorID; - this.CreatorUsername = creatorUsername; - this.IsCompleteIcon = isCompleteIcon; - this.NoteID = noteID; - this.Owner = owner; - this.PriorityIcon = priorityIcon; - this.Project = project; - this.ProjectTask = projectTask; - this.RefNoteID = refNoteID; - this.RelatedEntityDescription = relatedEntityDescription; - this.Released = released; - this.ReminderIcon = reminderIcon; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets ClassIcon - /// - [DataMember(Name="ClassIcon", EmitDefaultValue=false)] - public StringValue ClassIcon { get; set; } - - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name="CreatedAt", EmitDefaultValue=false)] - public DateTimeValue CreatedAt { get; set; } - - /// - /// Gets or Sets CreatorID - /// - [DataMember(Name="CreatorID", EmitDefaultValue=false)] - public StringValue CreatorID { get; set; } - - /// - /// Gets or Sets CreatorUsername - /// - [DataMember(Name="CreatorUsername", EmitDefaultValue=false)] - public StringValue CreatorUsername { get; set; } - - /// - /// Gets or Sets IsCompleteIcon - /// - [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] - public StringValue IsCompleteIcon { get; set; } - - /// - /// Gets or Sets NoteID - /// - [DataMember(Name="NoteID", EmitDefaultValue=false)] - public GuidValue NoteID { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets PriorityIcon - /// - [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] - public StringValue PriorityIcon { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets RefNoteID - /// - [DataMember(Name="RefNoteID", EmitDefaultValue=false)] - public GuidValue RefNoteID { get; set; } - - /// - /// Gets or Sets RelatedEntityDescription - /// - [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] - public StringValue RelatedEntityDescription { get; set; } - - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } - - /// - /// Gets or Sets ReminderIcon - /// - [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] - public StringValue ReminderIcon { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountActivityDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ClassIcon: ").Append(ClassIcon).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" CreatorID: ").Append(CreatorID).Append("\n"); - sb.Append(" CreatorUsername: ").Append(CreatorUsername).Append("\n"); - sb.Append(" IsCompleteIcon: ").Append(IsCompleteIcon).Append("\n"); - sb.Append(" NoteID: ").Append(NoteID).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PriorityIcon: ").Append(PriorityIcon).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" RefNoteID: ").Append(RefNoteID).Append("\n"); - sb.Append(" RelatedEntityDescription: ").Append(RelatedEntityDescription).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" ReminderIcon: ").Append(ReminderIcon).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountActivityDetail); - } - - /// - /// Returns true if BusinessAccountActivityDetail instances are equal - /// - /// Instance of BusinessAccountActivityDetail to be compared - /// Boolean - public bool Equals(BusinessAccountActivityDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ClassIcon == input.ClassIcon || - (this.ClassIcon != null && - this.ClassIcon.Equals(input.ClassIcon)) - ) && base.Equals(input) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && base.Equals(input) && - ( - this.CreatorID == input.CreatorID || - (this.CreatorID != null && - this.CreatorID.Equals(input.CreatorID)) - ) && base.Equals(input) && - ( - this.CreatorUsername == input.CreatorUsername || - (this.CreatorUsername != null && - this.CreatorUsername.Equals(input.CreatorUsername)) - ) && base.Equals(input) && - ( - this.IsCompleteIcon == input.IsCompleteIcon || - (this.IsCompleteIcon != null && - this.IsCompleteIcon.Equals(input.IsCompleteIcon)) - ) && base.Equals(input) && - ( - this.NoteID == input.NoteID || - (this.NoteID != null && - this.NoteID.Equals(input.NoteID)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PriorityIcon == input.PriorityIcon || - (this.PriorityIcon != null && - this.PriorityIcon.Equals(input.PriorityIcon)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.RefNoteID == input.RefNoteID || - (this.RefNoteID != null && - this.RefNoteID.Equals(input.RefNoteID)) - ) && base.Equals(input) && - ( - this.RelatedEntityDescription == input.RelatedEntityDescription || - (this.RelatedEntityDescription != null && - this.RelatedEntityDescription.Equals(input.RelatedEntityDescription)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.ReminderIcon == input.ReminderIcon || - (this.ReminderIcon != null && - this.ReminderIcon.Equals(input.ReminderIcon)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ClassIcon != null) - hashCode = hashCode * 59 + this.ClassIcon.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.CreatorID != null) - hashCode = hashCode * 59 + this.CreatorID.GetHashCode(); - if (this.CreatorUsername != null) - hashCode = hashCode * 59 + this.CreatorUsername.GetHashCode(); - if (this.IsCompleteIcon != null) - hashCode = hashCode * 59 + this.IsCompleteIcon.GetHashCode(); - if (this.NoteID != null) - hashCode = hashCode * 59 + this.NoteID.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PriorityIcon != null) - hashCode = hashCode * 59 + this.PriorityIcon.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.RefNoteID != null) - hashCode = hashCode * 59 + this.RefNoteID.GetHashCode(); - if (this.RelatedEntityDescription != null) - hashCode = hashCode * 59 + this.RelatedEntityDescription.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.ReminderIcon != null) - hashCode = hashCode * 59 + this.ReminderIcon.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountCaseDetail.cs b/Default.18.200.001/Model/BusinessAccountCaseDetail.cs deleted file mode 100644 index f58a8253..00000000 --- a/Default.18.200.001/Model/BusinessAccountCaseDetail.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountCaseDetail - /// - [DataContract] - public partial class BusinessAccountCaseDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// caseID. - /// classID. - /// closingDate. - /// contract. - /// dateReported. - /// estimation. - /// initialResponse. - /// owner. - /// reason. - /// severity. - /// status. - /// subject. - /// workgroup. - public BusinessAccountCaseDetail(StringValue caseID = default(StringValue), StringValue classID = default(StringValue), DateTimeValue closingDate = default(DateTimeValue), StringValue contract = default(StringValue), DateTimeValue dateReported = default(DateTimeValue), StringValue estimation = default(StringValue), StringValue initialResponse = default(StringValue), StringValue owner = default(StringValue), StringValue reason = default(StringValue), StringValue severity = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CaseID = caseID; - this.ClassID = classID; - this.ClosingDate = closingDate; - this.Contract = contract; - this.DateReported = dateReported; - this.Estimation = estimation; - this.InitialResponse = initialResponse; - this.Owner = owner; - this.Reason = reason; - this.Severity = severity; - this.Status = status; - this.Subject = subject; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets CaseID - /// - [DataMember(Name="CaseID", EmitDefaultValue=false)] - public StringValue CaseID { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets ClosingDate - /// - [DataMember(Name="ClosingDate", EmitDefaultValue=false)] - public DateTimeValue ClosingDate { get; set; } - - /// - /// Gets or Sets Contract - /// - [DataMember(Name="Contract", EmitDefaultValue=false)] - public StringValue Contract { get; set; } - - /// - /// Gets or Sets DateReported - /// - [DataMember(Name="DateReported", EmitDefaultValue=false)] - public DateTimeValue DateReported { get; set; } - - /// - /// Gets or Sets Estimation - /// - [DataMember(Name="Estimation", EmitDefaultValue=false)] - public StringValue Estimation { get; set; } - - /// - /// Gets or Sets InitialResponse - /// - [DataMember(Name="InitialResponse", EmitDefaultValue=false)] - public StringValue InitialResponse { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } - - /// - /// Gets or Sets Severity - /// - [DataMember(Name="Severity", EmitDefaultValue=false)] - public StringValue Severity { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountCaseDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CaseID: ").Append(CaseID).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" ClosingDate: ").Append(ClosingDate).Append("\n"); - sb.Append(" Contract: ").Append(Contract).Append("\n"); - sb.Append(" DateReported: ").Append(DateReported).Append("\n"); - sb.Append(" Estimation: ").Append(Estimation).Append("\n"); - sb.Append(" InitialResponse: ").Append(InitialResponse).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" Severity: ").Append(Severity).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountCaseDetail); - } - - /// - /// Returns true if BusinessAccountCaseDetail instances are equal - /// - /// Instance of BusinessAccountCaseDetail to be compared - /// Boolean - public bool Equals(BusinessAccountCaseDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CaseID == input.CaseID || - (this.CaseID != null && - this.CaseID.Equals(input.CaseID)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.ClosingDate == input.ClosingDate || - (this.ClosingDate != null && - this.ClosingDate.Equals(input.ClosingDate)) - ) && base.Equals(input) && - ( - this.Contract == input.Contract || - (this.Contract != null && - this.Contract.Equals(input.Contract)) - ) && base.Equals(input) && - ( - this.DateReported == input.DateReported || - (this.DateReported != null && - this.DateReported.Equals(input.DateReported)) - ) && base.Equals(input) && - ( - this.Estimation == input.Estimation || - (this.Estimation != null && - this.Estimation.Equals(input.Estimation)) - ) && base.Equals(input) && - ( - this.InitialResponse == input.InitialResponse || - (this.InitialResponse != null && - this.InitialResponse.Equals(input.InitialResponse)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.Severity == input.Severity || - (this.Severity != null && - this.Severity.Equals(input.Severity)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CaseID != null) - hashCode = hashCode * 59 + this.CaseID.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.ClosingDate != null) - hashCode = hashCode * 59 + this.ClosingDate.GetHashCode(); - if (this.Contract != null) - hashCode = hashCode * 59 + this.Contract.GetHashCode(); - if (this.DateReported != null) - hashCode = hashCode * 59 + this.DateReported.GetHashCode(); - if (this.Estimation != null) - hashCode = hashCode * 59 + this.Estimation.GetHashCode(); - if (this.InitialResponse != null) - hashCode = hashCode * 59 + this.InitialResponse.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.Severity != null) - hashCode = hashCode * 59 + this.Severity.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountClassAttributeDetail.cs b/Default.18.200.001/Model/BusinessAccountClassAttributeDetail.cs deleted file mode 100644 index 01fe87d2..00000000 --- a/Default.18.200.001/Model/BusinessAccountClassAttributeDetail.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountClassAttributeDetail - /// - [DataContract] - public partial class BusinessAccountClassAttributeDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// attributeID. - /// defaultValue. - /// description. - /// required. - /// sortOrder. - public BusinessAccountClassAttributeDetail(BooleanValue active = default(BooleanValue), StringValue attributeID = default(StringValue), StringValue defaultValue = default(StringValue), StringValue description = default(StringValue), BooleanValue required = default(BooleanValue), ShortValue sortOrder = default(ShortValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AttributeID = attributeID; - this.DefaultValue = defaultValue; - this.Description = description; - this.Required = required; - this.SortOrder = sortOrder; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AttributeID - /// - [DataMember(Name="AttributeID", EmitDefaultValue=false)] - public StringValue AttributeID { get; set; } - - /// - /// Gets or Sets DefaultValue - /// - [DataMember(Name="DefaultValue", EmitDefaultValue=false)] - public StringValue DefaultValue { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="Required", EmitDefaultValue=false)] - public BooleanValue Required { get; set; } - - /// - /// Gets or Sets SortOrder - /// - [DataMember(Name="SortOrder", EmitDefaultValue=false)] - public ShortValue SortOrder { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountClassAttributeDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AttributeID: ").Append(AttributeID).Append("\n"); - sb.Append(" DefaultValue: ").Append(DefaultValue).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" SortOrder: ").Append(SortOrder).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountClassAttributeDetail); - } - - /// - /// Returns true if BusinessAccountClassAttributeDetail instances are equal - /// - /// Instance of BusinessAccountClassAttributeDetail to be compared - /// Boolean - public bool Equals(BusinessAccountClassAttributeDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AttributeID == input.AttributeID || - (this.AttributeID != null && - this.AttributeID.Equals(input.AttributeID)) - ) && base.Equals(input) && - ( - this.DefaultValue == input.DefaultValue || - (this.DefaultValue != null && - this.DefaultValue.Equals(input.DefaultValue)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && base.Equals(input) && - ( - this.SortOrder == input.SortOrder || - (this.SortOrder != null && - this.SortOrder.Equals(input.SortOrder)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AttributeID != null) - hashCode = hashCode * 59 + this.AttributeID.GetHashCode(); - if (this.DefaultValue != null) - hashCode = hashCode * 59 + this.DefaultValue.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.SortOrder != null) - hashCode = hashCode * 59 + this.SortOrder.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountContact.cs b/Default.18.200.001/Model/BusinessAccountContact.cs deleted file mode 100644 index 3de736c4..00000000 --- a/Default.18.200.001/Model/BusinessAccountContact.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountContact - /// - [DataContract] - public partial class BusinessAccountContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// city. - /// contactID. - /// displayName. - /// email. - /// jobTitle. - /// owner. - /// phone1. - /// type. - /// workgroup. - public BusinessAccountContact(BooleanValue active = default(BooleanValue), StringValue city = default(StringValue), IntValue contactID = default(IntValue), StringValue displayName = default(StringValue), StringValue email = default(StringValue), StringValue jobTitle = default(StringValue), StringValue owner = default(StringValue), StringValue phone1 = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.City = city; - this.ContactID = contactID; - this.DisplayName = displayName; - this.Email = email; - this.JobTitle = jobTitle; - this.Owner = owner; - this.Phone1 = phone1; - this.Type = type; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets City - /// - [DataMember(Name="City", EmitDefaultValue=false)] - public StringValue City { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets JobTitle - /// - [DataMember(Name="JobTitle", EmitDefaultValue=false)] - public StringValue JobTitle { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountContact); - } - - /// - /// Returns true if BusinessAccountContact instances are equal - /// - /// Instance of BusinessAccountContact to be compared - /// Boolean - public bool Equals(BusinessAccountContact input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.JobTitle == input.JobTitle || - (this.JobTitle != null && - this.JobTitle.Equals(input.JobTitle)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.City != null) - hashCode = hashCode * 59 + this.City.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.JobTitle != null) - hashCode = hashCode * 59 + this.JobTitle.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountContract.cs b/Default.18.200.001/Model/BusinessAccountContract.cs deleted file mode 100644 index be6cae82..00000000 --- a/Default.18.200.001/Model/BusinessAccountContract.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountContract - /// - [DataContract] - public partial class BusinessAccountContract : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// businessAccountID. - /// businessAccountName. - /// contractID. - /// description. - /// expirationDate. - /// location. - /// status. - public BusinessAccountContract(StringValue businessAccountID = default(StringValue), StringValue businessAccountName = default(StringValue), StringValue contractID = default(StringValue), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue location = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BusinessAccountID = businessAccountID; - this.BusinessAccountName = businessAccountName; - this.ContractID = contractID; - this.Description = description; - this.ExpirationDate = expirationDate; - this.Location = location; - this.Status = status; - } - - /// - /// Gets or Sets BusinessAccountID - /// - [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] - public StringValue BusinessAccountID { get; set; } - - /// - /// Gets or Sets BusinessAccountName - /// - [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] - public StringValue BusinessAccountName { get; set; } - - /// - /// Gets or Sets ContractID - /// - [DataMember(Name="ContractID", EmitDefaultValue=false)] - public StringValue ContractID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountContract {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BusinessAccountID: ").Append(BusinessAccountID).Append("\n"); - sb.Append(" BusinessAccountName: ").Append(BusinessAccountName).Append("\n"); - sb.Append(" ContractID: ").Append(ContractID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountContract); - } - - /// - /// Returns true if BusinessAccountContract instances are equal - /// - /// Instance of BusinessAccountContract to be compared - /// Boolean - public bool Equals(BusinessAccountContract input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BusinessAccountID == input.BusinessAccountID || - (this.BusinessAccountID != null && - this.BusinessAccountID.Equals(input.BusinessAccountID)) - ) && base.Equals(input) && - ( - this.BusinessAccountName == input.BusinessAccountName || - (this.BusinessAccountName != null && - this.BusinessAccountName.Equals(input.BusinessAccountName)) - ) && base.Equals(input) && - ( - this.ContractID == input.ContractID || - (this.ContractID != null && - this.ContractID.Equals(input.ContractID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BusinessAccountID != null) - hashCode = hashCode * 59 + this.BusinessAccountID.GetHashCode(); - if (this.BusinessAccountName != null) - hashCode = hashCode * 59 + this.BusinessAccountName.GetHashCode(); - if (this.ContractID != null) - hashCode = hashCode * 59 + this.ContractID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountDefaultLocationSetting.cs b/Default.18.200.001/Model/BusinessAccountDefaultLocationSetting.cs deleted file mode 100644 index 3771d8f0..00000000 --- a/Default.18.200.001/Model/BusinessAccountDefaultLocationSetting.cs +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountDefaultLocationSetting - /// - [DataContract] - public partial class BusinessAccountDefaultLocationSetting : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// fOBPoint. - /// insurance. - /// leadTimeInDays. - /// locationName. - /// orderPriority. - /// priceClass. - /// residentialDelivery. - /// saturdayDelivery. - /// shippingBranch. - /// shippingRule. - /// shippingTerms. - /// shippingZone. - /// shipVia. - /// taxRegistrationID. - /// taxZone. - /// warehouse. - public BusinessAccountDefaultLocationSetting(StringValue fOBPoint = default(StringValue), BooleanValue insurance = default(BooleanValue), ShortValue leadTimeInDays = default(ShortValue), StringValue locationName = default(StringValue), ShortValue orderPriority = default(ShortValue), StringValue priceClass = default(StringValue), BooleanValue residentialDelivery = default(BooleanValue), BooleanValue saturdayDelivery = default(BooleanValue), StringValue shippingBranch = default(StringValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shippingZone = default(StringValue), StringValue shipVia = default(StringValue), StringValue taxRegistrationID = default(StringValue), StringValue taxZone = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.FOBPoint = fOBPoint; - this.Insurance = insurance; - this.LeadTimeInDays = leadTimeInDays; - this.LocationName = locationName; - this.OrderPriority = orderPriority; - this.PriceClass = priceClass; - this.ResidentialDelivery = residentialDelivery; - this.SaturdayDelivery = saturdayDelivery; - this.ShippingBranch = shippingBranch; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShippingZone = shippingZone; - this.ShipVia = shipVia; - this.TaxRegistrationID = taxRegistrationID; - this.TaxZone = taxZone; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets Insurance - /// - [DataMember(Name="Insurance", EmitDefaultValue=false)] - public BooleanValue Insurance { get; set; } - - /// - /// Gets or Sets LeadTimeInDays - /// - [DataMember(Name="LeadTimeInDays", EmitDefaultValue=false)] - public ShortValue LeadTimeInDays { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets OrderPriority - /// - [DataMember(Name="OrderPriority", EmitDefaultValue=false)] - public ShortValue OrderPriority { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } - - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } - - /// - /// Gets or Sets ShippingBranch - /// - [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] - public StringValue ShippingBranch { get; set; } - - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShippingZone - /// - [DataMember(Name="ShippingZone", EmitDefaultValue=false)] - public StringValue ShippingZone { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets TaxRegistrationID - /// - [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] - public StringValue TaxRegistrationID { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountDefaultLocationSetting {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" Insurance: ").Append(Insurance).Append("\n"); - sb.Append(" LeadTimeInDays: ").Append(LeadTimeInDays).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" OrderPriority: ").Append(OrderPriority).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" ShippingBranch: ").Append(ShippingBranch).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZone: ").Append(ShippingZone).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" TaxRegistrationID: ").Append(TaxRegistrationID).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountDefaultLocationSetting); - } - - /// - /// Returns true if BusinessAccountDefaultLocationSetting instances are equal - /// - /// Instance of BusinessAccountDefaultLocationSetting to be compared - /// Boolean - public bool Equals(BusinessAccountDefaultLocationSetting input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.Insurance == input.Insurance || - (this.Insurance != null && - this.Insurance.Equals(input.Insurance)) - ) && base.Equals(input) && - ( - this.LeadTimeInDays == input.LeadTimeInDays || - (this.LeadTimeInDays != null && - this.LeadTimeInDays.Equals(input.LeadTimeInDays)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.OrderPriority == input.OrderPriority || - (this.OrderPriority != null && - this.OrderPriority.Equals(input.OrderPriority)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.ShippingBranch == input.ShippingBranch || - (this.ShippingBranch != null && - this.ShippingBranch.Equals(input.ShippingBranch)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZone == input.ShippingZone || - (this.ShippingZone != null && - this.ShippingZone.Equals(input.ShippingZone)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.TaxRegistrationID == input.TaxRegistrationID || - (this.TaxRegistrationID != null && - this.TaxRegistrationID.Equals(input.TaxRegistrationID)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.Insurance != null) - hashCode = hashCode * 59 + this.Insurance.GetHashCode(); - if (this.LeadTimeInDays != null) - hashCode = hashCode * 59 + this.LeadTimeInDays.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.OrderPriority != null) - hashCode = hashCode * 59 + this.OrderPriority.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.ShippingBranch != null) - hashCode = hashCode * 59 + this.ShippingBranch.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZone != null) - hashCode = hashCode * 59 + this.ShippingZone.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.TaxRegistrationID != null) - hashCode = hashCode * 59 + this.TaxRegistrationID.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountLocation.cs b/Default.18.200.001/Model/BusinessAccountLocation.cs deleted file mode 100644 index 1c682e07..00000000 --- a/Default.18.200.001/Model/BusinessAccountLocation.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountLocation - /// - [DataContract] - public partial class BusinessAccountLocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// city. - /// country. - /// _default. - /// locationID. - /// locationName. - /// priceClass. - /// salesAccount. - /// salesSubaccount. - /// state. - /// taxZone. - public BusinessAccountLocation(BooleanValue active = default(BooleanValue), StringValue city = default(StringValue), StringValue country = default(StringValue), BooleanValue _default = default(BooleanValue), StringValue locationID = default(StringValue), StringValue locationName = default(StringValue), StringValue priceClass = default(StringValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), StringValue state = default(StringValue), StringValue taxZone = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.City = city; - this.Country = country; - this.Default = _default; - this.LocationID = locationID; - this.LocationName = locationName; - this.PriceClass = priceClass; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.State = state; - this.TaxZone = taxZone; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets City - /// - [DataMember(Name="City", EmitDefaultValue=false)] - public StringValue City { get; set; } - - /// - /// Gets or Sets Country - /// - [DataMember(Name="Country", EmitDefaultValue=false)] - public StringValue Country { get; set; } - - /// - /// Gets or Sets Default - /// - [DataMember(Name="Default", EmitDefaultValue=false)] - public BooleanValue Default { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets State - /// - [DataMember(Name="State", EmitDefaultValue=false)] - public StringValue State { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountLocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountLocation); - } - - /// - /// Returns true if BusinessAccountLocation instances are equal - /// - /// Instance of BusinessAccountLocation to be compared - /// Boolean - public bool Equals(BusinessAccountLocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && base.Equals(input) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ) && base.Equals(input) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.City != null) - hashCode = hashCode * 59 + this.City.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.State != null) - hashCode = hashCode * 59 + this.State.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountMainContact.cs b/Default.18.200.001/Model/BusinessAccountMainContact.cs deleted file mode 100644 index 71218c16..00000000 --- a/Default.18.200.001/Model/BusinessAccountMainContact.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountMainContact - /// - [DataContract] - public partial class BusinessAccountMainContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attention. - /// companyName. - /// email. - /// fax. - /// jobTitle. - /// languageOrLocale. - /// phone1. - /// phone2. - /// web. - public BusinessAccountMainContact(StringValue attention = default(StringValue), StringValue companyName = default(StringValue), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue jobTitle = default(StringValue), StringValue languageOrLocale = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone2 = default(StringValue), StringValue web = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attention = attention; - this.CompanyName = companyName; - this.Email = email; - this.Fax = fax; - this.JobTitle = jobTitle; - this.LanguageOrLocale = languageOrLocale; - this.Phone1 = phone1; - this.Phone2 = phone2; - this.Web = web; - } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets CompanyName - /// - [DataMember(Name="CompanyName", EmitDefaultValue=false)] - public StringValue CompanyName { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets JobTitle - /// - [DataMember(Name="JobTitle", EmitDefaultValue=false)] - public StringValue JobTitle { get; set; } - - /// - /// Gets or Sets LanguageOrLocale - /// - [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] - public StringValue LanguageOrLocale { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } - - /// - /// Gets or Sets Web - /// - [DataMember(Name="Web", EmitDefaultValue=false)] - public StringValue Web { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountMainContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); - sb.Append(" LanguageOrLocale: ").Append(LanguageOrLocale).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" Web: ").Append(Web).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountMainContact); - } - - /// - /// Returns true if BusinessAccountMainContact instances are equal - /// - /// Instance of BusinessAccountMainContact to be compared - /// Boolean - public bool Equals(BusinessAccountMainContact input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.CompanyName == input.CompanyName || - (this.CompanyName != null && - this.CompanyName.Equals(input.CompanyName)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.JobTitle == input.JobTitle || - (this.JobTitle != null && - this.JobTitle.Equals(input.JobTitle)) - ) && base.Equals(input) && - ( - this.LanguageOrLocale == input.LanguageOrLocale || - (this.LanguageOrLocale != null && - this.LanguageOrLocale.Equals(input.LanguageOrLocale)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.Web == input.Web || - (this.Web != null && - this.Web.Equals(input.Web)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.CompanyName != null) - hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.JobTitle != null) - hashCode = hashCode * 59 + this.JobTitle.GetHashCode(); - if (this.LanguageOrLocale != null) - hashCode = hashCode * 59 + this.LanguageOrLocale.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.Web != null) - hashCode = hashCode * 59 + this.Web.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountMarketingListDetail.cs b/Default.18.200.001/Model/BusinessAccountMarketingListDetail.cs deleted file mode 100644 index 5a7e31d4..00000000 --- a/Default.18.200.001/Model/BusinessAccountMarketingListDetail.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountMarketingListDetail - /// - [DataContract] - public partial class BusinessAccountMarketingListDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// contactID. - /// dynamicList. - /// email. - /// format. - /// listName. - /// marketingListID. - /// memberName. - /// phone1. - /// subscribed. - public BusinessAccountMarketingListDetail(IntValue contactID = default(IntValue), BooleanValue dynamicList = default(BooleanValue), StringValue email = default(StringValue), StringValue format = default(StringValue), StringValue listName = default(StringValue), IntValue marketingListID = default(IntValue), StringValue memberName = default(StringValue), StringValue phone1 = default(StringValue), BooleanValue subscribed = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ContactID = contactID; - this.DynamicList = dynamicList; - this.Email = email; - this.Format = format; - this.ListName = listName; - this.MarketingListID = marketingListID; - this.MemberName = memberName; - this.Phone1 = phone1; - this.Subscribed = subscribed; - } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets DynamicList - /// - [DataMember(Name="DynamicList", EmitDefaultValue=false)] - public BooleanValue DynamicList { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Format - /// - [DataMember(Name="Format", EmitDefaultValue=false)] - public StringValue Format { get; set; } - - /// - /// Gets or Sets ListName - /// - [DataMember(Name="ListName", EmitDefaultValue=false)] - public StringValue ListName { get; set; } - - /// - /// Gets or Sets MarketingListID - /// - [DataMember(Name="MarketingListID", EmitDefaultValue=false)] - public IntValue MarketingListID { get; set; } - - /// - /// Gets or Sets MemberName - /// - [DataMember(Name="MemberName", EmitDefaultValue=false)] - public StringValue MemberName { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Subscribed - /// - [DataMember(Name="Subscribed", EmitDefaultValue=false)] - public BooleanValue Subscribed { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountMarketingListDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" DynamicList: ").Append(DynamicList).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Format: ").Append(Format).Append("\n"); - sb.Append(" ListName: ").Append(ListName).Append("\n"); - sb.Append(" MarketingListID: ").Append(MarketingListID).Append("\n"); - sb.Append(" MemberName: ").Append(MemberName).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Subscribed: ").Append(Subscribed).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountMarketingListDetail); - } - - /// - /// Returns true if BusinessAccountMarketingListDetail instances are equal - /// - /// Instance of BusinessAccountMarketingListDetail to be compared - /// Boolean - public bool Equals(BusinessAccountMarketingListDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.DynamicList == input.DynamicList || - (this.DynamicList != null && - this.DynamicList.Equals(input.DynamicList)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Format == input.Format || - (this.Format != null && - this.Format.Equals(input.Format)) - ) && base.Equals(input) && - ( - this.ListName == input.ListName || - (this.ListName != null && - this.ListName.Equals(input.ListName)) - ) && base.Equals(input) && - ( - this.MarketingListID == input.MarketingListID || - (this.MarketingListID != null && - this.MarketingListID.Equals(input.MarketingListID)) - ) && base.Equals(input) && - ( - this.MemberName == input.MemberName || - (this.MemberName != null && - this.MemberName.Equals(input.MemberName)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Subscribed == input.Subscribed || - (this.Subscribed != null && - this.Subscribed.Equals(input.Subscribed)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.DynamicList != null) - hashCode = hashCode * 59 + this.DynamicList.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Format != null) - hashCode = hashCode * 59 + this.Format.GetHashCode(); - if (this.ListName != null) - hashCode = hashCode * 59 + this.ListName.GetHashCode(); - if (this.MarketingListID != null) - hashCode = hashCode * 59 + this.MarketingListID.GetHashCode(); - if (this.MemberName != null) - hashCode = hashCode * 59 + this.MemberName.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Subscribed != null) - hashCode = hashCode * 59 + this.Subscribed.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountOpportunityDetail.cs b/Default.18.200.001/Model/BusinessAccountOpportunityDetail.cs deleted file mode 100644 index f62f0d0e..00000000 --- a/Default.18.200.001/Model/BusinessAccountOpportunityDetail.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountOpportunityDetail - /// - [DataContract] - public partial class BusinessAccountOpportunityDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// businessAccountID. - /// businessAccountName. - /// currencyID. - /// displayName. - /// estimation. - /// owner. - /// probability. - /// stage. - /// status. - /// subject. - /// total. - /// workgroup. - public BusinessAccountOpportunityDetail(StringValue businessAccountID = default(StringValue), StringValue businessAccountName = default(StringValue), StringValue currencyID = default(StringValue), StringValue displayName = default(StringValue), DateTimeValue estimation = default(DateTimeValue), StringValue owner = default(StringValue), IntValue probability = default(IntValue), StringValue stage = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), DecimalValue total = default(DecimalValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BusinessAccountID = businessAccountID; - this.BusinessAccountName = businessAccountName; - this.CurrencyID = currencyID; - this.DisplayName = displayName; - this.Estimation = estimation; - this.Owner = owner; - this.Probability = probability; - this.Stage = stage; - this.Status = status; - this.Subject = subject; - this.Total = total; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets BusinessAccountID - /// - [DataMember(Name="BusinessAccountID", EmitDefaultValue=false)] - public StringValue BusinessAccountID { get; set; } - - /// - /// Gets or Sets BusinessAccountName - /// - [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] - public StringValue BusinessAccountName { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets Estimation - /// - [DataMember(Name="Estimation", EmitDefaultValue=false)] - public DateTimeValue Estimation { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Probability - /// - [DataMember(Name="Probability", EmitDefaultValue=false)] - public IntValue Probability { get; set; } - - /// - /// Gets or Sets Stage - /// - [DataMember(Name="Stage", EmitDefaultValue=false)] - public StringValue Stage { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets Total - /// - [DataMember(Name="Total", EmitDefaultValue=false)] - public DecimalValue Total { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountOpportunityDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BusinessAccountID: ").Append(BusinessAccountID).Append("\n"); - sb.Append(" BusinessAccountName: ").Append(BusinessAccountName).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Estimation: ").Append(Estimation).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Probability: ").Append(Probability).Append("\n"); - sb.Append(" Stage: ").Append(Stage).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Total: ").Append(Total).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountOpportunityDetail); - } - - /// - /// Returns true if BusinessAccountOpportunityDetail instances are equal - /// - /// Instance of BusinessAccountOpportunityDetail to be compared - /// Boolean - public bool Equals(BusinessAccountOpportunityDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BusinessAccountID == input.BusinessAccountID || - (this.BusinessAccountID != null && - this.BusinessAccountID.Equals(input.BusinessAccountID)) - ) && base.Equals(input) && - ( - this.BusinessAccountName == input.BusinessAccountName || - (this.BusinessAccountName != null && - this.BusinessAccountName.Equals(input.BusinessAccountName)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.Estimation == input.Estimation || - (this.Estimation != null && - this.Estimation.Equals(input.Estimation)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Probability == input.Probability || - (this.Probability != null && - this.Probability.Equals(input.Probability)) - ) && base.Equals(input) && - ( - this.Stage == input.Stage || - (this.Stage != null && - this.Stage.Equals(input.Stage)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.Total == input.Total || - (this.Total != null && - this.Total.Equals(input.Total)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BusinessAccountID != null) - hashCode = hashCode * 59 + this.BusinessAccountID.GetHashCode(); - if (this.BusinessAccountName != null) - hashCode = hashCode * 59 + this.BusinessAccountName.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Estimation != null) - hashCode = hashCode * 59 + this.Estimation.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Probability != null) - hashCode = hashCode * 59 + this.Probability.GetHashCode(); - if (this.Stage != null) - hashCode = hashCode * 59 + this.Stage.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Total != null) - hashCode = hashCode * 59 + this.Total.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountOrder.cs b/Default.18.200.001/Model/BusinessAccountOrder.cs deleted file mode 100644 index 3a069b2d..00000000 --- a/Default.18.200.001/Model/BusinessAccountOrder.cs +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountOrder - /// - [DataContract] - public partial class BusinessAccountOrder : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// currencyID. - /// customerOrder. - /// description. - /// orderedQty. - /// orderNbr. - /// orderTotal. - /// orderType. - /// orderVolume. - /// orderWeight. - /// requestedOn. - /// scheduledShipment. - /// shippingZone. - /// shipVia. - /// status. - public BusinessAccountOrder(StringValue currencyID = default(StringValue), StringValue customerOrder = default(StringValue), StringValue description = default(StringValue), DecimalValue orderedQty = default(DecimalValue), StringValue orderNbr = default(StringValue), DecimalValue orderTotal = default(DecimalValue), StringValue orderType = default(StringValue), DecimalValue orderVolume = default(DecimalValue), DecimalValue orderWeight = default(DecimalValue), DateTimeValue requestedOn = default(DateTimeValue), DateTimeValue scheduledShipment = default(DateTimeValue), StringValue shippingZone = default(StringValue), StringValue shipVia = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CurrencyID = currencyID; - this.CustomerOrder = customerOrder; - this.Description = description; - this.OrderedQty = orderedQty; - this.OrderNbr = orderNbr; - this.OrderTotal = orderTotal; - this.OrderType = orderType; - this.OrderVolume = orderVolume; - this.OrderWeight = orderWeight; - this.RequestedOn = requestedOn; - this.ScheduledShipment = scheduledShipment; - this.ShippingZone = shippingZone; - this.ShipVia = shipVia; - this.Status = status; - } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets OrderedQty - /// - [DataMember(Name="OrderedQty", EmitDefaultValue=false)] - public DecimalValue OrderedQty { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderTotal - /// - [DataMember(Name="OrderTotal", EmitDefaultValue=false)] - public DecimalValue OrderTotal { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets OrderVolume - /// - [DataMember(Name="OrderVolume", EmitDefaultValue=false)] - public DecimalValue OrderVolume { get; set; } - - /// - /// Gets or Sets OrderWeight - /// - [DataMember(Name="OrderWeight", EmitDefaultValue=false)] - public DecimalValue OrderWeight { get; set; } - - /// - /// Gets or Sets RequestedOn - /// - [DataMember(Name="RequestedOn", EmitDefaultValue=false)] - public DateTimeValue RequestedOn { get; set; } - - /// - /// Gets or Sets ScheduledShipment - /// - [DataMember(Name="ScheduledShipment", EmitDefaultValue=false)] - public DateTimeValue ScheduledShipment { get; set; } - - /// - /// Gets or Sets ShippingZone - /// - [DataMember(Name="ShippingZone", EmitDefaultValue=false)] - public StringValue ShippingZone { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountOrder {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" OrderedQty: ").Append(OrderedQty).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderTotal: ").Append(OrderTotal).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" OrderVolume: ").Append(OrderVolume).Append("\n"); - sb.Append(" OrderWeight: ").Append(OrderWeight).Append("\n"); - sb.Append(" RequestedOn: ").Append(RequestedOn).Append("\n"); - sb.Append(" ScheduledShipment: ").Append(ScheduledShipment).Append("\n"); - sb.Append(" ShippingZone: ").Append(ShippingZone).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountOrder); - } - - /// - /// Returns true if BusinessAccountOrder instances are equal - /// - /// Instance of BusinessAccountOrder to be compared - /// Boolean - public bool Equals(BusinessAccountOrder input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.OrderedQty == input.OrderedQty || - (this.OrderedQty != null && - this.OrderedQty.Equals(input.OrderedQty)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderTotal == input.OrderTotal || - (this.OrderTotal != null && - this.OrderTotal.Equals(input.OrderTotal)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.OrderVolume == input.OrderVolume || - (this.OrderVolume != null && - this.OrderVolume.Equals(input.OrderVolume)) - ) && base.Equals(input) && - ( - this.OrderWeight == input.OrderWeight || - (this.OrderWeight != null && - this.OrderWeight.Equals(input.OrderWeight)) - ) && base.Equals(input) && - ( - this.RequestedOn == input.RequestedOn || - (this.RequestedOn != null && - this.RequestedOn.Equals(input.RequestedOn)) - ) && base.Equals(input) && - ( - this.ScheduledShipment == input.ScheduledShipment || - (this.ScheduledShipment != null && - this.ScheduledShipment.Equals(input.ScheduledShipment)) - ) && base.Equals(input) && - ( - this.ShippingZone == input.ShippingZone || - (this.ShippingZone != null && - this.ShippingZone.Equals(input.ShippingZone)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.OrderedQty != null) - hashCode = hashCode * 59 + this.OrderedQty.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderTotal != null) - hashCode = hashCode * 59 + this.OrderTotal.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.OrderVolume != null) - hashCode = hashCode * 59 + this.OrderVolume.GetHashCode(); - if (this.OrderWeight != null) - hashCode = hashCode * 59 + this.OrderWeight.GetHashCode(); - if (this.RequestedOn != null) - hashCode = hashCode * 59 + this.RequestedOn.GetHashCode(); - if (this.ScheduledShipment != null) - hashCode = hashCode * 59 + this.ScheduledShipment.GetHashCode(); - if (this.ShippingZone != null) - hashCode = hashCode * 59 + this.ShippingZone.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountPaymentInstructionDetail.cs b/Default.18.200.001/Model/BusinessAccountPaymentInstructionDetail.cs deleted file mode 100644 index a2428e19..00000000 --- a/Default.18.200.001/Model/BusinessAccountPaymentInstructionDetail.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountPaymentInstructionDetail - /// - [DataContract] - public partial class BusinessAccountPaymentInstructionDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// locationID. - /// paymentInstructionsID. - /// paymentMethod. - /// value. - public BusinessAccountPaymentInstructionDetail(StringValue description = default(StringValue), IntValue locationID = default(IntValue), StringValue paymentInstructionsID = default(StringValue), StringValue paymentMethod = default(StringValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.LocationID = locationID; - this.PaymentInstructionsID = paymentInstructionsID; - this.PaymentMethod = paymentMethod; - this.Value = value; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public IntValue LocationID { get; set; } - - /// - /// Gets or Sets PaymentInstructionsID - /// - [DataMember(Name="PaymentInstructionsID", EmitDefaultValue=false)] - public StringValue PaymentInstructionsID { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountPaymentInstructionDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" PaymentInstructionsID: ").Append(PaymentInstructionsID).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountPaymentInstructionDetail); - } - - /// - /// Returns true if BusinessAccountPaymentInstructionDetail instances are equal - /// - /// Instance of BusinessAccountPaymentInstructionDetail to be compared - /// Boolean - public bool Equals(BusinessAccountPaymentInstructionDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.PaymentInstructionsID == input.PaymentInstructionsID || - (this.PaymentInstructionsID != null && - this.PaymentInstructionsID.Equals(input.PaymentInstructionsID)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.PaymentInstructionsID != null) - hashCode = hashCode * 59 + this.PaymentInstructionsID.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/BusinessAccountShippingContact.cs b/Default.18.200.001/Model/BusinessAccountShippingContact.cs deleted file mode 100644 index ff1426c1..00000000 --- a/Default.18.200.001/Model/BusinessAccountShippingContact.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// BusinessAccountShippingContact - /// - [DataContract] - public partial class BusinessAccountShippingContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attention. - /// email. - /// fax. - /// jobTitle. - /// phone1. - /// phone2. - /// sameasMain. - public BusinessAccountShippingContact(StringValue attention = default(StringValue), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue jobTitle = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone2 = default(StringValue), BooleanValue sameasMain = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attention = attention; - this.Email = email; - this.Fax = fax; - this.JobTitle = jobTitle; - this.Phone1 = phone1; - this.Phone2 = phone2; - this.SameasMain = sameasMain; - } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets JobTitle - /// - [DataMember(Name="JobTitle", EmitDefaultValue=false)] - public StringValue JobTitle { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } - - /// - /// Gets or Sets SameasMain - /// - [DataMember(Name="SameasMain", EmitDefaultValue=false)] - public BooleanValue SameasMain { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BusinessAccountShippingContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" SameasMain: ").Append(SameasMain).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as BusinessAccountShippingContact); - } - - /// - /// Returns true if BusinessAccountShippingContact instances are equal - /// - /// Instance of BusinessAccountShippingContact to be compared - /// Boolean - public bool Equals(BusinessAccountShippingContact input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.JobTitle == input.JobTitle || - (this.JobTitle != null && - this.JobTitle.Equals(input.JobTitle)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.SameasMain == input.SameasMain || - (this.SameasMain != null && - this.SameasMain.Equals(input.SameasMain)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.JobTitle != null) - hashCode = hashCode * 59 + this.JobTitle.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.SameasMain != null) - hashCode = hashCode * 59 + this.SameasMain.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CampaignDetail.cs b/Default.18.200.001/Model/CampaignDetail.cs deleted file mode 100644 index 4a4e44e3..00000000 --- a/Default.18.200.001/Model/CampaignDetail.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CampaignDetail - /// - [DataContract] - public partial class CampaignDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// campaignID. - /// campaignName. - /// contactID. - /// stage. - public CampaignDetail(StringValue campaignID = default(StringValue), StringValue campaignName = default(StringValue), IntValue contactID = default(IntValue), StringValue stage = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CampaignID = campaignID; - this.CampaignName = campaignName; - this.ContactID = contactID; - this.Stage = stage; - } - - /// - /// Gets or Sets CampaignID - /// - [DataMember(Name="CampaignID", EmitDefaultValue=false)] - public StringValue CampaignID { get; set; } - - /// - /// Gets or Sets CampaignName - /// - [DataMember(Name="CampaignName", EmitDefaultValue=false)] - public StringValue CampaignName { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets Stage - /// - [DataMember(Name="Stage", EmitDefaultValue=false)] - public StringValue Stage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CampaignDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CampaignID: ").Append(CampaignID).Append("\n"); - sb.Append(" CampaignName: ").Append(CampaignName).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" Stage: ").Append(Stage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CampaignDetail); - } - - /// - /// Returns true if CampaignDetail instances are equal - /// - /// Instance of CampaignDetail to be compared - /// Boolean - public bool Equals(CampaignDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CampaignID == input.CampaignID || - (this.CampaignID != null && - this.CampaignID.Equals(input.CampaignID)) - ) && base.Equals(input) && - ( - this.CampaignName == input.CampaignName || - (this.CampaignName != null && - this.CampaignName.Equals(input.CampaignName)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.Stage == input.Stage || - (this.Stage != null && - this.Stage.Equals(input.Stage)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CampaignID != null) - hashCode = hashCode * 59 + this.CampaignID.GetHashCode(); - if (this.CampaignName != null) - hashCode = hashCode * 59 + this.CampaignName.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.Stage != null) - hashCode = hashCode * 59 + this.Stage.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Carrier.cs b/Default.18.200.001/Model/Carrier.cs deleted file mode 100644 index 1bfcbf17..00000000 --- a/Default.18.200.001/Model/Carrier.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Carrier - /// - [DataContract] - public partial class Carrier : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// carrierID. - /// carrierUnitOfWeight. - /// createdDateTime. - /// customerAccounts. - /// description. - /// lastModifiedDateTime. - /// plugInParameters. - /// plugInType. - /// uOM. - public Carrier(StringValue carrierID = default(StringValue), StringValue carrierUnitOfWeight = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), IEnumerable customerAccounts = default(IEnumerable), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), IEnumerable plugInParameters = default(IEnumerable), StringValue plugInType = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CarrierID = carrierID; - this.CarrierUnitOfWeight = carrierUnitOfWeight; - this.CreatedDateTime = createdDateTime; - this.CustomerAccounts = customerAccounts; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PlugInParameters = plugInParameters; - this.PlugInType = plugInType; - this.UOM = uOM; - } - - /// - /// Gets or Sets CarrierID - /// - [DataMember(Name="CarrierID", EmitDefaultValue=false)] - public StringValue CarrierID { get; set; } - - /// - /// Gets or Sets CarrierUnitOfWeight - /// - [DataMember(Name="CarrierUnitOfWeight", EmitDefaultValue=false)] - public StringValue CarrierUnitOfWeight { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CustomerAccounts - /// - [DataMember(Name="CustomerAccounts", EmitDefaultValue=false)] - public IEnumerable CustomerAccounts { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets PlugInParameters - /// - [DataMember(Name="PlugInParameters", EmitDefaultValue=false)] - public IEnumerable PlugInParameters { get; set; } - - /// - /// Gets or Sets PlugInType - /// - [DataMember(Name="PlugInType", EmitDefaultValue=false)] - public StringValue PlugInType { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Carrier {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CarrierID: ").Append(CarrierID).Append("\n"); - sb.Append(" CarrierUnitOfWeight: ").Append(CarrierUnitOfWeight).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CustomerAccounts: ").Append(CustomerAccounts).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PlugInParameters: ").Append(PlugInParameters).Append("\n"); - sb.Append(" PlugInType: ").Append(PlugInType).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Carrier); - } - - /// - /// Returns true if Carrier instances are equal - /// - /// Instance of Carrier to be compared - /// Boolean - public bool Equals(Carrier input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CarrierID == input.CarrierID || - (this.CarrierID != null && - this.CarrierID.Equals(input.CarrierID)) - ) && base.Equals(input) && - ( - this.CarrierUnitOfWeight == input.CarrierUnitOfWeight || - (this.CarrierUnitOfWeight != null && - this.CarrierUnitOfWeight.Equals(input.CarrierUnitOfWeight)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CustomerAccounts == input.CustomerAccounts || - this.CustomerAccounts != null && - this.CustomerAccounts.SequenceEqual(input.CustomerAccounts) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PlugInParameters == input.PlugInParameters || - this.PlugInParameters != null && - this.PlugInParameters.SequenceEqual(input.PlugInParameters) - ) && base.Equals(input) && - ( - this.PlugInType == input.PlugInType || - (this.PlugInType != null && - this.PlugInType.Equals(input.PlugInType)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CarrierID != null) - hashCode = hashCode * 59 + this.CarrierID.GetHashCode(); - if (this.CarrierUnitOfWeight != null) - hashCode = hashCode * 59 + this.CarrierUnitOfWeight.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CustomerAccounts != null) - hashCode = hashCode * 59 + this.CustomerAccounts.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PlugInParameters != null) - hashCode = hashCode * 59 + this.PlugInParameters.GetHashCode(); - if (this.PlugInType != null) - hashCode = hashCode * 59 + this.PlugInType.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CarrierCustomerAccount.cs b/Default.18.200.001/Model/CarrierCustomerAccount.cs deleted file mode 100644 index 6f8488fe..00000000 --- a/Default.18.200.001/Model/CarrierCustomerAccount.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CarrierCustomerAccount - /// - [DataContract] - public partial class CarrierCustomerAccount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// carrierAccount. - /// customerID. - /// customerName. - /// location. - /// postalCode. - /// recordID. - public CarrierCustomerAccount(BooleanValue active = default(BooleanValue), StringValue carrierAccount = default(StringValue), StringValue customerID = default(StringValue), StringValue customerName = default(StringValue), StringValue location = default(StringValue), StringValue postalCode = default(StringValue), IntValue recordID = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.CarrierAccount = carrierAccount; - this.CustomerID = customerID; - this.CustomerName = customerName; - this.Location = location; - this.PostalCode = postalCode; - this.RecordID = recordID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CarrierAccount - /// - [DataMember(Name="CarrierAccount", EmitDefaultValue=false)] - public StringValue CarrierAccount { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerName - /// - [DataMember(Name="CustomerName", EmitDefaultValue=false)] - public StringValue CustomerName { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets PostalCode - /// - [DataMember(Name="PostalCode", EmitDefaultValue=false)] - public StringValue PostalCode { get; set; } - - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CarrierCustomerAccount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CarrierAccount: ").Append(CarrierAccount).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CarrierCustomerAccount); - } - - /// - /// Returns true if CarrierCustomerAccount instances are equal - /// - /// Instance of CarrierCustomerAccount to be compared - /// Boolean - public bool Equals(CarrierCustomerAccount input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CarrierAccount == input.CarrierAccount || - (this.CarrierAccount != null && - this.CarrierAccount.Equals(input.CarrierAccount)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerName == input.CustomerName || - (this.CustomerName != null && - this.CustomerName.Equals(input.CustomerName)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.PostalCode == input.PostalCode || - (this.PostalCode != null && - this.PostalCode.Equals(input.PostalCode)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CarrierAccount != null) - hashCode = hashCode * 59 + this.CarrierAccount.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerName != null) - hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.PostalCode != null) - hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CarrierPluginParameter.cs b/Default.18.200.001/Model/CarrierPluginParameter.cs deleted file mode 100644 index 7dff89c3..00000000 --- a/Default.18.200.001/Model/CarrierPluginParameter.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CarrierPluginParameter - /// - [DataContract] - public partial class CarrierPluginParameter : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// pluginID. - /// value. - public CarrierPluginParameter(StringValue description = default(StringValue), StringValue pluginID = default(StringValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.PluginID = pluginID; - this.Value = value; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets PluginID - /// - [DataMember(Name="PluginID", EmitDefaultValue=false)] - public StringValue PluginID { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CarrierPluginParameter {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" PluginID: ").Append(PluginID).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CarrierPluginParameter); - } - - /// - /// Returns true if CarrierPluginParameter instances are equal - /// - /// Instance of CarrierPluginParameter to be compared - /// Boolean - public bool Equals(CarrierPluginParameter input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.PluginID == input.PluginID || - (this.PluginID != null && - this.PluginID.Equals(input.PluginID)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.PluginID != null) - hashCode = hashCode * 59 + this.PluginID.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Case.cs b/Default.18.200.001/Model/Case.cs deleted file mode 100644 index 7cf5200f..00000000 --- a/Default.18.200.001/Model/Case.cs +++ /dev/null @@ -1,686 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Case - /// - [DataContract] - public partial class Case : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// activities. - /// attributes. - /// billable. - /// billableOvertime. - /// billableTime. - /// businessAccount. - /// businessAccountName. - /// caseID. - /// classID. - /// closingDate. - /// contactDisplayName. - /// contactID. - /// contract. - /// dateReported. - /// description. - /// initialResponse. - /// lastActivityDate. - /// lastIncomingActivity. - /// lastOutgoingActivity. - /// location. - /// manualOverride. - /// overtimeSpent. - /// owner. - /// ownerEmployeeName. - /// priority. - /// reason. - /// relatedCases. - /// relations. - /// resolutionTime. - /// severity. - /// sLA. - /// status. - /// subject. - /// timeSpent. - /// workgroup. - /// workgroupDescription. - public Case(IEnumerable activities = default(IEnumerable), IEnumerable attributes = default(IEnumerable), BooleanValue billable = default(BooleanValue), IntValue billableOvertime = default(IntValue), IntValue billableTime = default(IntValue), StringValue businessAccount = default(StringValue), StringValue businessAccountName = default(StringValue), StringValue caseID = default(StringValue), StringValue classID = default(StringValue), DateTimeValue closingDate = default(DateTimeValue), StringValue contactDisplayName = default(StringValue), IntValue contactID = default(IntValue), StringValue contract = default(StringValue), DateTimeValue dateReported = default(DateTimeValue), StringValue description = default(StringValue), StringValue initialResponse = default(StringValue), DateTimeValue lastActivityDate = default(DateTimeValue), DateTimeValue lastIncomingActivity = default(DateTimeValue), DateTimeValue lastOutgoingActivity = default(DateTimeValue), StringValue location = default(StringValue), BooleanValue manualOverride = default(BooleanValue), StringValue overtimeSpent = default(StringValue), StringValue owner = default(StringValue), StringValue ownerEmployeeName = default(StringValue), StringValue priority = default(StringValue), StringValue reason = default(StringValue), IEnumerable relatedCases = default(IEnumerable), IEnumerable relations = default(IEnumerable), StringValue resolutionTime = default(StringValue), StringValue severity = default(StringValue), DateTimeValue sLA = default(DateTimeValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), StringValue timeSpent = default(StringValue), StringValue workgroup = default(StringValue), StringValue workgroupDescription = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Activities = activities; - this.Attributes = attributes; - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.BusinessAccount = businessAccount; - this.BusinessAccountName = businessAccountName; - this.CaseID = caseID; - this.ClassID = classID; - this.ClosingDate = closingDate; - this.ContactDisplayName = contactDisplayName; - this.ContactID = contactID; - this.Contract = contract; - this.DateReported = dateReported; - this.Description = description; - this.InitialResponse = initialResponse; - this.LastActivityDate = lastActivityDate; - this.LastIncomingActivity = lastIncomingActivity; - this.LastOutgoingActivity = lastOutgoingActivity; - this.Location = location; - this.ManualOverride = manualOverride; - this.OvertimeSpent = overtimeSpent; - this.Owner = owner; - this.OwnerEmployeeName = ownerEmployeeName; - this.Priority = priority; - this.Reason = reason; - this.RelatedCases = relatedCases; - this.Relations = relations; - this.ResolutionTime = resolutionTime; - this.Severity = severity; - this.SLA = sLA; - this.Status = status; - this.Subject = subject; - this.TimeSpent = timeSpent; - this.Workgroup = workgroup; - this.WorkgroupDescription = workgroupDescription; - } - - /// - /// Gets or Sets Activities - /// - [DataMember(Name="Activities", EmitDefaultValue=false)] - public IEnumerable Activities { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public IntValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public IntValue BillableTime { get; set; } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets BusinessAccountName - /// - [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] - public StringValue BusinessAccountName { get; set; } - - /// - /// Gets or Sets CaseID - /// - [DataMember(Name="CaseID", EmitDefaultValue=false)] - public StringValue CaseID { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets ClosingDate - /// - [DataMember(Name="ClosingDate", EmitDefaultValue=false)] - public DateTimeValue ClosingDate { get; set; } - - /// - /// Gets or Sets ContactDisplayName - /// - [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] - public StringValue ContactDisplayName { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets Contract - /// - [DataMember(Name="Contract", EmitDefaultValue=false)] - public StringValue Contract { get; set; } - - /// - /// Gets or Sets DateReported - /// - [DataMember(Name="DateReported", EmitDefaultValue=false)] - public DateTimeValue DateReported { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InitialResponse - /// - [DataMember(Name="InitialResponse", EmitDefaultValue=false)] - public StringValue InitialResponse { get; set; } - - /// - /// Gets or Sets LastActivityDate - /// - [DataMember(Name="LastActivityDate", EmitDefaultValue=false)] - public DateTimeValue LastActivityDate { get; set; } - - /// - /// Gets or Sets LastIncomingActivity - /// - [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] - public DateTimeValue LastIncomingActivity { get; set; } - - /// - /// Gets or Sets LastOutgoingActivity - /// - [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] - public DateTimeValue LastOutgoingActivity { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets ManualOverride - /// - [DataMember(Name="ManualOverride", EmitDefaultValue=false)] - public BooleanValue ManualOverride { get; set; } - - /// - /// Gets or Sets OvertimeSpent - /// - [DataMember(Name="OvertimeSpent", EmitDefaultValue=false)] - public StringValue OvertimeSpent { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets OwnerEmployeeName - /// - [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] - public StringValue OwnerEmployeeName { get; set; } - - /// - /// Gets or Sets Priority - /// - [DataMember(Name="Priority", EmitDefaultValue=false)] - public StringValue Priority { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } - - /// - /// Gets or Sets RelatedCases - /// - [DataMember(Name="RelatedCases", EmitDefaultValue=false)] - public IEnumerable RelatedCases { get; set; } - - /// - /// Gets or Sets Relations - /// - [DataMember(Name="Relations", EmitDefaultValue=false)] - public IEnumerable Relations { get; set; } - - /// - /// Gets or Sets ResolutionTime - /// - [DataMember(Name="ResolutionTime", EmitDefaultValue=false)] - public StringValue ResolutionTime { get; set; } - - /// - /// Gets or Sets Severity - /// - [DataMember(Name="Severity", EmitDefaultValue=false)] - public StringValue Severity { get; set; } - - /// - /// Gets or Sets SLA - /// - [DataMember(Name="SLA", EmitDefaultValue=false)] - public DateTimeValue SLA { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Gets or Sets WorkgroupDescription - /// - [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] - public StringValue WorkgroupDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Case {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Activities: ").Append(Activities).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" BusinessAccountName: ").Append(BusinessAccountName).Append("\n"); - sb.Append(" CaseID: ").Append(CaseID).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" ClosingDate: ").Append(ClosingDate).Append("\n"); - sb.Append(" ContactDisplayName: ").Append(ContactDisplayName).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" Contract: ").Append(Contract).Append("\n"); - sb.Append(" DateReported: ").Append(DateReported).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InitialResponse: ").Append(InitialResponse).Append("\n"); - sb.Append(" LastActivityDate: ").Append(LastActivityDate).Append("\n"); - sb.Append(" LastIncomingActivity: ").Append(LastIncomingActivity).Append("\n"); - sb.Append(" LastOutgoingActivity: ").Append(LastOutgoingActivity).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" ManualOverride: ").Append(ManualOverride).Append("\n"); - sb.Append(" OvertimeSpent: ").Append(OvertimeSpent).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerEmployeeName: ").Append(OwnerEmployeeName).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" RelatedCases: ").Append(RelatedCases).Append("\n"); - sb.Append(" Relations: ").Append(Relations).Append("\n"); - sb.Append(" ResolutionTime: ").Append(ResolutionTime).Append("\n"); - sb.Append(" Severity: ").Append(Severity).Append("\n"); - sb.Append(" SLA: ").Append(SLA).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append(" WorkgroupDescription: ").Append(WorkgroupDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Case); - } - - /// - /// Returns true if Case instances are equal - /// - /// Instance of Case to be compared - /// Boolean - public bool Equals(Case input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Activities == input.Activities || - this.Activities != null && - this.Activities.SequenceEqual(input.Activities) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.BusinessAccountName == input.BusinessAccountName || - (this.BusinessAccountName != null && - this.BusinessAccountName.Equals(input.BusinessAccountName)) - ) && base.Equals(input) && - ( - this.CaseID == input.CaseID || - (this.CaseID != null && - this.CaseID.Equals(input.CaseID)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.ClosingDate == input.ClosingDate || - (this.ClosingDate != null && - this.ClosingDate.Equals(input.ClosingDate)) - ) && base.Equals(input) && - ( - this.ContactDisplayName == input.ContactDisplayName || - (this.ContactDisplayName != null && - this.ContactDisplayName.Equals(input.ContactDisplayName)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.Contract == input.Contract || - (this.Contract != null && - this.Contract.Equals(input.Contract)) - ) && base.Equals(input) && - ( - this.DateReported == input.DateReported || - (this.DateReported != null && - this.DateReported.Equals(input.DateReported)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InitialResponse == input.InitialResponse || - (this.InitialResponse != null && - this.InitialResponse.Equals(input.InitialResponse)) - ) && base.Equals(input) && - ( - this.LastActivityDate == input.LastActivityDate || - (this.LastActivityDate != null && - this.LastActivityDate.Equals(input.LastActivityDate)) - ) && base.Equals(input) && - ( - this.LastIncomingActivity == input.LastIncomingActivity || - (this.LastIncomingActivity != null && - this.LastIncomingActivity.Equals(input.LastIncomingActivity)) - ) && base.Equals(input) && - ( - this.LastOutgoingActivity == input.LastOutgoingActivity || - (this.LastOutgoingActivity != null && - this.LastOutgoingActivity.Equals(input.LastOutgoingActivity)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.ManualOverride == input.ManualOverride || - (this.ManualOverride != null && - this.ManualOverride.Equals(input.ManualOverride)) - ) && base.Equals(input) && - ( - this.OvertimeSpent == input.OvertimeSpent || - (this.OvertimeSpent != null && - this.OvertimeSpent.Equals(input.OvertimeSpent)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.OwnerEmployeeName == input.OwnerEmployeeName || - (this.OwnerEmployeeName != null && - this.OwnerEmployeeName.Equals(input.OwnerEmployeeName)) - ) && base.Equals(input) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.RelatedCases == input.RelatedCases || - this.RelatedCases != null && - this.RelatedCases.SequenceEqual(input.RelatedCases) - ) && base.Equals(input) && - ( - this.Relations == input.Relations || - this.Relations != null && - this.Relations.SequenceEqual(input.Relations) - ) && base.Equals(input) && - ( - this.ResolutionTime == input.ResolutionTime || - (this.ResolutionTime != null && - this.ResolutionTime.Equals(input.ResolutionTime)) - ) && base.Equals(input) && - ( - this.Severity == input.Severity || - (this.Severity != null && - this.Severity.Equals(input.Severity)) - ) && base.Equals(input) && - ( - this.SLA == input.SLA || - (this.SLA != null && - this.SLA.Equals(input.SLA)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ) && base.Equals(input) && - ( - this.WorkgroupDescription == input.WorkgroupDescription || - (this.WorkgroupDescription != null && - this.WorkgroupDescription.Equals(input.WorkgroupDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Activities != null) - hashCode = hashCode * 59 + this.Activities.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.BusinessAccountName != null) - hashCode = hashCode * 59 + this.BusinessAccountName.GetHashCode(); - if (this.CaseID != null) - hashCode = hashCode * 59 + this.CaseID.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.ClosingDate != null) - hashCode = hashCode * 59 + this.ClosingDate.GetHashCode(); - if (this.ContactDisplayName != null) - hashCode = hashCode * 59 + this.ContactDisplayName.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.Contract != null) - hashCode = hashCode * 59 + this.Contract.GetHashCode(); - if (this.DateReported != null) - hashCode = hashCode * 59 + this.DateReported.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InitialResponse != null) - hashCode = hashCode * 59 + this.InitialResponse.GetHashCode(); - if (this.LastActivityDate != null) - hashCode = hashCode * 59 + this.LastActivityDate.GetHashCode(); - if (this.LastIncomingActivity != null) - hashCode = hashCode * 59 + this.LastIncomingActivity.GetHashCode(); - if (this.LastOutgoingActivity != null) - hashCode = hashCode * 59 + this.LastOutgoingActivity.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.ManualOverride != null) - hashCode = hashCode * 59 + this.ManualOverride.GetHashCode(); - if (this.OvertimeSpent != null) - hashCode = hashCode * 59 + this.OvertimeSpent.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerEmployeeName != null) - hashCode = hashCode * 59 + this.OwnerEmployeeName.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.RelatedCases != null) - hashCode = hashCode * 59 + this.RelatedCases.GetHashCode(); - if (this.Relations != null) - hashCode = hashCode * 59 + this.Relations.GetHashCode(); - if (this.ResolutionTime != null) - hashCode = hashCode * 59 + this.ResolutionTime.GetHashCode(); - if (this.Severity != null) - hashCode = hashCode * 59 + this.Severity.GetHashCode(); - if (this.SLA != null) - hashCode = hashCode * 59 + this.SLA.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - if (this.WorkgroupDescription != null) - hashCode = hashCode * 59 + this.WorkgroupDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CaseActivityDetail.cs b/Default.18.200.001/Model/CaseActivityDetail.cs deleted file mode 100644 index 4107763c..00000000 --- a/Default.18.200.001/Model/CaseActivityDetail.cs +++ /dev/null @@ -1,494 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CaseActivityDetail - /// - [DataContract] - public partial class CaseActivityDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billable. - /// billableOvertime. - /// billableTime. - /// category. - /// classIcon. - /// costCode. - /// createdAt. - /// createdBy. - /// isCompleteIcon. - /// noteID. - /// overtime. - /// owner. - /// priorityIcon. - /// project. - /// projectTask. - /// refNoteID. - /// released. - /// reminderIcon. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - /// workgroup. - public CaseActivityDetail(BooleanValue billable = default(BooleanValue), StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue category = default(StringValue), StringValue classIcon = default(StringValue), StringValue costCode = default(StringValue), DateTimeValue createdAt = default(DateTimeValue), StringValue createdBy = default(StringValue), StringValue isCompleteIcon = default(StringValue), GuidValue noteID = default(GuidValue), StringValue overtime = default(StringValue), StringValue owner = default(StringValue), StringValue priorityIcon = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), GuidValue refNoteID = default(GuidValue), BooleanValue released = default(BooleanValue), StringValue reminderIcon = default(StringValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.Category = category; - this.ClassIcon = classIcon; - this.CostCode = costCode; - this.CreatedAt = createdAt; - this.CreatedBy = createdBy; - this.IsCompleteIcon = isCompleteIcon; - this.NoteID = noteID; - this.Overtime = overtime; - this.Owner = owner; - this.PriorityIcon = priorityIcon; - this.Project = project; - this.ProjectTask = projectTask; - this.RefNoteID = refNoteID; - this.Released = released; - this.ReminderIcon = reminderIcon; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets Category - /// - [DataMember(Name="Category", EmitDefaultValue=false)] - public StringValue Category { get; set; } - - /// - /// Gets or Sets ClassIcon - /// - [DataMember(Name="ClassIcon", EmitDefaultValue=false)] - public StringValue ClassIcon { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name="CreatedAt", EmitDefaultValue=false)] - public DateTimeValue CreatedAt { get; set; } - - /// - /// Gets or Sets CreatedBy - /// - [DataMember(Name="CreatedBy", EmitDefaultValue=false)] - public StringValue CreatedBy { get; set; } - - /// - /// Gets or Sets IsCompleteIcon - /// - [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] - public StringValue IsCompleteIcon { get; set; } - - /// - /// Gets or Sets NoteID - /// - [DataMember(Name="NoteID", EmitDefaultValue=false)] - public GuidValue NoteID { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets PriorityIcon - /// - [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] - public StringValue PriorityIcon { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets RefNoteID - /// - [DataMember(Name="RefNoteID", EmitDefaultValue=false)] - public GuidValue RefNoteID { get; set; } - - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } - - /// - /// Gets or Sets ReminderIcon - /// - [DataMember(Name="ReminderIcon", EmitDefaultValue=false)] - public StringValue ReminderIcon { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CaseActivityDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" ClassIcon: ").Append(ClassIcon).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n"); - sb.Append(" IsCompleteIcon: ").Append(IsCompleteIcon).Append("\n"); - sb.Append(" NoteID: ").Append(NoteID).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PriorityIcon: ").Append(PriorityIcon).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" RefNoteID: ").Append(RefNoteID).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" ReminderIcon: ").Append(ReminderIcon).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CaseActivityDetail); - } - - /// - /// Returns true if CaseActivityDetail instances are equal - /// - /// Instance of CaseActivityDetail to be compared - /// Boolean - public bool Equals(CaseActivityDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && base.Equals(input) && - ( - this.ClassIcon == input.ClassIcon || - (this.ClassIcon != null && - this.ClassIcon.Equals(input.ClassIcon)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && base.Equals(input) && - ( - this.CreatedBy == input.CreatedBy || - (this.CreatedBy != null && - this.CreatedBy.Equals(input.CreatedBy)) - ) && base.Equals(input) && - ( - this.IsCompleteIcon == input.IsCompleteIcon || - (this.IsCompleteIcon != null && - this.IsCompleteIcon.Equals(input.IsCompleteIcon)) - ) && base.Equals(input) && - ( - this.NoteID == input.NoteID || - (this.NoteID != null && - this.NoteID.Equals(input.NoteID)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PriorityIcon == input.PriorityIcon || - (this.PriorityIcon != null && - this.PriorityIcon.Equals(input.PriorityIcon)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.RefNoteID == input.RefNoteID || - (this.RefNoteID != null && - this.RefNoteID.Equals(input.RefNoteID)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.ReminderIcon == input.ReminderIcon || - (this.ReminderIcon != null && - this.ReminderIcon.Equals(input.ReminderIcon)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.ClassIcon != null) - hashCode = hashCode * 59 + this.ClassIcon.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.CreatedBy != null) - hashCode = hashCode * 59 + this.CreatedBy.GetHashCode(); - if (this.IsCompleteIcon != null) - hashCode = hashCode * 59 + this.IsCompleteIcon.GetHashCode(); - if (this.NoteID != null) - hashCode = hashCode * 59 + this.NoteID.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PriorityIcon != null) - hashCode = hashCode * 59 + this.PriorityIcon.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.RefNoteID != null) - hashCode = hashCode * 59 + this.RefNoteID.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.ReminderIcon != null) - hashCode = hashCode * 59 + this.ReminderIcon.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CaseDetail.cs b/Default.18.200.001/Model/CaseDetail.cs deleted file mode 100644 index ed7e4d6e..00000000 --- a/Default.18.200.001/Model/CaseDetail.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CaseDetail - /// - [DataContract] - public partial class CaseDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// caseID. - /// classID. - /// closingDate. - /// dateReported. - /// estimation. - /// initialResponse. - /// owner. - /// reason. - /// severity. - /// status. - /// subject. - /// workgroup. - public CaseDetail(StringValue caseID = default(StringValue), StringValue classID = default(StringValue), DateTimeValue closingDate = default(DateTimeValue), DateTimeValue dateReported = default(DateTimeValue), StringValue estimation = default(StringValue), StringValue initialResponse = default(StringValue), StringValue owner = default(StringValue), StringValue reason = default(StringValue), StringValue severity = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CaseID = caseID; - this.ClassID = classID; - this.ClosingDate = closingDate; - this.DateReported = dateReported; - this.Estimation = estimation; - this.InitialResponse = initialResponse; - this.Owner = owner; - this.Reason = reason; - this.Severity = severity; - this.Status = status; - this.Subject = subject; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets CaseID - /// - [DataMember(Name="CaseID", EmitDefaultValue=false)] - public StringValue CaseID { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets ClosingDate - /// - [DataMember(Name="ClosingDate", EmitDefaultValue=false)] - public DateTimeValue ClosingDate { get; set; } - - /// - /// Gets or Sets DateReported - /// - [DataMember(Name="DateReported", EmitDefaultValue=false)] - public DateTimeValue DateReported { get; set; } - - /// - /// Gets or Sets Estimation - /// - [DataMember(Name="Estimation", EmitDefaultValue=false)] - public StringValue Estimation { get; set; } - - /// - /// Gets or Sets InitialResponse - /// - [DataMember(Name="InitialResponse", EmitDefaultValue=false)] - public StringValue InitialResponse { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } - - /// - /// Gets or Sets Severity - /// - [DataMember(Name="Severity", EmitDefaultValue=false)] - public StringValue Severity { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CaseDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CaseID: ").Append(CaseID).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" ClosingDate: ").Append(ClosingDate).Append("\n"); - sb.Append(" DateReported: ").Append(DateReported).Append("\n"); - sb.Append(" Estimation: ").Append(Estimation).Append("\n"); - sb.Append(" InitialResponse: ").Append(InitialResponse).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" Severity: ").Append(Severity).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CaseDetail); - } - - /// - /// Returns true if CaseDetail instances are equal - /// - /// Instance of CaseDetail to be compared - /// Boolean - public bool Equals(CaseDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CaseID == input.CaseID || - (this.CaseID != null && - this.CaseID.Equals(input.CaseID)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.ClosingDate == input.ClosingDate || - (this.ClosingDate != null && - this.ClosingDate.Equals(input.ClosingDate)) - ) && base.Equals(input) && - ( - this.DateReported == input.DateReported || - (this.DateReported != null && - this.DateReported.Equals(input.DateReported)) - ) && base.Equals(input) && - ( - this.Estimation == input.Estimation || - (this.Estimation != null && - this.Estimation.Equals(input.Estimation)) - ) && base.Equals(input) && - ( - this.InitialResponse == input.InitialResponse || - (this.InitialResponse != null && - this.InitialResponse.Equals(input.InitialResponse)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.Severity == input.Severity || - (this.Severity != null && - this.Severity.Equals(input.Severity)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CaseID != null) - hashCode = hashCode * 59 + this.CaseID.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.ClosingDate != null) - hashCode = hashCode * 59 + this.ClosingDate.GetHashCode(); - if (this.DateReported != null) - hashCode = hashCode * 59 + this.DateReported.GetHashCode(); - if (this.Estimation != null) - hashCode = hashCode * 59 + this.Estimation.GetHashCode(); - if (this.InitialResponse != null) - hashCode = hashCode * 59 + this.InitialResponse.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.Severity != null) - hashCode = hashCode * 59 + this.Severity.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CaseRelatedCase.cs b/Default.18.200.001/Model/CaseRelatedCase.cs deleted file mode 100644 index 28f57bfd..00000000 --- a/Default.18.200.001/Model/CaseRelatedCase.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CaseRelatedCase - /// - [DataContract] - public partial class CaseRelatedCase : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// caseID. - /// owner. - /// parentCaseID. - /// relationType. - /// status. - /// subject. - /// workgroup. - public CaseRelatedCase(StringValue caseID = default(StringValue), StringValue owner = default(StringValue), IntValue parentCaseID = default(IntValue), StringValue relationType = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CaseID = caseID; - this.Owner = owner; - this.ParentCaseID = parentCaseID; - this.RelationType = relationType; - this.Status = status; - this.Subject = subject; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets CaseID - /// - [DataMember(Name="CaseID", EmitDefaultValue=false)] - public StringValue CaseID { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets ParentCaseID - /// - [DataMember(Name="ParentCaseID", EmitDefaultValue=false)] - public IntValue ParentCaseID { get; set; } - - /// - /// Gets or Sets RelationType - /// - [DataMember(Name="RelationType", EmitDefaultValue=false)] - public StringValue RelationType { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CaseRelatedCase {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CaseID: ").Append(CaseID).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" ParentCaseID: ").Append(ParentCaseID).Append("\n"); - sb.Append(" RelationType: ").Append(RelationType).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CaseRelatedCase); - } - - /// - /// Returns true if CaseRelatedCase instances are equal - /// - /// Instance of CaseRelatedCase to be compared - /// Boolean - public bool Equals(CaseRelatedCase input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CaseID == input.CaseID || - (this.CaseID != null && - this.CaseID.Equals(input.CaseID)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.ParentCaseID == input.ParentCaseID || - (this.ParentCaseID != null && - this.ParentCaseID.Equals(input.ParentCaseID)) - ) && base.Equals(input) && - ( - this.RelationType == input.RelationType || - (this.RelationType != null && - this.RelationType.Equals(input.RelationType)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CaseID != null) - hashCode = hashCode * 59 + this.CaseID.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.ParentCaseID != null) - hashCode = hashCode * 59 + this.ParentCaseID.GetHashCode(); - if (this.RelationType != null) - hashCode = hashCode * 59 + this.RelationType.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CashSale.cs b/Default.18.200.001/Model/CashSale.cs deleted file mode 100644 index 6b3ab37d..00000000 --- a/Default.18.200.001/Model/CashSale.cs +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CashSale - /// - [DataContract] - public partial class CashSale : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// balance. - /// cashAccount. - /// createdDateTime. - /// customerID. - /// date. - /// description. - /// details. - /// hold. - /// lastModifiedDateTime. - /// paymentMethod. - /// paymentRef. - /// project. - /// referenceNbr. - /// status. - /// taxTotal. - /// type. - public CashSale(DecimalValue amount = default(DecimalValue), DecimalValue balance = default(DecimalValue), StringValue cashAccount = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue customerID = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue paymentMethod = default(StringValue), StringValue paymentRef = default(StringValue), StringValue project = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue taxTotal = default(DecimalValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.Balance = balance; - this.CashAccount = cashAccount; - this.CreatedDateTime = createdDateTime; - this.CustomerID = customerID; - this.Date = date; - this.Description = description; - this.Details = details; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PaymentMethod = paymentMethod; - this.PaymentRef = paymentRef; - this.Project = project; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TaxTotal = taxTotal; - this.Type = type; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CashSale {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CashSale); - } - - /// - /// Returns true if CashSale instances are equal - /// - /// Instance of CashSale to be compared - /// Boolean - public bool Equals(CashSale input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CashSaleDetail.cs b/Default.18.200.001/Model/CashSaleDetail.cs deleted file mode 100644 index c0b99144..00000000 --- a/Default.18.200.001/Model/CashSaleDetail.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CashSaleDetail - /// - [DataContract] - public partial class CashSaleDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// amount. - /// branch. - /// costCode. - /// extendedPrice. - /// inventoryID. - /// projectTask. - /// qty. - /// subaccount. - /// taxCategory. - /// transactionDescription. - /// unitPrice. - public CashSaleDetail(StringValue account = default(StringValue), DecimalValue amount = default(DecimalValue), StringValue branch = default(StringValue), StringValue costCode = default(StringValue), DecimalValue extendedPrice = default(DecimalValue), StringValue inventoryID = default(StringValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subaccount = default(StringValue), StringValue taxCategory = default(StringValue), StringValue transactionDescription = default(StringValue), DecimalValue unitPrice = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Amount = amount; - this.Branch = branch; - this.CostCode = costCode; - this.ExtendedPrice = extendedPrice; - this.InventoryID = inventoryID; - this.ProjectTask = projectTask; - this.Qty = qty; - this.Subaccount = subaccount; - this.TaxCategory = taxCategory; - this.TransactionDescription = transactionDescription; - this.UnitPrice = unitPrice; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets ExtendedPrice - /// - [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] - public DecimalValue ExtendedPrice { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } - - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CashSaleDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" ExtendedPrice: ").Append(ExtendedPrice).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CashSaleDetail); - } - - /// - /// Returns true if CashSaleDetail instances are equal - /// - /// Instance of CashSaleDetail to be compared - /// Boolean - public bool Equals(CashSaleDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.ExtendedPrice == input.ExtendedPrice || - (this.ExtendedPrice != null && - this.ExtendedPrice.Equals(input.ExtendedPrice)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.ExtendedPrice != null) - hashCode = hashCode * 59 + this.ExtendedPrice.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CategoryStockItem.cs b/Default.18.200.001/Model/CategoryStockItem.cs deleted file mode 100644 index 7f747d02..00000000 --- a/Default.18.200.001/Model/CategoryStockItem.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CategoryStockItem - /// - [DataContract] - public partial class CategoryStockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// categoryID. - public CategoryStockItem(IntValue categoryID = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CategoryID = categoryID; - } - - /// - /// Gets or Sets CategoryID - /// - [DataMember(Name="CategoryID", EmitDefaultValue=false)] - public IntValue CategoryID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CategoryStockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CategoryID: ").Append(CategoryID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CategoryStockItem); - } - - /// - /// Returns true if CategoryStockItem instances are equal - /// - /// Instance of CategoryStockItem to be compared - /// Boolean - public bool Equals(CategoryStockItem input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CategoryID == input.CategoryID || - (this.CategoryID != null && - this.CategoryID.Equals(input.CategoryID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CategoryID != null) - hashCode = hashCode * 59 + this.CategoryID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ChangeOrder.cs b/Default.18.200.001/Model/ChangeOrder.cs deleted file mode 100644 index b5f3c4d9..00000000 --- a/Default.18.200.001/Model/ChangeOrder.cs +++ /dev/null @@ -1,526 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ChangeOrder - /// - [DataContract] - public partial class ChangeOrder : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// approvalDetails. - /// attributes. - /// changeDate. - /// _class. - /// commitments. - /// commitmentsChangeTotal. - /// completionDate. - /// contractTimeChangeDays. - /// costBudget. - /// costBudgetChangeTotal. - /// customer. - /// description. - /// detailedDescription. - /// externalRefNbr. - /// grossMargin. - /// grossMarginAmount. - /// hold. - /// lastModifiedDateTime. - /// originalCORefNbr. - /// projectID. - /// refNbr. - /// revenueBudget. - /// revenueBudgetChangeTotal. - /// revenueChangeNbr. - /// reverseStatus. - /// status. - public ChangeOrder(IEnumerable approvalDetails = default(IEnumerable), IEnumerable attributes = default(IEnumerable), DateTimeValue changeDate = default(DateTimeValue), StringValue _class = default(StringValue), IEnumerable commitments = default(IEnumerable), DecimalValue commitmentsChangeTotal = default(DecimalValue), DateTimeValue completionDate = default(DateTimeValue), IntValue contractTimeChangeDays = default(IntValue), IEnumerable costBudget = default(IEnumerable), DecimalValue costBudgetChangeTotal = default(DecimalValue), StringValue customer = default(StringValue), StringValue description = default(StringValue), StringValue detailedDescription = default(StringValue), StringValue externalRefNbr = default(StringValue), DecimalValue grossMargin = default(DecimalValue), DecimalValue grossMarginAmount = default(DecimalValue), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue originalCORefNbr = default(StringValue), StringValue projectID = default(StringValue), StringValue refNbr = default(StringValue), IEnumerable revenueBudget = default(IEnumerable), DecimalValue revenueBudgetChangeTotal = default(DecimalValue), StringValue revenueChangeNbr = default(StringValue), StringValue reverseStatus = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApprovalDetails = approvalDetails; - this.Attributes = attributes; - this.ChangeDate = changeDate; - this.Class = _class; - this.Commitments = commitments; - this.CommitmentsChangeTotal = commitmentsChangeTotal; - this.CompletionDate = completionDate; - this.ContractTimeChangeDays = contractTimeChangeDays; - this.CostBudget = costBudget; - this.CostBudgetChangeTotal = costBudgetChangeTotal; - this.Customer = customer; - this.Description = description; - this.DetailedDescription = detailedDescription; - this.ExternalRefNbr = externalRefNbr; - this.GrossMargin = grossMargin; - this.GrossMarginAmount = grossMarginAmount; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.OriginalCORefNbr = originalCORefNbr; - this.ProjectID = projectID; - this.RefNbr = refNbr; - this.RevenueBudget = revenueBudget; - this.RevenueBudgetChangeTotal = revenueBudgetChangeTotal; - this.RevenueChangeNbr = revenueChangeNbr; - this.ReverseStatus = reverseStatus; - this.Status = status; - } - - /// - /// Gets or Sets ApprovalDetails - /// - [DataMember(Name="ApprovalDetails", EmitDefaultValue=false)] - public IEnumerable ApprovalDetails { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets ChangeDate - /// - [DataMember(Name="ChangeDate", EmitDefaultValue=false)] - public DateTimeValue ChangeDate { get; set; } - - /// - /// Gets or Sets Class - /// - [DataMember(Name="Class", EmitDefaultValue=false)] - public StringValue Class { get; set; } - - /// - /// Gets or Sets Commitments - /// - [DataMember(Name="Commitments", EmitDefaultValue=false)] - public IEnumerable Commitments { get; set; } - - /// - /// Gets or Sets CommitmentsChangeTotal - /// - [DataMember(Name="CommitmentsChangeTotal", EmitDefaultValue=false)] - public DecimalValue CommitmentsChangeTotal { get; set; } - - /// - /// Gets or Sets CompletionDate - /// - [DataMember(Name="CompletionDate", EmitDefaultValue=false)] - public DateTimeValue CompletionDate { get; set; } - - /// - /// Gets or Sets ContractTimeChangeDays - /// - [DataMember(Name="ContractTimeChangeDays", EmitDefaultValue=false)] - public IntValue ContractTimeChangeDays { get; set; } - - /// - /// Gets or Sets CostBudget - /// - [DataMember(Name="CostBudget", EmitDefaultValue=false)] - public IEnumerable CostBudget { get; set; } - - /// - /// Gets or Sets CostBudgetChangeTotal - /// - [DataMember(Name="CostBudgetChangeTotal", EmitDefaultValue=false)] - public DecimalValue CostBudgetChangeTotal { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DetailedDescription - /// - [DataMember(Name="DetailedDescription", EmitDefaultValue=false)] - public StringValue DetailedDescription { get; set; } - - /// - /// Gets or Sets ExternalRefNbr - /// - [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] - public StringValue ExternalRefNbr { get; set; } - - /// - /// Gets or Sets GrossMargin - /// - [DataMember(Name="GrossMargin", EmitDefaultValue=false)] - public DecimalValue GrossMargin { get; set; } - - /// - /// Gets or Sets GrossMarginAmount - /// - [DataMember(Name="GrossMarginAmount", EmitDefaultValue=false)] - public DecimalValue GrossMarginAmount { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets OriginalCORefNbr - /// - [DataMember(Name="OriginalCORefNbr", EmitDefaultValue=false)] - public StringValue OriginalCORefNbr { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets RefNbr - /// - [DataMember(Name="RefNbr", EmitDefaultValue=false)] - public StringValue RefNbr { get; set; } - - /// - /// Gets or Sets RevenueBudget - /// - [DataMember(Name="RevenueBudget", EmitDefaultValue=false)] - public IEnumerable RevenueBudget { get; set; } - - /// - /// Gets or Sets RevenueBudgetChangeTotal - /// - [DataMember(Name="RevenueBudgetChangeTotal", EmitDefaultValue=false)] - public DecimalValue RevenueBudgetChangeTotal { get; set; } - - /// - /// Gets or Sets RevenueChangeNbr - /// - [DataMember(Name="RevenueChangeNbr", EmitDefaultValue=false)] - public StringValue RevenueChangeNbr { get; set; } - - /// - /// Gets or Sets ReverseStatus - /// - [DataMember(Name="ReverseStatus", EmitDefaultValue=false)] - public StringValue ReverseStatus { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ChangeOrder {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApprovalDetails: ").Append(ApprovalDetails).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" ChangeDate: ").Append(ChangeDate).Append("\n"); - sb.Append(" Class: ").Append(Class).Append("\n"); - sb.Append(" Commitments: ").Append(Commitments).Append("\n"); - sb.Append(" CommitmentsChangeTotal: ").Append(CommitmentsChangeTotal).Append("\n"); - sb.Append(" CompletionDate: ").Append(CompletionDate).Append("\n"); - sb.Append(" ContractTimeChangeDays: ").Append(ContractTimeChangeDays).Append("\n"); - sb.Append(" CostBudget: ").Append(CostBudget).Append("\n"); - sb.Append(" CostBudgetChangeTotal: ").Append(CostBudgetChangeTotal).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DetailedDescription: ").Append(DetailedDescription).Append("\n"); - sb.Append(" ExternalRefNbr: ").Append(ExternalRefNbr).Append("\n"); - sb.Append(" GrossMargin: ").Append(GrossMargin).Append("\n"); - sb.Append(" GrossMarginAmount: ").Append(GrossMarginAmount).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" OriginalCORefNbr: ").Append(OriginalCORefNbr).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" RefNbr: ").Append(RefNbr).Append("\n"); - sb.Append(" RevenueBudget: ").Append(RevenueBudget).Append("\n"); - sb.Append(" RevenueBudgetChangeTotal: ").Append(RevenueBudgetChangeTotal).Append("\n"); - sb.Append(" RevenueChangeNbr: ").Append(RevenueChangeNbr).Append("\n"); - sb.Append(" ReverseStatus: ").Append(ReverseStatus).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ChangeOrder); - } - - /// - /// Returns true if ChangeOrder instances are equal - /// - /// Instance of ChangeOrder to be compared - /// Boolean - public bool Equals(ChangeOrder input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ApprovalDetails == input.ApprovalDetails || - this.ApprovalDetails != null && - this.ApprovalDetails.SequenceEqual(input.ApprovalDetails) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.ChangeDate == input.ChangeDate || - (this.ChangeDate != null && - this.ChangeDate.Equals(input.ChangeDate)) - ) && base.Equals(input) && - ( - this.Class == input.Class || - (this.Class != null && - this.Class.Equals(input.Class)) - ) && base.Equals(input) && - ( - this.Commitments == input.Commitments || - this.Commitments != null && - this.Commitments.SequenceEqual(input.Commitments) - ) && base.Equals(input) && - ( - this.CommitmentsChangeTotal == input.CommitmentsChangeTotal || - (this.CommitmentsChangeTotal != null && - this.CommitmentsChangeTotal.Equals(input.CommitmentsChangeTotal)) - ) && base.Equals(input) && - ( - this.CompletionDate == input.CompletionDate || - (this.CompletionDate != null && - this.CompletionDate.Equals(input.CompletionDate)) - ) && base.Equals(input) && - ( - this.ContractTimeChangeDays == input.ContractTimeChangeDays || - (this.ContractTimeChangeDays != null && - this.ContractTimeChangeDays.Equals(input.ContractTimeChangeDays)) - ) && base.Equals(input) && - ( - this.CostBudget == input.CostBudget || - this.CostBudget != null && - this.CostBudget.SequenceEqual(input.CostBudget) - ) && base.Equals(input) && - ( - this.CostBudgetChangeTotal == input.CostBudgetChangeTotal || - (this.CostBudgetChangeTotal != null && - this.CostBudgetChangeTotal.Equals(input.CostBudgetChangeTotal)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DetailedDescription == input.DetailedDescription || - (this.DetailedDescription != null && - this.DetailedDescription.Equals(input.DetailedDescription)) - ) && base.Equals(input) && - ( - this.ExternalRefNbr == input.ExternalRefNbr || - (this.ExternalRefNbr != null && - this.ExternalRefNbr.Equals(input.ExternalRefNbr)) - ) && base.Equals(input) && - ( - this.GrossMargin == input.GrossMargin || - (this.GrossMargin != null && - this.GrossMargin.Equals(input.GrossMargin)) - ) && base.Equals(input) && - ( - this.GrossMarginAmount == input.GrossMarginAmount || - (this.GrossMarginAmount != null && - this.GrossMarginAmount.Equals(input.GrossMarginAmount)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.OriginalCORefNbr == input.OriginalCORefNbr || - (this.OriginalCORefNbr != null && - this.OriginalCORefNbr.Equals(input.OriginalCORefNbr)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.RefNbr == input.RefNbr || - (this.RefNbr != null && - this.RefNbr.Equals(input.RefNbr)) - ) && base.Equals(input) && - ( - this.RevenueBudget == input.RevenueBudget || - this.RevenueBudget != null && - this.RevenueBudget.SequenceEqual(input.RevenueBudget) - ) && base.Equals(input) && - ( - this.RevenueBudgetChangeTotal == input.RevenueBudgetChangeTotal || - (this.RevenueBudgetChangeTotal != null && - this.RevenueBudgetChangeTotal.Equals(input.RevenueBudgetChangeTotal)) - ) && base.Equals(input) && - ( - this.RevenueChangeNbr == input.RevenueChangeNbr || - (this.RevenueChangeNbr != null && - this.RevenueChangeNbr.Equals(input.RevenueChangeNbr)) - ) && base.Equals(input) && - ( - this.ReverseStatus == input.ReverseStatus || - (this.ReverseStatus != null && - this.ReverseStatus.Equals(input.ReverseStatus)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApprovalDetails != null) - hashCode = hashCode * 59 + this.ApprovalDetails.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.ChangeDate != null) - hashCode = hashCode * 59 + this.ChangeDate.GetHashCode(); - if (this.Class != null) - hashCode = hashCode * 59 + this.Class.GetHashCode(); - if (this.Commitments != null) - hashCode = hashCode * 59 + this.Commitments.GetHashCode(); - if (this.CommitmentsChangeTotal != null) - hashCode = hashCode * 59 + this.CommitmentsChangeTotal.GetHashCode(); - if (this.CompletionDate != null) - hashCode = hashCode * 59 + this.CompletionDate.GetHashCode(); - if (this.ContractTimeChangeDays != null) - hashCode = hashCode * 59 + this.ContractTimeChangeDays.GetHashCode(); - if (this.CostBudget != null) - hashCode = hashCode * 59 + this.CostBudget.GetHashCode(); - if (this.CostBudgetChangeTotal != null) - hashCode = hashCode * 59 + this.CostBudgetChangeTotal.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DetailedDescription != null) - hashCode = hashCode * 59 + this.DetailedDescription.GetHashCode(); - if (this.ExternalRefNbr != null) - hashCode = hashCode * 59 + this.ExternalRefNbr.GetHashCode(); - if (this.GrossMargin != null) - hashCode = hashCode * 59 + this.GrossMargin.GetHashCode(); - if (this.GrossMarginAmount != null) - hashCode = hashCode * 59 + this.GrossMarginAmount.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.OriginalCORefNbr != null) - hashCode = hashCode * 59 + this.OriginalCORefNbr.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.RefNbr != null) - hashCode = hashCode * 59 + this.RefNbr.GetHashCode(); - if (this.RevenueBudget != null) - hashCode = hashCode * 59 + this.RevenueBudget.GetHashCode(); - if (this.RevenueBudgetChangeTotal != null) - hashCode = hashCode * 59 + this.RevenueBudgetChangeTotal.GetHashCode(); - if (this.RevenueChangeNbr != null) - hashCode = hashCode * 59 + this.RevenueChangeNbr.GetHashCode(); - if (this.ReverseStatus != null) - hashCode = hashCode * 59 + this.ReverseStatus.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ChangeOrderClass.cs b/Default.18.200.001/Model/ChangeOrderClass.cs deleted file mode 100644 index 633a9e54..00000000 --- a/Default.18.200.001/Model/ChangeOrderClass.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ChangeOrderClass - /// - [DataContract] - public partial class ChangeOrderClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// attributes. - /// classID. - /// commitments. - /// costBudget. - /// description. - /// lastModifiedDateTime. - /// revenueBudget. - public ChangeOrderClass(BooleanValue active = default(BooleanValue), IEnumerable attributes = default(IEnumerable), StringValue classID = default(StringValue), BooleanValue commitments = default(BooleanValue), BooleanValue costBudget = default(BooleanValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), BooleanValue revenueBudget = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Attributes = attributes; - this.ClassID = classID; - this.Commitments = commitments; - this.CostBudget = costBudget; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.RevenueBudget = revenueBudget; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets Commitments - /// - [DataMember(Name="Commitments", EmitDefaultValue=false)] - public BooleanValue Commitments { get; set; } - - /// - /// Gets or Sets CostBudget - /// - [DataMember(Name="CostBudget", EmitDefaultValue=false)] - public BooleanValue CostBudget { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets RevenueBudget - /// - [DataMember(Name="RevenueBudget", EmitDefaultValue=false)] - public BooleanValue RevenueBudget { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ChangeOrderClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" Commitments: ").Append(Commitments).Append("\n"); - sb.Append(" CostBudget: ").Append(CostBudget).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" RevenueBudget: ").Append(RevenueBudget).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ChangeOrderClass); - } - - /// - /// Returns true if ChangeOrderClass instances are equal - /// - /// Instance of ChangeOrderClass to be compared - /// Boolean - public bool Equals(ChangeOrderClass input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.Commitments == input.Commitments || - (this.Commitments != null && - this.Commitments.Equals(input.Commitments)) - ) && base.Equals(input) && - ( - this.CostBudget == input.CostBudget || - (this.CostBudget != null && - this.CostBudget.Equals(input.CostBudget)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.RevenueBudget == input.RevenueBudget || - (this.RevenueBudget != null && - this.RevenueBudget.Equals(input.RevenueBudget)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.Commitments != null) - hashCode = hashCode * 59 + this.Commitments.GetHashCode(); - if (this.CostBudget != null) - hashCode = hashCode * 59 + this.CostBudget.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.RevenueBudget != null) - hashCode = hashCode * 59 + this.RevenueBudget.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ChangeOrderCommitment.cs b/Default.18.200.001/Model/ChangeOrderCommitment.cs deleted file mode 100644 index fc84d555..00000000 --- a/Default.18.200.001/Model/ChangeOrderCommitment.cs +++ /dev/null @@ -1,478 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ChangeOrderCommitment - /// - [DataContract] - public partial class ChangeOrderCommitment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// amount. - /// amountinBaseCurrency. - /// costCode. - /// currencyID. - /// description. - /// inventoryID. - /// lineAmount. - /// lineDescription. - /// openAmount. - /// openQty. - /// orderDate. - /// orderQty. - /// pOLineNbr. - /// pONbr. - /// potentiallyRevisedAmount. - /// potentiallyRevisedQty. - /// projectTaskID. - /// qty. - /// status. - /// unitCost. - /// uOM. - /// vendor. - public ChangeOrderCommitment(StringValue account = default(StringValue), DecimalValue amount = default(DecimalValue), DecimalValue amountinBaseCurrency = default(DecimalValue), StringValue costCode = default(StringValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), DecimalValue lineAmount = default(DecimalValue), StringValue lineDescription = default(StringValue), DecimalValue openAmount = default(DecimalValue), DecimalValue openQty = default(DecimalValue), DateTimeValue orderDate = default(DateTimeValue), DecimalValue orderQty = default(DecimalValue), IntValue pOLineNbr = default(IntValue), StringValue pONbr = default(StringValue), DecimalValue potentiallyRevisedAmount = default(DecimalValue), DecimalValue potentiallyRevisedQty = default(DecimalValue), StringValue projectTaskID = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue status = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), StringValue vendor = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Amount = amount; - this.AmountinBaseCurrency = amountinBaseCurrency; - this.CostCode = costCode; - this.CurrencyID = currencyID; - this.Description = description; - this.InventoryID = inventoryID; - this.LineAmount = lineAmount; - this.LineDescription = lineDescription; - this.OpenAmount = openAmount; - this.OpenQty = openQty; - this.OrderDate = orderDate; - this.OrderQty = orderQty; - this.POLineNbr = pOLineNbr; - this.PONbr = pONbr; - this.PotentiallyRevisedAmount = potentiallyRevisedAmount; - this.PotentiallyRevisedQty = potentiallyRevisedQty; - this.ProjectTaskID = projectTaskID; - this.Qty = qty; - this.Status = status; - this.UnitCost = unitCost; - this.UOM = uOM; - this.Vendor = vendor; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets AmountinBaseCurrency - /// - [DataMember(Name="AmountinBaseCurrency", EmitDefaultValue=false)] - public DecimalValue AmountinBaseCurrency { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineAmount - /// - [DataMember(Name="LineAmount", EmitDefaultValue=false)] - public DecimalValue LineAmount { get; set; } - - /// - /// Gets or Sets LineDescription - /// - [DataMember(Name="LineDescription", EmitDefaultValue=false)] - public StringValue LineDescription { get; set; } - - /// - /// Gets or Sets OpenAmount - /// - [DataMember(Name="OpenAmount", EmitDefaultValue=false)] - public DecimalValue OpenAmount { get; set; } - - /// - /// Gets or Sets OpenQty - /// - [DataMember(Name="OpenQty", EmitDefaultValue=false)] - public DecimalValue OpenQty { get; set; } - - /// - /// Gets or Sets OrderDate - /// - [DataMember(Name="OrderDate", EmitDefaultValue=false)] - public DateTimeValue OrderDate { get; set; } - - /// - /// Gets or Sets OrderQty - /// - [DataMember(Name="OrderQty", EmitDefaultValue=false)] - public DecimalValue OrderQty { get; set; } - - /// - /// Gets or Sets POLineNbr - /// - [DataMember(Name="POLineNbr", EmitDefaultValue=false)] - public IntValue POLineNbr { get; set; } - - /// - /// Gets or Sets PONbr - /// - [DataMember(Name="PONbr", EmitDefaultValue=false)] - public StringValue PONbr { get; set; } - - /// - /// Gets or Sets PotentiallyRevisedAmount - /// - [DataMember(Name="PotentiallyRevisedAmount", EmitDefaultValue=false)] - public DecimalValue PotentiallyRevisedAmount { get; set; } - - /// - /// Gets or Sets PotentiallyRevisedQty - /// - [DataMember(Name="PotentiallyRevisedQty", EmitDefaultValue=false)] - public DecimalValue PotentiallyRevisedQty { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ChangeOrderCommitment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" AmountinBaseCurrency: ").Append(AmountinBaseCurrency).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineAmount: ").Append(LineAmount).Append("\n"); - sb.Append(" LineDescription: ").Append(LineDescription).Append("\n"); - sb.Append(" OpenAmount: ").Append(OpenAmount).Append("\n"); - sb.Append(" OpenQty: ").Append(OpenQty).Append("\n"); - sb.Append(" OrderDate: ").Append(OrderDate).Append("\n"); - sb.Append(" OrderQty: ").Append(OrderQty).Append("\n"); - sb.Append(" POLineNbr: ").Append(POLineNbr).Append("\n"); - sb.Append(" PONbr: ").Append(PONbr).Append("\n"); - sb.Append(" PotentiallyRevisedAmount: ").Append(PotentiallyRevisedAmount).Append("\n"); - sb.Append(" PotentiallyRevisedQty: ").Append(PotentiallyRevisedQty).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ChangeOrderCommitment); - } - - /// - /// Returns true if ChangeOrderCommitment instances are equal - /// - /// Instance of ChangeOrderCommitment to be compared - /// Boolean - public bool Equals(ChangeOrderCommitment input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.AmountinBaseCurrency == input.AmountinBaseCurrency || - (this.AmountinBaseCurrency != null && - this.AmountinBaseCurrency.Equals(input.AmountinBaseCurrency)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineAmount == input.LineAmount || - (this.LineAmount != null && - this.LineAmount.Equals(input.LineAmount)) - ) && base.Equals(input) && - ( - this.LineDescription == input.LineDescription || - (this.LineDescription != null && - this.LineDescription.Equals(input.LineDescription)) - ) && base.Equals(input) && - ( - this.OpenAmount == input.OpenAmount || - (this.OpenAmount != null && - this.OpenAmount.Equals(input.OpenAmount)) - ) && base.Equals(input) && - ( - this.OpenQty == input.OpenQty || - (this.OpenQty != null && - this.OpenQty.Equals(input.OpenQty)) - ) && base.Equals(input) && - ( - this.OrderDate == input.OrderDate || - (this.OrderDate != null && - this.OrderDate.Equals(input.OrderDate)) - ) && base.Equals(input) && - ( - this.OrderQty == input.OrderQty || - (this.OrderQty != null && - this.OrderQty.Equals(input.OrderQty)) - ) && base.Equals(input) && - ( - this.POLineNbr == input.POLineNbr || - (this.POLineNbr != null && - this.POLineNbr.Equals(input.POLineNbr)) - ) && base.Equals(input) && - ( - this.PONbr == input.PONbr || - (this.PONbr != null && - this.PONbr.Equals(input.PONbr)) - ) && base.Equals(input) && - ( - this.PotentiallyRevisedAmount == input.PotentiallyRevisedAmount || - (this.PotentiallyRevisedAmount != null && - this.PotentiallyRevisedAmount.Equals(input.PotentiallyRevisedAmount)) - ) && base.Equals(input) && - ( - this.PotentiallyRevisedQty == input.PotentiallyRevisedQty || - (this.PotentiallyRevisedQty != null && - this.PotentiallyRevisedQty.Equals(input.PotentiallyRevisedQty)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.AmountinBaseCurrency != null) - hashCode = hashCode * 59 + this.AmountinBaseCurrency.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineAmount != null) - hashCode = hashCode * 59 + this.LineAmount.GetHashCode(); - if (this.LineDescription != null) - hashCode = hashCode * 59 + this.LineDescription.GetHashCode(); - if (this.OpenAmount != null) - hashCode = hashCode * 59 + this.OpenAmount.GetHashCode(); - if (this.OpenQty != null) - hashCode = hashCode * 59 + this.OpenQty.GetHashCode(); - if (this.OrderDate != null) - hashCode = hashCode * 59 + this.OrderDate.GetHashCode(); - if (this.OrderQty != null) - hashCode = hashCode * 59 + this.OrderQty.GetHashCode(); - if (this.POLineNbr != null) - hashCode = hashCode * 59 + this.POLineNbr.GetHashCode(); - if (this.PONbr != null) - hashCode = hashCode * 59 + this.PONbr.GetHashCode(); - if (this.PotentiallyRevisedAmount != null) - hashCode = hashCode * 59 + this.PotentiallyRevisedAmount.GetHashCode(); - if (this.PotentiallyRevisedQty != null) - hashCode = hashCode * 59 + this.PotentiallyRevisedQty.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ChangeOrderCostBudget.cs b/Default.18.200.001/Model/ChangeOrderCostBudget.cs deleted file mode 100644 index 3f84629b..00000000 --- a/Default.18.200.001/Model/ChangeOrderCostBudget.cs +++ /dev/null @@ -1,590 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ChangeOrderCostBudget - /// - [DataContract] - public partial class ChangeOrderCostBudget : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountGroup. - /// actualAmount. - /// actualQty. - /// amount. - /// committedCOAmount. - /// committedCOQty. - /// committedInvoicedAmount. - /// committedInvoicedQty. - /// committedOpenAmount. - /// committedOpenQty. - /// committedReceivedQty. - /// costCode. - /// currentCommittedCOAmount. - /// currentCommittedCOQty. - /// description. - /// inventoryID. - /// originalBudgetedAmount. - /// originalBudgetedQty. - /// otherDraftCOAmount. - /// previouslyApprovedCOAmount. - /// previouslyApprovedCOQty. - /// projectTaskID. - /// qty. - /// revisedBudgetedAmount. - /// revisedBudgetedQty. - /// revisedCommittedAmount. - /// revisedCommittedQty. - /// totalPotentiallyRevisedAmount. - /// unitRate. - /// uOM. - public ChangeOrderCostBudget(StringValue accountGroup = default(StringValue), DecimalValue actualAmount = default(DecimalValue), DecimalValue actualQty = default(DecimalValue), DecimalValue amount = default(DecimalValue), DecimalValue committedCOAmount = default(DecimalValue), DecimalValue committedCOQty = default(DecimalValue), DecimalValue committedInvoicedAmount = default(DecimalValue), DecimalValue committedInvoicedQty = default(DecimalValue), DecimalValue committedOpenAmount = default(DecimalValue), DecimalValue committedOpenQty = default(DecimalValue), DecimalValue committedReceivedQty = default(DecimalValue), StringValue costCode = default(StringValue), DecimalValue currentCommittedCOAmount = default(DecimalValue), DecimalValue currentCommittedCOQty = default(DecimalValue), StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), DecimalValue originalBudgetedAmount = default(DecimalValue), DecimalValue originalBudgetedQty = default(DecimalValue), DecimalValue otherDraftCOAmount = default(DecimalValue), DecimalValue previouslyApprovedCOAmount = default(DecimalValue), DecimalValue previouslyApprovedCOQty = default(DecimalValue), StringValue projectTaskID = default(StringValue), DecimalValue qty = default(DecimalValue), DecimalValue revisedBudgetedAmount = default(DecimalValue), DecimalValue revisedBudgetedQty = default(DecimalValue), DecimalValue revisedCommittedAmount = default(DecimalValue), DecimalValue revisedCommittedQty = default(DecimalValue), DecimalValue totalPotentiallyRevisedAmount = default(DecimalValue), DecimalValue unitRate = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountGroup = accountGroup; - this.ActualAmount = actualAmount; - this.ActualQty = actualQty; - this.Amount = amount; - this.CommittedCOAmount = committedCOAmount; - this.CommittedCOQty = committedCOQty; - this.CommittedInvoicedAmount = committedInvoicedAmount; - this.CommittedInvoicedQty = committedInvoicedQty; - this.CommittedOpenAmount = committedOpenAmount; - this.CommittedOpenQty = committedOpenQty; - this.CommittedReceivedQty = committedReceivedQty; - this.CostCode = costCode; - this.CurrentCommittedCOAmount = currentCommittedCOAmount; - this.CurrentCommittedCOQty = currentCommittedCOQty; - this.Description = description; - this.InventoryID = inventoryID; - this.OriginalBudgetedAmount = originalBudgetedAmount; - this.OriginalBudgetedQty = originalBudgetedQty; - this.OtherDraftCOAmount = otherDraftCOAmount; - this.PreviouslyApprovedCOAmount = previouslyApprovedCOAmount; - this.PreviouslyApprovedCOQty = previouslyApprovedCOQty; - this.ProjectTaskID = projectTaskID; - this.Qty = qty; - this.RevisedBudgetedAmount = revisedBudgetedAmount; - this.RevisedBudgetedQty = revisedBudgetedQty; - this.RevisedCommittedAmount = revisedCommittedAmount; - this.RevisedCommittedQty = revisedCommittedQty; - this.TotalPotentiallyRevisedAmount = totalPotentiallyRevisedAmount; - this.UnitRate = unitRate; - this.UOM = uOM; - } - - /// - /// Gets or Sets AccountGroup - /// - [DataMember(Name="AccountGroup", EmitDefaultValue=false)] - public StringValue AccountGroup { get; set; } - - /// - /// Gets or Sets ActualAmount - /// - [DataMember(Name="ActualAmount", EmitDefaultValue=false)] - public DecimalValue ActualAmount { get; set; } - - /// - /// Gets or Sets ActualQty - /// - [DataMember(Name="ActualQty", EmitDefaultValue=false)] - public DecimalValue ActualQty { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets CommittedCOAmount - /// - [DataMember(Name="CommittedCOAmount", EmitDefaultValue=false)] - public DecimalValue CommittedCOAmount { get; set; } - - /// - /// Gets or Sets CommittedCOQty - /// - [DataMember(Name="CommittedCOQty", EmitDefaultValue=false)] - public DecimalValue CommittedCOQty { get; set; } - - /// - /// Gets or Sets CommittedInvoicedAmount - /// - [DataMember(Name="CommittedInvoicedAmount", EmitDefaultValue=false)] - public DecimalValue CommittedInvoicedAmount { get; set; } - - /// - /// Gets or Sets CommittedInvoicedQty - /// - [DataMember(Name="CommittedInvoicedQty", EmitDefaultValue=false)] - public DecimalValue CommittedInvoicedQty { get; set; } - - /// - /// Gets or Sets CommittedOpenAmount - /// - [DataMember(Name="CommittedOpenAmount", EmitDefaultValue=false)] - public DecimalValue CommittedOpenAmount { get; set; } - - /// - /// Gets or Sets CommittedOpenQty - /// - [DataMember(Name="CommittedOpenQty", EmitDefaultValue=false)] - public DecimalValue CommittedOpenQty { get; set; } - - /// - /// Gets or Sets CommittedReceivedQty - /// - [DataMember(Name="CommittedReceivedQty", EmitDefaultValue=false)] - public DecimalValue CommittedReceivedQty { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets CurrentCommittedCOAmount - /// - [DataMember(Name="CurrentCommittedCOAmount", EmitDefaultValue=false)] - public DecimalValue CurrentCommittedCOAmount { get; set; } - - /// - /// Gets or Sets CurrentCommittedCOQty - /// - [DataMember(Name="CurrentCommittedCOQty", EmitDefaultValue=false)] - public DecimalValue CurrentCommittedCOQty { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets OriginalBudgetedAmount - /// - [DataMember(Name="OriginalBudgetedAmount", EmitDefaultValue=false)] - public DecimalValue OriginalBudgetedAmount { get; set; } - - /// - /// Gets or Sets OriginalBudgetedQty - /// - [DataMember(Name="OriginalBudgetedQty", EmitDefaultValue=false)] - public DecimalValue OriginalBudgetedQty { get; set; } - - /// - /// Gets or Sets OtherDraftCOAmount - /// - [DataMember(Name="OtherDraftCOAmount", EmitDefaultValue=false)] - public DecimalValue OtherDraftCOAmount { get; set; } - - /// - /// Gets or Sets PreviouslyApprovedCOAmount - /// - [DataMember(Name="PreviouslyApprovedCOAmount", EmitDefaultValue=false)] - public DecimalValue PreviouslyApprovedCOAmount { get; set; } - - /// - /// Gets or Sets PreviouslyApprovedCOQty - /// - [DataMember(Name="PreviouslyApprovedCOQty", EmitDefaultValue=false)] - public DecimalValue PreviouslyApprovedCOQty { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets RevisedBudgetedAmount - /// - [DataMember(Name="RevisedBudgetedAmount", EmitDefaultValue=false)] - public DecimalValue RevisedBudgetedAmount { get; set; } - - /// - /// Gets or Sets RevisedBudgetedQty - /// - [DataMember(Name="RevisedBudgetedQty", EmitDefaultValue=false)] - public DecimalValue RevisedBudgetedQty { get; set; } - - /// - /// Gets or Sets RevisedCommittedAmount - /// - [DataMember(Name="RevisedCommittedAmount", EmitDefaultValue=false)] - public DecimalValue RevisedCommittedAmount { get; set; } - - /// - /// Gets or Sets RevisedCommittedQty - /// - [DataMember(Name="RevisedCommittedQty", EmitDefaultValue=false)] - public DecimalValue RevisedCommittedQty { get; set; } - - /// - /// Gets or Sets TotalPotentiallyRevisedAmount - /// - [DataMember(Name="TotalPotentiallyRevisedAmount", EmitDefaultValue=false)] - public DecimalValue TotalPotentiallyRevisedAmount { get; set; } - - /// - /// Gets or Sets UnitRate - /// - [DataMember(Name="UnitRate", EmitDefaultValue=false)] - public DecimalValue UnitRate { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ChangeOrderCostBudget {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountGroup: ").Append(AccountGroup).Append("\n"); - sb.Append(" ActualAmount: ").Append(ActualAmount).Append("\n"); - sb.Append(" ActualQty: ").Append(ActualQty).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" CommittedCOAmount: ").Append(CommittedCOAmount).Append("\n"); - sb.Append(" CommittedCOQty: ").Append(CommittedCOQty).Append("\n"); - sb.Append(" CommittedInvoicedAmount: ").Append(CommittedInvoicedAmount).Append("\n"); - sb.Append(" CommittedInvoicedQty: ").Append(CommittedInvoicedQty).Append("\n"); - sb.Append(" CommittedOpenAmount: ").Append(CommittedOpenAmount).Append("\n"); - sb.Append(" CommittedOpenQty: ").Append(CommittedOpenQty).Append("\n"); - sb.Append(" CommittedReceivedQty: ").Append(CommittedReceivedQty).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" CurrentCommittedCOAmount: ").Append(CurrentCommittedCOAmount).Append("\n"); - sb.Append(" CurrentCommittedCOQty: ").Append(CurrentCommittedCOQty).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" OriginalBudgetedAmount: ").Append(OriginalBudgetedAmount).Append("\n"); - sb.Append(" OriginalBudgetedQty: ").Append(OriginalBudgetedQty).Append("\n"); - sb.Append(" OtherDraftCOAmount: ").Append(OtherDraftCOAmount).Append("\n"); - sb.Append(" PreviouslyApprovedCOAmount: ").Append(PreviouslyApprovedCOAmount).Append("\n"); - sb.Append(" PreviouslyApprovedCOQty: ").Append(PreviouslyApprovedCOQty).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" RevisedBudgetedAmount: ").Append(RevisedBudgetedAmount).Append("\n"); - sb.Append(" RevisedBudgetedQty: ").Append(RevisedBudgetedQty).Append("\n"); - sb.Append(" RevisedCommittedAmount: ").Append(RevisedCommittedAmount).Append("\n"); - sb.Append(" RevisedCommittedQty: ").Append(RevisedCommittedQty).Append("\n"); - sb.Append(" TotalPotentiallyRevisedAmount: ").Append(TotalPotentiallyRevisedAmount).Append("\n"); - sb.Append(" UnitRate: ").Append(UnitRate).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ChangeOrderCostBudget); - } - - /// - /// Returns true if ChangeOrderCostBudget instances are equal - /// - /// Instance of ChangeOrderCostBudget to be compared - /// Boolean - public bool Equals(ChangeOrderCostBudget input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountGroup == input.AccountGroup || - (this.AccountGroup != null && - this.AccountGroup.Equals(input.AccountGroup)) - ) && base.Equals(input) && - ( - this.ActualAmount == input.ActualAmount || - (this.ActualAmount != null && - this.ActualAmount.Equals(input.ActualAmount)) - ) && base.Equals(input) && - ( - this.ActualQty == input.ActualQty || - (this.ActualQty != null && - this.ActualQty.Equals(input.ActualQty)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.CommittedCOAmount == input.CommittedCOAmount || - (this.CommittedCOAmount != null && - this.CommittedCOAmount.Equals(input.CommittedCOAmount)) - ) && base.Equals(input) && - ( - this.CommittedCOQty == input.CommittedCOQty || - (this.CommittedCOQty != null && - this.CommittedCOQty.Equals(input.CommittedCOQty)) - ) && base.Equals(input) && - ( - this.CommittedInvoicedAmount == input.CommittedInvoicedAmount || - (this.CommittedInvoicedAmount != null && - this.CommittedInvoicedAmount.Equals(input.CommittedInvoicedAmount)) - ) && base.Equals(input) && - ( - this.CommittedInvoicedQty == input.CommittedInvoicedQty || - (this.CommittedInvoicedQty != null && - this.CommittedInvoicedQty.Equals(input.CommittedInvoicedQty)) - ) && base.Equals(input) && - ( - this.CommittedOpenAmount == input.CommittedOpenAmount || - (this.CommittedOpenAmount != null && - this.CommittedOpenAmount.Equals(input.CommittedOpenAmount)) - ) && base.Equals(input) && - ( - this.CommittedOpenQty == input.CommittedOpenQty || - (this.CommittedOpenQty != null && - this.CommittedOpenQty.Equals(input.CommittedOpenQty)) - ) && base.Equals(input) && - ( - this.CommittedReceivedQty == input.CommittedReceivedQty || - (this.CommittedReceivedQty != null && - this.CommittedReceivedQty.Equals(input.CommittedReceivedQty)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.CurrentCommittedCOAmount == input.CurrentCommittedCOAmount || - (this.CurrentCommittedCOAmount != null && - this.CurrentCommittedCOAmount.Equals(input.CurrentCommittedCOAmount)) - ) && base.Equals(input) && - ( - this.CurrentCommittedCOQty == input.CurrentCommittedCOQty || - (this.CurrentCommittedCOQty != null && - this.CurrentCommittedCOQty.Equals(input.CurrentCommittedCOQty)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.OriginalBudgetedAmount == input.OriginalBudgetedAmount || - (this.OriginalBudgetedAmount != null && - this.OriginalBudgetedAmount.Equals(input.OriginalBudgetedAmount)) - ) && base.Equals(input) && - ( - this.OriginalBudgetedQty == input.OriginalBudgetedQty || - (this.OriginalBudgetedQty != null && - this.OriginalBudgetedQty.Equals(input.OriginalBudgetedQty)) - ) && base.Equals(input) && - ( - this.OtherDraftCOAmount == input.OtherDraftCOAmount || - (this.OtherDraftCOAmount != null && - this.OtherDraftCOAmount.Equals(input.OtherDraftCOAmount)) - ) && base.Equals(input) && - ( - this.PreviouslyApprovedCOAmount == input.PreviouslyApprovedCOAmount || - (this.PreviouslyApprovedCOAmount != null && - this.PreviouslyApprovedCOAmount.Equals(input.PreviouslyApprovedCOAmount)) - ) && base.Equals(input) && - ( - this.PreviouslyApprovedCOQty == input.PreviouslyApprovedCOQty || - (this.PreviouslyApprovedCOQty != null && - this.PreviouslyApprovedCOQty.Equals(input.PreviouslyApprovedCOQty)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.RevisedBudgetedAmount == input.RevisedBudgetedAmount || - (this.RevisedBudgetedAmount != null && - this.RevisedBudgetedAmount.Equals(input.RevisedBudgetedAmount)) - ) && base.Equals(input) && - ( - this.RevisedBudgetedQty == input.RevisedBudgetedQty || - (this.RevisedBudgetedQty != null && - this.RevisedBudgetedQty.Equals(input.RevisedBudgetedQty)) - ) && base.Equals(input) && - ( - this.RevisedCommittedAmount == input.RevisedCommittedAmount || - (this.RevisedCommittedAmount != null && - this.RevisedCommittedAmount.Equals(input.RevisedCommittedAmount)) - ) && base.Equals(input) && - ( - this.RevisedCommittedQty == input.RevisedCommittedQty || - (this.RevisedCommittedQty != null && - this.RevisedCommittedQty.Equals(input.RevisedCommittedQty)) - ) && base.Equals(input) && - ( - this.TotalPotentiallyRevisedAmount == input.TotalPotentiallyRevisedAmount || - (this.TotalPotentiallyRevisedAmount != null && - this.TotalPotentiallyRevisedAmount.Equals(input.TotalPotentiallyRevisedAmount)) - ) && base.Equals(input) && - ( - this.UnitRate == input.UnitRate || - (this.UnitRate != null && - this.UnitRate.Equals(input.UnitRate)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountGroup != null) - hashCode = hashCode * 59 + this.AccountGroup.GetHashCode(); - if (this.ActualAmount != null) - hashCode = hashCode * 59 + this.ActualAmount.GetHashCode(); - if (this.ActualQty != null) - hashCode = hashCode * 59 + this.ActualQty.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.CommittedCOAmount != null) - hashCode = hashCode * 59 + this.CommittedCOAmount.GetHashCode(); - if (this.CommittedCOQty != null) - hashCode = hashCode * 59 + this.CommittedCOQty.GetHashCode(); - if (this.CommittedInvoicedAmount != null) - hashCode = hashCode * 59 + this.CommittedInvoicedAmount.GetHashCode(); - if (this.CommittedInvoicedQty != null) - hashCode = hashCode * 59 + this.CommittedInvoicedQty.GetHashCode(); - if (this.CommittedOpenAmount != null) - hashCode = hashCode * 59 + this.CommittedOpenAmount.GetHashCode(); - if (this.CommittedOpenQty != null) - hashCode = hashCode * 59 + this.CommittedOpenQty.GetHashCode(); - if (this.CommittedReceivedQty != null) - hashCode = hashCode * 59 + this.CommittedReceivedQty.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.CurrentCommittedCOAmount != null) - hashCode = hashCode * 59 + this.CurrentCommittedCOAmount.GetHashCode(); - if (this.CurrentCommittedCOQty != null) - hashCode = hashCode * 59 + this.CurrentCommittedCOQty.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.OriginalBudgetedAmount != null) - hashCode = hashCode * 59 + this.OriginalBudgetedAmount.GetHashCode(); - if (this.OriginalBudgetedQty != null) - hashCode = hashCode * 59 + this.OriginalBudgetedQty.GetHashCode(); - if (this.OtherDraftCOAmount != null) - hashCode = hashCode * 59 + this.OtherDraftCOAmount.GetHashCode(); - if (this.PreviouslyApprovedCOAmount != null) - hashCode = hashCode * 59 + this.PreviouslyApprovedCOAmount.GetHashCode(); - if (this.PreviouslyApprovedCOQty != null) - hashCode = hashCode * 59 + this.PreviouslyApprovedCOQty.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.RevisedBudgetedAmount != null) - hashCode = hashCode * 59 + this.RevisedBudgetedAmount.GetHashCode(); - if (this.RevisedBudgetedQty != null) - hashCode = hashCode * 59 + this.RevisedBudgetedQty.GetHashCode(); - if (this.RevisedCommittedAmount != null) - hashCode = hashCode * 59 + this.RevisedCommittedAmount.GetHashCode(); - if (this.RevisedCommittedQty != null) - hashCode = hashCode * 59 + this.RevisedCommittedQty.GetHashCode(); - if (this.TotalPotentiallyRevisedAmount != null) - hashCode = hashCode * 59 + this.TotalPotentiallyRevisedAmount.GetHashCode(); - if (this.UnitRate != null) - hashCode = hashCode * 59 + this.UnitRate.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ChangeOrderRevenueBudget.cs b/Default.18.200.001/Model/ChangeOrderRevenueBudget.cs deleted file mode 100644 index c1d650c3..00000000 --- a/Default.18.200.001/Model/ChangeOrderRevenueBudget.cs +++ /dev/null @@ -1,446 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ChangeOrderRevenueBudget - /// - [DataContract] - public partial class ChangeOrderRevenueBudget : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountGroup. - /// actualAmount. - /// actualQty. - /// amount. - /// completed. - /// costCode. - /// description. - /// draftInvoicesAmount. - /// inventoryID. - /// originalBudgetedAmount. - /// originalBudgetedQty. - /// otherDraftCOAmount. - /// previouslyApprovedCOAmount. - /// previouslyApprovedCOQty. - /// projectTaskID. - /// qty. - /// revisedBudgetedAmount. - /// revisedBudgetedQty. - /// totalPotentiallyRevisedAmount. - /// unitRate. - /// uOM. - public ChangeOrderRevenueBudget(StringValue accountGroup = default(StringValue), DecimalValue actualAmount = default(DecimalValue), DecimalValue actualQty = default(DecimalValue), DecimalValue amount = default(DecimalValue), DecimalValue completed = default(DecimalValue), StringValue costCode = default(StringValue), StringValue description = default(StringValue), DecimalValue draftInvoicesAmount = default(DecimalValue), StringValue inventoryID = default(StringValue), DecimalValue originalBudgetedAmount = default(DecimalValue), DecimalValue originalBudgetedQty = default(DecimalValue), DecimalValue otherDraftCOAmount = default(DecimalValue), DecimalValue previouslyApprovedCOAmount = default(DecimalValue), DecimalValue previouslyApprovedCOQty = default(DecimalValue), StringValue projectTaskID = default(StringValue), DecimalValue qty = default(DecimalValue), DecimalValue revisedBudgetedAmount = default(DecimalValue), DecimalValue revisedBudgetedQty = default(DecimalValue), DecimalValue totalPotentiallyRevisedAmount = default(DecimalValue), DecimalValue unitRate = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountGroup = accountGroup; - this.ActualAmount = actualAmount; - this.ActualQty = actualQty; - this.Amount = amount; - this.Completed = completed; - this.CostCode = costCode; - this.Description = description; - this.DraftInvoicesAmount = draftInvoicesAmount; - this.InventoryID = inventoryID; - this.OriginalBudgetedAmount = originalBudgetedAmount; - this.OriginalBudgetedQty = originalBudgetedQty; - this.OtherDraftCOAmount = otherDraftCOAmount; - this.PreviouslyApprovedCOAmount = previouslyApprovedCOAmount; - this.PreviouslyApprovedCOQty = previouslyApprovedCOQty; - this.ProjectTaskID = projectTaskID; - this.Qty = qty; - this.RevisedBudgetedAmount = revisedBudgetedAmount; - this.RevisedBudgetedQty = revisedBudgetedQty; - this.TotalPotentiallyRevisedAmount = totalPotentiallyRevisedAmount; - this.UnitRate = unitRate; - this.UOM = uOM; - } - - /// - /// Gets or Sets AccountGroup - /// - [DataMember(Name="AccountGroup", EmitDefaultValue=false)] - public StringValue AccountGroup { get; set; } - - /// - /// Gets or Sets ActualAmount - /// - [DataMember(Name="ActualAmount", EmitDefaultValue=false)] - public DecimalValue ActualAmount { get; set; } - - /// - /// Gets or Sets ActualQty - /// - [DataMember(Name="ActualQty", EmitDefaultValue=false)] - public DecimalValue ActualQty { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Completed - /// - [DataMember(Name="Completed", EmitDefaultValue=false)] - public DecimalValue Completed { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DraftInvoicesAmount - /// - [DataMember(Name="DraftInvoicesAmount", EmitDefaultValue=false)] - public DecimalValue DraftInvoicesAmount { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets OriginalBudgetedAmount - /// - [DataMember(Name="OriginalBudgetedAmount", EmitDefaultValue=false)] - public DecimalValue OriginalBudgetedAmount { get; set; } - - /// - /// Gets or Sets OriginalBudgetedQty - /// - [DataMember(Name="OriginalBudgetedQty", EmitDefaultValue=false)] - public DecimalValue OriginalBudgetedQty { get; set; } - - /// - /// Gets or Sets OtherDraftCOAmount - /// - [DataMember(Name="OtherDraftCOAmount", EmitDefaultValue=false)] - public DecimalValue OtherDraftCOAmount { get; set; } - - /// - /// Gets or Sets PreviouslyApprovedCOAmount - /// - [DataMember(Name="PreviouslyApprovedCOAmount", EmitDefaultValue=false)] - public DecimalValue PreviouslyApprovedCOAmount { get; set; } - - /// - /// Gets or Sets PreviouslyApprovedCOQty - /// - [DataMember(Name="PreviouslyApprovedCOQty", EmitDefaultValue=false)] - public DecimalValue PreviouslyApprovedCOQty { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets RevisedBudgetedAmount - /// - [DataMember(Name="RevisedBudgetedAmount", EmitDefaultValue=false)] - public DecimalValue RevisedBudgetedAmount { get; set; } - - /// - /// Gets or Sets RevisedBudgetedQty - /// - [DataMember(Name="RevisedBudgetedQty", EmitDefaultValue=false)] - public DecimalValue RevisedBudgetedQty { get; set; } - - /// - /// Gets or Sets TotalPotentiallyRevisedAmount - /// - [DataMember(Name="TotalPotentiallyRevisedAmount", EmitDefaultValue=false)] - public DecimalValue TotalPotentiallyRevisedAmount { get; set; } - - /// - /// Gets or Sets UnitRate - /// - [DataMember(Name="UnitRate", EmitDefaultValue=false)] - public DecimalValue UnitRate { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ChangeOrderRevenueBudget {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountGroup: ").Append(AccountGroup).Append("\n"); - sb.Append(" ActualAmount: ").Append(ActualAmount).Append("\n"); - sb.Append(" ActualQty: ").Append(ActualQty).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Completed: ").Append(Completed).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DraftInvoicesAmount: ").Append(DraftInvoicesAmount).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" OriginalBudgetedAmount: ").Append(OriginalBudgetedAmount).Append("\n"); - sb.Append(" OriginalBudgetedQty: ").Append(OriginalBudgetedQty).Append("\n"); - sb.Append(" OtherDraftCOAmount: ").Append(OtherDraftCOAmount).Append("\n"); - sb.Append(" PreviouslyApprovedCOAmount: ").Append(PreviouslyApprovedCOAmount).Append("\n"); - sb.Append(" PreviouslyApprovedCOQty: ").Append(PreviouslyApprovedCOQty).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" RevisedBudgetedAmount: ").Append(RevisedBudgetedAmount).Append("\n"); - sb.Append(" RevisedBudgetedQty: ").Append(RevisedBudgetedQty).Append("\n"); - sb.Append(" TotalPotentiallyRevisedAmount: ").Append(TotalPotentiallyRevisedAmount).Append("\n"); - sb.Append(" UnitRate: ").Append(UnitRate).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ChangeOrderRevenueBudget); - } - - /// - /// Returns true if ChangeOrderRevenueBudget instances are equal - /// - /// Instance of ChangeOrderRevenueBudget to be compared - /// Boolean - public bool Equals(ChangeOrderRevenueBudget input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountGroup == input.AccountGroup || - (this.AccountGroup != null && - this.AccountGroup.Equals(input.AccountGroup)) - ) && base.Equals(input) && - ( - this.ActualAmount == input.ActualAmount || - (this.ActualAmount != null && - this.ActualAmount.Equals(input.ActualAmount)) - ) && base.Equals(input) && - ( - this.ActualQty == input.ActualQty || - (this.ActualQty != null && - this.ActualQty.Equals(input.ActualQty)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Completed == input.Completed || - (this.Completed != null && - this.Completed.Equals(input.Completed)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DraftInvoicesAmount == input.DraftInvoicesAmount || - (this.DraftInvoicesAmount != null && - this.DraftInvoicesAmount.Equals(input.DraftInvoicesAmount)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.OriginalBudgetedAmount == input.OriginalBudgetedAmount || - (this.OriginalBudgetedAmount != null && - this.OriginalBudgetedAmount.Equals(input.OriginalBudgetedAmount)) - ) && base.Equals(input) && - ( - this.OriginalBudgetedQty == input.OriginalBudgetedQty || - (this.OriginalBudgetedQty != null && - this.OriginalBudgetedQty.Equals(input.OriginalBudgetedQty)) - ) && base.Equals(input) && - ( - this.OtherDraftCOAmount == input.OtherDraftCOAmount || - (this.OtherDraftCOAmount != null && - this.OtherDraftCOAmount.Equals(input.OtherDraftCOAmount)) - ) && base.Equals(input) && - ( - this.PreviouslyApprovedCOAmount == input.PreviouslyApprovedCOAmount || - (this.PreviouslyApprovedCOAmount != null && - this.PreviouslyApprovedCOAmount.Equals(input.PreviouslyApprovedCOAmount)) - ) && base.Equals(input) && - ( - this.PreviouslyApprovedCOQty == input.PreviouslyApprovedCOQty || - (this.PreviouslyApprovedCOQty != null && - this.PreviouslyApprovedCOQty.Equals(input.PreviouslyApprovedCOQty)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.RevisedBudgetedAmount == input.RevisedBudgetedAmount || - (this.RevisedBudgetedAmount != null && - this.RevisedBudgetedAmount.Equals(input.RevisedBudgetedAmount)) - ) && base.Equals(input) && - ( - this.RevisedBudgetedQty == input.RevisedBudgetedQty || - (this.RevisedBudgetedQty != null && - this.RevisedBudgetedQty.Equals(input.RevisedBudgetedQty)) - ) && base.Equals(input) && - ( - this.TotalPotentiallyRevisedAmount == input.TotalPotentiallyRevisedAmount || - (this.TotalPotentiallyRevisedAmount != null && - this.TotalPotentiallyRevisedAmount.Equals(input.TotalPotentiallyRevisedAmount)) - ) && base.Equals(input) && - ( - this.UnitRate == input.UnitRate || - (this.UnitRate != null && - this.UnitRate.Equals(input.UnitRate)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountGroup != null) - hashCode = hashCode * 59 + this.AccountGroup.GetHashCode(); - if (this.ActualAmount != null) - hashCode = hashCode * 59 + this.ActualAmount.GetHashCode(); - if (this.ActualQty != null) - hashCode = hashCode * 59 + this.ActualQty.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Completed != null) - hashCode = hashCode * 59 + this.Completed.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DraftInvoicesAmount != null) - hashCode = hashCode * 59 + this.DraftInvoicesAmount.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.OriginalBudgetedAmount != null) - hashCode = hashCode * 59 + this.OriginalBudgetedAmount.GetHashCode(); - if (this.OriginalBudgetedQty != null) - hashCode = hashCode * 59 + this.OriginalBudgetedQty.GetHashCode(); - if (this.OtherDraftCOAmount != null) - hashCode = hashCode * 59 + this.OtherDraftCOAmount.GetHashCode(); - if (this.PreviouslyApprovedCOAmount != null) - hashCode = hashCode * 59 + this.PreviouslyApprovedCOAmount.GetHashCode(); - if (this.PreviouslyApprovedCOQty != null) - hashCode = hashCode * 59 + this.PreviouslyApprovedCOQty.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.RevisedBudgetedAmount != null) - hashCode = hashCode * 59 + this.RevisedBudgetedAmount.GetHashCode(); - if (this.RevisedBudgetedQty != null) - hashCode = hashCode * 59 + this.RevisedBudgetedQty.GetHashCode(); - if (this.TotalPotentiallyRevisedAmount != null) - hashCode = hashCode * 59 + this.TotalPotentiallyRevisedAmount.GetHashCode(); - if (this.UnitRate != null) - hashCode = hashCode * 59 + this.UnitRate.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Check.cs b/Default.18.200.001/Model/Check.cs deleted file mode 100644 index 954f7366..00000000 --- a/Default.18.200.001/Model/Check.cs +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Check - /// - [DataContract] - public partial class Check : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// applicationDate. - /// cashAccount. - /// currencyID. - /// description. - /// details. - /// history. - /// hold. - /// paymentAmount. - /// paymentMethod. - /// paymentRef. - /// referenceNbr. - /// status. - /// type. - /// unappliedBalance. - /// vendor. - public Check(DateTimeValue applicationDate = default(DateTimeValue), StringValue cashAccount = default(StringValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), IEnumerable history = default(IEnumerable), BooleanValue hold = default(BooleanValue), DecimalValue paymentAmount = default(DecimalValue), StringValue paymentMethod = default(StringValue), StringValue paymentRef = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), StringValue type = default(StringValue), DecimalValue unappliedBalance = default(DecimalValue), StringValue vendor = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApplicationDate = applicationDate; - this.CashAccount = cashAccount; - this.CurrencyID = currencyID; - this.Description = description; - this.Details = details; - this.History = history; - this.Hold = hold; - this.PaymentAmount = paymentAmount; - this.PaymentMethod = paymentMethod; - this.PaymentRef = paymentRef; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.Type = type; - this.UnappliedBalance = unappliedBalance; - this.Vendor = vendor; - } - - /// - /// Gets or Sets ApplicationDate - /// - [DataMember(Name="ApplicationDate", EmitDefaultValue=false)] - public DateTimeValue ApplicationDate { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets History - /// - [DataMember(Name="History", EmitDefaultValue=false)] - public IEnumerable History { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets PaymentAmount - /// - [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] - public DecimalValue PaymentAmount { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UnappliedBalance - /// - [DataMember(Name="UnappliedBalance", EmitDefaultValue=false)] - public DecimalValue UnappliedBalance { get; set; } - - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Check {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApplicationDate: ").Append(ApplicationDate).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" History: ").Append(History).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" PaymentAmount: ").Append(PaymentAmount).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UnappliedBalance: ").Append(UnappliedBalance).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Check); - } - - /// - /// Returns true if Check instances are equal - /// - /// Instance of Check to be compared - /// Boolean - public bool Equals(Check input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ApplicationDate == input.ApplicationDate || - (this.ApplicationDate != null && - this.ApplicationDate.Equals(input.ApplicationDate)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.History == input.History || - this.History != null && - this.History.SequenceEqual(input.History) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.PaymentAmount == input.PaymentAmount || - (this.PaymentAmount != null && - this.PaymentAmount.Equals(input.PaymentAmount)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UnappliedBalance == input.UnappliedBalance || - (this.UnappliedBalance != null && - this.UnappliedBalance.Equals(input.UnappliedBalance)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApplicationDate != null) - hashCode = hashCode * 59 + this.ApplicationDate.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.History != null) - hashCode = hashCode * 59 + this.History.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.PaymentAmount != null) - hashCode = hashCode * 59 + this.PaymentAmount.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UnappliedBalance != null) - hashCode = hashCode * 59 + this.UnappliedBalance.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CheckDetail.cs b/Default.18.200.001/Model/CheckDetail.cs deleted file mode 100644 index 10b63eea..00000000 --- a/Default.18.200.001/Model/CheckDetail.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CheckDetail - /// - [DataContract] - public partial class CheckDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// cashDiscountBalance. - /// docType. - /// referenceNbr. - public CheckDetail(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), DecimalValue cashDiscountBalance = default(DecimalValue), StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.CashDiscountBalance = cashDiscountBalance; - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashDiscountBalance - /// - [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] - public DecimalValue CashDiscountBalance { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CheckDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashDiscountBalance: ").Append(CashDiscountBalance).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CheckDetail); - } - - /// - /// Returns true if CheckDetail instances are equal - /// - /// Instance of CheckDetail to be compared - /// Boolean - public bool Equals(CheckDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashDiscountBalance == input.CashDiscountBalance || - (this.CashDiscountBalance != null && - this.CashDiscountBalance.Equals(input.CashDiscountBalance)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashDiscountBalance != null) - hashCode = hashCode * 59 + this.CashDiscountBalance.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CheckHistoryDetail.cs b/Default.18.200.001/Model/CheckHistoryDetail.cs deleted file mode 100644 index c80f6358..00000000 --- a/Default.18.200.001/Model/CheckHistoryDetail.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CheckHistoryDetail - /// - [DataContract] - public partial class CheckHistoryDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// cashDiscountBalance. - /// cashDiscountTaken. - /// docType. - /// referenceNbr. - /// vendorRef. - public CheckHistoryDetail(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), DecimalValue cashDiscountBalance = default(DecimalValue), DecimalValue cashDiscountTaken = default(DecimalValue), StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue vendorRef = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.CashDiscountBalance = cashDiscountBalance; - this.CashDiscountTaken = cashDiscountTaken; - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - this.VendorRef = vendorRef; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashDiscountBalance - /// - [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] - public DecimalValue CashDiscountBalance { get; set; } - - /// - /// Gets or Sets CashDiscountTaken - /// - [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] - public DecimalValue CashDiscountTaken { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets VendorRef - /// - [DataMember(Name="VendorRef", EmitDefaultValue=false)] - public StringValue VendorRef { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CheckHistoryDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashDiscountBalance: ").Append(CashDiscountBalance).Append("\n"); - sb.Append(" CashDiscountTaken: ").Append(CashDiscountTaken).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" VendorRef: ").Append(VendorRef).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CheckHistoryDetail); - } - - /// - /// Returns true if CheckHistoryDetail instances are equal - /// - /// Instance of CheckHistoryDetail to be compared - /// Boolean - public bool Equals(CheckHistoryDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashDiscountBalance == input.CashDiscountBalance || - (this.CashDiscountBalance != null && - this.CashDiscountBalance.Equals(input.CashDiscountBalance)) - ) && base.Equals(input) && - ( - this.CashDiscountTaken == input.CashDiscountTaken || - (this.CashDiscountTaken != null && - this.CashDiscountTaken.Equals(input.CashDiscountTaken)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.VendorRef == input.VendorRef || - (this.VendorRef != null && - this.VendorRef.Equals(input.VendorRef)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashDiscountBalance != null) - hashCode = hashCode * 59 + this.CashDiscountBalance.GetHashCode(); - if (this.CashDiscountTaken != null) - hashCode = hashCode * 59 + this.CashDiscountTaken.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.VendorRef != null) - hashCode = hashCode * 59 + this.VendorRef.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Commissions.cs b/Default.18.200.001/Model/Commissions.cs deleted file mode 100644 index b2f94f39..00000000 --- a/Default.18.200.001/Model/Commissions.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Commissions - /// - [DataContract] - public partial class Commissions : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// defaultSalesperson. - /// salesPersons. - public Commissions(StringValue defaultSalesperson = default(StringValue), IEnumerable salesPersons = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DefaultSalesperson = defaultSalesperson; - this.SalesPersons = salesPersons; - } - - /// - /// Gets or Sets DefaultSalesperson - /// - [DataMember(Name="DefaultSalesperson", EmitDefaultValue=false)] - public StringValue DefaultSalesperson { get; set; } - - /// - /// Gets or Sets SalesPersons - /// - [DataMember(Name="SalesPersons", EmitDefaultValue=false)] - public IEnumerable SalesPersons { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Commissions {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DefaultSalesperson: ").Append(DefaultSalesperson).Append("\n"); - sb.Append(" SalesPersons: ").Append(SalesPersons).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Commissions); - } - - /// - /// Returns true if Commissions instances are equal - /// - /// Instance of Commissions to be compared - /// Boolean - public bool Equals(Commissions input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DefaultSalesperson == input.DefaultSalesperson || - (this.DefaultSalesperson != null && - this.DefaultSalesperson.Equals(input.DefaultSalesperson)) - ) && base.Equals(input) && - ( - this.SalesPersons == input.SalesPersons || - this.SalesPersons != null && - this.SalesPersons.SequenceEqual(input.SalesPersons) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DefaultSalesperson != null) - hashCode = hashCode * 59 + this.DefaultSalesperson.GetHashCode(); - if (this.SalesPersons != null) - hashCode = hashCode * 59 + this.SalesPersons.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CommonTask.cs b/Default.18.200.001/Model/CommonTask.cs deleted file mode 100644 index d07b02a6..00000000 --- a/Default.18.200.001/Model/CommonTask.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CommonTask - /// - [DataContract] - public partial class CommonTask : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributes. - /// billingAndAllocationSettings. - /// commonTaskID. - /// defaultValues. - /// description. - /// lastModifiedDateTime. - /// properties. - /// visibilitySettings. - public CommonTask(IEnumerable attributes = default(IEnumerable), ProjectTaskBillingAndAllocationSettings billingAndAllocationSettings = default(ProjectTaskBillingAndAllocationSettings), StringValue commonTaskID = default(StringValue), ProjectTaskDefaultValues defaultValues = default(ProjectTaskDefaultValues), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ProjectTaskProperties properties = default(ProjectTaskProperties), VisibilitySettings visibilitySettings = default(VisibilitySettings), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attributes = attributes; - this.BillingAndAllocationSettings = billingAndAllocationSettings; - this.CommonTaskID = commonTaskID; - this.DefaultValues = defaultValues; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Properties = properties; - this.VisibilitySettings = visibilitySettings; - } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets BillingAndAllocationSettings - /// - [DataMember(Name="BillingAndAllocationSettings", EmitDefaultValue=false)] - public ProjectTaskBillingAndAllocationSettings BillingAndAllocationSettings { get; set; } - - /// - /// Gets or Sets CommonTaskID - /// - [DataMember(Name="CommonTaskID", EmitDefaultValue=false)] - public StringValue CommonTaskID { get; set; } - - /// - /// Gets or Sets DefaultValues - /// - [DataMember(Name="DefaultValues", EmitDefaultValue=false)] - public ProjectTaskDefaultValues DefaultValues { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Properties - /// - [DataMember(Name="Properties", EmitDefaultValue=false)] - public ProjectTaskProperties Properties { get; set; } - - /// - /// Gets or Sets VisibilitySettings - /// - [DataMember(Name="VisibilitySettings", EmitDefaultValue=false)] - public VisibilitySettings VisibilitySettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CommonTask {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BillingAndAllocationSettings: ").Append(BillingAndAllocationSettings).Append("\n"); - sb.Append(" CommonTaskID: ").Append(CommonTaskID).Append("\n"); - sb.Append(" DefaultValues: ").Append(DefaultValues).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Properties: ").Append(Properties).Append("\n"); - sb.Append(" VisibilitySettings: ").Append(VisibilitySettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CommonTask); - } - - /// - /// Returns true if CommonTask instances are equal - /// - /// Instance of CommonTask to be compared - /// Boolean - public bool Equals(CommonTask input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BillingAndAllocationSettings == input.BillingAndAllocationSettings || - (this.BillingAndAllocationSettings != null && - this.BillingAndAllocationSettings.Equals(input.BillingAndAllocationSettings)) - ) && base.Equals(input) && - ( - this.CommonTaskID == input.CommonTaskID || - (this.CommonTaskID != null && - this.CommonTaskID.Equals(input.CommonTaskID)) - ) && base.Equals(input) && - ( - this.DefaultValues == input.DefaultValues || - (this.DefaultValues != null && - this.DefaultValues.Equals(input.DefaultValues)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Properties == input.Properties || - (this.Properties != null && - this.Properties.Equals(input.Properties)) - ) && base.Equals(input) && - ( - this.VisibilitySettings == input.VisibilitySettings || - (this.VisibilitySettings != null && - this.VisibilitySettings.Equals(input.VisibilitySettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BillingAndAllocationSettings != null) - hashCode = hashCode * 59 + this.BillingAndAllocationSettings.GetHashCode(); - if (this.CommonTaskID != null) - hashCode = hashCode * 59 + this.CommonTaskID.GetHashCode(); - if (this.DefaultValues != null) - hashCode = hashCode * 59 + this.DefaultValues.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Properties != null) - hashCode = hashCode * 59 + this.Properties.GetHashCode(); - if (this.VisibilitySettings != null) - hashCode = hashCode * 59 + this.VisibilitySettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CompanyFinancialPeriod.cs b/Default.18.200.001/Model/CompanyFinancialPeriod.cs deleted file mode 100644 index f1c28329..00000000 --- a/Default.18.200.001/Model/CompanyFinancialPeriod.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CompanyFinancialPeriod - /// - [DataContract] - public partial class CompanyFinancialPeriod : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// company. - /// details. - /// financialYear. - /// nbrOfPeriods. - /// startDate. - public CompanyFinancialPeriod(StringValue company = default(StringValue), IEnumerable details = default(IEnumerable), StringValue financialYear = default(StringValue), ShortValue nbrOfPeriods = default(ShortValue), DateTimeValue startDate = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Company = company; - this.Details = details; - this.FinancialYear = financialYear; - this.NbrOfPeriods = nbrOfPeriods; - this.StartDate = startDate; - } - - /// - /// Gets or Sets Company - /// - [DataMember(Name="Company", EmitDefaultValue=false)] - public StringValue Company { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets FinancialYear - /// - [DataMember(Name="FinancialYear", EmitDefaultValue=false)] - public StringValue FinancialYear { get; set; } - - /// - /// Gets or Sets NbrOfPeriods - /// - [DataMember(Name="NbrOfPeriods", EmitDefaultValue=false)] - public ShortValue NbrOfPeriods { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CompanyFinancialPeriod {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Company: ").Append(Company).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" FinancialYear: ").Append(FinancialYear).Append("\n"); - sb.Append(" NbrOfPeriods: ").Append(NbrOfPeriods).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CompanyFinancialPeriod); - } - - /// - /// Returns true if CompanyFinancialPeriod instances are equal - /// - /// Instance of CompanyFinancialPeriod to be compared - /// Boolean - public bool Equals(CompanyFinancialPeriod input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Company == input.Company || - (this.Company != null && - this.Company.Equals(input.Company)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.FinancialYear == input.FinancialYear || - (this.FinancialYear != null && - this.FinancialYear.Equals(input.FinancialYear)) - ) && base.Equals(input) && - ( - this.NbrOfPeriods == input.NbrOfPeriods || - (this.NbrOfPeriods != null && - this.NbrOfPeriods.Equals(input.NbrOfPeriods)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Company != null) - hashCode = hashCode * 59 + this.Company.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.FinancialYear != null) - hashCode = hashCode * 59 + this.FinancialYear.GetHashCode(); - if (this.NbrOfPeriods != null) - hashCode = hashCode * 59 + this.NbrOfPeriods.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Contact.cs b/Default.18.200.001/Model/Contact.cs deleted file mode 100644 index 00453ff8..00000000 --- a/Default.18.200.001/Model/Contact.cs +++ /dev/null @@ -1,1166 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Contact - /// - [DataContract] - public partial class Contact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// activities. - /// address. - /// addressIsSameAsInAccount. - /// addressValidated. - /// attention. - /// attributes. - /// businessAccount. - /// campaigns. - /// cases. - /// companyName. - /// contactClass. - /// contactID. - /// contactMethod. - /// convertedBy. - /// dateOfBirth. - /// displayName. - /// doNotCall. - /// doNotEmail. - /// doNotFax. - /// doNotMail. - /// duplicate. - /// duplicateFound. - /// duplicates. - /// email. - /// fax. - /// faxType. - /// firstName. - /// gender. - /// image. - /// jobTitle. - /// languageOrLocale. - /// lastIncomingActivity. - /// lastModifiedDateTime. - /// lastName. - /// lastOutgoingActivity. - /// maritalStatus. - /// marketingLists. - /// middleName. - /// noMarketing. - /// noMassMail. - /// notifications. - /// opportunities. - /// owner. - /// ownerEmployeeName. - /// parentAccount. - /// phone1. - /// phone1Type. - /// phone2. - /// phone2Type. - /// phone3. - /// phone3Type. - /// qualificationDate. - /// reason. - /// relations. - /// source. - /// sourceCampaign. - /// spouseOrPartnerName. - /// status. - /// synchronize. - /// title. - /// type. - /// userInfo. - /// webSite. - /// workgroup. - /// workgroupDescription. - public Contact(BooleanValue active = default(BooleanValue), IEnumerable activities = default(IEnumerable), Address address = default(Address), BooleanValue addressIsSameAsInAccount = default(BooleanValue), BooleanValue addressValidated = default(BooleanValue), StringValue attention = default(StringValue), IEnumerable attributes = default(IEnumerable), StringValue businessAccount = default(StringValue), IEnumerable campaigns = default(IEnumerable), IEnumerable cases = default(IEnumerable), StringValue companyName = default(StringValue), StringValue contactClass = default(StringValue), IntValue contactID = default(IntValue), StringValue contactMethod = default(StringValue), StringValue convertedBy = default(StringValue), DateTimeValue dateOfBirth = default(DateTimeValue), StringValue displayName = default(StringValue), BooleanValue doNotCall = default(BooleanValue), BooleanValue doNotEmail = default(BooleanValue), BooleanValue doNotFax = default(BooleanValue), BooleanValue doNotMail = default(BooleanValue), StringValue duplicate = default(StringValue), BooleanValue duplicateFound = default(BooleanValue), IEnumerable duplicates = default(IEnumerable), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue faxType = default(StringValue), StringValue firstName = default(StringValue), StringValue gender = default(StringValue), StringValue image = default(StringValue), StringValue jobTitle = default(StringValue), StringValue languageOrLocale = default(StringValue), DateTimeValue lastIncomingActivity = default(DateTimeValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue lastName = default(StringValue), DateTimeValue lastOutgoingActivity = default(DateTimeValue), StringValue maritalStatus = default(StringValue), IEnumerable marketingLists = default(IEnumerable), StringValue middleName = default(StringValue), BooleanValue noMarketing = default(BooleanValue), BooleanValue noMassMail = default(BooleanValue), IEnumerable notifications = default(IEnumerable), IEnumerable opportunities = default(IEnumerable), StringValue owner = default(StringValue), StringValue ownerEmployeeName = default(StringValue), StringValue parentAccount = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone1Type = default(StringValue), StringValue phone2 = default(StringValue), StringValue phone2Type = default(StringValue), StringValue phone3 = default(StringValue), StringValue phone3Type = default(StringValue), DateTimeValue qualificationDate = default(DateTimeValue), StringValue reason = default(StringValue), IEnumerable relations = default(IEnumerable), StringValue source = default(StringValue), StringValue sourceCampaign = default(StringValue), StringValue spouseOrPartnerName = default(StringValue), StringValue status = default(StringValue), BooleanValue synchronize = default(BooleanValue), StringValue title = default(StringValue), StringValue type = default(StringValue), ContactUserInfo userInfo = default(ContactUserInfo), StringValue webSite = default(StringValue), StringValue workgroup = default(StringValue), StringValue workgroupDescription = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Activities = activities; - this.Address = address; - this.AddressIsSameAsInAccount = addressIsSameAsInAccount; - this.AddressValidated = addressValidated; - this.Attention = attention; - this.Attributes = attributes; - this.BusinessAccount = businessAccount; - this.Campaigns = campaigns; - this.Cases = cases; - this.CompanyName = companyName; - this.ContactClass = contactClass; - this.ContactID = contactID; - this.ContactMethod = contactMethod; - this.ConvertedBy = convertedBy; - this.DateOfBirth = dateOfBirth; - this.DisplayName = displayName; - this.DoNotCall = doNotCall; - this.DoNotEmail = doNotEmail; - this.DoNotFax = doNotFax; - this.DoNotMail = doNotMail; - this.Duplicate = duplicate; - this.DuplicateFound = duplicateFound; - this.Duplicates = duplicates; - this.Email = email; - this.Fax = fax; - this.FaxType = faxType; - this.FirstName = firstName; - this.Gender = gender; - this.Image = image; - this.JobTitle = jobTitle; - this.LanguageOrLocale = languageOrLocale; - this.LastIncomingActivity = lastIncomingActivity; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LastName = lastName; - this.LastOutgoingActivity = lastOutgoingActivity; - this.MaritalStatus = maritalStatus; - this.MarketingLists = marketingLists; - this.MiddleName = middleName; - this.NoMarketing = noMarketing; - this.NoMassMail = noMassMail; - this.Notifications = notifications; - this.Opportunities = opportunities; - this.Owner = owner; - this.OwnerEmployeeName = ownerEmployeeName; - this.ParentAccount = parentAccount; - this.Phone1 = phone1; - this.Phone1Type = phone1Type; - this.Phone2 = phone2; - this.Phone2Type = phone2Type; - this.Phone3 = phone3; - this.Phone3Type = phone3Type; - this.QualificationDate = qualificationDate; - this.Reason = reason; - this.Relations = relations; - this.Source = source; - this.SourceCampaign = sourceCampaign; - this.SpouseOrPartnerName = spouseOrPartnerName; - this.Status = status; - this.Synchronize = synchronize; - this.Title = title; - this.Type = type; - this.UserInfo = userInfo; - this.WebSite = webSite; - this.Workgroup = workgroup; - this.WorkgroupDescription = workgroupDescription; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Activities - /// - [DataMember(Name="Activities", EmitDefaultValue=false)] - public IEnumerable Activities { get; set; } - - /// - /// Gets or Sets Address - /// - [DataMember(Name="Address", EmitDefaultValue=false)] - public Address Address { get; set; } - - /// - /// Gets or Sets AddressIsSameAsInAccount - /// - [DataMember(Name="AddressIsSameAsInAccount", EmitDefaultValue=false)] - public BooleanValue AddressIsSameAsInAccount { get; set; } - - /// - /// Gets or Sets AddressValidated - /// - [DataMember(Name="AddressValidated", EmitDefaultValue=false)] - public BooleanValue AddressValidated { get; set; } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets Campaigns - /// - [DataMember(Name="Campaigns", EmitDefaultValue=false)] - public IEnumerable Campaigns { get; set; } - - /// - /// Gets or Sets Cases - /// - [DataMember(Name="Cases", EmitDefaultValue=false)] - public IEnumerable Cases { get; set; } - - /// - /// Gets or Sets CompanyName - /// - [DataMember(Name="CompanyName", EmitDefaultValue=false)] - public StringValue CompanyName { get; set; } - - /// - /// Gets or Sets ContactClass - /// - [DataMember(Name="ContactClass", EmitDefaultValue=false)] - public StringValue ContactClass { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets ContactMethod - /// - [DataMember(Name="ContactMethod", EmitDefaultValue=false)] - public StringValue ContactMethod { get; set; } - - /// - /// Gets or Sets ConvertedBy - /// - [DataMember(Name="ConvertedBy", EmitDefaultValue=false)] - public StringValue ConvertedBy { get; set; } - - /// - /// Gets or Sets DateOfBirth - /// - [DataMember(Name="DateOfBirth", EmitDefaultValue=false)] - public DateTimeValue DateOfBirth { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets DoNotCall - /// - [DataMember(Name="DoNotCall", EmitDefaultValue=false)] - public BooleanValue DoNotCall { get; set; } - - /// - /// Gets or Sets DoNotEmail - /// - [DataMember(Name="DoNotEmail", EmitDefaultValue=false)] - public BooleanValue DoNotEmail { get; set; } - - /// - /// Gets or Sets DoNotFax - /// - [DataMember(Name="DoNotFax", EmitDefaultValue=false)] - public BooleanValue DoNotFax { get; set; } - - /// - /// Gets or Sets DoNotMail - /// - [DataMember(Name="DoNotMail", EmitDefaultValue=false)] - public BooleanValue DoNotMail { get; set; } - - /// - /// Gets or Sets Duplicate - /// - [DataMember(Name="Duplicate", EmitDefaultValue=false)] - public StringValue Duplicate { get; set; } - - /// - /// Gets or Sets DuplicateFound - /// - [DataMember(Name="DuplicateFound", EmitDefaultValue=false)] - public BooleanValue DuplicateFound { get; set; } - - /// - /// Gets or Sets Duplicates - /// - [DataMember(Name="Duplicates", EmitDefaultValue=false)] - public IEnumerable Duplicates { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets FaxType - /// - [DataMember(Name="FaxType", EmitDefaultValue=false)] - public StringValue FaxType { get; set; } - - /// - /// Gets or Sets FirstName - /// - [DataMember(Name="FirstName", EmitDefaultValue=false)] - public StringValue FirstName { get; set; } - - /// - /// Gets or Sets Gender - /// - [DataMember(Name="Gender", EmitDefaultValue=false)] - public StringValue Gender { get; set; } - - /// - /// Gets or Sets Image - /// - [DataMember(Name="Image", EmitDefaultValue=false)] - public StringValue Image { get; set; } - - /// - /// Gets or Sets JobTitle - /// - [DataMember(Name="JobTitle", EmitDefaultValue=false)] - public StringValue JobTitle { get; set; } - - /// - /// Gets or Sets LanguageOrLocale - /// - [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] - public StringValue LanguageOrLocale { get; set; } - - /// - /// Gets or Sets LastIncomingActivity - /// - [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] - public DateTimeValue LastIncomingActivity { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LastName - /// - [DataMember(Name="LastName", EmitDefaultValue=false)] - public StringValue LastName { get; set; } - - /// - /// Gets or Sets LastOutgoingActivity - /// - [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] - public DateTimeValue LastOutgoingActivity { get; set; } - - /// - /// Gets or Sets MaritalStatus - /// - [DataMember(Name="MaritalStatus", EmitDefaultValue=false)] - public StringValue MaritalStatus { get; set; } - - /// - /// Gets or Sets MarketingLists - /// - [DataMember(Name="MarketingLists", EmitDefaultValue=false)] - public IEnumerable MarketingLists { get; set; } - - /// - /// Gets or Sets MiddleName - /// - [DataMember(Name="MiddleName", EmitDefaultValue=false)] - public StringValue MiddleName { get; set; } - - /// - /// Gets or Sets NoMarketing - /// - [DataMember(Name="NoMarketing", EmitDefaultValue=false)] - public BooleanValue NoMarketing { get; set; } - - /// - /// Gets or Sets NoMassMail - /// - [DataMember(Name="NoMassMail", EmitDefaultValue=false)] - public BooleanValue NoMassMail { get; set; } - - /// - /// Gets or Sets Notifications - /// - [DataMember(Name="Notifications", EmitDefaultValue=false)] - public IEnumerable Notifications { get; set; } - - /// - /// Gets or Sets Opportunities - /// - [DataMember(Name="Opportunities", EmitDefaultValue=false)] - public IEnumerable Opportunities { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets OwnerEmployeeName - /// - [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] - public StringValue OwnerEmployeeName { get; set; } - - /// - /// Gets or Sets ParentAccount - /// - [DataMember(Name="ParentAccount", EmitDefaultValue=false)] - public StringValue ParentAccount { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Phone1Type - /// - [DataMember(Name="Phone1Type", EmitDefaultValue=false)] - public StringValue Phone1Type { get; set; } - - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } - - /// - /// Gets or Sets Phone2Type - /// - [DataMember(Name="Phone2Type", EmitDefaultValue=false)] - public StringValue Phone2Type { get; set; } - - /// - /// Gets or Sets Phone3 - /// - [DataMember(Name="Phone3", EmitDefaultValue=false)] - public StringValue Phone3 { get; set; } - - /// - /// Gets or Sets Phone3Type - /// - [DataMember(Name="Phone3Type", EmitDefaultValue=false)] - public StringValue Phone3Type { get; set; } - - /// - /// Gets or Sets QualificationDate - /// - [DataMember(Name="QualificationDate", EmitDefaultValue=false)] - public DateTimeValue QualificationDate { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } - - /// - /// Gets or Sets Relations - /// - [DataMember(Name="Relations", EmitDefaultValue=false)] - public IEnumerable Relations { get; set; } - - /// - /// Gets or Sets Source - /// - [DataMember(Name="Source", EmitDefaultValue=false)] - public StringValue Source { get; set; } - - /// - /// Gets or Sets SourceCampaign - /// - [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] - public StringValue SourceCampaign { get; set; } - - /// - /// Gets or Sets SpouseOrPartnerName - /// - [DataMember(Name="SpouseOrPartnerName", EmitDefaultValue=false)] - public StringValue SpouseOrPartnerName { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Synchronize - /// - [DataMember(Name="Synchronize", EmitDefaultValue=false)] - public BooleanValue Synchronize { get; set; } - - /// - /// Gets or Sets Title - /// - [DataMember(Name="Title", EmitDefaultValue=false)] - public StringValue Title { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UserInfo - /// - [DataMember(Name="UserInfo", EmitDefaultValue=false)] - public ContactUserInfo UserInfo { get; set; } - - /// - /// Gets or Sets WebSite - /// - [DataMember(Name="WebSite", EmitDefaultValue=false)] - public StringValue WebSite { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Gets or Sets WorkgroupDescription - /// - [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] - public StringValue WorkgroupDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Contact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Activities: ").Append(Activities).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" AddressIsSameAsInAccount: ").Append(AddressIsSameAsInAccount).Append("\n"); - sb.Append(" AddressValidated: ").Append(AddressValidated).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" Campaigns: ").Append(Campaigns).Append("\n"); - sb.Append(" Cases: ").Append(Cases).Append("\n"); - sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); - sb.Append(" ContactClass: ").Append(ContactClass).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" ContactMethod: ").Append(ContactMethod).Append("\n"); - sb.Append(" ConvertedBy: ").Append(ConvertedBy).Append("\n"); - sb.Append(" DateOfBirth: ").Append(DateOfBirth).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" DoNotCall: ").Append(DoNotCall).Append("\n"); - sb.Append(" DoNotEmail: ").Append(DoNotEmail).Append("\n"); - sb.Append(" DoNotFax: ").Append(DoNotFax).Append("\n"); - sb.Append(" DoNotMail: ").Append(DoNotMail).Append("\n"); - sb.Append(" Duplicate: ").Append(Duplicate).Append("\n"); - sb.Append(" DuplicateFound: ").Append(DuplicateFound).Append("\n"); - sb.Append(" Duplicates: ").Append(Duplicates).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" FaxType: ").Append(FaxType).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" Gender: ").Append(Gender).Append("\n"); - sb.Append(" Image: ").Append(Image).Append("\n"); - sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); - sb.Append(" LanguageOrLocale: ").Append(LanguageOrLocale).Append("\n"); - sb.Append(" LastIncomingActivity: ").Append(LastIncomingActivity).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" LastOutgoingActivity: ").Append(LastOutgoingActivity).Append("\n"); - sb.Append(" MaritalStatus: ").Append(MaritalStatus).Append("\n"); - sb.Append(" MarketingLists: ").Append(MarketingLists).Append("\n"); - sb.Append(" MiddleName: ").Append(MiddleName).Append("\n"); - sb.Append(" NoMarketing: ").Append(NoMarketing).Append("\n"); - sb.Append(" NoMassMail: ").Append(NoMassMail).Append("\n"); - sb.Append(" Notifications: ").Append(Notifications).Append("\n"); - sb.Append(" Opportunities: ").Append(Opportunities).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerEmployeeName: ").Append(OwnerEmployeeName).Append("\n"); - sb.Append(" ParentAccount: ").Append(ParentAccount).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone1Type: ").Append(Phone1Type).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" Phone2Type: ").Append(Phone2Type).Append("\n"); - sb.Append(" Phone3: ").Append(Phone3).Append("\n"); - sb.Append(" Phone3Type: ").Append(Phone3Type).Append("\n"); - sb.Append(" QualificationDate: ").Append(QualificationDate).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" Relations: ").Append(Relations).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append(" SourceCampaign: ").Append(SourceCampaign).Append("\n"); - sb.Append(" SpouseOrPartnerName: ").Append(SpouseOrPartnerName).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Synchronize: ").Append(Synchronize).Append("\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UserInfo: ").Append(UserInfo).Append("\n"); - sb.Append(" WebSite: ").Append(WebSite).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append(" WorkgroupDescription: ").Append(WorkgroupDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Contact); - } - - /// - /// Returns true if Contact instances are equal - /// - /// Instance of Contact to be compared - /// Boolean - public bool Equals(Contact input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Activities == input.Activities || - this.Activities != null && - this.Activities.SequenceEqual(input.Activities) - ) && base.Equals(input) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && base.Equals(input) && - ( - this.AddressIsSameAsInAccount == input.AddressIsSameAsInAccount || - (this.AddressIsSameAsInAccount != null && - this.AddressIsSameAsInAccount.Equals(input.AddressIsSameAsInAccount)) - ) && base.Equals(input) && - ( - this.AddressValidated == input.AddressValidated || - (this.AddressValidated != null && - this.AddressValidated.Equals(input.AddressValidated)) - ) && base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.Campaigns == input.Campaigns || - this.Campaigns != null && - this.Campaigns.SequenceEqual(input.Campaigns) - ) && base.Equals(input) && - ( - this.Cases == input.Cases || - this.Cases != null && - this.Cases.SequenceEqual(input.Cases) - ) && base.Equals(input) && - ( - this.CompanyName == input.CompanyName || - (this.CompanyName != null && - this.CompanyName.Equals(input.CompanyName)) - ) && base.Equals(input) && - ( - this.ContactClass == input.ContactClass || - (this.ContactClass != null && - this.ContactClass.Equals(input.ContactClass)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.ContactMethod == input.ContactMethod || - (this.ContactMethod != null && - this.ContactMethod.Equals(input.ContactMethod)) - ) && base.Equals(input) && - ( - this.ConvertedBy == input.ConvertedBy || - (this.ConvertedBy != null && - this.ConvertedBy.Equals(input.ConvertedBy)) - ) && base.Equals(input) && - ( - this.DateOfBirth == input.DateOfBirth || - (this.DateOfBirth != null && - this.DateOfBirth.Equals(input.DateOfBirth)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.DoNotCall == input.DoNotCall || - (this.DoNotCall != null && - this.DoNotCall.Equals(input.DoNotCall)) - ) && base.Equals(input) && - ( - this.DoNotEmail == input.DoNotEmail || - (this.DoNotEmail != null && - this.DoNotEmail.Equals(input.DoNotEmail)) - ) && base.Equals(input) && - ( - this.DoNotFax == input.DoNotFax || - (this.DoNotFax != null && - this.DoNotFax.Equals(input.DoNotFax)) - ) && base.Equals(input) && - ( - this.DoNotMail == input.DoNotMail || - (this.DoNotMail != null && - this.DoNotMail.Equals(input.DoNotMail)) - ) && base.Equals(input) && - ( - this.Duplicate == input.Duplicate || - (this.Duplicate != null && - this.Duplicate.Equals(input.Duplicate)) - ) && base.Equals(input) && - ( - this.DuplicateFound == input.DuplicateFound || - (this.DuplicateFound != null && - this.DuplicateFound.Equals(input.DuplicateFound)) - ) && base.Equals(input) && - ( - this.Duplicates == input.Duplicates || - this.Duplicates != null && - this.Duplicates.SequenceEqual(input.Duplicates) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.FaxType == input.FaxType || - (this.FaxType != null && - this.FaxType.Equals(input.FaxType)) - ) && base.Equals(input) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && base.Equals(input) && - ( - this.Gender == input.Gender || - (this.Gender != null && - this.Gender.Equals(input.Gender)) - ) && base.Equals(input) && - ( - this.Image == input.Image || - (this.Image != null && - this.Image.Equals(input.Image)) - ) && base.Equals(input) && - ( - this.JobTitle == input.JobTitle || - (this.JobTitle != null && - this.JobTitle.Equals(input.JobTitle)) - ) && base.Equals(input) && - ( - this.LanguageOrLocale == input.LanguageOrLocale || - (this.LanguageOrLocale != null && - this.LanguageOrLocale.Equals(input.LanguageOrLocale)) - ) && base.Equals(input) && - ( - this.LastIncomingActivity == input.LastIncomingActivity || - (this.LastIncomingActivity != null && - this.LastIncomingActivity.Equals(input.LastIncomingActivity)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && base.Equals(input) && - ( - this.LastOutgoingActivity == input.LastOutgoingActivity || - (this.LastOutgoingActivity != null && - this.LastOutgoingActivity.Equals(input.LastOutgoingActivity)) - ) && base.Equals(input) && - ( - this.MaritalStatus == input.MaritalStatus || - (this.MaritalStatus != null && - this.MaritalStatus.Equals(input.MaritalStatus)) - ) && base.Equals(input) && - ( - this.MarketingLists == input.MarketingLists || - this.MarketingLists != null && - this.MarketingLists.SequenceEqual(input.MarketingLists) - ) && base.Equals(input) && - ( - this.MiddleName == input.MiddleName || - (this.MiddleName != null && - this.MiddleName.Equals(input.MiddleName)) - ) && base.Equals(input) && - ( - this.NoMarketing == input.NoMarketing || - (this.NoMarketing != null && - this.NoMarketing.Equals(input.NoMarketing)) - ) && base.Equals(input) && - ( - this.NoMassMail == input.NoMassMail || - (this.NoMassMail != null && - this.NoMassMail.Equals(input.NoMassMail)) - ) && base.Equals(input) && - ( - this.Notifications == input.Notifications || - this.Notifications != null && - this.Notifications.SequenceEqual(input.Notifications) - ) && base.Equals(input) && - ( - this.Opportunities == input.Opportunities || - this.Opportunities != null && - this.Opportunities.SequenceEqual(input.Opportunities) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.OwnerEmployeeName == input.OwnerEmployeeName || - (this.OwnerEmployeeName != null && - this.OwnerEmployeeName.Equals(input.OwnerEmployeeName)) - ) && base.Equals(input) && - ( - this.ParentAccount == input.ParentAccount || - (this.ParentAccount != null && - this.ParentAccount.Equals(input.ParentAccount)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone1Type == input.Phone1Type || - (this.Phone1Type != null && - this.Phone1Type.Equals(input.Phone1Type)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.Phone2Type == input.Phone2Type || - (this.Phone2Type != null && - this.Phone2Type.Equals(input.Phone2Type)) - ) && base.Equals(input) && - ( - this.Phone3 == input.Phone3 || - (this.Phone3 != null && - this.Phone3.Equals(input.Phone3)) - ) && base.Equals(input) && - ( - this.Phone3Type == input.Phone3Type || - (this.Phone3Type != null && - this.Phone3Type.Equals(input.Phone3Type)) - ) && base.Equals(input) && - ( - this.QualificationDate == input.QualificationDate || - (this.QualificationDate != null && - this.QualificationDate.Equals(input.QualificationDate)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.Relations == input.Relations || - this.Relations != null && - this.Relations.SequenceEqual(input.Relations) - ) && base.Equals(input) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ) && base.Equals(input) && - ( - this.SourceCampaign == input.SourceCampaign || - (this.SourceCampaign != null && - this.SourceCampaign.Equals(input.SourceCampaign)) - ) && base.Equals(input) && - ( - this.SpouseOrPartnerName == input.SpouseOrPartnerName || - (this.SpouseOrPartnerName != null && - this.SpouseOrPartnerName.Equals(input.SpouseOrPartnerName)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Synchronize == input.Synchronize || - (this.Synchronize != null && - this.Synchronize.Equals(input.Synchronize)) - ) && base.Equals(input) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UserInfo == input.UserInfo || - (this.UserInfo != null && - this.UserInfo.Equals(input.UserInfo)) - ) && base.Equals(input) && - ( - this.WebSite == input.WebSite || - (this.WebSite != null && - this.WebSite.Equals(input.WebSite)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ) && base.Equals(input) && - ( - this.WorkgroupDescription == input.WorkgroupDescription || - (this.WorkgroupDescription != null && - this.WorkgroupDescription.Equals(input.WorkgroupDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Activities != null) - hashCode = hashCode * 59 + this.Activities.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.AddressIsSameAsInAccount != null) - hashCode = hashCode * 59 + this.AddressIsSameAsInAccount.GetHashCode(); - if (this.AddressValidated != null) - hashCode = hashCode * 59 + this.AddressValidated.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.Campaigns != null) - hashCode = hashCode * 59 + this.Campaigns.GetHashCode(); - if (this.Cases != null) - hashCode = hashCode * 59 + this.Cases.GetHashCode(); - if (this.CompanyName != null) - hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); - if (this.ContactClass != null) - hashCode = hashCode * 59 + this.ContactClass.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.ContactMethod != null) - hashCode = hashCode * 59 + this.ContactMethod.GetHashCode(); - if (this.ConvertedBy != null) - hashCode = hashCode * 59 + this.ConvertedBy.GetHashCode(); - if (this.DateOfBirth != null) - hashCode = hashCode * 59 + this.DateOfBirth.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.DoNotCall != null) - hashCode = hashCode * 59 + this.DoNotCall.GetHashCode(); - if (this.DoNotEmail != null) - hashCode = hashCode * 59 + this.DoNotEmail.GetHashCode(); - if (this.DoNotFax != null) - hashCode = hashCode * 59 + this.DoNotFax.GetHashCode(); - if (this.DoNotMail != null) - hashCode = hashCode * 59 + this.DoNotMail.GetHashCode(); - if (this.Duplicate != null) - hashCode = hashCode * 59 + this.Duplicate.GetHashCode(); - if (this.DuplicateFound != null) - hashCode = hashCode * 59 + this.DuplicateFound.GetHashCode(); - if (this.Duplicates != null) - hashCode = hashCode * 59 + this.Duplicates.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.FaxType != null) - hashCode = hashCode * 59 + this.FaxType.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.Gender != null) - hashCode = hashCode * 59 + this.Gender.GetHashCode(); - if (this.Image != null) - hashCode = hashCode * 59 + this.Image.GetHashCode(); - if (this.JobTitle != null) - hashCode = hashCode * 59 + this.JobTitle.GetHashCode(); - if (this.LanguageOrLocale != null) - hashCode = hashCode * 59 + this.LanguageOrLocale.GetHashCode(); - if (this.LastIncomingActivity != null) - hashCode = hashCode * 59 + this.LastIncomingActivity.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.LastOutgoingActivity != null) - hashCode = hashCode * 59 + this.LastOutgoingActivity.GetHashCode(); - if (this.MaritalStatus != null) - hashCode = hashCode * 59 + this.MaritalStatus.GetHashCode(); - if (this.MarketingLists != null) - hashCode = hashCode * 59 + this.MarketingLists.GetHashCode(); - if (this.MiddleName != null) - hashCode = hashCode * 59 + this.MiddleName.GetHashCode(); - if (this.NoMarketing != null) - hashCode = hashCode * 59 + this.NoMarketing.GetHashCode(); - if (this.NoMassMail != null) - hashCode = hashCode * 59 + this.NoMassMail.GetHashCode(); - if (this.Notifications != null) - hashCode = hashCode * 59 + this.Notifications.GetHashCode(); - if (this.Opportunities != null) - hashCode = hashCode * 59 + this.Opportunities.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerEmployeeName != null) - hashCode = hashCode * 59 + this.OwnerEmployeeName.GetHashCode(); - if (this.ParentAccount != null) - hashCode = hashCode * 59 + this.ParentAccount.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone1Type != null) - hashCode = hashCode * 59 + this.Phone1Type.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.Phone2Type != null) - hashCode = hashCode * 59 + this.Phone2Type.GetHashCode(); - if (this.Phone3 != null) - hashCode = hashCode * 59 + this.Phone3.GetHashCode(); - if (this.Phone3Type != null) - hashCode = hashCode * 59 + this.Phone3Type.GetHashCode(); - if (this.QualificationDate != null) - hashCode = hashCode * 59 + this.QualificationDate.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.Relations != null) - hashCode = hashCode * 59 + this.Relations.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - if (this.SourceCampaign != null) - hashCode = hashCode * 59 + this.SourceCampaign.GetHashCode(); - if (this.SpouseOrPartnerName != null) - hashCode = hashCode * 59 + this.SpouseOrPartnerName.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Synchronize != null) - hashCode = hashCode * 59 + this.Synchronize.GetHashCode(); - if (this.Title != null) - hashCode = hashCode * 59 + this.Title.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UserInfo != null) - hashCode = hashCode * 59 + this.UserInfo.GetHashCode(); - if (this.WebSite != null) - hashCode = hashCode * 59 + this.WebSite.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - if (this.WorkgroupDescription != null) - hashCode = hashCode * 59 + this.WorkgroupDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ContactDuplicateDetail.cs b/Default.18.200.001/Model/ContactDuplicateDetail.cs deleted file mode 100644 index 268e6d86..00000000 --- a/Default.18.200.001/Model/ContactDuplicateDetail.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ContactDuplicateDetail - /// - [DataContract] - public partial class ContactDuplicateDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// businessAccount. - /// businessAccountName. - /// businessAccountType. - /// displayName. - /// duplicate. - /// email. - /// lastModifiedDate. - /// type. - public ContactDuplicateDetail(StringValue businessAccount = default(StringValue), StringValue businessAccountName = default(StringValue), StringValue businessAccountType = default(StringValue), StringValue displayName = default(StringValue), StringValue duplicate = default(StringValue), StringValue email = default(StringValue), DateTimeValue lastModifiedDate = default(DateTimeValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BusinessAccount = businessAccount; - this.BusinessAccountName = businessAccountName; - this.BusinessAccountType = businessAccountType; - this.DisplayName = displayName; - this.Duplicate = duplicate; - this.Email = email; - this.LastModifiedDate = lastModifiedDate; - this.Type = type; - } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets BusinessAccountName - /// - [DataMember(Name="BusinessAccountName", EmitDefaultValue=false)] - public StringValue BusinessAccountName { get; set; } - - /// - /// Gets or Sets BusinessAccountType - /// - [DataMember(Name="BusinessAccountType", EmitDefaultValue=false)] - public StringValue BusinessAccountType { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets Duplicate - /// - [DataMember(Name="Duplicate", EmitDefaultValue=false)] - public StringValue Duplicate { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets LastModifiedDate - /// - [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDate { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactDuplicateDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" BusinessAccountName: ").Append(BusinessAccountName).Append("\n"); - sb.Append(" BusinessAccountType: ").Append(BusinessAccountType).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Duplicate: ").Append(Duplicate).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" LastModifiedDate: ").Append(LastModifiedDate).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactDuplicateDetail); - } - - /// - /// Returns true if ContactDuplicateDetail instances are equal - /// - /// Instance of ContactDuplicateDetail to be compared - /// Boolean - public bool Equals(ContactDuplicateDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.BusinessAccountName == input.BusinessAccountName || - (this.BusinessAccountName != null && - this.BusinessAccountName.Equals(input.BusinessAccountName)) - ) && base.Equals(input) && - ( - this.BusinessAccountType == input.BusinessAccountType || - (this.BusinessAccountType != null && - this.BusinessAccountType.Equals(input.BusinessAccountType)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.Duplicate == input.Duplicate || - (this.Duplicate != null && - this.Duplicate.Equals(input.Duplicate)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.LastModifiedDate == input.LastModifiedDate || - (this.LastModifiedDate != null && - this.LastModifiedDate.Equals(input.LastModifiedDate)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.BusinessAccountName != null) - hashCode = hashCode * 59 + this.BusinessAccountName.GetHashCode(); - if (this.BusinessAccountType != null) - hashCode = hashCode * 59 + this.BusinessAccountType.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Duplicate != null) - hashCode = hashCode * 59 + this.Duplicate.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.LastModifiedDate != null) - hashCode = hashCode * 59 + this.LastModifiedDate.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ContactNotification.cs b/Default.18.200.001/Model/ContactNotification.cs deleted file mode 100644 index b50adbb0..00000000 --- a/Default.18.200.001/Model/ContactNotification.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ContactNotification - /// - [DataContract] - public partial class ContactNotification : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// bcc. - /// classID. - /// description. - /// format. - /// mailingID. - /// module. - /// notificationID. - /// report. - /// source. - public ContactNotification(BooleanValue active = default(BooleanValue), BooleanValue bcc = default(BooleanValue), StringValue classID = default(StringValue), StringValue description = default(StringValue), StringValue format = default(StringValue), StringValue mailingID = default(StringValue), StringValue module = default(StringValue), IntValue notificationID = default(IntValue), StringValue report = default(StringValue), StringValue source = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Bcc = bcc; - this.ClassID = classID; - this.Description = description; - this.Format = format; - this.MailingID = mailingID; - this.Module = module; - this.NotificationID = notificationID; - this.Report = report; - this.Source = source; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Bcc - /// - [DataMember(Name="Bcc", EmitDefaultValue=false)] - public BooleanValue Bcc { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Format - /// - [DataMember(Name="Format", EmitDefaultValue=false)] - public StringValue Format { get; set; } - - /// - /// Gets or Sets MailingID - /// - [DataMember(Name="MailingID", EmitDefaultValue=false)] - public StringValue MailingID { get; set; } - - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } - - /// - /// Gets or Sets NotificationID - /// - [DataMember(Name="NotificationID", EmitDefaultValue=false)] - public IntValue NotificationID { get; set; } - - /// - /// Gets or Sets Report - /// - [DataMember(Name="Report", EmitDefaultValue=false)] - public StringValue Report { get; set; } - - /// - /// Gets or Sets Source - /// - [DataMember(Name="Source", EmitDefaultValue=false)] - public StringValue Source { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactNotification {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Bcc: ").Append(Bcc).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Format: ").Append(Format).Append("\n"); - sb.Append(" MailingID: ").Append(MailingID).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" NotificationID: ").Append(NotificationID).Append("\n"); - sb.Append(" Report: ").Append(Report).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactNotification); - } - - /// - /// Returns true if ContactNotification instances are equal - /// - /// Instance of ContactNotification to be compared - /// Boolean - public bool Equals(ContactNotification input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Bcc == input.Bcc || - (this.Bcc != null && - this.Bcc.Equals(input.Bcc)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Format == input.Format || - (this.Format != null && - this.Format.Equals(input.Format)) - ) && base.Equals(input) && - ( - this.MailingID == input.MailingID || - (this.MailingID != null && - this.MailingID.Equals(input.MailingID)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.NotificationID == input.NotificationID || - (this.NotificationID != null && - this.NotificationID.Equals(input.NotificationID)) - ) && base.Equals(input) && - ( - this.Report == input.Report || - (this.Report != null && - this.Report.Equals(input.Report)) - ) && base.Equals(input) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Bcc != null) - hashCode = hashCode * 59 + this.Bcc.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Format != null) - hashCode = hashCode * 59 + this.Format.GetHashCode(); - if (this.MailingID != null) - hashCode = hashCode * 59 + this.MailingID.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.NotificationID != null) - hashCode = hashCode * 59 + this.NotificationID.GetHashCode(); - if (this.Report != null) - hashCode = hashCode * 59 + this.Report.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ContactRoles.cs b/Default.18.200.001/Model/ContactRoles.cs deleted file mode 100644 index efa6a85f..00000000 --- a/Default.18.200.001/Model/ContactRoles.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ContactRoles - /// - [DataContract] - public partial class ContactRoles : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// roleDescription. - /// roleName. - /// selected. - /// userType. - public ContactRoles(StringValue roleDescription = default(StringValue), StringValue roleName = default(StringValue), BooleanValue selected = default(BooleanValue), IntValue userType = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.RoleDescription = roleDescription; - this.RoleName = roleName; - this.Selected = selected; - this.UserType = userType; - } - - /// - /// Gets or Sets RoleDescription - /// - [DataMember(Name="RoleDescription", EmitDefaultValue=false)] - public StringValue RoleDescription { get; set; } - - /// - /// Gets or Sets RoleName - /// - [DataMember(Name="RoleName", EmitDefaultValue=false)] - public StringValue RoleName { get; set; } - - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } - - /// - /// Gets or Sets UserType - /// - [DataMember(Name="UserType", EmitDefaultValue=false)] - public IntValue UserType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactRoles {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" RoleDescription: ").Append(RoleDescription).Append("\n"); - sb.Append(" RoleName: ").Append(RoleName).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" UserType: ").Append(UserType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactRoles); - } - - /// - /// Returns true if ContactRoles instances are equal - /// - /// Instance of ContactRoles to be compared - /// Boolean - public bool Equals(ContactRoles input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.RoleDescription == input.RoleDescription || - (this.RoleDescription != null && - this.RoleDescription.Equals(input.RoleDescription)) - ) && base.Equals(input) && - ( - this.RoleName == input.RoleName || - (this.RoleName != null && - this.RoleName.Equals(input.RoleName)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.UserType == input.UserType || - (this.UserType != null && - this.UserType.Equals(input.UserType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.RoleDescription != null) - hashCode = hashCode * 59 + this.RoleDescription.GetHashCode(); - if (this.RoleName != null) - hashCode = hashCode * 59 + this.RoleName.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.UserType != null) - hashCode = hashCode * 59 + this.UserType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ContactUserInfo.cs b/Default.18.200.001/Model/ContactUserInfo.cs deleted file mode 100644 index 30cfd71f..00000000 --- a/Default.18.200.001/Model/ContactUserInfo.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ContactUserInfo - /// - [DataContract] - public partial class ContactUserInfo : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// generatePassword. - /// login. - /// password. - /// roles. - /// status. - /// userType. - public ContactUserInfo(BooleanValue generatePassword = default(BooleanValue), StringValue login = default(StringValue), StringValue password = default(StringValue), IEnumerable roles = default(IEnumerable), StringValue status = default(StringValue), StringValue userType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.GeneratePassword = generatePassword; - this.Login = login; - this.Password = password; - this.Roles = roles; - this.Status = status; - this.UserType = userType; - } - - /// - /// Gets or Sets GeneratePassword - /// - [DataMember(Name="GeneratePassword", EmitDefaultValue=false)] - public BooleanValue GeneratePassword { get; set; } - - /// - /// Gets or Sets Login - /// - [DataMember(Name="Login", EmitDefaultValue=false)] - public StringValue Login { get; set; } - - /// - /// Gets or Sets Password - /// - [DataMember(Name="Password", EmitDefaultValue=false)] - public StringValue Password { get; set; } - - /// - /// Gets or Sets Roles - /// - [DataMember(Name="Roles", EmitDefaultValue=false)] - public IEnumerable Roles { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets UserType - /// - [DataMember(Name="UserType", EmitDefaultValue=false)] - public StringValue UserType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContactUserInfo {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" GeneratePassword: ").Append(GeneratePassword).Append("\n"); - sb.Append(" Login: ").Append(Login).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" Roles: ").Append(Roles).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" UserType: ").Append(UserType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContactUserInfo); - } - - /// - /// Returns true if ContactUserInfo instances are equal - /// - /// Instance of ContactUserInfo to be compared - /// Boolean - public bool Equals(ContactUserInfo input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.GeneratePassword == input.GeneratePassword || - (this.GeneratePassword != null && - this.GeneratePassword.Equals(input.GeneratePassword)) - ) && base.Equals(input) && - ( - this.Login == input.Login || - (this.Login != null && - this.Login.Equals(input.Login)) - ) && base.Equals(input) && - ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) - ) && base.Equals(input) && - ( - this.Roles == input.Roles || - this.Roles != null && - this.Roles.SequenceEqual(input.Roles) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.UserType == input.UserType || - (this.UserType != null && - this.UserType.Equals(input.UserType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.GeneratePassword != null) - hashCode = hashCode * 59 + this.GeneratePassword.GetHashCode(); - if (this.Login != null) - hashCode = hashCode * 59 + this.Login.GetHashCode(); - if (this.Password != null) - hashCode = hashCode * 59 + this.Password.GetHashCode(); - if (this.Roles != null) - hashCode = hashCode * 59 + this.Roles.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.UserType != null) - hashCode = hashCode * 59 + this.UserType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ContractUsage.cs b/Default.18.200.001/Model/ContractUsage.cs deleted file mode 100644 index e431e426..00000000 --- a/Default.18.200.001/Model/ContractUsage.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ContractUsage - /// - [DataContract] - public partial class ContractUsage : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billedTransactions. - /// contractID. - /// postPeriod. - /// unbilledTransactions. - public ContractUsage(IEnumerable billedTransactions = default(IEnumerable), StringValue contractID = default(StringValue), StringValue postPeriod = default(StringValue), IEnumerable unbilledTransactions = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BilledTransactions = billedTransactions; - this.ContractID = contractID; - this.PostPeriod = postPeriod; - this.UnbilledTransactions = unbilledTransactions; - } - - /// - /// Gets or Sets BilledTransactions - /// - [DataMember(Name="BilledTransactions", EmitDefaultValue=false)] - public IEnumerable BilledTransactions { get; set; } - - /// - /// Gets or Sets ContractID - /// - [DataMember(Name="ContractID", EmitDefaultValue=false)] - public StringValue ContractID { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets UnbilledTransactions - /// - [DataMember(Name="UnbilledTransactions", EmitDefaultValue=false)] - public IEnumerable UnbilledTransactions { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContractUsage {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BilledTransactions: ").Append(BilledTransactions).Append("\n"); - sb.Append(" ContractID: ").Append(ContractID).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" UnbilledTransactions: ").Append(UnbilledTransactions).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContractUsage); - } - - /// - /// Returns true if ContractUsage instances are equal - /// - /// Instance of ContractUsage to be compared - /// Boolean - public bool Equals(ContractUsage input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BilledTransactions == input.BilledTransactions || - this.BilledTransactions != null && - this.BilledTransactions.SequenceEqual(input.BilledTransactions) - ) && base.Equals(input) && - ( - this.ContractID == input.ContractID || - (this.ContractID != null && - this.ContractID.Equals(input.ContractID)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.UnbilledTransactions == input.UnbilledTransactions || - this.UnbilledTransactions != null && - this.UnbilledTransactions.SequenceEqual(input.UnbilledTransactions) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BilledTransactions != null) - hashCode = hashCode * 59 + this.BilledTransactions.GetHashCode(); - if (this.ContractID != null) - hashCode = hashCode * 59 + this.ContractID.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.UnbilledTransactions != null) - hashCode = hashCode * 59 + this.UnbilledTransactions.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ContractUsageTransactionDetail.cs b/Default.18.200.001/Model/ContractUsageTransactionDetail.cs deleted file mode 100644 index f592d050..00000000 --- a/Default.18.200.001/Model/ContractUsageTransactionDetail.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ContractUsageTransactionDetail - /// - [DataContract] - public partial class ContractUsageTransactionDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billingDate. - /// branch. - /// caseID. - /// date. - /// description. - /// endDate. - /// inventoryID. - /// qty. - /// referenceNbr. - /// startDate. - /// transactionID. - /// type. - /// uOM. - public ContractUsageTransactionDetail(DateTimeValue billingDate = default(DateTimeValue), StringValue branch = default(StringValue), StringValue caseID = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue endDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue referenceNbr = default(StringValue), DateTimeValue startDate = default(DateTimeValue), LongValue transactionID = default(LongValue), StringValue type = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillingDate = billingDate; - this.Branch = branch; - this.CaseID = caseID; - this.Date = date; - this.Description = description; - this.EndDate = endDate; - this.InventoryID = inventoryID; - this.Qty = qty; - this.ReferenceNbr = referenceNbr; - this.StartDate = startDate; - this.TransactionID = transactionID; - this.Type = type; - this.UOM = uOM; - } - - /// - /// Gets or Sets BillingDate - /// - [DataMember(Name="BillingDate", EmitDefaultValue=false)] - public DateTimeValue BillingDate { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CaseID - /// - [DataMember(Name="CaseID", EmitDefaultValue=false)] - public StringValue CaseID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets TransactionID - /// - [DataMember(Name="TransactionID", EmitDefaultValue=false)] - public LongValue TransactionID { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ContractUsageTransactionDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillingDate: ").Append(BillingDate).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CaseID: ").Append(CaseID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" TransactionID: ").Append(TransactionID).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ContractUsageTransactionDetail); - } - - /// - /// Returns true if ContractUsageTransactionDetail instances are equal - /// - /// Instance of ContractUsageTransactionDetail to be compared - /// Boolean - public bool Equals(ContractUsageTransactionDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BillingDate == input.BillingDate || - (this.BillingDate != null && - this.BillingDate.Equals(input.BillingDate)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CaseID == input.CaseID || - (this.CaseID != null && - this.CaseID.Equals(input.CaseID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.TransactionID == input.TransactionID || - (this.TransactionID != null && - this.TransactionID.Equals(input.TransactionID)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillingDate != null) - hashCode = hashCode * 59 + this.BillingDate.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CaseID != null) - hashCode = hashCode * 59 + this.CaseID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.TransactionID != null) - hashCode = hashCode * 59 + this.TransactionID.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CostCode.cs b/Default.18.200.001/Model/CostCode.cs deleted file mode 100644 index 66525872..00000000 --- a/Default.18.200.001/Model/CostCode.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CostCode - /// - [DataContract] - public partial class CostCode : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// costCodeID. - /// description. - /// lastModifiedDateTime. - public CostCode(StringValue costCodeID = default(StringValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CostCodeID = costCodeID; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - } - - /// - /// Gets or Sets CostCodeID - /// - [DataMember(Name="CostCodeID", EmitDefaultValue=false)] - public StringValue CostCodeID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CostCode {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CostCodeID: ").Append(CostCodeID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CostCode); - } - - /// - /// Returns true if CostCode instances are equal - /// - /// Instance of CostCode to be compared - /// Boolean - public bool Equals(CostCode input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CostCodeID == input.CostCodeID || - (this.CostCodeID != null && - this.CostCodeID.Equals(input.CostCodeID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CostCodeID != null) - hashCode = hashCode * 59 + this.CostCodeID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CreditCardProcessingDetail.cs b/Default.18.200.001/Model/CreditCardProcessingDetail.cs deleted file mode 100644 index 73bdc669..00000000 --- a/Default.18.200.001/Model/CreditCardProcessingDetail.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CreditCardProcessingDetail - /// - [DataContract] - public partial class CreditCardProcessingDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// transactionAmount. - /// transactionStatus. - public CreditCardProcessingDetail(DecimalValue transactionAmount = default(DecimalValue), StringValue transactionStatus = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.TransactionAmount = transactionAmount; - this.TransactionStatus = transactionStatus; - } - - /// - /// Gets or Sets TransactionAmount - /// - [DataMember(Name="TransactionAmount", EmitDefaultValue=false)] - public DecimalValue TransactionAmount { get; set; } - - /// - /// Gets or Sets TransactionStatus - /// - [DataMember(Name="TransactionStatus", EmitDefaultValue=false)] - public StringValue TransactionStatus { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CreditCardProcessingDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" TransactionAmount: ").Append(TransactionAmount).Append("\n"); - sb.Append(" TransactionStatus: ").Append(TransactionStatus).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CreditCardProcessingDetail); - } - - /// - /// Returns true if CreditCardProcessingDetail instances are equal - /// - /// Instance of CreditCardProcessingDetail to be compared - /// Boolean - public bool Equals(CreditCardProcessingDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.TransactionAmount == input.TransactionAmount || - (this.TransactionAmount != null && - this.TransactionAmount.Equals(input.TransactionAmount)) - ) && base.Equals(input) && - ( - this.TransactionStatus == input.TransactionStatus || - (this.TransactionStatus != null && - this.TransactionStatus.Equals(input.TransactionStatus)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.TransactionAmount != null) - hashCode = hashCode * 59 + this.TransactionAmount.GetHashCode(); - if (this.TransactionStatus != null) - hashCode = hashCode * 59 + this.TransactionStatus.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CreditVerificationRules.cs b/Default.18.200.001/Model/CreditVerificationRules.cs deleted file mode 100644 index 860c56c8..00000000 --- a/Default.18.200.001/Model/CreditVerificationRules.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CreditVerificationRules - /// - [DataContract] - public partial class CreditVerificationRules : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// creditDaysPastDue. - /// creditLimit. - /// creditVerification. - /// firstDueDate. - /// openOrdersBalance. - /// remainingCreditLimit. - /// unreleasedBalance. - public CreditVerificationRules(ShortValue creditDaysPastDue = default(ShortValue), DecimalValue creditLimit = default(DecimalValue), StringValue creditVerification = default(StringValue), DateTimeValue firstDueDate = default(DateTimeValue), DecimalValue openOrdersBalance = default(DecimalValue), DecimalValue remainingCreditLimit = default(DecimalValue), DecimalValue unreleasedBalance = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreditDaysPastDue = creditDaysPastDue; - this.CreditLimit = creditLimit; - this.CreditVerification = creditVerification; - this.FirstDueDate = firstDueDate; - this.OpenOrdersBalance = openOrdersBalance; - this.RemainingCreditLimit = remainingCreditLimit; - this.UnreleasedBalance = unreleasedBalance; - } - - /// - /// Gets or Sets CreditDaysPastDue - /// - [DataMember(Name="CreditDaysPastDue", EmitDefaultValue=false)] - public ShortValue CreditDaysPastDue { get; set; } - - /// - /// Gets or Sets CreditLimit - /// - [DataMember(Name="CreditLimit", EmitDefaultValue=false)] - public DecimalValue CreditLimit { get; set; } - - /// - /// Gets or Sets CreditVerification - /// - [DataMember(Name="CreditVerification", EmitDefaultValue=false)] - public StringValue CreditVerification { get; set; } - - /// - /// Gets or Sets FirstDueDate - /// - [DataMember(Name="FirstDueDate", EmitDefaultValue=false)] - public DateTimeValue FirstDueDate { get; set; } - - /// - /// Gets or Sets OpenOrdersBalance - /// - [DataMember(Name="OpenOrdersBalance", EmitDefaultValue=false)] - public DecimalValue OpenOrdersBalance { get; set; } - - /// - /// Gets or Sets RemainingCreditLimit - /// - [DataMember(Name="RemainingCreditLimit", EmitDefaultValue=false)] - public DecimalValue RemainingCreditLimit { get; set; } - - /// - /// Gets or Sets UnreleasedBalance - /// - [DataMember(Name="UnreleasedBalance", EmitDefaultValue=false)] - public DecimalValue UnreleasedBalance { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CreditVerificationRules {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreditDaysPastDue: ").Append(CreditDaysPastDue).Append("\n"); - sb.Append(" CreditLimit: ").Append(CreditLimit).Append("\n"); - sb.Append(" CreditVerification: ").Append(CreditVerification).Append("\n"); - sb.Append(" FirstDueDate: ").Append(FirstDueDate).Append("\n"); - sb.Append(" OpenOrdersBalance: ").Append(OpenOrdersBalance).Append("\n"); - sb.Append(" RemainingCreditLimit: ").Append(RemainingCreditLimit).Append("\n"); - sb.Append(" UnreleasedBalance: ").Append(UnreleasedBalance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CreditVerificationRules); - } - - /// - /// Returns true if CreditVerificationRules instances are equal - /// - /// Instance of CreditVerificationRules to be compared - /// Boolean - public bool Equals(CreditVerificationRules input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreditDaysPastDue == input.CreditDaysPastDue || - (this.CreditDaysPastDue != null && - this.CreditDaysPastDue.Equals(input.CreditDaysPastDue)) - ) && base.Equals(input) && - ( - this.CreditLimit == input.CreditLimit || - (this.CreditLimit != null && - this.CreditLimit.Equals(input.CreditLimit)) - ) && base.Equals(input) && - ( - this.CreditVerification == input.CreditVerification || - (this.CreditVerification != null && - this.CreditVerification.Equals(input.CreditVerification)) - ) && base.Equals(input) && - ( - this.FirstDueDate == input.FirstDueDate || - (this.FirstDueDate != null && - this.FirstDueDate.Equals(input.FirstDueDate)) - ) && base.Equals(input) && - ( - this.OpenOrdersBalance == input.OpenOrdersBalance || - (this.OpenOrdersBalance != null && - this.OpenOrdersBalance.Equals(input.OpenOrdersBalance)) - ) && base.Equals(input) && - ( - this.RemainingCreditLimit == input.RemainingCreditLimit || - (this.RemainingCreditLimit != null && - this.RemainingCreditLimit.Equals(input.RemainingCreditLimit)) - ) && base.Equals(input) && - ( - this.UnreleasedBalance == input.UnreleasedBalance || - (this.UnreleasedBalance != null && - this.UnreleasedBalance.Equals(input.UnreleasedBalance)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreditDaysPastDue != null) - hashCode = hashCode * 59 + this.CreditDaysPastDue.GetHashCode(); - if (this.CreditLimit != null) - hashCode = hashCode * 59 + this.CreditLimit.GetHashCode(); - if (this.CreditVerification != null) - hashCode = hashCode * 59 + this.CreditVerification.GetHashCode(); - if (this.FirstDueDate != null) - hashCode = hashCode * 59 + this.FirstDueDate.GetHashCode(); - if (this.OpenOrdersBalance != null) - hashCode = hashCode * 59 + this.OpenOrdersBalance.GetHashCode(); - if (this.RemainingCreditLimit != null) - hashCode = hashCode * 59 + this.RemainingCreditLimit.GetHashCode(); - if (this.UnreleasedBalance != null) - hashCode = hashCode * 59 + this.UnreleasedBalance.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Currency.cs b/Default.18.200.001/Model/Currency.cs deleted file mode 100644 index a6bca922..00000000 --- a/Default.18.200.001/Model/Currency.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Currency - /// - [DataContract] - public partial class Currency : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// createdDateTime. - /// currencyID. - /// currencySymbol. - /// decimalPrecision. - /// description. - /// lastModifiedDateTime. - /// useForAccounting. - public Currency(BooleanValue active = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue currencySymbol = default(StringValue), ShortValue decimalPrecision = default(ShortValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), BooleanValue useForAccounting = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.CurrencySymbol = currencySymbol; - this.DecimalPrecision = decimalPrecision; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.UseForAccounting = useForAccounting; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencySymbol - /// - [DataMember(Name="CurrencySymbol", EmitDefaultValue=false)] - public StringValue CurrencySymbol { get; set; } - - /// - /// Gets or Sets DecimalPrecision - /// - [DataMember(Name="DecimalPrecision", EmitDefaultValue=false)] - public ShortValue DecimalPrecision { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets UseForAccounting - /// - [DataMember(Name="UseForAccounting", EmitDefaultValue=false)] - public BooleanValue UseForAccounting { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Currency {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencySymbol: ").Append(CurrencySymbol).Append("\n"); - sb.Append(" DecimalPrecision: ").Append(DecimalPrecision).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" UseForAccounting: ").Append(UseForAccounting).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Currency); - } - - /// - /// Returns true if Currency instances are equal - /// - /// Instance of Currency to be compared - /// Boolean - public bool Equals(Currency input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencySymbol == input.CurrencySymbol || - (this.CurrencySymbol != null && - this.CurrencySymbol.Equals(input.CurrencySymbol)) - ) && base.Equals(input) && - ( - this.DecimalPrecision == input.DecimalPrecision || - (this.DecimalPrecision != null && - this.DecimalPrecision.Equals(input.DecimalPrecision)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.UseForAccounting == input.UseForAccounting || - (this.UseForAccounting != null && - this.UseForAccounting.Equals(input.UseForAccounting)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencySymbol != null) - hashCode = hashCode * 59 + this.CurrencySymbol.GetHashCode(); - if (this.DecimalPrecision != null) - hashCode = hashCode * 59 + this.DecimalPrecision.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.UseForAccounting != null) - hashCode = hashCode * 59 + this.UseForAccounting.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Customer.cs b/Default.18.200.001/Model/Customer.cs deleted file mode 100644 index 5122de11..00000000 --- a/Default.18.200.001/Model/Customer.cs +++ /dev/null @@ -1,958 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Customer - /// - [DataContract] - public partial class Customer : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountRef. - /// applyOverdueCharges. - /// attributes. - /// autoApplyPayments. - /// billingAddressSameAsMain. - /// billingContact. - /// billingContactSameAsMain. - /// contacts. - /// createdDateTime. - /// creditVerificationRules. - /// currencyID. - /// currencyRateType. - /// customerClass. - /// customerID. - /// customerName. - /// enableCurrencyOverride. - /// enableRateOverride. - /// enableWriteOffs. - /// fOBPoint. - /// lastModifiedDateTime. - /// leadTimedays. - /// locationName. - /// mainContact. - /// multiCurrencyStatements. - /// orderPriority. - /// parentRecord. - /// paymentInstructions. - /// priceClassID. - /// printDunningLetters. - /// printInvoices. - /// printStatements. - /// residentialDelivery. - /// salespersons. - /// saturdayDelivery. - /// sendDunningLettersbyEmail. - /// sendInvoicesbyEmail. - /// sendStatementsbyEmail. - /// shippingAddressSameAsMain. - /// shippingBranch. - /// shippingContact. - /// shippingContactSameAsMain. - /// shippingRule. - /// shippingTerms. - /// shippingZoneID. - /// shipVia. - /// statementCycleID. - /// statementType. - /// status. - /// taxRegistrationID. - /// taxZone. - /// terms. - /// warehouseID. - /// writeOffLimit. - public Customer(StringValue accountRef = default(StringValue), BooleanValue applyOverdueCharges = default(BooleanValue), IEnumerable attributes = default(IEnumerable), BooleanValue autoApplyPayments = default(BooleanValue), BooleanValue billingAddressSameAsMain = default(BooleanValue), Contact billingContact = default(Contact), BooleanValue billingContactSameAsMain = default(BooleanValue), IEnumerable contacts = default(IEnumerable), DateTimeValue createdDateTime = default(DateTimeValue), CreditVerificationRules creditVerificationRules = default(CreditVerificationRules), StringValue currencyID = default(StringValue), StringValue currencyRateType = default(StringValue), StringValue customerClass = default(StringValue), StringValue customerID = default(StringValue), StringValue customerName = default(StringValue), BooleanValue enableCurrencyOverride = default(BooleanValue), BooleanValue enableRateOverride = default(BooleanValue), BooleanValue enableWriteOffs = default(BooleanValue), StringValue fOBPoint = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ShortValue leadTimedays = default(ShortValue), StringValue locationName = default(StringValue), Contact mainContact = default(Contact), BooleanValue multiCurrencyStatements = default(BooleanValue), ShortValue orderPriority = default(ShortValue), StringValue parentRecord = default(StringValue), IEnumerable paymentInstructions = default(IEnumerable), StringValue priceClassID = default(StringValue), BooleanValue printDunningLetters = default(BooleanValue), BooleanValue printInvoices = default(BooleanValue), BooleanValue printStatements = default(BooleanValue), BooleanValue residentialDelivery = default(BooleanValue), IEnumerable salespersons = default(IEnumerable), BooleanValue saturdayDelivery = default(BooleanValue), BooleanValue sendDunningLettersbyEmail = default(BooleanValue), BooleanValue sendInvoicesbyEmail = default(BooleanValue), BooleanValue sendStatementsbyEmail = default(BooleanValue), BooleanValue shippingAddressSameAsMain = default(BooleanValue), StringValue shippingBranch = default(StringValue), Contact shippingContact = default(Contact), BooleanValue shippingContactSameAsMain = default(BooleanValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shippingZoneID = default(StringValue), StringValue shipVia = default(StringValue), StringValue statementCycleID = default(StringValue), StringValue statementType = default(StringValue), StringValue status = default(StringValue), StringValue taxRegistrationID = default(StringValue), StringValue taxZone = default(StringValue), StringValue terms = default(StringValue), StringValue warehouseID = default(StringValue), DecimalValue writeOffLimit = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountRef = accountRef; - this.ApplyOverdueCharges = applyOverdueCharges; - this.Attributes = attributes; - this.AutoApplyPayments = autoApplyPayments; - this.BillingAddressSameAsMain = billingAddressSameAsMain; - this.BillingContact = billingContact; - this.BillingContactSameAsMain = billingContactSameAsMain; - this.Contacts = contacts; - this.CreatedDateTime = createdDateTime; - this.CreditVerificationRules = creditVerificationRules; - this.CurrencyID = currencyID; - this.CurrencyRateType = currencyRateType; - this.CustomerClass = customerClass; - this.CustomerID = customerID; - this.CustomerName = customerName; - this.EnableCurrencyOverride = enableCurrencyOverride; - this.EnableRateOverride = enableRateOverride; - this.EnableWriteOffs = enableWriteOffs; - this.FOBPoint = fOBPoint; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LeadTimedays = leadTimedays; - this.LocationName = locationName; - this.MainContact = mainContact; - this.MultiCurrencyStatements = multiCurrencyStatements; - this.OrderPriority = orderPriority; - this.ParentRecord = parentRecord; - this.PaymentInstructions = paymentInstructions; - this.PriceClassID = priceClassID; - this.PrintDunningLetters = printDunningLetters; - this.PrintInvoices = printInvoices; - this.PrintStatements = printStatements; - this.ResidentialDelivery = residentialDelivery; - this.Salespersons = salespersons; - this.SaturdayDelivery = saturdayDelivery; - this.SendDunningLettersbyEmail = sendDunningLettersbyEmail; - this.SendInvoicesbyEmail = sendInvoicesbyEmail; - this.SendStatementsbyEmail = sendStatementsbyEmail; - this.ShippingAddressSameAsMain = shippingAddressSameAsMain; - this.ShippingBranch = shippingBranch; - this.ShippingContact = shippingContact; - this.ShippingContactSameAsMain = shippingContactSameAsMain; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShippingZoneID = shippingZoneID; - this.ShipVia = shipVia; - this.StatementCycleID = statementCycleID; - this.StatementType = statementType; - this.Status = status; - this.TaxRegistrationID = taxRegistrationID; - this.TaxZone = taxZone; - this.Terms = terms; - this.WarehouseID = warehouseID; - this.WriteOffLimit = writeOffLimit; - } - - /// - /// Gets or Sets AccountRef - /// - [DataMember(Name="AccountRef", EmitDefaultValue=false)] - public StringValue AccountRef { get; set; } - - /// - /// Gets or Sets ApplyOverdueCharges - /// - [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] - public BooleanValue ApplyOverdueCharges { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets AutoApplyPayments - /// - [DataMember(Name="AutoApplyPayments", EmitDefaultValue=false)] - public BooleanValue AutoApplyPayments { get; set; } - - /// - /// Gets or Sets BillingAddressSameAsMain - /// - [DataMember(Name="BillingAddressSameAsMain", EmitDefaultValue=false)] - public BooleanValue BillingAddressSameAsMain { get; set; } - - /// - /// Gets or Sets BillingContact - /// - [DataMember(Name="BillingContact", EmitDefaultValue=false)] - public Contact BillingContact { get; set; } - - /// - /// Gets or Sets BillingContactSameAsMain - /// - [DataMember(Name="BillingContactSameAsMain", EmitDefaultValue=false)] - public BooleanValue BillingContactSameAsMain { get; set; } - - /// - /// Gets or Sets Contacts - /// - [DataMember(Name="Contacts", EmitDefaultValue=false)] - public IEnumerable Contacts { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CreditVerificationRules - /// - [DataMember(Name="CreditVerificationRules", EmitDefaultValue=false)] - public CreditVerificationRules CreditVerificationRules { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRateType - /// - [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] - public StringValue CurrencyRateType { get; set; } - - /// - /// Gets or Sets CustomerClass - /// - [DataMember(Name="CustomerClass", EmitDefaultValue=false)] - public StringValue CustomerClass { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerName - /// - [DataMember(Name="CustomerName", EmitDefaultValue=false)] - public StringValue CustomerName { get; set; } - - /// - /// Gets or Sets EnableCurrencyOverride - /// - [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] - public BooleanValue EnableCurrencyOverride { get; set; } - - /// - /// Gets or Sets EnableRateOverride - /// - [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] - public BooleanValue EnableRateOverride { get; set; } - - /// - /// Gets or Sets EnableWriteOffs - /// - [DataMember(Name="EnableWriteOffs", EmitDefaultValue=false)] - public BooleanValue EnableWriteOffs { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LeadTimedays - /// - [DataMember(Name="LeadTimedays", EmitDefaultValue=false)] - public ShortValue LeadTimedays { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets MainContact - /// - [DataMember(Name="MainContact", EmitDefaultValue=false)] - public Contact MainContact { get; set; } - - /// - /// Gets or Sets MultiCurrencyStatements - /// - [DataMember(Name="MultiCurrencyStatements", EmitDefaultValue=false)] - public BooleanValue MultiCurrencyStatements { get; set; } - - /// - /// Gets or Sets OrderPriority - /// - [DataMember(Name="OrderPriority", EmitDefaultValue=false)] - public ShortValue OrderPriority { get; set; } - - /// - /// Gets or Sets ParentRecord - /// - [DataMember(Name="ParentRecord", EmitDefaultValue=false)] - public StringValue ParentRecord { get; set; } - - /// - /// Gets or Sets PaymentInstructions - /// - [DataMember(Name="PaymentInstructions", EmitDefaultValue=false)] - public IEnumerable PaymentInstructions { get; set; } - - /// - /// Gets or Sets PriceClassID - /// - [DataMember(Name="PriceClassID", EmitDefaultValue=false)] - public StringValue PriceClassID { get; set; } - - /// - /// Gets or Sets PrintDunningLetters - /// - [DataMember(Name="PrintDunningLetters", EmitDefaultValue=false)] - public BooleanValue PrintDunningLetters { get; set; } - - /// - /// Gets or Sets PrintInvoices - /// - [DataMember(Name="PrintInvoices", EmitDefaultValue=false)] - public BooleanValue PrintInvoices { get; set; } - - /// - /// Gets or Sets PrintStatements - /// - [DataMember(Name="PrintStatements", EmitDefaultValue=false)] - public BooleanValue PrintStatements { get; set; } - - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } - - /// - /// Gets or Sets Salespersons - /// - [DataMember(Name="Salespersons", EmitDefaultValue=false)] - public IEnumerable Salespersons { get; set; } - - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } - - /// - /// Gets or Sets SendDunningLettersbyEmail - /// - [DataMember(Name="SendDunningLettersbyEmail", EmitDefaultValue=false)] - public BooleanValue SendDunningLettersbyEmail { get; set; } - - /// - /// Gets or Sets SendInvoicesbyEmail - /// - [DataMember(Name="SendInvoicesbyEmail", EmitDefaultValue=false)] - public BooleanValue SendInvoicesbyEmail { get; set; } - - /// - /// Gets or Sets SendStatementsbyEmail - /// - [DataMember(Name="SendStatementsbyEmail", EmitDefaultValue=false)] - public BooleanValue SendStatementsbyEmail { get; set; } - - /// - /// Gets or Sets ShippingAddressSameAsMain - /// - [DataMember(Name="ShippingAddressSameAsMain", EmitDefaultValue=false)] - public BooleanValue ShippingAddressSameAsMain { get; set; } - - /// - /// Gets or Sets ShippingBranch - /// - [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] - public StringValue ShippingBranch { get; set; } - - /// - /// Gets or Sets ShippingContact - /// - [DataMember(Name="ShippingContact", EmitDefaultValue=false)] - public Contact ShippingContact { get; set; } - - /// - /// Gets or Sets ShippingContactSameAsMain - /// - [DataMember(Name="ShippingContactSameAsMain", EmitDefaultValue=false)] - public BooleanValue ShippingContactSameAsMain { get; set; } - - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShippingZoneID - /// - [DataMember(Name="ShippingZoneID", EmitDefaultValue=false)] - public StringValue ShippingZoneID { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets StatementCycleID - /// - [DataMember(Name="StatementCycleID", EmitDefaultValue=false)] - public StringValue StatementCycleID { get; set; } - - /// - /// Gets or Sets StatementType - /// - [DataMember(Name="StatementType", EmitDefaultValue=false)] - public StringValue StatementType { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxRegistrationID - /// - [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] - public StringValue TaxRegistrationID { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Gets or Sets WriteOffLimit - /// - [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] - public DecimalValue WriteOffLimit { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Customer {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountRef: ").Append(AccountRef).Append("\n"); - sb.Append(" ApplyOverdueCharges: ").Append(ApplyOverdueCharges).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" AutoApplyPayments: ").Append(AutoApplyPayments).Append("\n"); - sb.Append(" BillingAddressSameAsMain: ").Append(BillingAddressSameAsMain).Append("\n"); - sb.Append(" BillingContact: ").Append(BillingContact).Append("\n"); - sb.Append(" BillingContactSameAsMain: ").Append(BillingContactSameAsMain).Append("\n"); - sb.Append(" Contacts: ").Append(Contacts).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CreditVerificationRules: ").Append(CreditVerificationRules).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRateType: ").Append(CurrencyRateType).Append("\n"); - sb.Append(" CustomerClass: ").Append(CustomerClass).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); - sb.Append(" EnableCurrencyOverride: ").Append(EnableCurrencyOverride).Append("\n"); - sb.Append(" EnableRateOverride: ").Append(EnableRateOverride).Append("\n"); - sb.Append(" EnableWriteOffs: ").Append(EnableWriteOffs).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LeadTimedays: ").Append(LeadTimedays).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" MainContact: ").Append(MainContact).Append("\n"); - sb.Append(" MultiCurrencyStatements: ").Append(MultiCurrencyStatements).Append("\n"); - sb.Append(" OrderPriority: ").Append(OrderPriority).Append("\n"); - sb.Append(" ParentRecord: ").Append(ParentRecord).Append("\n"); - sb.Append(" PaymentInstructions: ").Append(PaymentInstructions).Append("\n"); - sb.Append(" PriceClassID: ").Append(PriceClassID).Append("\n"); - sb.Append(" PrintDunningLetters: ").Append(PrintDunningLetters).Append("\n"); - sb.Append(" PrintInvoices: ").Append(PrintInvoices).Append("\n"); - sb.Append(" PrintStatements: ").Append(PrintStatements).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" Salespersons: ").Append(Salespersons).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" SendDunningLettersbyEmail: ").Append(SendDunningLettersbyEmail).Append("\n"); - sb.Append(" SendInvoicesbyEmail: ").Append(SendInvoicesbyEmail).Append("\n"); - sb.Append(" SendStatementsbyEmail: ").Append(SendStatementsbyEmail).Append("\n"); - sb.Append(" ShippingAddressSameAsMain: ").Append(ShippingAddressSameAsMain).Append("\n"); - sb.Append(" ShippingBranch: ").Append(ShippingBranch).Append("\n"); - sb.Append(" ShippingContact: ").Append(ShippingContact).Append("\n"); - sb.Append(" ShippingContactSameAsMain: ").Append(ShippingContactSameAsMain).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZoneID: ").Append(ShippingZoneID).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" StatementCycleID: ").Append(StatementCycleID).Append("\n"); - sb.Append(" StatementType: ").Append(StatementType).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxRegistrationID: ").Append(TaxRegistrationID).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append(" WriteOffLimit: ").Append(WriteOffLimit).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Customer); - } - - /// - /// Returns true if Customer instances are equal - /// - /// Instance of Customer to be compared - /// Boolean - public bool Equals(Customer input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountRef == input.AccountRef || - (this.AccountRef != null && - this.AccountRef.Equals(input.AccountRef)) - ) && base.Equals(input) && - ( - this.ApplyOverdueCharges == input.ApplyOverdueCharges || - (this.ApplyOverdueCharges != null && - this.ApplyOverdueCharges.Equals(input.ApplyOverdueCharges)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.AutoApplyPayments == input.AutoApplyPayments || - (this.AutoApplyPayments != null && - this.AutoApplyPayments.Equals(input.AutoApplyPayments)) - ) && base.Equals(input) && - ( - this.BillingAddressSameAsMain == input.BillingAddressSameAsMain || - (this.BillingAddressSameAsMain != null && - this.BillingAddressSameAsMain.Equals(input.BillingAddressSameAsMain)) - ) && base.Equals(input) && - ( - this.BillingContact == input.BillingContact || - (this.BillingContact != null && - this.BillingContact.Equals(input.BillingContact)) - ) && base.Equals(input) && - ( - this.BillingContactSameAsMain == input.BillingContactSameAsMain || - (this.BillingContactSameAsMain != null && - this.BillingContactSameAsMain.Equals(input.BillingContactSameAsMain)) - ) && base.Equals(input) && - ( - this.Contacts == input.Contacts || - this.Contacts != null && - this.Contacts.SequenceEqual(input.Contacts) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CreditVerificationRules == input.CreditVerificationRules || - (this.CreditVerificationRules != null && - this.CreditVerificationRules.Equals(input.CreditVerificationRules)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRateType == input.CurrencyRateType || - (this.CurrencyRateType != null && - this.CurrencyRateType.Equals(input.CurrencyRateType)) - ) && base.Equals(input) && - ( - this.CustomerClass == input.CustomerClass || - (this.CustomerClass != null && - this.CustomerClass.Equals(input.CustomerClass)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerName == input.CustomerName || - (this.CustomerName != null && - this.CustomerName.Equals(input.CustomerName)) - ) && base.Equals(input) && - ( - this.EnableCurrencyOverride == input.EnableCurrencyOverride || - (this.EnableCurrencyOverride != null && - this.EnableCurrencyOverride.Equals(input.EnableCurrencyOverride)) - ) && base.Equals(input) && - ( - this.EnableRateOverride == input.EnableRateOverride || - (this.EnableRateOverride != null && - this.EnableRateOverride.Equals(input.EnableRateOverride)) - ) && base.Equals(input) && - ( - this.EnableWriteOffs == input.EnableWriteOffs || - (this.EnableWriteOffs != null && - this.EnableWriteOffs.Equals(input.EnableWriteOffs)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LeadTimedays == input.LeadTimedays || - (this.LeadTimedays != null && - this.LeadTimedays.Equals(input.LeadTimedays)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.MainContact == input.MainContact || - (this.MainContact != null && - this.MainContact.Equals(input.MainContact)) - ) && base.Equals(input) && - ( - this.MultiCurrencyStatements == input.MultiCurrencyStatements || - (this.MultiCurrencyStatements != null && - this.MultiCurrencyStatements.Equals(input.MultiCurrencyStatements)) - ) && base.Equals(input) && - ( - this.OrderPriority == input.OrderPriority || - (this.OrderPriority != null && - this.OrderPriority.Equals(input.OrderPriority)) - ) && base.Equals(input) && - ( - this.ParentRecord == input.ParentRecord || - (this.ParentRecord != null && - this.ParentRecord.Equals(input.ParentRecord)) - ) && base.Equals(input) && - ( - this.PaymentInstructions == input.PaymentInstructions || - this.PaymentInstructions != null && - this.PaymentInstructions.SequenceEqual(input.PaymentInstructions) - ) && base.Equals(input) && - ( - this.PriceClassID == input.PriceClassID || - (this.PriceClassID != null && - this.PriceClassID.Equals(input.PriceClassID)) - ) && base.Equals(input) && - ( - this.PrintDunningLetters == input.PrintDunningLetters || - (this.PrintDunningLetters != null && - this.PrintDunningLetters.Equals(input.PrintDunningLetters)) - ) && base.Equals(input) && - ( - this.PrintInvoices == input.PrintInvoices || - (this.PrintInvoices != null && - this.PrintInvoices.Equals(input.PrintInvoices)) - ) && base.Equals(input) && - ( - this.PrintStatements == input.PrintStatements || - (this.PrintStatements != null && - this.PrintStatements.Equals(input.PrintStatements)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.Salespersons == input.Salespersons || - this.Salespersons != null && - this.Salespersons.SequenceEqual(input.Salespersons) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.SendDunningLettersbyEmail == input.SendDunningLettersbyEmail || - (this.SendDunningLettersbyEmail != null && - this.SendDunningLettersbyEmail.Equals(input.SendDunningLettersbyEmail)) - ) && base.Equals(input) && - ( - this.SendInvoicesbyEmail == input.SendInvoicesbyEmail || - (this.SendInvoicesbyEmail != null && - this.SendInvoicesbyEmail.Equals(input.SendInvoicesbyEmail)) - ) && base.Equals(input) && - ( - this.SendStatementsbyEmail == input.SendStatementsbyEmail || - (this.SendStatementsbyEmail != null && - this.SendStatementsbyEmail.Equals(input.SendStatementsbyEmail)) - ) && base.Equals(input) && - ( - this.ShippingAddressSameAsMain == input.ShippingAddressSameAsMain || - (this.ShippingAddressSameAsMain != null && - this.ShippingAddressSameAsMain.Equals(input.ShippingAddressSameAsMain)) - ) && base.Equals(input) && - ( - this.ShippingBranch == input.ShippingBranch || - (this.ShippingBranch != null && - this.ShippingBranch.Equals(input.ShippingBranch)) - ) && base.Equals(input) && - ( - this.ShippingContact == input.ShippingContact || - (this.ShippingContact != null && - this.ShippingContact.Equals(input.ShippingContact)) - ) && base.Equals(input) && - ( - this.ShippingContactSameAsMain == input.ShippingContactSameAsMain || - (this.ShippingContactSameAsMain != null && - this.ShippingContactSameAsMain.Equals(input.ShippingContactSameAsMain)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZoneID == input.ShippingZoneID || - (this.ShippingZoneID != null && - this.ShippingZoneID.Equals(input.ShippingZoneID)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.StatementCycleID == input.StatementCycleID || - (this.StatementCycleID != null && - this.StatementCycleID.Equals(input.StatementCycleID)) - ) && base.Equals(input) && - ( - this.StatementType == input.StatementType || - (this.StatementType != null && - this.StatementType.Equals(input.StatementType)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxRegistrationID == input.TaxRegistrationID || - (this.TaxRegistrationID != null && - this.TaxRegistrationID.Equals(input.TaxRegistrationID)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ) && base.Equals(input) && - ( - this.WriteOffLimit == input.WriteOffLimit || - (this.WriteOffLimit != null && - this.WriteOffLimit.Equals(input.WriteOffLimit)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountRef != null) - hashCode = hashCode * 59 + this.AccountRef.GetHashCode(); - if (this.ApplyOverdueCharges != null) - hashCode = hashCode * 59 + this.ApplyOverdueCharges.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.AutoApplyPayments != null) - hashCode = hashCode * 59 + this.AutoApplyPayments.GetHashCode(); - if (this.BillingAddressSameAsMain != null) - hashCode = hashCode * 59 + this.BillingAddressSameAsMain.GetHashCode(); - if (this.BillingContact != null) - hashCode = hashCode * 59 + this.BillingContact.GetHashCode(); - if (this.BillingContactSameAsMain != null) - hashCode = hashCode * 59 + this.BillingContactSameAsMain.GetHashCode(); - if (this.Contacts != null) - hashCode = hashCode * 59 + this.Contacts.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CreditVerificationRules != null) - hashCode = hashCode * 59 + this.CreditVerificationRules.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRateType != null) - hashCode = hashCode * 59 + this.CurrencyRateType.GetHashCode(); - if (this.CustomerClass != null) - hashCode = hashCode * 59 + this.CustomerClass.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerName != null) - hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); - if (this.EnableCurrencyOverride != null) - hashCode = hashCode * 59 + this.EnableCurrencyOverride.GetHashCode(); - if (this.EnableRateOverride != null) - hashCode = hashCode * 59 + this.EnableRateOverride.GetHashCode(); - if (this.EnableWriteOffs != null) - hashCode = hashCode * 59 + this.EnableWriteOffs.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LeadTimedays != null) - hashCode = hashCode * 59 + this.LeadTimedays.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.MainContact != null) - hashCode = hashCode * 59 + this.MainContact.GetHashCode(); - if (this.MultiCurrencyStatements != null) - hashCode = hashCode * 59 + this.MultiCurrencyStatements.GetHashCode(); - if (this.OrderPriority != null) - hashCode = hashCode * 59 + this.OrderPriority.GetHashCode(); - if (this.ParentRecord != null) - hashCode = hashCode * 59 + this.ParentRecord.GetHashCode(); - if (this.PaymentInstructions != null) - hashCode = hashCode * 59 + this.PaymentInstructions.GetHashCode(); - if (this.PriceClassID != null) - hashCode = hashCode * 59 + this.PriceClassID.GetHashCode(); - if (this.PrintDunningLetters != null) - hashCode = hashCode * 59 + this.PrintDunningLetters.GetHashCode(); - if (this.PrintInvoices != null) - hashCode = hashCode * 59 + this.PrintInvoices.GetHashCode(); - if (this.PrintStatements != null) - hashCode = hashCode * 59 + this.PrintStatements.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.Salespersons != null) - hashCode = hashCode * 59 + this.Salespersons.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.SendDunningLettersbyEmail != null) - hashCode = hashCode * 59 + this.SendDunningLettersbyEmail.GetHashCode(); - if (this.SendInvoicesbyEmail != null) - hashCode = hashCode * 59 + this.SendInvoicesbyEmail.GetHashCode(); - if (this.SendStatementsbyEmail != null) - hashCode = hashCode * 59 + this.SendStatementsbyEmail.GetHashCode(); - if (this.ShippingAddressSameAsMain != null) - hashCode = hashCode * 59 + this.ShippingAddressSameAsMain.GetHashCode(); - if (this.ShippingBranch != null) - hashCode = hashCode * 59 + this.ShippingBranch.GetHashCode(); - if (this.ShippingContact != null) - hashCode = hashCode * 59 + this.ShippingContact.GetHashCode(); - if (this.ShippingContactSameAsMain != null) - hashCode = hashCode * 59 + this.ShippingContactSameAsMain.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZoneID != null) - hashCode = hashCode * 59 + this.ShippingZoneID.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.StatementCycleID != null) - hashCode = hashCode * 59 + this.StatementCycleID.GetHashCode(); - if (this.StatementType != null) - hashCode = hashCode * 59 + this.StatementType.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxRegistrationID != null) - hashCode = hashCode * 59 + this.TaxRegistrationID.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - if (this.WriteOffLimit != null) - hashCode = hashCode * 59 + this.WriteOffLimit.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CustomerClass.cs b/Default.18.200.001/Model/CustomerClass.cs deleted file mode 100644 index 9de04c06..00000000 --- a/Default.18.200.001/Model/CustomerClass.cs +++ /dev/null @@ -1,1086 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CustomerClass - /// - [DataContract] - public partial class CustomerClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// applyOverdueCharges. - /// aRAccount. - /// aRSubaccount. - /// attributes. - /// autoApplyPayments. - /// cashDiscountAccount. - /// cashDiscountSubaccount. - /// classID. - /// cOGSAccount. - /// cOGSSubaccount. - /// country. - /// createdDateTime. - /// creditDaysPastDue. - /// creditLimit. - /// creditVerification. - /// currencyID. - /// currencyRateType. - /// defaultLocationIDfromBranch. - /// defaultRestrictionGroup. - /// description. - /// discountAccount. - /// discountSubaccount. - /// enableCurrencyOverride. - /// enableRateOverride. - /// enableWriteOffs. - /// entityUsageType. - /// freightAccount. - /// freightSubaccount. - /// groupDocumentDiscountLimit. - /// lastModifiedDateTime. - /// miscAccount. - /// miscSubaccount. - /// multiCurrencyStatements. - /// overdueChargeID. - /// overLimitAmount. - /// paymentMethod. - /// prepaymentAccount. - /// prepaymentSubaccount. - /// printDunningLetters. - /// printInvoices. - /// printStatements. - /// requireEntityUsageType. - /// requireTaxZone. - /// salesAccount. - /// salespersonID. - /// salesSubaccount. - /// sendDunningLettersbyEmail. - /// sendInvoicesbyEmail. - /// sendStatementsByEmail. - /// shippingRule. - /// shippingTerms. - /// shipVia. - /// statementCycleID. - /// statementType. - /// taxZoneID. - /// terms. - /// unrealizedGainAccount. - /// unrealizedGainSubaccount. - /// unrealizedLossAccount. - /// unrealizedLossSubaccount. - /// writeOffLimit. - public CustomerClass(BooleanValue applyOverdueCharges = default(BooleanValue), StringValue aRAccount = default(StringValue), StringValue aRSubaccount = default(StringValue), IEnumerable attributes = default(IEnumerable), BooleanValue autoApplyPayments = default(BooleanValue), StringValue cashDiscountAccount = default(StringValue), StringValue cashDiscountSubaccount = default(StringValue), StringValue classID = default(StringValue), StringValue cOGSAccount = default(StringValue), StringValue cOGSSubaccount = default(StringValue), StringValue country = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), ShortValue creditDaysPastDue = default(ShortValue), DecimalValue creditLimit = default(DecimalValue), StringValue creditVerification = default(StringValue), StringValue currencyID = default(StringValue), StringValue currencyRateType = default(StringValue), BooleanValue defaultLocationIDfromBranch = default(BooleanValue), StringValue defaultRestrictionGroup = default(StringValue), StringValue description = default(StringValue), StringValue discountAccount = default(StringValue), StringValue discountSubaccount = default(StringValue), BooleanValue enableCurrencyOverride = default(BooleanValue), BooleanValue enableRateOverride = default(BooleanValue), BooleanValue enableWriteOffs = default(BooleanValue), StringValue entityUsageType = default(StringValue), StringValue freightAccount = default(StringValue), StringValue freightSubaccount = default(StringValue), DecimalValue groupDocumentDiscountLimit = default(DecimalValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue miscAccount = default(StringValue), StringValue miscSubaccount = default(StringValue), BooleanValue multiCurrencyStatements = default(BooleanValue), StringValue overdueChargeID = default(StringValue), DecimalValue overLimitAmount = default(DecimalValue), StringValue paymentMethod = default(StringValue), StringValue prepaymentAccount = default(StringValue), StringValue prepaymentSubaccount = default(StringValue), BooleanValue printDunningLetters = default(BooleanValue), BooleanValue printInvoices = default(BooleanValue), BooleanValue printStatements = default(BooleanValue), BooleanValue requireEntityUsageType = default(BooleanValue), BooleanValue requireTaxZone = default(BooleanValue), StringValue salesAccount = default(StringValue), StringValue salespersonID = default(StringValue), StringValue salesSubaccount = default(StringValue), BooleanValue sendDunningLettersbyEmail = default(BooleanValue), BooleanValue sendInvoicesbyEmail = default(BooleanValue), BooleanValue sendStatementsByEmail = default(BooleanValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shipVia = default(StringValue), StringValue statementCycleID = default(StringValue), StringValue statementType = default(StringValue), StringValue taxZoneID = default(StringValue), StringValue terms = default(StringValue), StringValue unrealizedGainAccount = default(StringValue), StringValue unrealizedGainSubaccount = default(StringValue), StringValue unrealizedLossAccount = default(StringValue), StringValue unrealizedLossSubaccount = default(StringValue), DecimalValue writeOffLimit = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApplyOverdueCharges = applyOverdueCharges; - this.ARAccount = aRAccount; - this.ARSubaccount = aRSubaccount; - this.Attributes = attributes; - this.AutoApplyPayments = autoApplyPayments; - this.CashDiscountAccount = cashDiscountAccount; - this.CashDiscountSubaccount = cashDiscountSubaccount; - this.ClassID = classID; - this.COGSAccount = cOGSAccount; - this.COGSSubaccount = cOGSSubaccount; - this.Country = country; - this.CreatedDateTime = createdDateTime; - this.CreditDaysPastDue = creditDaysPastDue; - this.CreditLimit = creditLimit; - this.CreditVerification = creditVerification; - this.CurrencyID = currencyID; - this.CurrencyRateType = currencyRateType; - this.DefaultLocationIDfromBranch = defaultLocationIDfromBranch; - this.DefaultRestrictionGroup = defaultRestrictionGroup; - this.Description = description; - this.DiscountAccount = discountAccount; - this.DiscountSubaccount = discountSubaccount; - this.EnableCurrencyOverride = enableCurrencyOverride; - this.EnableRateOverride = enableRateOverride; - this.EnableWriteOffs = enableWriteOffs; - this.EntityUsageType = entityUsageType; - this.FreightAccount = freightAccount; - this.FreightSubaccount = freightSubaccount; - this.GroupDocumentDiscountLimit = groupDocumentDiscountLimit; - this.LastModifiedDateTime = lastModifiedDateTime; - this.MiscAccount = miscAccount; - this.MiscSubaccount = miscSubaccount; - this.MultiCurrencyStatements = multiCurrencyStatements; - this.OverdueChargeID = overdueChargeID; - this.OverLimitAmount = overLimitAmount; - this.PaymentMethod = paymentMethod; - this.PrepaymentAccount = prepaymentAccount; - this.PrepaymentSubaccount = prepaymentSubaccount; - this.PrintDunningLetters = printDunningLetters; - this.PrintInvoices = printInvoices; - this.PrintStatements = printStatements; - this.RequireEntityUsageType = requireEntityUsageType; - this.RequireTaxZone = requireTaxZone; - this.SalesAccount = salesAccount; - this.SalespersonID = salespersonID; - this.SalesSubaccount = salesSubaccount; - this.SendDunningLettersbyEmail = sendDunningLettersbyEmail; - this.SendInvoicesbyEmail = sendInvoicesbyEmail; - this.SendStatementsByEmail = sendStatementsByEmail; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShipVia = shipVia; - this.StatementCycleID = statementCycleID; - this.StatementType = statementType; - this.TaxZoneID = taxZoneID; - this.Terms = terms; - this.UnrealizedGainAccount = unrealizedGainAccount; - this.UnrealizedGainSubaccount = unrealizedGainSubaccount; - this.UnrealizedLossAccount = unrealizedLossAccount; - this.UnrealizedLossSubaccount = unrealizedLossSubaccount; - this.WriteOffLimit = writeOffLimit; - } - - /// - /// Gets or Sets ApplyOverdueCharges - /// - [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] - public BooleanValue ApplyOverdueCharges { get; set; } - - /// - /// Gets or Sets ARAccount - /// - [DataMember(Name="ARAccount", EmitDefaultValue=false)] - public StringValue ARAccount { get; set; } - - /// - /// Gets or Sets ARSubaccount - /// - [DataMember(Name="ARSubaccount", EmitDefaultValue=false)] - public StringValue ARSubaccount { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets AutoApplyPayments - /// - [DataMember(Name="AutoApplyPayments", EmitDefaultValue=false)] - public BooleanValue AutoApplyPayments { get; set; } - - /// - /// Gets or Sets CashDiscountAccount - /// - [DataMember(Name="CashDiscountAccount", EmitDefaultValue=false)] - public StringValue CashDiscountAccount { get; set; } - - /// - /// Gets or Sets CashDiscountSubaccount - /// - [DataMember(Name="CashDiscountSubaccount", EmitDefaultValue=false)] - public StringValue CashDiscountSubaccount { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets COGSAccount - /// - [DataMember(Name="COGSAccount", EmitDefaultValue=false)] - public StringValue COGSAccount { get; set; } - - /// - /// Gets or Sets COGSSubaccount - /// - [DataMember(Name="COGSSubaccount", EmitDefaultValue=false)] - public StringValue COGSSubaccount { get; set; } - - /// - /// Gets or Sets Country - /// - [DataMember(Name="Country", EmitDefaultValue=false)] - public StringValue Country { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CreditDaysPastDue - /// - [DataMember(Name="CreditDaysPastDue", EmitDefaultValue=false)] - public ShortValue CreditDaysPastDue { get; set; } - - /// - /// Gets or Sets CreditLimit - /// - [DataMember(Name="CreditLimit", EmitDefaultValue=false)] - public DecimalValue CreditLimit { get; set; } - - /// - /// Gets or Sets CreditVerification - /// - [DataMember(Name="CreditVerification", EmitDefaultValue=false)] - public StringValue CreditVerification { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRateType - /// - [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] - public StringValue CurrencyRateType { get; set; } - - /// - /// Gets or Sets DefaultLocationIDfromBranch - /// - [DataMember(Name="DefaultLocationIDfromBranch", EmitDefaultValue=false)] - public BooleanValue DefaultLocationIDfromBranch { get; set; } - - /// - /// Gets or Sets DefaultRestrictionGroup - /// - [DataMember(Name="DefaultRestrictionGroup", EmitDefaultValue=false)] - public StringValue DefaultRestrictionGroup { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DiscountAccount - /// - [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] - public StringValue DiscountAccount { get; set; } - - /// - /// Gets or Sets DiscountSubaccount - /// - [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] - public StringValue DiscountSubaccount { get; set; } - - /// - /// Gets or Sets EnableCurrencyOverride - /// - [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] - public BooleanValue EnableCurrencyOverride { get; set; } - - /// - /// Gets or Sets EnableRateOverride - /// - [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] - public BooleanValue EnableRateOverride { get; set; } - - /// - /// Gets or Sets EnableWriteOffs - /// - [DataMember(Name="EnableWriteOffs", EmitDefaultValue=false)] - public BooleanValue EnableWriteOffs { get; set; } - - /// - /// Gets or Sets EntityUsageType - /// - [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] - public StringValue EntityUsageType { get; set; } - - /// - /// Gets or Sets FreightAccount - /// - [DataMember(Name="FreightAccount", EmitDefaultValue=false)] - public StringValue FreightAccount { get; set; } - - /// - /// Gets or Sets FreightSubaccount - /// - [DataMember(Name="FreightSubaccount", EmitDefaultValue=false)] - public StringValue FreightSubaccount { get; set; } - - /// - /// Gets or Sets GroupDocumentDiscountLimit - /// - [DataMember(Name="GroupDocumentDiscountLimit", EmitDefaultValue=false)] - public DecimalValue GroupDocumentDiscountLimit { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets MiscAccount - /// - [DataMember(Name="MiscAccount", EmitDefaultValue=false)] - public StringValue MiscAccount { get; set; } - - /// - /// Gets or Sets MiscSubaccount - /// - [DataMember(Name="MiscSubaccount", EmitDefaultValue=false)] - public StringValue MiscSubaccount { get; set; } - - /// - /// Gets or Sets MultiCurrencyStatements - /// - [DataMember(Name="MultiCurrencyStatements", EmitDefaultValue=false)] - public BooleanValue MultiCurrencyStatements { get; set; } - - /// - /// Gets or Sets OverdueChargeID - /// - [DataMember(Name="OverdueChargeID", EmitDefaultValue=false)] - public StringValue OverdueChargeID { get; set; } - - /// - /// Gets or Sets OverLimitAmount - /// - [DataMember(Name="OverLimitAmount", EmitDefaultValue=false)] - public DecimalValue OverLimitAmount { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets PrepaymentAccount - /// - [DataMember(Name="PrepaymentAccount", EmitDefaultValue=false)] - public StringValue PrepaymentAccount { get; set; } - - /// - /// Gets or Sets PrepaymentSubaccount - /// - [DataMember(Name="PrepaymentSubaccount", EmitDefaultValue=false)] - public StringValue PrepaymentSubaccount { get; set; } - - /// - /// Gets or Sets PrintDunningLetters - /// - [DataMember(Name="PrintDunningLetters", EmitDefaultValue=false)] - public BooleanValue PrintDunningLetters { get; set; } - - /// - /// Gets or Sets PrintInvoices - /// - [DataMember(Name="PrintInvoices", EmitDefaultValue=false)] - public BooleanValue PrintInvoices { get; set; } - - /// - /// Gets or Sets PrintStatements - /// - [DataMember(Name="PrintStatements", EmitDefaultValue=false)] - public BooleanValue PrintStatements { get; set; } - - /// - /// Gets or Sets RequireEntityUsageType - /// - [DataMember(Name="RequireEntityUsageType", EmitDefaultValue=false)] - public BooleanValue RequireEntityUsageType { get; set; } - - /// - /// Gets or Sets RequireTaxZone - /// - [DataMember(Name="RequireTaxZone", EmitDefaultValue=false)] - public BooleanValue RequireTaxZone { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets SendDunningLettersbyEmail - /// - [DataMember(Name="SendDunningLettersbyEmail", EmitDefaultValue=false)] - public BooleanValue SendDunningLettersbyEmail { get; set; } - - /// - /// Gets or Sets SendInvoicesbyEmail - /// - [DataMember(Name="SendInvoicesbyEmail", EmitDefaultValue=false)] - public BooleanValue SendInvoicesbyEmail { get; set; } - - /// - /// Gets or Sets SendStatementsByEmail - /// - [DataMember(Name="SendStatementsByEmail", EmitDefaultValue=false)] - public BooleanValue SendStatementsByEmail { get; set; } - - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets StatementCycleID - /// - [DataMember(Name="StatementCycleID", EmitDefaultValue=false)] - public StringValue StatementCycleID { get; set; } - - /// - /// Gets or Sets StatementType - /// - [DataMember(Name="StatementType", EmitDefaultValue=false)] - public StringValue StatementType { get; set; } - - /// - /// Gets or Sets TaxZoneID - /// - [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] - public StringValue TaxZoneID { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets UnrealizedGainAccount - /// - [DataMember(Name="UnrealizedGainAccount", EmitDefaultValue=false)] - public StringValue UnrealizedGainAccount { get; set; } - - /// - /// Gets or Sets UnrealizedGainSubaccount - /// - [DataMember(Name="UnrealizedGainSubaccount", EmitDefaultValue=false)] - public StringValue UnrealizedGainSubaccount { get; set; } - - /// - /// Gets or Sets UnrealizedLossAccount - /// - [DataMember(Name="UnrealizedLossAccount", EmitDefaultValue=false)] - public StringValue UnrealizedLossAccount { get; set; } - - /// - /// Gets or Sets UnrealizedLossSubaccount - /// - [DataMember(Name="UnrealizedLossSubaccount", EmitDefaultValue=false)] - public StringValue UnrealizedLossSubaccount { get; set; } - - /// - /// Gets or Sets WriteOffLimit - /// - [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] - public DecimalValue WriteOffLimit { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApplyOverdueCharges: ").Append(ApplyOverdueCharges).Append("\n"); - sb.Append(" ARAccount: ").Append(ARAccount).Append("\n"); - sb.Append(" ARSubaccount: ").Append(ARSubaccount).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" AutoApplyPayments: ").Append(AutoApplyPayments).Append("\n"); - sb.Append(" CashDiscountAccount: ").Append(CashDiscountAccount).Append("\n"); - sb.Append(" CashDiscountSubaccount: ").Append(CashDiscountSubaccount).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" COGSAccount: ").Append(COGSAccount).Append("\n"); - sb.Append(" COGSSubaccount: ").Append(COGSSubaccount).Append("\n"); - sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CreditDaysPastDue: ").Append(CreditDaysPastDue).Append("\n"); - sb.Append(" CreditLimit: ").Append(CreditLimit).Append("\n"); - sb.Append(" CreditVerification: ").Append(CreditVerification).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRateType: ").Append(CurrencyRateType).Append("\n"); - sb.Append(" DefaultLocationIDfromBranch: ").Append(DefaultLocationIDfromBranch).Append("\n"); - sb.Append(" DefaultRestrictionGroup: ").Append(DefaultRestrictionGroup).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountAccount: ").Append(DiscountAccount).Append("\n"); - sb.Append(" DiscountSubaccount: ").Append(DiscountSubaccount).Append("\n"); - sb.Append(" EnableCurrencyOverride: ").Append(EnableCurrencyOverride).Append("\n"); - sb.Append(" EnableRateOverride: ").Append(EnableRateOverride).Append("\n"); - sb.Append(" EnableWriteOffs: ").Append(EnableWriteOffs).Append("\n"); - sb.Append(" EntityUsageType: ").Append(EntityUsageType).Append("\n"); - sb.Append(" FreightAccount: ").Append(FreightAccount).Append("\n"); - sb.Append(" FreightSubaccount: ").Append(FreightSubaccount).Append("\n"); - sb.Append(" GroupDocumentDiscountLimit: ").Append(GroupDocumentDiscountLimit).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" MiscAccount: ").Append(MiscAccount).Append("\n"); - sb.Append(" MiscSubaccount: ").Append(MiscSubaccount).Append("\n"); - sb.Append(" MultiCurrencyStatements: ").Append(MultiCurrencyStatements).Append("\n"); - sb.Append(" OverdueChargeID: ").Append(OverdueChargeID).Append("\n"); - sb.Append(" OverLimitAmount: ").Append(OverLimitAmount).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PrepaymentAccount: ").Append(PrepaymentAccount).Append("\n"); - sb.Append(" PrepaymentSubaccount: ").Append(PrepaymentSubaccount).Append("\n"); - sb.Append(" PrintDunningLetters: ").Append(PrintDunningLetters).Append("\n"); - sb.Append(" PrintInvoices: ").Append(PrintInvoices).Append("\n"); - sb.Append(" PrintStatements: ").Append(PrintStatements).Append("\n"); - sb.Append(" RequireEntityUsageType: ").Append(RequireEntityUsageType).Append("\n"); - sb.Append(" RequireTaxZone: ").Append(RequireTaxZone).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" SendDunningLettersbyEmail: ").Append(SendDunningLettersbyEmail).Append("\n"); - sb.Append(" SendInvoicesbyEmail: ").Append(SendInvoicesbyEmail).Append("\n"); - sb.Append(" SendStatementsByEmail: ").Append(SendStatementsByEmail).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" StatementCycleID: ").Append(StatementCycleID).Append("\n"); - sb.Append(" StatementType: ").Append(StatementType).Append("\n"); - sb.Append(" TaxZoneID: ").Append(TaxZoneID).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" UnrealizedGainAccount: ").Append(UnrealizedGainAccount).Append("\n"); - sb.Append(" UnrealizedGainSubaccount: ").Append(UnrealizedGainSubaccount).Append("\n"); - sb.Append(" UnrealizedLossAccount: ").Append(UnrealizedLossAccount).Append("\n"); - sb.Append(" UnrealizedLossSubaccount: ").Append(UnrealizedLossSubaccount).Append("\n"); - sb.Append(" WriteOffLimit: ").Append(WriteOffLimit).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerClass); - } - - /// - /// Returns true if CustomerClass instances are equal - /// - /// Instance of CustomerClass to be compared - /// Boolean - public bool Equals(CustomerClass input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ApplyOverdueCharges == input.ApplyOverdueCharges || - (this.ApplyOverdueCharges != null && - this.ApplyOverdueCharges.Equals(input.ApplyOverdueCharges)) - ) && base.Equals(input) && - ( - this.ARAccount == input.ARAccount || - (this.ARAccount != null && - this.ARAccount.Equals(input.ARAccount)) - ) && base.Equals(input) && - ( - this.ARSubaccount == input.ARSubaccount || - (this.ARSubaccount != null && - this.ARSubaccount.Equals(input.ARSubaccount)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.AutoApplyPayments == input.AutoApplyPayments || - (this.AutoApplyPayments != null && - this.AutoApplyPayments.Equals(input.AutoApplyPayments)) - ) && base.Equals(input) && - ( - this.CashDiscountAccount == input.CashDiscountAccount || - (this.CashDiscountAccount != null && - this.CashDiscountAccount.Equals(input.CashDiscountAccount)) - ) && base.Equals(input) && - ( - this.CashDiscountSubaccount == input.CashDiscountSubaccount || - (this.CashDiscountSubaccount != null && - this.CashDiscountSubaccount.Equals(input.CashDiscountSubaccount)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.COGSAccount == input.COGSAccount || - (this.COGSAccount != null && - this.COGSAccount.Equals(input.COGSAccount)) - ) && base.Equals(input) && - ( - this.COGSSubaccount == input.COGSSubaccount || - (this.COGSSubaccount != null && - this.COGSSubaccount.Equals(input.COGSSubaccount)) - ) && base.Equals(input) && - ( - this.Country == input.Country || - (this.Country != null && - this.Country.Equals(input.Country)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CreditDaysPastDue == input.CreditDaysPastDue || - (this.CreditDaysPastDue != null && - this.CreditDaysPastDue.Equals(input.CreditDaysPastDue)) - ) && base.Equals(input) && - ( - this.CreditLimit == input.CreditLimit || - (this.CreditLimit != null && - this.CreditLimit.Equals(input.CreditLimit)) - ) && base.Equals(input) && - ( - this.CreditVerification == input.CreditVerification || - (this.CreditVerification != null && - this.CreditVerification.Equals(input.CreditVerification)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRateType == input.CurrencyRateType || - (this.CurrencyRateType != null && - this.CurrencyRateType.Equals(input.CurrencyRateType)) - ) && base.Equals(input) && - ( - this.DefaultLocationIDfromBranch == input.DefaultLocationIDfromBranch || - (this.DefaultLocationIDfromBranch != null && - this.DefaultLocationIDfromBranch.Equals(input.DefaultLocationIDfromBranch)) - ) && base.Equals(input) && - ( - this.DefaultRestrictionGroup == input.DefaultRestrictionGroup || - (this.DefaultRestrictionGroup != null && - this.DefaultRestrictionGroup.Equals(input.DefaultRestrictionGroup)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountAccount == input.DiscountAccount || - (this.DiscountAccount != null && - this.DiscountAccount.Equals(input.DiscountAccount)) - ) && base.Equals(input) && - ( - this.DiscountSubaccount == input.DiscountSubaccount || - (this.DiscountSubaccount != null && - this.DiscountSubaccount.Equals(input.DiscountSubaccount)) - ) && base.Equals(input) && - ( - this.EnableCurrencyOverride == input.EnableCurrencyOverride || - (this.EnableCurrencyOverride != null && - this.EnableCurrencyOverride.Equals(input.EnableCurrencyOverride)) - ) && base.Equals(input) && - ( - this.EnableRateOverride == input.EnableRateOverride || - (this.EnableRateOverride != null && - this.EnableRateOverride.Equals(input.EnableRateOverride)) - ) && base.Equals(input) && - ( - this.EnableWriteOffs == input.EnableWriteOffs || - (this.EnableWriteOffs != null && - this.EnableWriteOffs.Equals(input.EnableWriteOffs)) - ) && base.Equals(input) && - ( - this.EntityUsageType == input.EntityUsageType || - (this.EntityUsageType != null && - this.EntityUsageType.Equals(input.EntityUsageType)) - ) && base.Equals(input) && - ( - this.FreightAccount == input.FreightAccount || - (this.FreightAccount != null && - this.FreightAccount.Equals(input.FreightAccount)) - ) && base.Equals(input) && - ( - this.FreightSubaccount == input.FreightSubaccount || - (this.FreightSubaccount != null && - this.FreightSubaccount.Equals(input.FreightSubaccount)) - ) && base.Equals(input) && - ( - this.GroupDocumentDiscountLimit == input.GroupDocumentDiscountLimit || - (this.GroupDocumentDiscountLimit != null && - this.GroupDocumentDiscountLimit.Equals(input.GroupDocumentDiscountLimit)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.MiscAccount == input.MiscAccount || - (this.MiscAccount != null && - this.MiscAccount.Equals(input.MiscAccount)) - ) && base.Equals(input) && - ( - this.MiscSubaccount == input.MiscSubaccount || - (this.MiscSubaccount != null && - this.MiscSubaccount.Equals(input.MiscSubaccount)) - ) && base.Equals(input) && - ( - this.MultiCurrencyStatements == input.MultiCurrencyStatements || - (this.MultiCurrencyStatements != null && - this.MultiCurrencyStatements.Equals(input.MultiCurrencyStatements)) - ) && base.Equals(input) && - ( - this.OverdueChargeID == input.OverdueChargeID || - (this.OverdueChargeID != null && - this.OverdueChargeID.Equals(input.OverdueChargeID)) - ) && base.Equals(input) && - ( - this.OverLimitAmount == input.OverLimitAmount || - (this.OverLimitAmount != null && - this.OverLimitAmount.Equals(input.OverLimitAmount)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PrepaymentAccount == input.PrepaymentAccount || - (this.PrepaymentAccount != null && - this.PrepaymentAccount.Equals(input.PrepaymentAccount)) - ) && base.Equals(input) && - ( - this.PrepaymentSubaccount == input.PrepaymentSubaccount || - (this.PrepaymentSubaccount != null && - this.PrepaymentSubaccount.Equals(input.PrepaymentSubaccount)) - ) && base.Equals(input) && - ( - this.PrintDunningLetters == input.PrintDunningLetters || - (this.PrintDunningLetters != null && - this.PrintDunningLetters.Equals(input.PrintDunningLetters)) - ) && base.Equals(input) && - ( - this.PrintInvoices == input.PrintInvoices || - (this.PrintInvoices != null && - this.PrintInvoices.Equals(input.PrintInvoices)) - ) && base.Equals(input) && - ( - this.PrintStatements == input.PrintStatements || - (this.PrintStatements != null && - this.PrintStatements.Equals(input.PrintStatements)) - ) && base.Equals(input) && - ( - this.RequireEntityUsageType == input.RequireEntityUsageType || - (this.RequireEntityUsageType != null && - this.RequireEntityUsageType.Equals(input.RequireEntityUsageType)) - ) && base.Equals(input) && - ( - this.RequireTaxZone == input.RequireTaxZone || - (this.RequireTaxZone != null && - this.RequireTaxZone.Equals(input.RequireTaxZone)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.SendDunningLettersbyEmail == input.SendDunningLettersbyEmail || - (this.SendDunningLettersbyEmail != null && - this.SendDunningLettersbyEmail.Equals(input.SendDunningLettersbyEmail)) - ) && base.Equals(input) && - ( - this.SendInvoicesbyEmail == input.SendInvoicesbyEmail || - (this.SendInvoicesbyEmail != null && - this.SendInvoicesbyEmail.Equals(input.SendInvoicesbyEmail)) - ) && base.Equals(input) && - ( - this.SendStatementsByEmail == input.SendStatementsByEmail || - (this.SendStatementsByEmail != null && - this.SendStatementsByEmail.Equals(input.SendStatementsByEmail)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.StatementCycleID == input.StatementCycleID || - (this.StatementCycleID != null && - this.StatementCycleID.Equals(input.StatementCycleID)) - ) && base.Equals(input) && - ( - this.StatementType == input.StatementType || - (this.StatementType != null && - this.StatementType.Equals(input.StatementType)) - ) && base.Equals(input) && - ( - this.TaxZoneID == input.TaxZoneID || - (this.TaxZoneID != null && - this.TaxZoneID.Equals(input.TaxZoneID)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.UnrealizedGainAccount == input.UnrealizedGainAccount || - (this.UnrealizedGainAccount != null && - this.UnrealizedGainAccount.Equals(input.UnrealizedGainAccount)) - ) && base.Equals(input) && - ( - this.UnrealizedGainSubaccount == input.UnrealizedGainSubaccount || - (this.UnrealizedGainSubaccount != null && - this.UnrealizedGainSubaccount.Equals(input.UnrealizedGainSubaccount)) - ) && base.Equals(input) && - ( - this.UnrealizedLossAccount == input.UnrealizedLossAccount || - (this.UnrealizedLossAccount != null && - this.UnrealizedLossAccount.Equals(input.UnrealizedLossAccount)) - ) && base.Equals(input) && - ( - this.UnrealizedLossSubaccount == input.UnrealizedLossSubaccount || - (this.UnrealizedLossSubaccount != null && - this.UnrealizedLossSubaccount.Equals(input.UnrealizedLossSubaccount)) - ) && base.Equals(input) && - ( - this.WriteOffLimit == input.WriteOffLimit || - (this.WriteOffLimit != null && - this.WriteOffLimit.Equals(input.WriteOffLimit)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApplyOverdueCharges != null) - hashCode = hashCode * 59 + this.ApplyOverdueCharges.GetHashCode(); - if (this.ARAccount != null) - hashCode = hashCode * 59 + this.ARAccount.GetHashCode(); - if (this.ARSubaccount != null) - hashCode = hashCode * 59 + this.ARSubaccount.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.AutoApplyPayments != null) - hashCode = hashCode * 59 + this.AutoApplyPayments.GetHashCode(); - if (this.CashDiscountAccount != null) - hashCode = hashCode * 59 + this.CashDiscountAccount.GetHashCode(); - if (this.CashDiscountSubaccount != null) - hashCode = hashCode * 59 + this.CashDiscountSubaccount.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.COGSAccount != null) - hashCode = hashCode * 59 + this.COGSAccount.GetHashCode(); - if (this.COGSSubaccount != null) - hashCode = hashCode * 59 + this.COGSSubaccount.GetHashCode(); - if (this.Country != null) - hashCode = hashCode * 59 + this.Country.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CreditDaysPastDue != null) - hashCode = hashCode * 59 + this.CreditDaysPastDue.GetHashCode(); - if (this.CreditLimit != null) - hashCode = hashCode * 59 + this.CreditLimit.GetHashCode(); - if (this.CreditVerification != null) - hashCode = hashCode * 59 + this.CreditVerification.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRateType != null) - hashCode = hashCode * 59 + this.CurrencyRateType.GetHashCode(); - if (this.DefaultLocationIDfromBranch != null) - hashCode = hashCode * 59 + this.DefaultLocationIDfromBranch.GetHashCode(); - if (this.DefaultRestrictionGroup != null) - hashCode = hashCode * 59 + this.DefaultRestrictionGroup.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountAccount != null) - hashCode = hashCode * 59 + this.DiscountAccount.GetHashCode(); - if (this.DiscountSubaccount != null) - hashCode = hashCode * 59 + this.DiscountSubaccount.GetHashCode(); - if (this.EnableCurrencyOverride != null) - hashCode = hashCode * 59 + this.EnableCurrencyOverride.GetHashCode(); - if (this.EnableRateOverride != null) - hashCode = hashCode * 59 + this.EnableRateOverride.GetHashCode(); - if (this.EnableWriteOffs != null) - hashCode = hashCode * 59 + this.EnableWriteOffs.GetHashCode(); - if (this.EntityUsageType != null) - hashCode = hashCode * 59 + this.EntityUsageType.GetHashCode(); - if (this.FreightAccount != null) - hashCode = hashCode * 59 + this.FreightAccount.GetHashCode(); - if (this.FreightSubaccount != null) - hashCode = hashCode * 59 + this.FreightSubaccount.GetHashCode(); - if (this.GroupDocumentDiscountLimit != null) - hashCode = hashCode * 59 + this.GroupDocumentDiscountLimit.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.MiscAccount != null) - hashCode = hashCode * 59 + this.MiscAccount.GetHashCode(); - if (this.MiscSubaccount != null) - hashCode = hashCode * 59 + this.MiscSubaccount.GetHashCode(); - if (this.MultiCurrencyStatements != null) - hashCode = hashCode * 59 + this.MultiCurrencyStatements.GetHashCode(); - if (this.OverdueChargeID != null) - hashCode = hashCode * 59 + this.OverdueChargeID.GetHashCode(); - if (this.OverLimitAmount != null) - hashCode = hashCode * 59 + this.OverLimitAmount.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PrepaymentAccount != null) - hashCode = hashCode * 59 + this.PrepaymentAccount.GetHashCode(); - if (this.PrepaymentSubaccount != null) - hashCode = hashCode * 59 + this.PrepaymentSubaccount.GetHashCode(); - if (this.PrintDunningLetters != null) - hashCode = hashCode * 59 + this.PrintDunningLetters.GetHashCode(); - if (this.PrintInvoices != null) - hashCode = hashCode * 59 + this.PrintInvoices.GetHashCode(); - if (this.PrintStatements != null) - hashCode = hashCode * 59 + this.PrintStatements.GetHashCode(); - if (this.RequireEntityUsageType != null) - hashCode = hashCode * 59 + this.RequireEntityUsageType.GetHashCode(); - if (this.RequireTaxZone != null) - hashCode = hashCode * 59 + this.RequireTaxZone.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.SendDunningLettersbyEmail != null) - hashCode = hashCode * 59 + this.SendDunningLettersbyEmail.GetHashCode(); - if (this.SendInvoicesbyEmail != null) - hashCode = hashCode * 59 + this.SendInvoicesbyEmail.GetHashCode(); - if (this.SendStatementsByEmail != null) - hashCode = hashCode * 59 + this.SendStatementsByEmail.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.StatementCycleID != null) - hashCode = hashCode * 59 + this.StatementCycleID.GetHashCode(); - if (this.StatementType != null) - hashCode = hashCode * 59 + this.StatementType.GetHashCode(); - if (this.TaxZoneID != null) - hashCode = hashCode * 59 + this.TaxZoneID.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.UnrealizedGainAccount != null) - hashCode = hashCode * 59 + this.UnrealizedGainAccount.GetHashCode(); - if (this.UnrealizedGainSubaccount != null) - hashCode = hashCode * 59 + this.UnrealizedGainSubaccount.GetHashCode(); - if (this.UnrealizedLossAccount != null) - hashCode = hashCode * 59 + this.UnrealizedLossAccount.GetHashCode(); - if (this.UnrealizedLossSubaccount != null) - hashCode = hashCode * 59 + this.UnrealizedLossSubaccount.GetHashCode(); - if (this.WriteOffLimit != null) - hashCode = hashCode * 59 + this.WriteOffLimit.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CustomerContact.cs b/Default.18.200.001/Model/CustomerContact.cs deleted file mode 100644 index 03ada86e..00000000 --- a/Default.18.200.001/Model/CustomerContact.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CustomerContact - /// - [DataContract] - public partial class CustomerContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// contact. - /// contactID. - public CustomerContact(Contact contact = default(Contact), IntValue contactID = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Contact = contact; - this.ContactID = contactID; - } - - /// - /// Gets or Sets Contact - /// - [DataMember(Name="Contact", EmitDefaultValue=false)] - public Contact Contact { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Contact: ").Append(Contact).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerContact); - } - - /// - /// Returns true if CustomerContact instances are equal - /// - /// Instance of CustomerContact to be compared - /// Boolean - public bool Equals(CustomerContact input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Contact == input.Contact || - (this.Contact != null && - this.Contact.Equals(input.Contact)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Contact != null) - hashCode = hashCode * 59 + this.Contact.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CustomerLocation.cs b/Default.18.200.001/Model/CustomerLocation.cs deleted file mode 100644 index 961ba381..00000000 --- a/Default.18.200.001/Model/CustomerLocation.cs +++ /dev/null @@ -1,574 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CustomerLocation - /// - [DataContract] - public partial class CustomerLocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// addressSameAsMain. - /// calendar. - /// contactSameAsMain. - /// createdDateTime. - /// customer. - /// defaultProject. - /// entityUsageType. - /// fedExGroundCollect. - /// fOBPoint. - /// insurance. - /// lastModifiedDateTime. - /// leadTimeDays. - /// locationContact. - /// locationID. - /// locationName. - /// orderPriority. - /// priceClass. - /// residentialDelivery. - /// saturdayDelivery. - /// shippingBranch. - /// shippingRule. - /// shippingTerms. - /// shippingZone. - /// shipVia. - /// taxExemptionNbr. - /// taxRegistrationID. - /// taxZone. - /// warehouse. - public CustomerLocation(BooleanValue active = default(BooleanValue), BooleanValue addressSameAsMain = default(BooleanValue), StringValue calendar = default(StringValue), BooleanValue contactSameAsMain = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue customer = default(StringValue), StringValue defaultProject = default(StringValue), StringValue entityUsageType = default(StringValue), BooleanValue fedExGroundCollect = default(BooleanValue), StringValue fOBPoint = default(StringValue), BooleanValue insurance = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ShortValue leadTimeDays = default(ShortValue), Contact locationContact = default(Contact), StringValue locationID = default(StringValue), StringValue locationName = default(StringValue), ShortValue orderPriority = default(ShortValue), StringValue priceClass = default(StringValue), BooleanValue residentialDelivery = default(BooleanValue), BooleanValue saturdayDelivery = default(BooleanValue), StringValue shippingBranch = default(StringValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shippingZone = default(StringValue), StringValue shipVia = default(StringValue), StringValue taxExemptionNbr = default(StringValue), StringValue taxRegistrationID = default(StringValue), StringValue taxZone = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AddressSameAsMain = addressSameAsMain; - this.Calendar = calendar; - this.ContactSameAsMain = contactSameAsMain; - this.CreatedDateTime = createdDateTime; - this.Customer = customer; - this.DefaultProject = defaultProject; - this.EntityUsageType = entityUsageType; - this.FedExGroundCollect = fedExGroundCollect; - this.FOBPoint = fOBPoint; - this.Insurance = insurance; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LeadTimeDays = leadTimeDays; - this.LocationContact = locationContact; - this.LocationID = locationID; - this.LocationName = locationName; - this.OrderPriority = orderPriority; - this.PriceClass = priceClass; - this.ResidentialDelivery = residentialDelivery; - this.SaturdayDelivery = saturdayDelivery; - this.ShippingBranch = shippingBranch; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShippingZone = shippingZone; - this.ShipVia = shipVia; - this.TaxExemptionNbr = taxExemptionNbr; - this.TaxRegistrationID = taxRegistrationID; - this.TaxZone = taxZone; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AddressSameAsMain - /// - [DataMember(Name="AddressSameAsMain", EmitDefaultValue=false)] - public BooleanValue AddressSameAsMain { get; set; } - - /// - /// Gets or Sets Calendar - /// - [DataMember(Name="Calendar", EmitDefaultValue=false)] - public StringValue Calendar { get; set; } - - /// - /// Gets or Sets ContactSameAsMain - /// - [DataMember(Name="ContactSameAsMain", EmitDefaultValue=false)] - public BooleanValue ContactSameAsMain { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets DefaultProject - /// - [DataMember(Name="DefaultProject", EmitDefaultValue=false)] - public StringValue DefaultProject { get; set; } - - /// - /// Gets or Sets EntityUsageType - /// - [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] - public StringValue EntityUsageType { get; set; } - - /// - /// Gets or Sets FedExGroundCollect - /// - [DataMember(Name="FedExGroundCollect", EmitDefaultValue=false)] - public BooleanValue FedExGroundCollect { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets Insurance - /// - [DataMember(Name="Insurance", EmitDefaultValue=false)] - public BooleanValue Insurance { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LeadTimeDays - /// - [DataMember(Name="LeadTimeDays", EmitDefaultValue=false)] - public ShortValue LeadTimeDays { get; set; } - - /// - /// Gets or Sets LocationContact - /// - [DataMember(Name="LocationContact", EmitDefaultValue=false)] - public Contact LocationContact { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets OrderPriority - /// - [DataMember(Name="OrderPriority", EmitDefaultValue=false)] - public ShortValue OrderPriority { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } - - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } - - /// - /// Gets or Sets ShippingBranch - /// - [DataMember(Name="ShippingBranch", EmitDefaultValue=false)] - public StringValue ShippingBranch { get; set; } - - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShippingZone - /// - [DataMember(Name="ShippingZone", EmitDefaultValue=false)] - public StringValue ShippingZone { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets TaxExemptionNbr - /// - [DataMember(Name="TaxExemptionNbr", EmitDefaultValue=false)] - public StringValue TaxExemptionNbr { get; set; } - - /// - /// Gets or Sets TaxRegistrationID - /// - [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] - public StringValue TaxRegistrationID { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerLocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AddressSameAsMain: ").Append(AddressSameAsMain).Append("\n"); - sb.Append(" Calendar: ").Append(Calendar).Append("\n"); - sb.Append(" ContactSameAsMain: ").Append(ContactSameAsMain).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" DefaultProject: ").Append(DefaultProject).Append("\n"); - sb.Append(" EntityUsageType: ").Append(EntityUsageType).Append("\n"); - sb.Append(" FedExGroundCollect: ").Append(FedExGroundCollect).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" Insurance: ").Append(Insurance).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LeadTimeDays: ").Append(LeadTimeDays).Append("\n"); - sb.Append(" LocationContact: ").Append(LocationContact).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" OrderPriority: ").Append(OrderPriority).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" ShippingBranch: ").Append(ShippingBranch).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZone: ").Append(ShippingZone).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" TaxExemptionNbr: ").Append(TaxExemptionNbr).Append("\n"); - sb.Append(" TaxRegistrationID: ").Append(TaxRegistrationID).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerLocation); - } - - /// - /// Returns true if CustomerLocation instances are equal - /// - /// Instance of CustomerLocation to be compared - /// Boolean - public bool Equals(CustomerLocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AddressSameAsMain == input.AddressSameAsMain || - (this.AddressSameAsMain != null && - this.AddressSameAsMain.Equals(input.AddressSameAsMain)) - ) && base.Equals(input) && - ( - this.Calendar == input.Calendar || - (this.Calendar != null && - this.Calendar.Equals(input.Calendar)) - ) && base.Equals(input) && - ( - this.ContactSameAsMain == input.ContactSameAsMain || - (this.ContactSameAsMain != null && - this.ContactSameAsMain.Equals(input.ContactSameAsMain)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.DefaultProject == input.DefaultProject || - (this.DefaultProject != null && - this.DefaultProject.Equals(input.DefaultProject)) - ) && base.Equals(input) && - ( - this.EntityUsageType == input.EntityUsageType || - (this.EntityUsageType != null && - this.EntityUsageType.Equals(input.EntityUsageType)) - ) && base.Equals(input) && - ( - this.FedExGroundCollect == input.FedExGroundCollect || - (this.FedExGroundCollect != null && - this.FedExGroundCollect.Equals(input.FedExGroundCollect)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.Insurance == input.Insurance || - (this.Insurance != null && - this.Insurance.Equals(input.Insurance)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LeadTimeDays == input.LeadTimeDays || - (this.LeadTimeDays != null && - this.LeadTimeDays.Equals(input.LeadTimeDays)) - ) && base.Equals(input) && - ( - this.LocationContact == input.LocationContact || - (this.LocationContact != null && - this.LocationContact.Equals(input.LocationContact)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.OrderPriority == input.OrderPriority || - (this.OrderPriority != null && - this.OrderPriority.Equals(input.OrderPriority)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.ShippingBranch == input.ShippingBranch || - (this.ShippingBranch != null && - this.ShippingBranch.Equals(input.ShippingBranch)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZone == input.ShippingZone || - (this.ShippingZone != null && - this.ShippingZone.Equals(input.ShippingZone)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.TaxExemptionNbr == input.TaxExemptionNbr || - (this.TaxExemptionNbr != null && - this.TaxExemptionNbr.Equals(input.TaxExemptionNbr)) - ) && base.Equals(input) && - ( - this.TaxRegistrationID == input.TaxRegistrationID || - (this.TaxRegistrationID != null && - this.TaxRegistrationID.Equals(input.TaxRegistrationID)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AddressSameAsMain != null) - hashCode = hashCode * 59 + this.AddressSameAsMain.GetHashCode(); - if (this.Calendar != null) - hashCode = hashCode * 59 + this.Calendar.GetHashCode(); - if (this.ContactSameAsMain != null) - hashCode = hashCode * 59 + this.ContactSameAsMain.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.DefaultProject != null) - hashCode = hashCode * 59 + this.DefaultProject.GetHashCode(); - if (this.EntityUsageType != null) - hashCode = hashCode * 59 + this.EntityUsageType.GetHashCode(); - if (this.FedExGroundCollect != null) - hashCode = hashCode * 59 + this.FedExGroundCollect.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.Insurance != null) - hashCode = hashCode * 59 + this.Insurance.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LeadTimeDays != null) - hashCode = hashCode * 59 + this.LeadTimeDays.GetHashCode(); - if (this.LocationContact != null) - hashCode = hashCode * 59 + this.LocationContact.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.OrderPriority != null) - hashCode = hashCode * 59 + this.OrderPriority.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.ShippingBranch != null) - hashCode = hashCode * 59 + this.ShippingBranch.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZone != null) - hashCode = hashCode * 59 + this.ShippingZone.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.TaxExemptionNbr != null) - hashCode = hashCode * 59 + this.TaxExemptionNbr.GetHashCode(); - if (this.TaxRegistrationID != null) - hashCode = hashCode * 59 + this.TaxRegistrationID.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CustomerPaymentMethod.cs b/Default.18.200.001/Model/CustomerPaymentMethod.cs deleted file mode 100644 index e1565dbe..00000000 --- a/Default.18.200.001/Model/CustomerPaymentMethod.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CustomerPaymentMethod - /// - [DataContract] - public partial class CustomerPaymentMethod : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// cardAccountNbr. - /// cashAccount. - /// createdDateTime. - /// customerID. - /// customerProfileID. - /// details. - /// instanceID. - /// lastModifiedDateTime. - /// paymentMethod. - /// procCenterID. - public CustomerPaymentMethod(BooleanValue active = default(BooleanValue), StringValue cardAccountNbr = default(StringValue), StringValue cashAccount = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue customerID = default(StringValue), StringValue customerProfileID = default(StringValue), IEnumerable details = default(IEnumerable), IntValue instanceID = default(IntValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue paymentMethod = default(StringValue), StringValue procCenterID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.CardAccountNbr = cardAccountNbr; - this.CashAccount = cashAccount; - this.CreatedDateTime = createdDateTime; - this.CustomerID = customerID; - this.CustomerProfileID = customerProfileID; - this.Details = details; - this.InstanceID = instanceID; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PaymentMethod = paymentMethod; - this.ProcCenterID = procCenterID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CardAccountNbr - /// - [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] - public StringValue CardAccountNbr { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerProfileID - /// - [DataMember(Name="CustomerProfileID", EmitDefaultValue=false)] - public StringValue CustomerProfileID { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets InstanceID - /// - [DataMember(Name="InstanceID", EmitDefaultValue=false)] - public IntValue InstanceID { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets ProcCenterID - /// - [DataMember(Name="ProcCenterID", EmitDefaultValue=false)] - public StringValue ProcCenterID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerPaymentMethod {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CardAccountNbr: ").Append(CardAccountNbr).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerProfileID: ").Append(CustomerProfileID).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" InstanceID: ").Append(InstanceID).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" ProcCenterID: ").Append(ProcCenterID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerPaymentMethod); - } - - /// - /// Returns true if CustomerPaymentMethod instances are equal - /// - /// Instance of CustomerPaymentMethod to be compared - /// Boolean - public bool Equals(CustomerPaymentMethod input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CardAccountNbr == input.CardAccountNbr || - (this.CardAccountNbr != null && - this.CardAccountNbr.Equals(input.CardAccountNbr)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerProfileID == input.CustomerProfileID || - (this.CustomerProfileID != null && - this.CustomerProfileID.Equals(input.CustomerProfileID)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.InstanceID == input.InstanceID || - (this.InstanceID != null && - this.InstanceID.Equals(input.InstanceID)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.ProcCenterID == input.ProcCenterID || - (this.ProcCenterID != null && - this.ProcCenterID.Equals(input.ProcCenterID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CardAccountNbr != null) - hashCode = hashCode * 59 + this.CardAccountNbr.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerProfileID != null) - hashCode = hashCode * 59 + this.CustomerProfileID.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.InstanceID != null) - hashCode = hashCode * 59 + this.InstanceID.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.ProcCenterID != null) - hashCode = hashCode * 59 + this.ProcCenterID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CustomerPaymentMethodDetail.cs b/Default.18.200.001/Model/CustomerPaymentMethodDetail.cs deleted file mode 100644 index e0f7400b..00000000 --- a/Default.18.200.001/Model/CustomerPaymentMethodDetail.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CustomerPaymentMethodDetail - /// - [DataContract] - public partial class CustomerPaymentMethodDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// name. - /// value. - public CustomerPaymentMethodDetail(StringValue name = default(StringValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Name = name; - this.Value = value; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerPaymentMethodDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerPaymentMethodDetail); - } - - /// - /// Returns true if CustomerPaymentMethodDetail instances are equal - /// - /// Instance of CustomerPaymentMethodDetail to be compared - /// Boolean - public bool Equals(CustomerPaymentMethodDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CustomerPriceClass.cs b/Default.18.200.001/Model/CustomerPriceClass.cs deleted file mode 100644 index 298f4d1c..00000000 --- a/Default.18.200.001/Model/CustomerPriceClass.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CustomerPriceClass - /// - [DataContract] - public partial class CustomerPriceClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// description. - /// lastModifiedDateTime. - /// priceClassID. - public CustomerPriceClass(DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue priceClassID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PriceClassID = priceClassID; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets PriceClassID - /// - [DataMember(Name="PriceClassID", EmitDefaultValue=false)] - public StringValue PriceClassID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerPriceClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PriceClassID: ").Append(PriceClassID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerPriceClass); - } - - /// - /// Returns true if CustomerPriceClass instances are equal - /// - /// Instance of CustomerPriceClass to be compared - /// Boolean - public bool Equals(CustomerPriceClass input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PriceClassID == input.PriceClassID || - (this.PriceClassID != null && - this.PriceClassID.Equals(input.PriceClassID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PriceClassID != null) - hashCode = hashCode * 59 + this.PriceClassID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/CustomerSalesPerson.cs b/Default.18.200.001/Model/CustomerSalesPerson.cs deleted file mode 100644 index 5287ad09..00000000 --- a/Default.18.200.001/Model/CustomerSalesPerson.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// CustomerSalesPerson - /// - [DataContract] - public partial class CustomerSalesPerson : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// commission. - /// _default. - /// locationID. - /// locationName. - /// name. - /// salespersonID. - public CustomerSalesPerson(DecimalValue commission = default(DecimalValue), BooleanValue _default = default(BooleanValue), StringValue locationID = default(StringValue), StringValue locationName = default(StringValue), StringValue name = default(StringValue), StringValue salespersonID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Commission = commission; - this.Default = _default; - this.LocationID = locationID; - this.LocationName = locationName; - this.Name = name; - this.SalespersonID = salespersonID; - } - - /// - /// Gets or Sets Commission - /// - [DataMember(Name="Commission", EmitDefaultValue=false)] - public DecimalValue Commission { get; set; } - - /// - /// Gets or Sets Default - /// - [DataMember(Name="Default", EmitDefaultValue=false)] - public BooleanValue Default { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class CustomerSalesPerson {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Commission: ").Append(Commission).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CustomerSalesPerson); - } - - /// - /// Returns true if CustomerSalesPerson instances are equal - /// - /// Instance of CustomerSalesPerson to be compared - /// Boolean - public bool Equals(CustomerSalesPerson input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Commission == input.Commission || - (this.Commission != null && - this.Commission.Equals(input.Commission)) - ) && base.Equals(input) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Commission != null) - hashCode = hashCode * 59 + this.Commission.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/DefaultTaskForGLAccount.cs b/Default.18.200.001/Model/DefaultTaskForGLAccount.cs deleted file mode 100644 index b9e32609..00000000 --- a/Default.18.200.001/Model/DefaultTaskForGLAccount.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// DefaultTaskForGLAccount - /// - [DataContract] - public partial class DefaultTaskForGLAccount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// defaultTask. - public DefaultTaskForGLAccount(StringValue account = default(StringValue), StringValue defaultTask = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.DefaultTask = defaultTask; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets DefaultTask - /// - [DataMember(Name="DefaultTask", EmitDefaultValue=false)] - public StringValue DefaultTask { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DefaultTaskForGLAccount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" DefaultTask: ").Append(DefaultTask).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DefaultTaskForGLAccount); - } - - /// - /// Returns true if DefaultTaskForGLAccount instances are equal - /// - /// Instance of DefaultTaskForGLAccount to be compared - /// Boolean - public bool Equals(DefaultTaskForGLAccount input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.DefaultTask == input.DefaultTask || - (this.DefaultTask != null && - this.DefaultTask.Equals(input.DefaultTask)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.DefaultTask != null) - hashCode = hashCode * 59 + this.DefaultTask.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Discount.cs b/Default.18.200.001/Model/Discount.cs deleted file mode 100644 index dae81626..00000000 --- a/Default.18.200.001/Model/Discount.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Discount - /// - [DataContract] - public partial class Discount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// breakBy. - /// createdDateTime. - /// customerPriceClasses. - /// customers. - /// description. - /// discountBreakpoints. - /// discountBy. - /// discountCode. - /// effectiveDate. - /// expirationDate. - /// itemPriceClasses. - /// items. - /// lastModifiedDateTime. - /// promotional. - /// prorateDiscount. - /// sequence. - /// showFreeItem. - /// warehouses. - public Discount(BooleanValue active = default(BooleanValue), StringValue breakBy = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), IEnumerable customerPriceClasses = default(IEnumerable), IEnumerable customers = default(IEnumerable), StringValue description = default(StringValue), IEnumerable discountBreakpoints = default(IEnumerable), StringValue discountBy = default(StringValue), StringValue discountCode = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), DateTimeValue expirationDate = default(DateTimeValue), IEnumerable itemPriceClasses = default(IEnumerable), IEnumerable items = default(IEnumerable), DateTimeValue lastModifiedDateTime = default(DateTimeValue), BooleanValue promotional = default(BooleanValue), BooleanValue prorateDiscount = default(BooleanValue), StringValue sequence = default(StringValue), BooleanValue showFreeItem = default(BooleanValue), IEnumerable warehouses = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.BreakBy = breakBy; - this.CreatedDateTime = createdDateTime; - this.CustomerPriceClasses = customerPriceClasses; - this.Customers = customers; - this.Description = description; - this.DiscountBreakpoints = discountBreakpoints; - this.DiscountBy = discountBy; - this.DiscountCode = discountCode; - this.EffectiveDate = effectiveDate; - this.ExpirationDate = expirationDate; - this.ItemPriceClasses = itemPriceClasses; - this.Items = items; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Promotional = promotional; - this.ProrateDiscount = prorateDiscount; - this.Sequence = sequence; - this.ShowFreeItem = showFreeItem; - this.Warehouses = warehouses; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets BreakBy - /// - [DataMember(Name="BreakBy", EmitDefaultValue=false)] - public StringValue BreakBy { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CustomerPriceClasses - /// - [DataMember(Name="CustomerPriceClasses", EmitDefaultValue=false)] - public IEnumerable CustomerPriceClasses { get; set; } - - /// - /// Gets or Sets Customers - /// - [DataMember(Name="Customers", EmitDefaultValue=false)] - public IEnumerable Customers { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DiscountBreakpoints - /// - [DataMember(Name="DiscountBreakpoints", EmitDefaultValue=false)] - public IEnumerable DiscountBreakpoints { get; set; } - - /// - /// Gets or Sets DiscountBy - /// - [DataMember(Name="DiscountBy", EmitDefaultValue=false)] - public StringValue DiscountBy { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets ItemPriceClasses - /// - [DataMember(Name="ItemPriceClasses", EmitDefaultValue=false)] - public IEnumerable ItemPriceClasses { get; set; } - - /// - /// Gets or Sets Items - /// - [DataMember(Name="Items", EmitDefaultValue=false)] - public IEnumerable Items { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Promotional - /// - [DataMember(Name="Promotional", EmitDefaultValue=false)] - public BooleanValue Promotional { get; set; } - - /// - /// Gets or Sets ProrateDiscount - /// - [DataMember(Name="ProrateDiscount", EmitDefaultValue=false)] - public BooleanValue ProrateDiscount { get; set; } - - /// - /// Gets or Sets Sequence - /// - [DataMember(Name="Sequence", EmitDefaultValue=false)] - public StringValue Sequence { get; set; } - - /// - /// Gets or Sets ShowFreeItem - /// - [DataMember(Name="ShowFreeItem", EmitDefaultValue=false)] - public BooleanValue ShowFreeItem { get; set; } - - /// - /// Gets or Sets Warehouses - /// - [DataMember(Name="Warehouses", EmitDefaultValue=false)] - public IEnumerable Warehouses { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Discount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" BreakBy: ").Append(BreakBy).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CustomerPriceClasses: ").Append(CustomerPriceClasses).Append("\n"); - sb.Append(" Customers: ").Append(Customers).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountBreakpoints: ").Append(DiscountBreakpoints).Append("\n"); - sb.Append(" DiscountBy: ").Append(DiscountBy).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" ItemPriceClasses: ").Append(ItemPriceClasses).Append("\n"); - sb.Append(" Items: ").Append(Items).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Promotional: ").Append(Promotional).Append("\n"); - sb.Append(" ProrateDiscount: ").Append(ProrateDiscount).Append("\n"); - sb.Append(" Sequence: ").Append(Sequence).Append("\n"); - sb.Append(" ShowFreeItem: ").Append(ShowFreeItem).Append("\n"); - sb.Append(" Warehouses: ").Append(Warehouses).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Discount); - } - - /// - /// Returns true if Discount instances are equal - /// - /// Instance of Discount to be compared - /// Boolean - public bool Equals(Discount input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.BreakBy == input.BreakBy || - (this.BreakBy != null && - this.BreakBy.Equals(input.BreakBy)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CustomerPriceClasses == input.CustomerPriceClasses || - this.CustomerPriceClasses != null && - this.CustomerPriceClasses.SequenceEqual(input.CustomerPriceClasses) - ) && base.Equals(input) && - ( - this.Customers == input.Customers || - this.Customers != null && - this.Customers.SequenceEqual(input.Customers) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountBreakpoints == input.DiscountBreakpoints || - this.DiscountBreakpoints != null && - this.DiscountBreakpoints.SequenceEqual(input.DiscountBreakpoints) - ) && base.Equals(input) && - ( - this.DiscountBy == input.DiscountBy || - (this.DiscountBy != null && - this.DiscountBy.Equals(input.DiscountBy)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.ItemPriceClasses == input.ItemPriceClasses || - this.ItemPriceClasses != null && - this.ItemPriceClasses.SequenceEqual(input.ItemPriceClasses) - ) && base.Equals(input) && - ( - this.Items == input.Items || - this.Items != null && - this.Items.SequenceEqual(input.Items) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Promotional == input.Promotional || - (this.Promotional != null && - this.Promotional.Equals(input.Promotional)) - ) && base.Equals(input) && - ( - this.ProrateDiscount == input.ProrateDiscount || - (this.ProrateDiscount != null && - this.ProrateDiscount.Equals(input.ProrateDiscount)) - ) && base.Equals(input) && - ( - this.Sequence == input.Sequence || - (this.Sequence != null && - this.Sequence.Equals(input.Sequence)) - ) && base.Equals(input) && - ( - this.ShowFreeItem == input.ShowFreeItem || - (this.ShowFreeItem != null && - this.ShowFreeItem.Equals(input.ShowFreeItem)) - ) && base.Equals(input) && - ( - this.Warehouses == input.Warehouses || - this.Warehouses != null && - this.Warehouses.SequenceEqual(input.Warehouses) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.BreakBy != null) - hashCode = hashCode * 59 + this.BreakBy.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CustomerPriceClasses != null) - hashCode = hashCode * 59 + this.CustomerPriceClasses.GetHashCode(); - if (this.Customers != null) - hashCode = hashCode * 59 + this.Customers.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountBreakpoints != null) - hashCode = hashCode * 59 + this.DiscountBreakpoints.GetHashCode(); - if (this.DiscountBy != null) - hashCode = hashCode * 59 + this.DiscountBy.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.ItemPriceClasses != null) - hashCode = hashCode * 59 + this.ItemPriceClasses.GetHashCode(); - if (this.Items != null) - hashCode = hashCode * 59 + this.Items.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Promotional != null) - hashCode = hashCode * 59 + this.Promotional.GetHashCode(); - if (this.ProrateDiscount != null) - hashCode = hashCode * 59 + this.ProrateDiscount.GetHashCode(); - if (this.Sequence != null) - hashCode = hashCode * 59 + this.Sequence.GetHashCode(); - if (this.ShowFreeItem != null) - hashCode = hashCode * 59 + this.ShowFreeItem.GetHashCode(); - if (this.Warehouses != null) - hashCode = hashCode * 59 + this.Warehouses.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/DiscountBreakpointDetail.cs b/Default.18.200.001/Model/DiscountBreakpointDetail.cs deleted file mode 100644 index 11cc0528..00000000 --- a/Default.18.200.001/Model/DiscountBreakpointDetail.cs +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// DiscountBreakpointDetail - /// - [DataContract] - public partial class DiscountBreakpointDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakAmount. - /// breakQty. - /// discountAmount. - /// discountDetailID. - /// discountPercent. - /// effectiveDate. - /// freeItemQty. - /// lastBreakAmount. - /// lastBreakQty. - /// lastDiscountAmount. - /// lastDiscountPercent. - /// lastFreeItemQty. - /// pendingBreakAmount. - /// pendingBreakQty. - /// pendingDate. - /// pendingDiscountAmount. - /// pendingDiscountPercent. - /// pendingFreeItemQty. - public DiscountBreakpointDetail(DecimalValue breakAmount = default(DecimalValue), DecimalValue breakQty = default(DecimalValue), DecimalValue discountAmount = default(DecimalValue), IntValue discountDetailID = default(IntValue), DecimalValue discountPercent = default(DecimalValue), DateTimeValue effectiveDate = default(DateTimeValue), DecimalValue freeItemQty = default(DecimalValue), DecimalValue lastBreakAmount = default(DecimalValue), DecimalValue lastBreakQty = default(DecimalValue), DecimalValue lastDiscountAmount = default(DecimalValue), DecimalValue lastDiscountPercent = default(DecimalValue), DecimalValue lastFreeItemQty = default(DecimalValue), DecimalValue pendingBreakAmount = default(DecimalValue), DecimalValue pendingBreakQty = default(DecimalValue), DateTimeValue pendingDate = default(DateTimeValue), DecimalValue pendingDiscountAmount = default(DecimalValue), DecimalValue pendingDiscountPercent = default(DecimalValue), DecimalValue pendingFreeItemQty = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakAmount = breakAmount; - this.BreakQty = breakQty; - this.DiscountAmount = discountAmount; - this.DiscountDetailID = discountDetailID; - this.DiscountPercent = discountPercent; - this.EffectiveDate = effectiveDate; - this.FreeItemQty = freeItemQty; - this.LastBreakAmount = lastBreakAmount; - this.LastBreakQty = lastBreakQty; - this.LastDiscountAmount = lastDiscountAmount; - this.LastDiscountPercent = lastDiscountPercent; - this.LastFreeItemQty = lastFreeItemQty; - this.PendingBreakAmount = pendingBreakAmount; - this.PendingBreakQty = pendingBreakQty; - this.PendingDate = pendingDate; - this.PendingDiscountAmount = pendingDiscountAmount; - this.PendingDiscountPercent = pendingDiscountPercent; - this.PendingFreeItemQty = pendingFreeItemQty; - } - - /// - /// Gets or Sets BreakAmount - /// - [DataMember(Name="BreakAmount", EmitDefaultValue=false)] - public DecimalValue BreakAmount { get; set; } - - /// - /// Gets or Sets BreakQty - /// - [DataMember(Name="BreakQty", EmitDefaultValue=false)] - public DecimalValue BreakQty { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountDetailID - /// - [DataMember(Name="DiscountDetailID", EmitDefaultValue=false)] - public IntValue DiscountDetailID { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets FreeItemQty - /// - [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] - public DecimalValue FreeItemQty { get; set; } - - /// - /// Gets or Sets LastBreakAmount - /// - [DataMember(Name="LastBreakAmount", EmitDefaultValue=false)] - public DecimalValue LastBreakAmount { get; set; } - - /// - /// Gets or Sets LastBreakQty - /// - [DataMember(Name="LastBreakQty", EmitDefaultValue=false)] - public DecimalValue LastBreakQty { get; set; } - - /// - /// Gets or Sets LastDiscountAmount - /// - [DataMember(Name="LastDiscountAmount", EmitDefaultValue=false)] - public DecimalValue LastDiscountAmount { get; set; } - - /// - /// Gets or Sets LastDiscountPercent - /// - [DataMember(Name="LastDiscountPercent", EmitDefaultValue=false)] - public DecimalValue LastDiscountPercent { get; set; } - - /// - /// Gets or Sets LastFreeItemQty - /// - [DataMember(Name="LastFreeItemQty", EmitDefaultValue=false)] - public DecimalValue LastFreeItemQty { get; set; } - - /// - /// Gets or Sets PendingBreakAmount - /// - [DataMember(Name="PendingBreakAmount", EmitDefaultValue=false)] - public DecimalValue PendingBreakAmount { get; set; } - - /// - /// Gets or Sets PendingBreakQty - /// - [DataMember(Name="PendingBreakQty", EmitDefaultValue=false)] - public DecimalValue PendingBreakQty { get; set; } - - /// - /// Gets or Sets PendingDate - /// - [DataMember(Name="PendingDate", EmitDefaultValue=false)] - public DateTimeValue PendingDate { get; set; } - - /// - /// Gets or Sets PendingDiscountAmount - /// - [DataMember(Name="PendingDiscountAmount", EmitDefaultValue=false)] - public DecimalValue PendingDiscountAmount { get; set; } - - /// - /// Gets or Sets PendingDiscountPercent - /// - [DataMember(Name="PendingDiscountPercent", EmitDefaultValue=false)] - public DecimalValue PendingDiscountPercent { get; set; } - - /// - /// Gets or Sets PendingFreeItemQty - /// - [DataMember(Name="PendingFreeItemQty", EmitDefaultValue=false)] - public DecimalValue PendingFreeItemQty { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountBreakpointDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakAmount: ").Append(BreakAmount).Append("\n"); - sb.Append(" BreakQty: ").Append(BreakQty).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountDetailID: ").Append(DiscountDetailID).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" FreeItemQty: ").Append(FreeItemQty).Append("\n"); - sb.Append(" LastBreakAmount: ").Append(LastBreakAmount).Append("\n"); - sb.Append(" LastBreakQty: ").Append(LastBreakQty).Append("\n"); - sb.Append(" LastDiscountAmount: ").Append(LastDiscountAmount).Append("\n"); - sb.Append(" LastDiscountPercent: ").Append(LastDiscountPercent).Append("\n"); - sb.Append(" LastFreeItemQty: ").Append(LastFreeItemQty).Append("\n"); - sb.Append(" PendingBreakAmount: ").Append(PendingBreakAmount).Append("\n"); - sb.Append(" PendingBreakQty: ").Append(PendingBreakQty).Append("\n"); - sb.Append(" PendingDate: ").Append(PendingDate).Append("\n"); - sb.Append(" PendingDiscountAmount: ").Append(PendingDiscountAmount).Append("\n"); - sb.Append(" PendingDiscountPercent: ").Append(PendingDiscountPercent).Append("\n"); - sb.Append(" PendingFreeItemQty: ").Append(PendingFreeItemQty).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountBreakpointDetail); - } - - /// - /// Returns true if DiscountBreakpointDetail instances are equal - /// - /// Instance of DiscountBreakpointDetail to be compared - /// Boolean - public bool Equals(DiscountBreakpointDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BreakAmount == input.BreakAmount || - (this.BreakAmount != null && - this.BreakAmount.Equals(input.BreakAmount)) - ) && base.Equals(input) && - ( - this.BreakQty == input.BreakQty || - (this.BreakQty != null && - this.BreakQty.Equals(input.BreakQty)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountDetailID == input.DiscountDetailID || - (this.DiscountDetailID != null && - this.DiscountDetailID.Equals(input.DiscountDetailID)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.FreeItemQty == input.FreeItemQty || - (this.FreeItemQty != null && - this.FreeItemQty.Equals(input.FreeItemQty)) - ) && base.Equals(input) && - ( - this.LastBreakAmount == input.LastBreakAmount || - (this.LastBreakAmount != null && - this.LastBreakAmount.Equals(input.LastBreakAmount)) - ) && base.Equals(input) && - ( - this.LastBreakQty == input.LastBreakQty || - (this.LastBreakQty != null && - this.LastBreakQty.Equals(input.LastBreakQty)) - ) && base.Equals(input) && - ( - this.LastDiscountAmount == input.LastDiscountAmount || - (this.LastDiscountAmount != null && - this.LastDiscountAmount.Equals(input.LastDiscountAmount)) - ) && base.Equals(input) && - ( - this.LastDiscountPercent == input.LastDiscountPercent || - (this.LastDiscountPercent != null && - this.LastDiscountPercent.Equals(input.LastDiscountPercent)) - ) && base.Equals(input) && - ( - this.LastFreeItemQty == input.LastFreeItemQty || - (this.LastFreeItemQty != null && - this.LastFreeItemQty.Equals(input.LastFreeItemQty)) - ) && base.Equals(input) && - ( - this.PendingBreakAmount == input.PendingBreakAmount || - (this.PendingBreakAmount != null && - this.PendingBreakAmount.Equals(input.PendingBreakAmount)) - ) && base.Equals(input) && - ( - this.PendingBreakQty == input.PendingBreakQty || - (this.PendingBreakQty != null && - this.PendingBreakQty.Equals(input.PendingBreakQty)) - ) && base.Equals(input) && - ( - this.PendingDate == input.PendingDate || - (this.PendingDate != null && - this.PendingDate.Equals(input.PendingDate)) - ) && base.Equals(input) && - ( - this.PendingDiscountAmount == input.PendingDiscountAmount || - (this.PendingDiscountAmount != null && - this.PendingDiscountAmount.Equals(input.PendingDiscountAmount)) - ) && base.Equals(input) && - ( - this.PendingDiscountPercent == input.PendingDiscountPercent || - (this.PendingDiscountPercent != null && - this.PendingDiscountPercent.Equals(input.PendingDiscountPercent)) - ) && base.Equals(input) && - ( - this.PendingFreeItemQty == input.PendingFreeItemQty || - (this.PendingFreeItemQty != null && - this.PendingFreeItemQty.Equals(input.PendingFreeItemQty)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakAmount != null) - hashCode = hashCode * 59 + this.BreakAmount.GetHashCode(); - if (this.BreakQty != null) - hashCode = hashCode * 59 + this.BreakQty.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountDetailID != null) - hashCode = hashCode * 59 + this.DiscountDetailID.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.FreeItemQty != null) - hashCode = hashCode * 59 + this.FreeItemQty.GetHashCode(); - if (this.LastBreakAmount != null) - hashCode = hashCode * 59 + this.LastBreakAmount.GetHashCode(); - if (this.LastBreakQty != null) - hashCode = hashCode * 59 + this.LastBreakQty.GetHashCode(); - if (this.LastDiscountAmount != null) - hashCode = hashCode * 59 + this.LastDiscountAmount.GetHashCode(); - if (this.LastDiscountPercent != null) - hashCode = hashCode * 59 + this.LastDiscountPercent.GetHashCode(); - if (this.LastFreeItemQty != null) - hashCode = hashCode * 59 + this.LastFreeItemQty.GetHashCode(); - if (this.PendingBreakAmount != null) - hashCode = hashCode * 59 + this.PendingBreakAmount.GetHashCode(); - if (this.PendingBreakQty != null) - hashCode = hashCode * 59 + this.PendingBreakQty.GetHashCode(); - if (this.PendingDate != null) - hashCode = hashCode * 59 + this.PendingDate.GetHashCode(); - if (this.PendingDiscountAmount != null) - hashCode = hashCode * 59 + this.PendingDiscountAmount.GetHashCode(); - if (this.PendingDiscountPercent != null) - hashCode = hashCode * 59 + this.PendingDiscountPercent.GetHashCode(); - if (this.PendingFreeItemQty != null) - hashCode = hashCode * 59 + this.PendingFreeItemQty.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/DiscountCode.cs b/Default.18.200.001/Model/DiscountCode.cs deleted file mode 100644 index 3d86c37f..00000000 --- a/Default.18.200.001/Model/DiscountCode.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// DiscountCode - /// - [DataContract] - public partial class DiscountCode : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// applicableTo. - /// createdDateTime. - /// description. - /// discountCodeID. - /// discountType. - /// lastModifiedDateTime. - public DiscountCode(StringValue applicableTo = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), StringValue discountCodeID = default(StringValue), StringValue discountType = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApplicableTo = applicableTo; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.DiscountCodeID = discountCodeID; - this.DiscountType = discountType; - this.LastModifiedDateTime = lastModifiedDateTime; - } - - /// - /// Gets or Sets ApplicableTo - /// - [DataMember(Name="ApplicableTo", EmitDefaultValue=false)] - public StringValue ApplicableTo { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DiscountCodeID - /// - [DataMember(Name="DiscountCodeID", EmitDefaultValue=false)] - public StringValue DiscountCodeID { get; set; } - - /// - /// Gets or Sets DiscountType - /// - [DataMember(Name="DiscountType", EmitDefaultValue=false)] - public StringValue DiscountType { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountCode {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApplicableTo: ").Append(ApplicableTo).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountCodeID: ").Append(DiscountCodeID).Append("\n"); - sb.Append(" DiscountType: ").Append(DiscountType).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountCode); - } - - /// - /// Returns true if DiscountCode instances are equal - /// - /// Instance of DiscountCode to be compared - /// Boolean - public bool Equals(DiscountCode input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ApplicableTo == input.ApplicableTo || - (this.ApplicableTo != null && - this.ApplicableTo.Equals(input.ApplicableTo)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountCodeID == input.DiscountCodeID || - (this.DiscountCodeID != null && - this.DiscountCodeID.Equals(input.DiscountCodeID)) - ) && base.Equals(input) && - ( - this.DiscountType == input.DiscountType || - (this.DiscountType != null && - this.DiscountType.Equals(input.DiscountType)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApplicableTo != null) - hashCode = hashCode * 59 + this.ApplicableTo.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountCodeID != null) - hashCode = hashCode * 59 + this.DiscountCodeID.GetHashCode(); - if (this.DiscountType != null) - hashCode = hashCode * 59 + this.DiscountType.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/DiscountCustomerDetail.cs b/Default.18.200.001/Model/DiscountCustomerDetail.cs deleted file mode 100644 index ae10f04c..00000000 --- a/Default.18.200.001/Model/DiscountCustomerDetail.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// DiscountCustomerDetail - /// - [DataContract] - public partial class DiscountCustomerDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// customerID. - /// customerName. - public DiscountCustomerDetail(StringValue customerID = default(StringValue), StringValue customerName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CustomerID = customerID; - this.CustomerName = customerName; - } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerName - /// - [DataMember(Name="CustomerName", EmitDefaultValue=false)] - public StringValue CustomerName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountCustomerDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountCustomerDetail); - } - - /// - /// Returns true if DiscountCustomerDetail instances are equal - /// - /// Instance of DiscountCustomerDetail to be compared - /// Boolean - public bool Equals(DiscountCustomerDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerName == input.CustomerName || - (this.CustomerName != null && - this.CustomerName.Equals(input.CustomerName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerName != null) - hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/DiscountCustomerPriceClassesDetail.cs b/Default.18.200.001/Model/DiscountCustomerPriceClassesDetail.cs deleted file mode 100644 index 4da8f876..00000000 --- a/Default.18.200.001/Model/DiscountCustomerPriceClassesDetail.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// DiscountCustomerPriceClassesDetail - /// - [DataContract] - public partial class DiscountCustomerPriceClassesDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// priceClassID. - public DiscountCustomerPriceClassesDetail(StringValue priceClassID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.PriceClassID = priceClassID; - } - - /// - /// Gets or Sets PriceClassID - /// - [DataMember(Name="PriceClassID", EmitDefaultValue=false)] - public StringValue PriceClassID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountCustomerPriceClassesDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" PriceClassID: ").Append(PriceClassID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountCustomerPriceClassesDetail); - } - - /// - /// Returns true if DiscountCustomerPriceClassesDetail instances are equal - /// - /// Instance of DiscountCustomerPriceClassesDetail to be compared - /// Boolean - public bool Equals(DiscountCustomerPriceClassesDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.PriceClassID == input.PriceClassID || - (this.PriceClassID != null && - this.PriceClassID.Equals(input.PriceClassID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.PriceClassID != null) - hashCode = hashCode * 59 + this.PriceClassID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/DiscountItemDetail.cs b/Default.18.200.001/Model/DiscountItemDetail.cs deleted file mode 100644 index 8d67ba67..00000000 --- a/Default.18.200.001/Model/DiscountItemDetail.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// DiscountItemDetail - /// - [DataContract] - public partial class DiscountItemDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// inventoryID. - public DiscountItemDetail(StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.InventoryID = inventoryID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountItemDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountItemDetail); - } - - /// - /// Returns true if DiscountItemDetail instances are equal - /// - /// Instance of DiscountItemDetail to be compared - /// Boolean - public bool Equals(DiscountItemDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/DiscountItemPriceClassesDetail.cs b/Default.18.200.001/Model/DiscountItemPriceClassesDetail.cs deleted file mode 100644 index 1697a387..00000000 --- a/Default.18.200.001/Model/DiscountItemPriceClassesDetail.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// DiscountItemPriceClassesDetail - /// - [DataContract] - public partial class DiscountItemPriceClassesDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// priceClassID. - public DiscountItemPriceClassesDetail(StringValue priceClassID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.PriceClassID = priceClassID; - } - - /// - /// Gets or Sets PriceClassID - /// - [DataMember(Name="PriceClassID", EmitDefaultValue=false)] - public StringValue PriceClassID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountItemPriceClassesDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" PriceClassID: ").Append(PriceClassID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountItemPriceClassesDetail); - } - - /// - /// Returns true if DiscountItemPriceClassesDetail instances are equal - /// - /// Instance of DiscountItemPriceClassesDetail to be compared - /// Boolean - public bool Equals(DiscountItemPriceClassesDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.PriceClassID == input.PriceClassID || - (this.PriceClassID != null && - this.PriceClassID.Equals(input.PriceClassID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.PriceClassID != null) - hashCode = hashCode * 59 + this.PriceClassID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/DiscountWarehouseDetail.cs b/Default.18.200.001/Model/DiscountWarehouseDetail.cs deleted file mode 100644 index 735b7c32..00000000 --- a/Default.18.200.001/Model/DiscountWarehouseDetail.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// DiscountWarehouseDetail - /// - [DataContract] - public partial class DiscountWarehouseDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// warehouse. - public DiscountWarehouseDetail(StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DiscountWarehouseDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DiscountWarehouseDetail); - } - - /// - /// Returns true if DiscountWarehouseDetail instances are equal - /// - /// Instance of DiscountWarehouseDetail to be compared - /// Boolean - public bool Equals(DiscountWarehouseDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/DocContact.cs b/Default.18.200.001/Model/DocContact.cs deleted file mode 100644 index 1bd1e812..00000000 --- a/Default.18.200.001/Model/DocContact.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// DocContact - /// - [DataContract] - public partial class DocContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attention. - /// businessName. - /// email. - /// phone1. - public DocContact(StringValue attention = default(StringValue), StringValue businessName = default(StringValue), StringValue email = default(StringValue), StringValue phone1 = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attention = attention; - this.BusinessName = businessName; - this.Email = email; - this.Phone1 = phone1; - } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets BusinessName - /// - [DataMember(Name="BusinessName", EmitDefaultValue=false)] - public StringValue BusinessName { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DocContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" BusinessName: ").Append(BusinessName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DocContact); - } - - /// - /// Returns true if DocContact instances are equal - /// - /// Instance of DocContact to be compared - /// Boolean - public bool Equals(DocContact input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.BusinessName == input.BusinessName || - (this.BusinessName != null && - this.BusinessName.Equals(input.BusinessName)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.BusinessName != null) - hashCode = hashCode * 59 + this.BusinessName.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/DuplicateDetail.cs b/Default.18.200.001/Model/DuplicateDetail.cs deleted file mode 100644 index 9577a05f..00000000 --- a/Default.18.200.001/Model/DuplicateDetail.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// DuplicateDetail - /// - [DataContract] - public partial class DuplicateDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountName. - /// businessAccount. - /// businessAccountType. - /// contactID. - /// displayName. - /// duplicate. - /// duplicateContactID. - /// email. - /// entityType. - /// lastModifiedDate. - /// type. - public DuplicateDetail(StringValue accountName = default(StringValue), StringValue businessAccount = default(StringValue), StringValue businessAccountType = default(StringValue), IntValue contactID = default(IntValue), StringValue displayName = default(StringValue), StringValue duplicate = default(StringValue), IntValue duplicateContactID = default(IntValue), StringValue email = default(StringValue), StringValue entityType = default(StringValue), DateTimeValue lastModifiedDate = default(DateTimeValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountName = accountName; - this.BusinessAccount = businessAccount; - this.BusinessAccountType = businessAccountType; - this.ContactID = contactID; - this.DisplayName = displayName; - this.Duplicate = duplicate; - this.DuplicateContactID = duplicateContactID; - this.Email = email; - this.EntityType = entityType; - this.LastModifiedDate = lastModifiedDate; - this.Type = type; - } - - /// - /// Gets or Sets AccountName - /// - [DataMember(Name="AccountName", EmitDefaultValue=false)] - public StringValue AccountName { get; set; } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets BusinessAccountType - /// - [DataMember(Name="BusinessAccountType", EmitDefaultValue=false)] - public StringValue BusinessAccountType { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets Duplicate - /// - [DataMember(Name="Duplicate", EmitDefaultValue=false)] - public StringValue Duplicate { get; set; } - - /// - /// Gets or Sets DuplicateContactID - /// - [DataMember(Name="DuplicateContactID", EmitDefaultValue=false)] - public IntValue DuplicateContactID { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets EntityType - /// - [DataMember(Name="EntityType", EmitDefaultValue=false)] - public StringValue EntityType { get; set; } - - /// - /// Gets or Sets LastModifiedDate - /// - [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDate { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class DuplicateDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountName: ").Append(AccountName).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" BusinessAccountType: ").Append(BusinessAccountType).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Duplicate: ").Append(Duplicate).Append("\n"); - sb.Append(" DuplicateContactID: ").Append(DuplicateContactID).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" EntityType: ").Append(EntityType).Append("\n"); - sb.Append(" LastModifiedDate: ").Append(LastModifiedDate).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as DuplicateDetail); - } - - /// - /// Returns true if DuplicateDetail instances are equal - /// - /// Instance of DuplicateDetail to be compared - /// Boolean - public bool Equals(DuplicateDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountName == input.AccountName || - (this.AccountName != null && - this.AccountName.Equals(input.AccountName)) - ) && base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.BusinessAccountType == input.BusinessAccountType || - (this.BusinessAccountType != null && - this.BusinessAccountType.Equals(input.BusinessAccountType)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.Duplicate == input.Duplicate || - (this.Duplicate != null && - this.Duplicate.Equals(input.Duplicate)) - ) && base.Equals(input) && - ( - this.DuplicateContactID == input.DuplicateContactID || - (this.DuplicateContactID != null && - this.DuplicateContactID.Equals(input.DuplicateContactID)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.EntityType == input.EntityType || - (this.EntityType != null && - this.EntityType.Equals(input.EntityType)) - ) && base.Equals(input) && - ( - this.LastModifiedDate == input.LastModifiedDate || - (this.LastModifiedDate != null && - this.LastModifiedDate.Equals(input.LastModifiedDate)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountName != null) - hashCode = hashCode * 59 + this.AccountName.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.BusinessAccountType != null) - hashCode = hashCode * 59 + this.BusinessAccountType.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Duplicate != null) - hashCode = hashCode * 59 + this.Duplicate.GetHashCode(); - if (this.DuplicateContactID != null) - hashCode = hashCode * 59 + this.DuplicateContactID.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.EntityType != null) - hashCode = hashCode * 59 + this.EntityType.GetHashCode(); - if (this.LastModifiedDate != null) - hashCode = hashCode * 59 + this.LastModifiedDate.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Email.cs b/Default.18.200.001/Model/Email.cs deleted file mode 100644 index 219a48c4..00000000 --- a/Default.18.200.001/Model/Email.cs +++ /dev/null @@ -1,430 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Email - /// - [DataContract] - public partial class Email : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// bcc. - /// body. - /// cc. - /// date. - /// description. - /// from. - /// fromEmailAccountDisplayName. - /// fromEmailAccountID. - /// incoming. - /// _internal. - /// mailStatus. - /// owner. - /// parent. - /// parentSummary. - /// relatedEntityDescription. - /// startTime. - /// subject. - /// timeActivity. - /// to. - /// workgroup. - public Email(StringValue bcc = default(StringValue), StringValue body = default(StringValue), StringValue cc = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), StringValue from = default(StringValue), StringValue fromEmailAccountDisplayName = default(StringValue), IntValue fromEmailAccountID = default(IntValue), BooleanValue incoming = default(BooleanValue), BooleanValue _internal = default(BooleanValue), StringValue mailStatus = default(StringValue), StringValue owner = default(StringValue), GuidValue parent = default(GuidValue), StringValue parentSummary = default(StringValue), StringValue relatedEntityDescription = default(StringValue), DateTimeValue startTime = default(DateTimeValue), StringValue subject = default(StringValue), TimeActivity timeActivity = default(TimeActivity), StringValue to = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Bcc = bcc; - this.Body = body; - this.Cc = cc; - this.Date = date; - this.Description = description; - this.From = from; - this.FromEmailAccountDisplayName = fromEmailAccountDisplayName; - this.FromEmailAccountID = fromEmailAccountID; - this.Incoming = incoming; - this.Internal = _internal; - this.MailStatus = mailStatus; - this.Owner = owner; - this.Parent = parent; - this.ParentSummary = parentSummary; - this.RelatedEntityDescription = relatedEntityDescription; - this.StartTime = startTime; - this.Subject = subject; - this.TimeActivity = timeActivity; - this.To = to; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Bcc - /// - [DataMember(Name="Bcc", EmitDefaultValue=false)] - public StringValue Bcc { get; set; } - - /// - /// Gets or Sets Body - /// - [DataMember(Name="Body", EmitDefaultValue=false)] - public StringValue Body { get; set; } - - /// - /// Gets or Sets Cc - /// - [DataMember(Name="Cc", EmitDefaultValue=false)] - public StringValue Cc { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets From - /// - [DataMember(Name="From", EmitDefaultValue=false)] - public StringValue From { get; set; } - - /// - /// Gets or Sets FromEmailAccountDisplayName - /// - [DataMember(Name="FromEmailAccountDisplayName", EmitDefaultValue=false)] - public StringValue FromEmailAccountDisplayName { get; set; } - - /// - /// Gets or Sets FromEmailAccountID - /// - [DataMember(Name="FromEmailAccountID", EmitDefaultValue=false)] - public IntValue FromEmailAccountID { get; set; } - - /// - /// Gets or Sets Incoming - /// - [DataMember(Name="Incoming", EmitDefaultValue=false)] - public BooleanValue Incoming { get; set; } - - /// - /// Gets or Sets Internal - /// - [DataMember(Name="Internal", EmitDefaultValue=false)] - public BooleanValue Internal { get; set; } - - /// - /// Gets or Sets MailStatus - /// - [DataMember(Name="MailStatus", EmitDefaultValue=false)] - public StringValue MailStatus { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Parent - /// - [DataMember(Name="Parent", EmitDefaultValue=false)] - public GuidValue Parent { get; set; } - - /// - /// Gets or Sets ParentSummary - /// - [DataMember(Name="ParentSummary", EmitDefaultValue=false)] - public StringValue ParentSummary { get; set; } - - /// - /// Gets or Sets RelatedEntityDescription - /// - [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] - public StringValue RelatedEntityDescription { get; set; } - - /// - /// Gets or Sets StartTime - /// - [DataMember(Name="StartTime", EmitDefaultValue=false)] - public DateTimeValue StartTime { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets TimeActivity - /// - [DataMember(Name="TimeActivity", EmitDefaultValue=false)] - public TimeActivity TimeActivity { get; set; } - - /// - /// Gets or Sets To - /// - [DataMember(Name="To", EmitDefaultValue=false)] - public StringValue To { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Email {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Bcc: ").Append(Bcc).Append("\n"); - sb.Append(" Body: ").Append(Body).Append("\n"); - sb.Append(" Cc: ").Append(Cc).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" FromEmailAccountDisplayName: ").Append(FromEmailAccountDisplayName).Append("\n"); - sb.Append(" FromEmailAccountID: ").Append(FromEmailAccountID).Append("\n"); - sb.Append(" Incoming: ").Append(Incoming).Append("\n"); - sb.Append(" Internal: ").Append(Internal).Append("\n"); - sb.Append(" MailStatus: ").Append(MailStatus).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Parent: ").Append(Parent).Append("\n"); - sb.Append(" ParentSummary: ").Append(ParentSummary).Append("\n"); - sb.Append(" RelatedEntityDescription: ").Append(RelatedEntityDescription).Append("\n"); - sb.Append(" StartTime: ").Append(StartTime).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" TimeActivity: ").Append(TimeActivity).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Email); - } - - /// - /// Returns true if Email instances are equal - /// - /// Instance of Email to be compared - /// Boolean - public bool Equals(Email input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Bcc == input.Bcc || - (this.Bcc != null && - this.Bcc.Equals(input.Bcc)) - ) && base.Equals(input) && - ( - this.Body == input.Body || - (this.Body != null && - this.Body.Equals(input.Body)) - ) && base.Equals(input) && - ( - this.Cc == input.Cc || - (this.Cc != null && - this.Cc.Equals(input.Cc)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && base.Equals(input) && - ( - this.FromEmailAccountDisplayName == input.FromEmailAccountDisplayName || - (this.FromEmailAccountDisplayName != null && - this.FromEmailAccountDisplayName.Equals(input.FromEmailAccountDisplayName)) - ) && base.Equals(input) && - ( - this.FromEmailAccountID == input.FromEmailAccountID || - (this.FromEmailAccountID != null && - this.FromEmailAccountID.Equals(input.FromEmailAccountID)) - ) && base.Equals(input) && - ( - this.Incoming == input.Incoming || - (this.Incoming != null && - this.Incoming.Equals(input.Incoming)) - ) && base.Equals(input) && - ( - this.Internal == input.Internal || - (this.Internal != null && - this.Internal.Equals(input.Internal)) - ) && base.Equals(input) && - ( - this.MailStatus == input.MailStatus || - (this.MailStatus != null && - this.MailStatus.Equals(input.MailStatus)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Parent == input.Parent || - (this.Parent != null && - this.Parent.Equals(input.Parent)) - ) && base.Equals(input) && - ( - this.ParentSummary == input.ParentSummary || - (this.ParentSummary != null && - this.ParentSummary.Equals(input.ParentSummary)) - ) && base.Equals(input) && - ( - this.RelatedEntityDescription == input.RelatedEntityDescription || - (this.RelatedEntityDescription != null && - this.RelatedEntityDescription.Equals(input.RelatedEntityDescription)) - ) && base.Equals(input) && - ( - this.StartTime == input.StartTime || - (this.StartTime != null && - this.StartTime.Equals(input.StartTime)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.TimeActivity == input.TimeActivity || - (this.TimeActivity != null && - this.TimeActivity.Equals(input.TimeActivity)) - ) && base.Equals(input) && - ( - this.To == input.To || - (this.To != null && - this.To.Equals(input.To)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Bcc != null) - hashCode = hashCode * 59 + this.Bcc.GetHashCode(); - if (this.Body != null) - hashCode = hashCode * 59 + this.Body.GetHashCode(); - if (this.Cc != null) - hashCode = hashCode * 59 + this.Cc.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.FromEmailAccountDisplayName != null) - hashCode = hashCode * 59 + this.FromEmailAccountDisplayName.GetHashCode(); - if (this.FromEmailAccountID != null) - hashCode = hashCode * 59 + this.FromEmailAccountID.GetHashCode(); - if (this.Incoming != null) - hashCode = hashCode * 59 + this.Incoming.GetHashCode(); - if (this.Internal != null) - hashCode = hashCode * 59 + this.Internal.GetHashCode(); - if (this.MailStatus != null) - hashCode = hashCode * 59 + this.MailStatus.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Parent != null) - hashCode = hashCode * 59 + this.Parent.GetHashCode(); - if (this.ParentSummary != null) - hashCode = hashCode * 59 + this.ParentSummary.GetHashCode(); - if (this.RelatedEntityDescription != null) - hashCode = hashCode * 59 + this.RelatedEntityDescription.GetHashCode(); - if (this.StartTime != null) - hashCode = hashCode * 59 + this.StartTime.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.TimeActivity != null) - hashCode = hashCode * 59 + this.TimeActivity.GetHashCode(); - if (this.To != null) - hashCode = hashCode * 59 + this.To.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/EmailProcessing.cs b/Default.18.200.001/Model/EmailProcessing.cs deleted file mode 100644 index c561a122..00000000 --- a/Default.18.200.001/Model/EmailProcessing.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// EmailProcessing - /// - [DataContract] - public partial class EmailProcessing : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// accountEmailAccountID. - /// assignedToMe. - /// assignedToOwner. - /// includeFailed. - /// result. - /// type. - public EmailProcessing(IntValue account = default(IntValue), StringValue accountEmailAccountID = default(StringValue), BooleanValue assignedToMe = default(BooleanValue), StringValue assignedToOwner = default(StringValue), BooleanValue includeFailed = default(BooleanValue), IEnumerable result = default(IEnumerable), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.AccountEmailAccountID = accountEmailAccountID; - this.AssignedToMe = assignedToMe; - this.AssignedToOwner = assignedToOwner; - this.IncludeFailed = includeFailed; - this.Result = result; - this.Type = type; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public IntValue Account { get; set; } - - /// - /// Gets or Sets AccountEmailAccountID - /// - [DataMember(Name="AccountEmailAccountID", EmitDefaultValue=false)] - public StringValue AccountEmailAccountID { get; set; } - - /// - /// Gets or Sets AssignedToMe - /// - [DataMember(Name="AssignedToMe", EmitDefaultValue=false)] - public BooleanValue AssignedToMe { get; set; } - - /// - /// Gets or Sets AssignedToOwner - /// - [DataMember(Name="AssignedToOwner", EmitDefaultValue=false)] - public StringValue AssignedToOwner { get; set; } - - /// - /// Gets or Sets IncludeFailed - /// - [DataMember(Name="IncludeFailed", EmitDefaultValue=false)] - public BooleanValue IncludeFailed { get; set; } - - /// - /// Gets or Sets Result - /// - [DataMember(Name="Result", EmitDefaultValue=false)] - public IEnumerable Result { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmailProcessing {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" AccountEmailAccountID: ").Append(AccountEmailAccountID).Append("\n"); - sb.Append(" AssignedToMe: ").Append(AssignedToMe).Append("\n"); - sb.Append(" AssignedToOwner: ").Append(AssignedToOwner).Append("\n"); - sb.Append(" IncludeFailed: ").Append(IncludeFailed).Append("\n"); - sb.Append(" Result: ").Append(Result).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmailProcessing); - } - - /// - /// Returns true if EmailProcessing instances are equal - /// - /// Instance of EmailProcessing to be compared - /// Boolean - public bool Equals(EmailProcessing input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.AccountEmailAccountID == input.AccountEmailAccountID || - (this.AccountEmailAccountID != null && - this.AccountEmailAccountID.Equals(input.AccountEmailAccountID)) - ) && base.Equals(input) && - ( - this.AssignedToMe == input.AssignedToMe || - (this.AssignedToMe != null && - this.AssignedToMe.Equals(input.AssignedToMe)) - ) && base.Equals(input) && - ( - this.AssignedToOwner == input.AssignedToOwner || - (this.AssignedToOwner != null && - this.AssignedToOwner.Equals(input.AssignedToOwner)) - ) && base.Equals(input) && - ( - this.IncludeFailed == input.IncludeFailed || - (this.IncludeFailed != null && - this.IncludeFailed.Equals(input.IncludeFailed)) - ) && base.Equals(input) && - ( - this.Result == input.Result || - this.Result != null && - this.Result.SequenceEqual(input.Result) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.AccountEmailAccountID != null) - hashCode = hashCode * 59 + this.AccountEmailAccountID.GetHashCode(); - if (this.AssignedToMe != null) - hashCode = hashCode * 59 + this.AssignedToMe.GetHashCode(); - if (this.AssignedToOwner != null) - hashCode = hashCode * 59 + this.AssignedToOwner.GetHashCode(); - if (this.IncludeFailed != null) - hashCode = hashCode * 59 + this.IncludeFailed.GetHashCode(); - if (this.Result != null) - hashCode = hashCode * 59 + this.Result.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/EmailProcessingRow.cs b/Default.18.200.001/Model/EmailProcessingRow.cs deleted file mode 100644 index 478a5418..00000000 --- a/Default.18.200.001/Model/EmailProcessingRow.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// EmailProcessingRow - /// - [DataContract] - public partial class EmailProcessingRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// emailAccount. - /// from. - /// mailStatus. - /// owner. - /// selected. - /// startDate. - /// subject. - /// to. - public EmailProcessingRow(StringValue emailAccount = default(StringValue), StringValue from = default(StringValue), StringValue mailStatus = default(StringValue), StringValue owner = default(StringValue), BooleanValue selected = default(BooleanValue), DateTimeValue startDate = default(DateTimeValue), StringValue subject = default(StringValue), StringValue to = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.EmailAccount = emailAccount; - this.From = from; - this.MailStatus = mailStatus; - this.Owner = owner; - this.Selected = selected; - this.StartDate = startDate; - this.Subject = subject; - this.To = to; - } - - /// - /// Gets or Sets EmailAccount - /// - [DataMember(Name="EmailAccount", EmitDefaultValue=false)] - public StringValue EmailAccount { get; set; } - - /// - /// Gets or Sets From - /// - [DataMember(Name="From", EmitDefaultValue=false)] - public StringValue From { get; set; } - - /// - /// Gets or Sets MailStatus - /// - [DataMember(Name="MailStatus", EmitDefaultValue=false)] - public StringValue MailStatus { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets To - /// - [DataMember(Name="To", EmitDefaultValue=false)] - public StringValue To { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmailProcessingRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" EmailAccount: ").Append(EmailAccount).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" MailStatus: ").Append(MailStatus).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmailProcessingRow); - } - - /// - /// Returns true if EmailProcessingRow instances are equal - /// - /// Instance of EmailProcessingRow to be compared - /// Boolean - public bool Equals(EmailProcessingRow input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.EmailAccount == input.EmailAccount || - (this.EmailAccount != null && - this.EmailAccount.Equals(input.EmailAccount)) - ) && base.Equals(input) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && base.Equals(input) && - ( - this.MailStatus == input.MailStatus || - (this.MailStatus != null && - this.MailStatus.Equals(input.MailStatus)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.To == input.To || - (this.To != null && - this.To.Equals(input.To)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.EmailAccount != null) - hashCode = hashCode * 59 + this.EmailAccount.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.MailStatus != null) - hashCode = hashCode * 59 + this.MailStatus.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.To != null) - hashCode = hashCode * 59 + this.To.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Employee.cs b/Default.18.200.001/Model/Employee.cs deleted file mode 100644 index 6fc17ecf..00000000 --- a/Default.18.200.001/Model/Employee.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Employee - /// - [DataContract] - public partial class Employee : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributes. - /// contactInfo. - /// delegates. - /// employeeID. - /// employeeName. - /// employeeSettings. - /// employmentHistory. - /// financialSettings. - /// lastModifiedDateTime. - /// status. - public Employee(IEnumerable attributes = default(IEnumerable), Contact contactInfo = default(Contact), IEnumerable delegates = default(IEnumerable), StringValue employeeID = default(StringValue), StringValue employeeName = default(StringValue), EmployeeSettings employeeSettings = default(EmployeeSettings), IEnumerable employmentHistory = default(IEnumerable), EmployeeFinancialSettings financialSettings = default(EmployeeFinancialSettings), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attributes = attributes; - this.ContactInfo = contactInfo; - this.Delegates = delegates; - this.EmployeeID = employeeID; - this.EmployeeName = employeeName; - this.EmployeeSettings = employeeSettings; - this.EmploymentHistory = employmentHistory; - this.FinancialSettings = financialSettings; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Status = status; - } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets ContactInfo - /// - [DataMember(Name="ContactInfo", EmitDefaultValue=false)] - public Contact ContactInfo { get; set; } - - /// - /// Gets or Sets Delegates - /// - [DataMember(Name="Delegates", EmitDefaultValue=false)] - public IEnumerable Delegates { get; set; } - - /// - /// Gets or Sets EmployeeID - /// - [DataMember(Name="EmployeeID", EmitDefaultValue=false)] - public StringValue EmployeeID { get; set; } - - /// - /// Gets or Sets EmployeeName - /// - [DataMember(Name="EmployeeName", EmitDefaultValue=false)] - public StringValue EmployeeName { get; set; } - - /// - /// Gets or Sets EmployeeSettings - /// - [DataMember(Name="EmployeeSettings", EmitDefaultValue=false)] - public EmployeeSettings EmployeeSettings { get; set; } - - /// - /// Gets or Sets EmploymentHistory - /// - [DataMember(Name="EmploymentHistory", EmitDefaultValue=false)] - public IEnumerable EmploymentHistory { get; set; } - - /// - /// Gets or Sets FinancialSettings - /// - [DataMember(Name="FinancialSettings", EmitDefaultValue=false)] - public EmployeeFinancialSettings FinancialSettings { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Employee {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" ContactInfo: ").Append(ContactInfo).Append("\n"); - sb.Append(" Delegates: ").Append(Delegates).Append("\n"); - sb.Append(" EmployeeID: ").Append(EmployeeID).Append("\n"); - sb.Append(" EmployeeName: ").Append(EmployeeName).Append("\n"); - sb.Append(" EmployeeSettings: ").Append(EmployeeSettings).Append("\n"); - sb.Append(" EmploymentHistory: ").Append(EmploymentHistory).Append("\n"); - sb.Append(" FinancialSettings: ").Append(FinancialSettings).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Employee); - } - - /// - /// Returns true if Employee instances are equal - /// - /// Instance of Employee to be compared - /// Boolean - public bool Equals(Employee input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.ContactInfo == input.ContactInfo || - (this.ContactInfo != null && - this.ContactInfo.Equals(input.ContactInfo)) - ) && base.Equals(input) && - ( - this.Delegates == input.Delegates || - this.Delegates != null && - this.Delegates.SequenceEqual(input.Delegates) - ) && base.Equals(input) && - ( - this.EmployeeID == input.EmployeeID || - (this.EmployeeID != null && - this.EmployeeID.Equals(input.EmployeeID)) - ) && base.Equals(input) && - ( - this.EmployeeName == input.EmployeeName || - (this.EmployeeName != null && - this.EmployeeName.Equals(input.EmployeeName)) - ) && base.Equals(input) && - ( - this.EmployeeSettings == input.EmployeeSettings || - (this.EmployeeSettings != null && - this.EmployeeSettings.Equals(input.EmployeeSettings)) - ) && base.Equals(input) && - ( - this.EmploymentHistory == input.EmploymentHistory || - this.EmploymentHistory != null && - this.EmploymentHistory.SequenceEqual(input.EmploymentHistory) - ) && base.Equals(input) && - ( - this.FinancialSettings == input.FinancialSettings || - (this.FinancialSettings != null && - this.FinancialSettings.Equals(input.FinancialSettings)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.ContactInfo != null) - hashCode = hashCode * 59 + this.ContactInfo.GetHashCode(); - if (this.Delegates != null) - hashCode = hashCode * 59 + this.Delegates.GetHashCode(); - if (this.EmployeeID != null) - hashCode = hashCode * 59 + this.EmployeeID.GetHashCode(); - if (this.EmployeeName != null) - hashCode = hashCode * 59 + this.EmployeeName.GetHashCode(); - if (this.EmployeeSettings != null) - hashCode = hashCode * 59 + this.EmployeeSettings.GetHashCode(); - if (this.EmploymentHistory != null) - hashCode = hashCode * 59 + this.EmploymentHistory.GetHashCode(); - if (this.FinancialSettings != null) - hashCode = hashCode * 59 + this.FinancialSettings.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/EmployeeDelegate.cs b/Default.18.200.001/Model/EmployeeDelegate.cs deleted file mode 100644 index 1a912e64..00000000 --- a/Default.18.200.001/Model/EmployeeDelegate.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// EmployeeDelegate - /// - [DataContract] - public partial class EmployeeDelegate : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _delegate. - /// employeeName. - public EmployeeDelegate(StringValue _delegate = default(StringValue), StringValue employeeName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Delegate = _delegate; - this.EmployeeName = employeeName; - } - - /// - /// Gets or Sets Delegate - /// - [DataMember(Name="Delegate", EmitDefaultValue=false)] - public StringValue Delegate { get; set; } - - /// - /// Gets or Sets EmployeeName - /// - [DataMember(Name="EmployeeName", EmitDefaultValue=false)] - public StringValue EmployeeName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmployeeDelegate {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Delegate: ").Append(Delegate).Append("\n"); - sb.Append(" EmployeeName: ").Append(EmployeeName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmployeeDelegate); - } - - /// - /// Returns true if EmployeeDelegate instances are equal - /// - /// Instance of EmployeeDelegate to be compared - /// Boolean - public bool Equals(EmployeeDelegate input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Delegate == input.Delegate || - (this.Delegate != null && - this.Delegate.Equals(input.Delegate)) - ) && base.Equals(input) && - ( - this.EmployeeName == input.EmployeeName || - (this.EmployeeName != null && - this.EmployeeName.Equals(input.EmployeeName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Delegate != null) - hashCode = hashCode * 59 + this.Delegate.GetHashCode(); - if (this.EmployeeName != null) - hashCode = hashCode * 59 + this.EmployeeName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/EmployeeFinancialSettings.cs b/Default.18.200.001/Model/EmployeeFinancialSettings.cs deleted file mode 100644 index 8a5b2bca..00000000 --- a/Default.18.200.001/Model/EmployeeFinancialSettings.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// EmployeeFinancialSettings - /// - [DataContract] - public partial class EmployeeFinancialSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aPAccount. - /// aPSubaccount. - /// cashAccount. - /// expenseAccount. - /// expenseSubaccount. - /// paymentInstructions. - /// paymentMethod. - /// prepaymentAccount. - /// prepaymentSubaccount. - /// salesAccount. - /// salesSubaccount. - /// taxZone. - /// terms. - public EmployeeFinancialSettings(StringValue aPAccount = default(StringValue), StringValue aPSubaccount = default(StringValue), StringValue cashAccount = default(StringValue), StringValue expenseAccount = default(StringValue), StringValue expenseSubaccount = default(StringValue), BusinessAccountPaymentInstructionDetail paymentInstructions = default(BusinessAccountPaymentInstructionDetail), StringValue paymentMethod = default(StringValue), StringValue prepaymentAccount = default(StringValue), StringValue prepaymentSubaccount = default(StringValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), StringValue taxZone = default(StringValue), StringValue terms = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.APAccount = aPAccount; - this.APSubaccount = aPSubaccount; - this.CashAccount = cashAccount; - this.ExpenseAccount = expenseAccount; - this.ExpenseSubaccount = expenseSubaccount; - this.PaymentInstructions = paymentInstructions; - this.PaymentMethod = paymentMethod; - this.PrepaymentAccount = prepaymentAccount; - this.PrepaymentSubaccount = prepaymentSubaccount; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.TaxZone = taxZone; - this.Terms = terms; - } - - /// - /// Gets or Sets APAccount - /// - [DataMember(Name="APAccount", EmitDefaultValue=false)] - public StringValue APAccount { get; set; } - - /// - /// Gets or Sets APSubaccount - /// - [DataMember(Name="APSubaccount", EmitDefaultValue=false)] - public StringValue APSubaccount { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets ExpenseAccount - /// - [DataMember(Name="ExpenseAccount", EmitDefaultValue=false)] - public StringValue ExpenseAccount { get; set; } - - /// - /// Gets or Sets ExpenseSubaccount - /// - [DataMember(Name="ExpenseSubaccount", EmitDefaultValue=false)] - public StringValue ExpenseSubaccount { get; set; } - - /// - /// Gets or Sets PaymentInstructions - /// - [DataMember(Name="PaymentInstructions", EmitDefaultValue=false)] - public BusinessAccountPaymentInstructionDetail PaymentInstructions { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets PrepaymentAccount - /// - [DataMember(Name="PrepaymentAccount", EmitDefaultValue=false)] - public StringValue PrepaymentAccount { get; set; } - - /// - /// Gets or Sets PrepaymentSubaccount - /// - [DataMember(Name="PrepaymentSubaccount", EmitDefaultValue=false)] - public StringValue PrepaymentSubaccount { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmployeeFinancialSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" APAccount: ").Append(APAccount).Append("\n"); - sb.Append(" APSubaccount: ").Append(APSubaccount).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" ExpenseAccount: ").Append(ExpenseAccount).Append("\n"); - sb.Append(" ExpenseSubaccount: ").Append(ExpenseSubaccount).Append("\n"); - sb.Append(" PaymentInstructions: ").Append(PaymentInstructions).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PrepaymentAccount: ").Append(PrepaymentAccount).Append("\n"); - sb.Append(" PrepaymentSubaccount: ").Append(PrepaymentSubaccount).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmployeeFinancialSettings); - } - - /// - /// Returns true if EmployeeFinancialSettings instances are equal - /// - /// Instance of EmployeeFinancialSettings to be compared - /// Boolean - public bool Equals(EmployeeFinancialSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.APAccount == input.APAccount || - (this.APAccount != null && - this.APAccount.Equals(input.APAccount)) - ) && base.Equals(input) && - ( - this.APSubaccount == input.APSubaccount || - (this.APSubaccount != null && - this.APSubaccount.Equals(input.APSubaccount)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.ExpenseAccount == input.ExpenseAccount || - (this.ExpenseAccount != null && - this.ExpenseAccount.Equals(input.ExpenseAccount)) - ) && base.Equals(input) && - ( - this.ExpenseSubaccount == input.ExpenseSubaccount || - (this.ExpenseSubaccount != null && - this.ExpenseSubaccount.Equals(input.ExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.PaymentInstructions == input.PaymentInstructions || - (this.PaymentInstructions != null && - this.PaymentInstructions.Equals(input.PaymentInstructions)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PrepaymentAccount == input.PrepaymentAccount || - (this.PrepaymentAccount != null && - this.PrepaymentAccount.Equals(input.PrepaymentAccount)) - ) && base.Equals(input) && - ( - this.PrepaymentSubaccount == input.PrepaymentSubaccount || - (this.PrepaymentSubaccount != null && - this.PrepaymentSubaccount.Equals(input.PrepaymentSubaccount)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.APAccount != null) - hashCode = hashCode * 59 + this.APAccount.GetHashCode(); - if (this.APSubaccount != null) - hashCode = hashCode * 59 + this.APSubaccount.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.ExpenseAccount != null) - hashCode = hashCode * 59 + this.ExpenseAccount.GetHashCode(); - if (this.ExpenseSubaccount != null) - hashCode = hashCode * 59 + this.ExpenseSubaccount.GetHashCode(); - if (this.PaymentInstructions != null) - hashCode = hashCode * 59 + this.PaymentInstructions.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PrepaymentAccount != null) - hashCode = hashCode * 59 + this.PrepaymentAccount.GetHashCode(); - if (this.PrepaymentSubaccount != null) - hashCode = hashCode * 59 + this.PrepaymentSubaccount.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/EmployeeSettings.cs b/Default.18.200.001/Model/EmployeeSettings.cs deleted file mode 100644 index 19aa53d7..00000000 --- a/Default.18.200.001/Model/EmployeeSettings.cs +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// EmployeeSettings - /// - [DataContract] - public partial class EmployeeSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// branchID. - /// calendar. - /// currencyID. - /// currencyRateTypeID. - /// departmentID. - /// employeeClass. - /// employeeRefNbr. - /// enableCurrencyOverride. - /// enableRateOverride. - /// laborItem. - /// regularHoursValidation. - /// reportsTo. - /// routeEmails. - /// salesperson. - /// timeCardIsRequired. - /// unionLocalID. - public EmployeeSettings(StringValue branchID = default(StringValue), StringValue calendar = default(StringValue), StringValue currencyID = default(StringValue), StringValue currencyRateTypeID = default(StringValue), StringValue departmentID = default(StringValue), StringValue employeeClass = default(StringValue), StringValue employeeRefNbr = default(StringValue), BooleanValue enableCurrencyOverride = default(BooleanValue), BooleanValue enableRateOverride = default(BooleanValue), StringValue laborItem = default(StringValue), StringValue regularHoursValidation = default(StringValue), StringValue reportsTo = default(StringValue), BooleanValue routeEmails = default(BooleanValue), StringValue salesperson = default(StringValue), BooleanValue timeCardIsRequired = default(BooleanValue), StringValue unionLocalID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BranchID = branchID; - this.Calendar = calendar; - this.CurrencyID = currencyID; - this.CurrencyRateTypeID = currencyRateTypeID; - this.DepartmentID = departmentID; - this.EmployeeClass = employeeClass; - this.EmployeeRefNbr = employeeRefNbr; - this.EnableCurrencyOverride = enableCurrencyOverride; - this.EnableRateOverride = enableRateOverride; - this.LaborItem = laborItem; - this.RegularHoursValidation = regularHoursValidation; - this.ReportsTo = reportsTo; - this.RouteEmails = routeEmails; - this.Salesperson = salesperson; - this.TimeCardIsRequired = timeCardIsRequired; - this.UnionLocalID = unionLocalID; - } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets Calendar - /// - [DataMember(Name="Calendar", EmitDefaultValue=false)] - public StringValue Calendar { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRateTypeID - /// - [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] - public StringValue CurrencyRateTypeID { get; set; } - - /// - /// Gets or Sets DepartmentID - /// - [DataMember(Name="DepartmentID", EmitDefaultValue=false)] - public StringValue DepartmentID { get; set; } - - /// - /// Gets or Sets EmployeeClass - /// - [DataMember(Name="EmployeeClass", EmitDefaultValue=false)] - public StringValue EmployeeClass { get; set; } - - /// - /// Gets or Sets EmployeeRefNbr - /// - [DataMember(Name="EmployeeRefNbr", EmitDefaultValue=false)] - public StringValue EmployeeRefNbr { get; set; } - - /// - /// Gets or Sets EnableCurrencyOverride - /// - [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] - public BooleanValue EnableCurrencyOverride { get; set; } - - /// - /// Gets or Sets EnableRateOverride - /// - [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] - public BooleanValue EnableRateOverride { get; set; } - - /// - /// Gets or Sets LaborItem - /// - [DataMember(Name="LaborItem", EmitDefaultValue=false)] - public StringValue LaborItem { get; set; } - - /// - /// Gets or Sets RegularHoursValidation - /// - [DataMember(Name="RegularHoursValidation", EmitDefaultValue=false)] - public StringValue RegularHoursValidation { get; set; } - - /// - /// Gets or Sets ReportsTo - /// - [DataMember(Name="ReportsTo", EmitDefaultValue=false)] - public StringValue ReportsTo { get; set; } - - /// - /// Gets or Sets RouteEmails - /// - [DataMember(Name="RouteEmails", EmitDefaultValue=false)] - public BooleanValue RouteEmails { get; set; } - - /// - /// Gets or Sets Salesperson - /// - [DataMember(Name="Salesperson", EmitDefaultValue=false)] - public StringValue Salesperson { get; set; } - - /// - /// Gets or Sets TimeCardIsRequired - /// - [DataMember(Name="TimeCardIsRequired", EmitDefaultValue=false)] - public BooleanValue TimeCardIsRequired { get; set; } - - /// - /// Gets or Sets UnionLocalID - /// - [DataMember(Name="UnionLocalID", EmitDefaultValue=false)] - public StringValue UnionLocalID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmployeeSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" Calendar: ").Append(Calendar).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRateTypeID: ").Append(CurrencyRateTypeID).Append("\n"); - sb.Append(" DepartmentID: ").Append(DepartmentID).Append("\n"); - sb.Append(" EmployeeClass: ").Append(EmployeeClass).Append("\n"); - sb.Append(" EmployeeRefNbr: ").Append(EmployeeRefNbr).Append("\n"); - sb.Append(" EnableCurrencyOverride: ").Append(EnableCurrencyOverride).Append("\n"); - sb.Append(" EnableRateOverride: ").Append(EnableRateOverride).Append("\n"); - sb.Append(" LaborItem: ").Append(LaborItem).Append("\n"); - sb.Append(" RegularHoursValidation: ").Append(RegularHoursValidation).Append("\n"); - sb.Append(" ReportsTo: ").Append(ReportsTo).Append("\n"); - sb.Append(" RouteEmails: ").Append(RouteEmails).Append("\n"); - sb.Append(" Salesperson: ").Append(Salesperson).Append("\n"); - sb.Append(" TimeCardIsRequired: ").Append(TimeCardIsRequired).Append("\n"); - sb.Append(" UnionLocalID: ").Append(UnionLocalID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmployeeSettings); - } - - /// - /// Returns true if EmployeeSettings instances are equal - /// - /// Instance of EmployeeSettings to be compared - /// Boolean - public bool Equals(EmployeeSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.Calendar == input.Calendar || - (this.Calendar != null && - this.Calendar.Equals(input.Calendar)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRateTypeID == input.CurrencyRateTypeID || - (this.CurrencyRateTypeID != null && - this.CurrencyRateTypeID.Equals(input.CurrencyRateTypeID)) - ) && base.Equals(input) && - ( - this.DepartmentID == input.DepartmentID || - (this.DepartmentID != null && - this.DepartmentID.Equals(input.DepartmentID)) - ) && base.Equals(input) && - ( - this.EmployeeClass == input.EmployeeClass || - (this.EmployeeClass != null && - this.EmployeeClass.Equals(input.EmployeeClass)) - ) && base.Equals(input) && - ( - this.EmployeeRefNbr == input.EmployeeRefNbr || - (this.EmployeeRefNbr != null && - this.EmployeeRefNbr.Equals(input.EmployeeRefNbr)) - ) && base.Equals(input) && - ( - this.EnableCurrencyOverride == input.EnableCurrencyOverride || - (this.EnableCurrencyOverride != null && - this.EnableCurrencyOverride.Equals(input.EnableCurrencyOverride)) - ) && base.Equals(input) && - ( - this.EnableRateOverride == input.EnableRateOverride || - (this.EnableRateOverride != null && - this.EnableRateOverride.Equals(input.EnableRateOverride)) - ) && base.Equals(input) && - ( - this.LaborItem == input.LaborItem || - (this.LaborItem != null && - this.LaborItem.Equals(input.LaborItem)) - ) && base.Equals(input) && - ( - this.RegularHoursValidation == input.RegularHoursValidation || - (this.RegularHoursValidation != null && - this.RegularHoursValidation.Equals(input.RegularHoursValidation)) - ) && base.Equals(input) && - ( - this.ReportsTo == input.ReportsTo || - (this.ReportsTo != null && - this.ReportsTo.Equals(input.ReportsTo)) - ) && base.Equals(input) && - ( - this.RouteEmails == input.RouteEmails || - (this.RouteEmails != null && - this.RouteEmails.Equals(input.RouteEmails)) - ) && base.Equals(input) && - ( - this.Salesperson == input.Salesperson || - (this.Salesperson != null && - this.Salesperson.Equals(input.Salesperson)) - ) && base.Equals(input) && - ( - this.TimeCardIsRequired == input.TimeCardIsRequired || - (this.TimeCardIsRequired != null && - this.TimeCardIsRequired.Equals(input.TimeCardIsRequired)) - ) && base.Equals(input) && - ( - this.UnionLocalID == input.UnionLocalID || - (this.UnionLocalID != null && - this.UnionLocalID.Equals(input.UnionLocalID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.Calendar != null) - hashCode = hashCode * 59 + this.Calendar.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRateTypeID != null) - hashCode = hashCode * 59 + this.CurrencyRateTypeID.GetHashCode(); - if (this.DepartmentID != null) - hashCode = hashCode * 59 + this.DepartmentID.GetHashCode(); - if (this.EmployeeClass != null) - hashCode = hashCode * 59 + this.EmployeeClass.GetHashCode(); - if (this.EmployeeRefNbr != null) - hashCode = hashCode * 59 + this.EmployeeRefNbr.GetHashCode(); - if (this.EnableCurrencyOverride != null) - hashCode = hashCode * 59 + this.EnableCurrencyOverride.GetHashCode(); - if (this.EnableRateOverride != null) - hashCode = hashCode * 59 + this.EnableRateOverride.GetHashCode(); - if (this.LaborItem != null) - hashCode = hashCode * 59 + this.LaborItem.GetHashCode(); - if (this.RegularHoursValidation != null) - hashCode = hashCode * 59 + this.RegularHoursValidation.GetHashCode(); - if (this.ReportsTo != null) - hashCode = hashCode * 59 + this.ReportsTo.GetHashCode(); - if (this.RouteEmails != null) - hashCode = hashCode * 59 + this.RouteEmails.GetHashCode(); - if (this.Salesperson != null) - hashCode = hashCode * 59 + this.Salesperson.GetHashCode(); - if (this.TimeCardIsRequired != null) - hashCode = hashCode * 59 + this.TimeCardIsRequired.GetHashCode(); - if (this.UnionLocalID != null) - hashCode = hashCode * 59 + this.UnionLocalID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/EmploymentHistoryRecord.cs b/Default.18.200.001/Model/EmploymentHistoryRecord.cs deleted file mode 100644 index ce4844c2..00000000 --- a/Default.18.200.001/Model/EmploymentHistoryRecord.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// EmploymentHistoryRecord - /// - [DataContract] - public partial class EmploymentHistoryRecord : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// endDate. - /// lineNbr. - /// positionID. - /// rehireEligible. - /// startDate. - /// startReason. - /// terminated. - /// terminationReason. - public EmploymentHistoryRecord(BooleanValue active = default(BooleanValue), DateTimeValue endDate = default(DateTimeValue), IntValue lineNbr = default(IntValue), StringValue positionID = default(StringValue), BooleanValue rehireEligible = default(BooleanValue), DateTimeValue startDate = default(DateTimeValue), StringValue startReason = default(StringValue), BooleanValue terminated = default(BooleanValue), StringValue terminationReason = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.EndDate = endDate; - this.LineNbr = lineNbr; - this.PositionID = positionID; - this.RehireEligible = rehireEligible; - this.StartDate = startDate; - this.StartReason = startReason; - this.Terminated = terminated; - this.TerminationReason = terminationReason; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets PositionID - /// - [DataMember(Name="PositionID", EmitDefaultValue=false)] - public StringValue PositionID { get; set; } - - /// - /// Gets or Sets RehireEligible - /// - [DataMember(Name="RehireEligible", EmitDefaultValue=false)] - public BooleanValue RehireEligible { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets StartReason - /// - [DataMember(Name="StartReason", EmitDefaultValue=false)] - public StringValue StartReason { get; set; } - - /// - /// Gets or Sets Terminated - /// - [DataMember(Name="Terminated", EmitDefaultValue=false)] - public BooleanValue Terminated { get; set; } - - /// - /// Gets or Sets TerminationReason - /// - [DataMember(Name="TerminationReason", EmitDefaultValue=false)] - public StringValue TerminationReason { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EmploymentHistoryRecord {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" PositionID: ").Append(PositionID).Append("\n"); - sb.Append(" RehireEligible: ").Append(RehireEligible).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" StartReason: ").Append(StartReason).Append("\n"); - sb.Append(" Terminated: ").Append(Terminated).Append("\n"); - sb.Append(" TerminationReason: ").Append(TerminationReason).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EmploymentHistoryRecord); - } - - /// - /// Returns true if EmploymentHistoryRecord instances are equal - /// - /// Instance of EmploymentHistoryRecord to be compared - /// Boolean - public bool Equals(EmploymentHistoryRecord input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.PositionID == input.PositionID || - (this.PositionID != null && - this.PositionID.Equals(input.PositionID)) - ) && base.Equals(input) && - ( - this.RehireEligible == input.RehireEligible || - (this.RehireEligible != null && - this.RehireEligible.Equals(input.RehireEligible)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.StartReason == input.StartReason || - (this.StartReason != null && - this.StartReason.Equals(input.StartReason)) - ) && base.Equals(input) && - ( - this.Terminated == input.Terminated || - (this.Terminated != null && - this.Terminated.Equals(input.Terminated)) - ) && base.Equals(input) && - ( - this.TerminationReason == input.TerminationReason || - (this.TerminationReason != null && - this.TerminationReason.Equals(input.TerminationReason)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.PositionID != null) - hashCode = hashCode * 59 + this.PositionID.GetHashCode(); - if (this.RehireEligible != null) - hashCode = hashCode * 59 + this.RehireEligible.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.StartReason != null) - hashCode = hashCode * 59 + this.StartReason.GetHashCode(); - if (this.Terminated != null) - hashCode = hashCode * 59 + this.Terminated.GetHashCode(); - if (this.TerminationReason != null) - hashCode = hashCode * 59 + this.TerminationReason.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Event.cs b/Default.18.200.001/Model/Event.cs deleted file mode 100644 index a818a7e1..00000000 --- a/Default.18.200.001/Model/Event.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Event - /// - [DataContract] - public partial class Event : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allDay. - /// attendees. - /// body. - /// category. - /// endDate. - /// endTime. - /// _internal. - /// location. - /// noteID. - /// priority. - /// relatedActivities. - /// relatedEntityDescription. - /// reminder. - /// showAs. - /// startDate. - /// startTime. - /// status. - /// summary. - /// timeActivity. - public Event(BooleanValue allDay = default(BooleanValue), IEnumerable attendees = default(IEnumerable), StringValue body = default(StringValue), StringValue category = default(StringValue), DateTimeValue endDate = default(DateTimeValue), DateTimeValue endTime = default(DateTimeValue), BooleanValue _internal = default(BooleanValue), StringValue location = default(StringValue), GuidValue noteID = default(GuidValue), StringValue priority = default(StringValue), IEnumerable relatedActivities = default(IEnumerable), StringValue relatedEntityDescription = default(StringValue), ReminderDetail reminder = default(ReminderDetail), StringValue showAs = default(StringValue), DateTimeValue startDate = default(DateTimeValue), DateTimeValue startTime = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), EventTimeActivity timeActivity = default(EventTimeActivity), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllDay = allDay; - this.Attendees = attendees; - this.Body = body; - this.Category = category; - this.EndDate = endDate; - this.EndTime = endTime; - this.Internal = _internal; - this.Location = location; - this.NoteID = noteID; - this.Priority = priority; - this.RelatedActivities = relatedActivities; - this.RelatedEntityDescription = relatedEntityDescription; - this.Reminder = reminder; - this.ShowAs = showAs; - this.StartDate = startDate; - this.StartTime = startTime; - this.Status = status; - this.Summary = summary; - this.TimeActivity = timeActivity; - } - - /// - /// Gets or Sets AllDay - /// - [DataMember(Name="AllDay", EmitDefaultValue=false)] - public BooleanValue AllDay { get; set; } - - /// - /// Gets or Sets Attendees - /// - [DataMember(Name="Attendees", EmitDefaultValue=false)] - public IEnumerable Attendees { get; set; } - - /// - /// Gets or Sets Body - /// - [DataMember(Name="Body", EmitDefaultValue=false)] - public StringValue Body { get; set; } - - /// - /// Gets or Sets Category - /// - [DataMember(Name="Category", EmitDefaultValue=false)] - public StringValue Category { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets EndTime - /// - [DataMember(Name="EndTime", EmitDefaultValue=false)] - public DateTimeValue EndTime { get; set; } - - /// - /// Gets or Sets Internal - /// - [DataMember(Name="Internal", EmitDefaultValue=false)] - public BooleanValue Internal { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets NoteID - /// - [DataMember(Name="NoteID", EmitDefaultValue=false)] - public GuidValue NoteID { get; set; } - - /// - /// Gets or Sets Priority - /// - [DataMember(Name="Priority", EmitDefaultValue=false)] - public StringValue Priority { get; set; } - - /// - /// Gets or Sets RelatedActivities - /// - [DataMember(Name="RelatedActivities", EmitDefaultValue=false)] - public IEnumerable RelatedActivities { get; set; } - - /// - /// Gets or Sets RelatedEntityDescription - /// - [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] - public StringValue RelatedEntityDescription { get; set; } - - /// - /// Gets or Sets Reminder - /// - [DataMember(Name="Reminder", EmitDefaultValue=false)] - public ReminderDetail Reminder { get; set; } - - /// - /// Gets or Sets ShowAs - /// - [DataMember(Name="ShowAs", EmitDefaultValue=false)] - public StringValue ShowAs { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets StartTime - /// - [DataMember(Name="StartTime", EmitDefaultValue=false)] - public DateTimeValue StartTime { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } - - /// - /// Gets or Sets TimeActivity - /// - [DataMember(Name="TimeActivity", EmitDefaultValue=false)] - public EventTimeActivity TimeActivity { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Event {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllDay: ").Append(AllDay).Append("\n"); - sb.Append(" Attendees: ").Append(Attendees).Append("\n"); - sb.Append(" Body: ").Append(Body).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" EndTime: ").Append(EndTime).Append("\n"); - sb.Append(" Internal: ").Append(Internal).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" NoteID: ").Append(NoteID).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" RelatedActivities: ").Append(RelatedActivities).Append("\n"); - sb.Append(" RelatedEntityDescription: ").Append(RelatedEntityDescription).Append("\n"); - sb.Append(" Reminder: ").Append(Reminder).Append("\n"); - sb.Append(" ShowAs: ").Append(ShowAs).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" StartTime: ").Append(StartTime).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeActivity: ").Append(TimeActivity).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Event); - } - - /// - /// Returns true if Event instances are equal - /// - /// Instance of Event to be compared - /// Boolean - public bool Equals(Event input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AllDay == input.AllDay || - (this.AllDay != null && - this.AllDay.Equals(input.AllDay)) - ) && base.Equals(input) && - ( - this.Attendees == input.Attendees || - this.Attendees != null && - this.Attendees.SequenceEqual(input.Attendees) - ) && base.Equals(input) && - ( - this.Body == input.Body || - (this.Body != null && - this.Body.Equals(input.Body)) - ) && base.Equals(input) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.EndTime == input.EndTime || - (this.EndTime != null && - this.EndTime.Equals(input.EndTime)) - ) && base.Equals(input) && - ( - this.Internal == input.Internal || - (this.Internal != null && - this.Internal.Equals(input.Internal)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.NoteID == input.NoteID || - (this.NoteID != null && - this.NoteID.Equals(input.NoteID)) - ) && base.Equals(input) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && base.Equals(input) && - ( - this.RelatedActivities == input.RelatedActivities || - this.RelatedActivities != null && - this.RelatedActivities.SequenceEqual(input.RelatedActivities) - ) && base.Equals(input) && - ( - this.RelatedEntityDescription == input.RelatedEntityDescription || - (this.RelatedEntityDescription != null && - this.RelatedEntityDescription.Equals(input.RelatedEntityDescription)) - ) && base.Equals(input) && - ( - this.Reminder == input.Reminder || - (this.Reminder != null && - this.Reminder.Equals(input.Reminder)) - ) && base.Equals(input) && - ( - this.ShowAs == input.ShowAs || - (this.ShowAs != null && - this.ShowAs.Equals(input.ShowAs)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.StartTime == input.StartTime || - (this.StartTime != null && - this.StartTime.Equals(input.StartTime)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeActivity == input.TimeActivity || - (this.TimeActivity != null && - this.TimeActivity.Equals(input.TimeActivity)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllDay != null) - hashCode = hashCode * 59 + this.AllDay.GetHashCode(); - if (this.Attendees != null) - hashCode = hashCode * 59 + this.Attendees.GetHashCode(); - if (this.Body != null) - hashCode = hashCode * 59 + this.Body.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.EndTime != null) - hashCode = hashCode * 59 + this.EndTime.GetHashCode(); - if (this.Internal != null) - hashCode = hashCode * 59 + this.Internal.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.NoteID != null) - hashCode = hashCode * 59 + this.NoteID.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.RelatedActivities != null) - hashCode = hashCode * 59 + this.RelatedActivities.GetHashCode(); - if (this.RelatedEntityDescription != null) - hashCode = hashCode * 59 + this.RelatedEntityDescription.GetHashCode(); - if (this.Reminder != null) - hashCode = hashCode * 59 + this.Reminder.GetHashCode(); - if (this.ShowAs != null) - hashCode = hashCode * 59 + this.ShowAs.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.StartTime != null) - hashCode = hashCode * 59 + this.StartTime.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeActivity != null) - hashCode = hashCode * 59 + this.TimeActivity.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/EventAttendee.cs b/Default.18.200.001/Model/EventAttendee.cs deleted file mode 100644 index a5d3d18a..00000000 --- a/Default.18.200.001/Model/EventAttendee.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// EventAttendee - /// - [DataContract] - public partial class EventAttendee : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// comment. - /// email. - /// eventNoteID. - /// invitationStatus. - /// key. - /// name. - /// nameAttendeeName. - /// type. - public EventAttendee(StringValue comment = default(StringValue), StringValue email = default(StringValue), GuidValue eventNoteID = default(GuidValue), StringValue invitationStatus = default(StringValue), StringValue key = default(StringValue), StringValue name = default(StringValue), StringValue nameAttendeeName = default(StringValue), IntValue type = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Comment = comment; - this.Email = email; - this.EventNoteID = eventNoteID; - this.InvitationStatus = invitationStatus; - this.Key = key; - this.Name = name; - this.NameAttendeeName = nameAttendeeName; - this.Type = type; - } - - /// - /// Gets or Sets Comment - /// - [DataMember(Name="Comment", EmitDefaultValue=false)] - public StringValue Comment { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets EventNoteID - /// - [DataMember(Name="EventNoteID", EmitDefaultValue=false)] - public GuidValue EventNoteID { get; set; } - - /// - /// Gets or Sets InvitationStatus - /// - [DataMember(Name="InvitationStatus", EmitDefaultValue=false)] - public StringValue InvitationStatus { get; set; } - - /// - /// Gets or Sets Key - /// - [DataMember(Name="Key", EmitDefaultValue=false)] - public StringValue Key { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Gets or Sets NameAttendeeName - /// - [DataMember(Name="NameAttendeeName", EmitDefaultValue=false)] - public StringValue NameAttendeeName { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public IntValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EventAttendee {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Comment: ").Append(Comment).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" EventNoteID: ").Append(EventNoteID).Append("\n"); - sb.Append(" InvitationStatus: ").Append(InvitationStatus).Append("\n"); - sb.Append(" Key: ").Append(Key).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" NameAttendeeName: ").Append(NameAttendeeName).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EventAttendee); - } - - /// - /// Returns true if EventAttendee instances are equal - /// - /// Instance of EventAttendee to be compared - /// Boolean - public bool Equals(EventAttendee input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Comment == input.Comment || - (this.Comment != null && - this.Comment.Equals(input.Comment)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.EventNoteID == input.EventNoteID || - (this.EventNoteID != null && - this.EventNoteID.Equals(input.EventNoteID)) - ) && base.Equals(input) && - ( - this.InvitationStatus == input.InvitationStatus || - (this.InvitationStatus != null && - this.InvitationStatus.Equals(input.InvitationStatus)) - ) && base.Equals(input) && - ( - this.Key == input.Key || - (this.Key != null && - this.Key.Equals(input.Key)) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.NameAttendeeName == input.NameAttendeeName || - (this.NameAttendeeName != null && - this.NameAttendeeName.Equals(input.NameAttendeeName)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Comment != null) - hashCode = hashCode * 59 + this.Comment.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.EventNoteID != null) - hashCode = hashCode * 59 + this.EventNoteID.GetHashCode(); - if (this.InvitationStatus != null) - hashCode = hashCode * 59 + this.InvitationStatus.GetHashCode(); - if (this.Key != null) - hashCode = hashCode * 59 + this.Key.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.NameAttendeeName != null) - hashCode = hashCode * 59 + this.NameAttendeeName.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/EventRelatedActivity.cs b/Default.18.200.001/Model/EventRelatedActivity.cs deleted file mode 100644 index da4a09b4..00000000 --- a/Default.18.200.001/Model/EventRelatedActivity.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// EventRelatedActivity - /// - [DataContract] - public partial class EventRelatedActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billable. - /// billableOvertime. - /// billableTime. - /// overtime. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - public EventRelatedActivity(BooleanValue billable = default(BooleanValue), StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue overtime = default(StringValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.Overtime = overtime; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EventRelatedActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EventRelatedActivity); - } - - /// - /// Returns true if EventRelatedActivity instances are equal - /// - /// Instance of EventRelatedActivity to be compared - /// Boolean - public bool Equals(EventRelatedActivity input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/EventTimeActivity.cs b/Default.18.200.001/Model/EventTimeActivity.cs deleted file mode 100644 index 63880dab..00000000 --- a/Default.18.200.001/Model/EventTimeActivity.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// EventTimeActivity - /// - [DataContract] - public partial class EventTimeActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billableOvertime. - /// billableTime. - /// overtime. - /// timeSpent. - public EventTimeActivity(StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue overtime = default(StringValue), StringValue timeSpent = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.Overtime = overtime; - this.TimeSpent = timeSpent; - } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class EventTimeActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as EventTimeActivity); - } - - /// - /// Returns true if EventTimeActivity instances are equal - /// - /// Instance of EventTimeActivity to be compared - /// Boolean - public bool Equals(EventTimeActivity input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ExpenseClaim.cs b/Default.18.200.001/Model/ExpenseClaim.cs deleted file mode 100644 index a6593eb9..00000000 --- a/Default.18.200.001/Model/ExpenseClaim.cs +++ /dev/null @@ -1,462 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ExpenseClaim - /// - [DataContract] - public partial class ExpenseClaim : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// approvalDate. - /// approvalDetails. - /// baseCurrencyID. - /// claimedBy. - /// claimTotal. - /// currencyID. - /// currencyRate. - /// customerID. - /// date. - /// departmentID. - /// description. - /// details. - /// financialDetails. - /// lastModifiedDateTime. - /// locationID. - /// reciprocalRate. - /// refNbr. - /// status. - /// taxDetails. - /// taxTotal. - /// vATExemptTotal. - /// vATTaxableTotal. - public ExpenseClaim(DateTimeValue approvalDate = default(DateTimeValue), IEnumerable approvalDetails = default(IEnumerable), StringValue baseCurrencyID = default(StringValue), StringValue claimedBy = default(StringValue), DecimalValue claimTotal = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue currencyRate = default(DecimalValue), StringValue customerID = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue departmentID = default(StringValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), ExpenseClaimFinancialDetail financialDetails = default(ExpenseClaimFinancialDetail), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue locationID = default(StringValue), DecimalValue reciprocalRate = default(DecimalValue), StringValue refNbr = default(StringValue), StringValue status = default(StringValue), IEnumerable taxDetails = default(IEnumerable), DecimalValue taxTotal = default(DecimalValue), DecimalValue vATExemptTotal = default(DecimalValue), DecimalValue vATTaxableTotal = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApprovalDate = approvalDate; - this.ApprovalDetails = approvalDetails; - this.BaseCurrencyID = baseCurrencyID; - this.ClaimedBy = claimedBy; - this.ClaimTotal = claimTotal; - this.CurrencyID = currencyID; - this.CurrencyRate = currencyRate; - this.CustomerID = customerID; - this.Date = date; - this.DepartmentID = departmentID; - this.Description = description; - this.Details = details; - this.FinancialDetails = financialDetails; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LocationID = locationID; - this.ReciprocalRate = reciprocalRate; - this.RefNbr = refNbr; - this.Status = status; - this.TaxDetails = taxDetails; - this.TaxTotal = taxTotal; - this.VATExemptTotal = vATExemptTotal; - this.VATTaxableTotal = vATTaxableTotal; - } - - /// - /// Gets or Sets ApprovalDate - /// - [DataMember(Name="ApprovalDate", EmitDefaultValue=false)] - public DateTimeValue ApprovalDate { get; set; } - - /// - /// Gets or Sets ApprovalDetails - /// - [DataMember(Name="ApprovalDetails", EmitDefaultValue=false)] - public IEnumerable ApprovalDetails { get; set; } - - /// - /// Gets or Sets BaseCurrencyID - /// - [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] - public StringValue BaseCurrencyID { get; set; } - - /// - /// Gets or Sets ClaimedBy - /// - [DataMember(Name="ClaimedBy", EmitDefaultValue=false)] - public StringValue ClaimedBy { get; set; } - - /// - /// Gets or Sets ClaimTotal - /// - [DataMember(Name="ClaimTotal", EmitDefaultValue=false)] - public DecimalValue ClaimTotal { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRate - /// - [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] - public DecimalValue CurrencyRate { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets DepartmentID - /// - [DataMember(Name="DepartmentID", EmitDefaultValue=false)] - public StringValue DepartmentID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets FinancialDetails - /// - [DataMember(Name="FinancialDetails", EmitDefaultValue=false)] - public ExpenseClaimFinancialDetail FinancialDetails { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets ReciprocalRate - /// - [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] - public DecimalValue ReciprocalRate { get; set; } - - /// - /// Gets or Sets RefNbr - /// - [DataMember(Name="RefNbr", EmitDefaultValue=false)] - public StringValue RefNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public IEnumerable TaxDetails { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Gets or Sets VATExemptTotal - /// - [DataMember(Name="VATExemptTotal", EmitDefaultValue=false)] - public DecimalValue VATExemptTotal { get; set; } - - /// - /// Gets or Sets VATTaxableTotal - /// - [DataMember(Name="VATTaxableTotal", EmitDefaultValue=false)] - public DecimalValue VATTaxableTotal { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExpenseClaim {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApprovalDate: ").Append(ApprovalDate).Append("\n"); - sb.Append(" ApprovalDetails: ").Append(ApprovalDetails).Append("\n"); - sb.Append(" BaseCurrencyID: ").Append(BaseCurrencyID).Append("\n"); - sb.Append(" ClaimedBy: ").Append(ClaimedBy).Append("\n"); - sb.Append(" ClaimTotal: ").Append(ClaimTotal).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" DepartmentID: ").Append(DepartmentID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" FinancialDetails: ").Append(FinancialDetails).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" ReciprocalRate: ").Append(ReciprocalRate).Append("\n"); - sb.Append(" RefNbr: ").Append(RefNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" VATExemptTotal: ").Append(VATExemptTotal).Append("\n"); - sb.Append(" VATTaxableTotal: ").Append(VATTaxableTotal).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExpenseClaim); - } - - /// - /// Returns true if ExpenseClaim instances are equal - /// - /// Instance of ExpenseClaim to be compared - /// Boolean - public bool Equals(ExpenseClaim input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ApprovalDate == input.ApprovalDate || - (this.ApprovalDate != null && - this.ApprovalDate.Equals(input.ApprovalDate)) - ) && base.Equals(input) && - ( - this.ApprovalDetails == input.ApprovalDetails || - this.ApprovalDetails != null && - this.ApprovalDetails.SequenceEqual(input.ApprovalDetails) - ) && base.Equals(input) && - ( - this.BaseCurrencyID == input.BaseCurrencyID || - (this.BaseCurrencyID != null && - this.BaseCurrencyID.Equals(input.BaseCurrencyID)) - ) && base.Equals(input) && - ( - this.ClaimedBy == input.ClaimedBy || - (this.ClaimedBy != null && - this.ClaimedBy.Equals(input.ClaimedBy)) - ) && base.Equals(input) && - ( - this.ClaimTotal == input.ClaimTotal || - (this.ClaimTotal != null && - this.ClaimTotal.Equals(input.ClaimTotal)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRate == input.CurrencyRate || - (this.CurrencyRate != null && - this.CurrencyRate.Equals(input.CurrencyRate)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.DepartmentID == input.DepartmentID || - (this.DepartmentID != null && - this.DepartmentID.Equals(input.DepartmentID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.FinancialDetails == input.FinancialDetails || - (this.FinancialDetails != null && - this.FinancialDetails.Equals(input.FinancialDetails)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.ReciprocalRate == input.ReciprocalRate || - (this.ReciprocalRate != null && - this.ReciprocalRate.Equals(input.ReciprocalRate)) - ) && base.Equals(input) && - ( - this.RefNbr == input.RefNbr || - (this.RefNbr != null && - this.RefNbr.Equals(input.RefNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.VATExemptTotal == input.VATExemptTotal || - (this.VATExemptTotal != null && - this.VATExemptTotal.Equals(input.VATExemptTotal)) - ) && base.Equals(input) && - ( - this.VATTaxableTotal == input.VATTaxableTotal || - (this.VATTaxableTotal != null && - this.VATTaxableTotal.Equals(input.VATTaxableTotal)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApprovalDate != null) - hashCode = hashCode * 59 + this.ApprovalDate.GetHashCode(); - if (this.ApprovalDetails != null) - hashCode = hashCode * 59 + this.ApprovalDetails.GetHashCode(); - if (this.BaseCurrencyID != null) - hashCode = hashCode * 59 + this.BaseCurrencyID.GetHashCode(); - if (this.ClaimedBy != null) - hashCode = hashCode * 59 + this.ClaimedBy.GetHashCode(); - if (this.ClaimTotal != null) - hashCode = hashCode * 59 + this.ClaimTotal.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRate != null) - hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.DepartmentID != null) - hashCode = hashCode * 59 + this.DepartmentID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.FinancialDetails != null) - hashCode = hashCode * 59 + this.FinancialDetails.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.ReciprocalRate != null) - hashCode = hashCode * 59 + this.ReciprocalRate.GetHashCode(); - if (this.RefNbr != null) - hashCode = hashCode * 59 + this.RefNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.VATExemptTotal != null) - hashCode = hashCode * 59 + this.VATExemptTotal.GetHashCode(); - if (this.VATTaxableTotal != null) - hashCode = hashCode * 59 + this.VATTaxableTotal.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ExpenseClaimAPDocument.cs b/Default.18.200.001/Model/ExpenseClaimAPDocument.cs deleted file mode 100644 index 8200f61f..00000000 --- a/Default.18.200.001/Model/ExpenseClaimAPDocument.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ExpenseClaimAPDocument - /// - [DataContract] - public partial class ExpenseClaimAPDocument : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// refNbr. - /// status. - /// taxZone. - /// type. - public ExpenseClaimAPDocument(DecimalValue amount = default(DecimalValue), StringValue refNbr = default(StringValue), StringValue status = default(StringValue), StringValue taxZone = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.RefNbr = refNbr; - this.Status = status; - this.TaxZone = taxZone; - this.Type = type; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets RefNbr - /// - [DataMember(Name="RefNbr", EmitDefaultValue=false)] - public StringValue RefNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExpenseClaimAPDocument {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" RefNbr: ").Append(RefNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExpenseClaimAPDocument); - } - - /// - /// Returns true if ExpenseClaimAPDocument instances are equal - /// - /// Instance of ExpenseClaimAPDocument to be compared - /// Boolean - public bool Equals(ExpenseClaimAPDocument input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.RefNbr == input.RefNbr || - (this.RefNbr != null && - this.RefNbr.Equals(input.RefNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.RefNbr != null) - hashCode = hashCode * 59 + this.RefNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ExpenseClaimDetails.cs b/Default.18.200.001/Model/ExpenseClaimDetails.cs deleted file mode 100644 index 5b9de6ed..00000000 --- a/Default.18.200.001/Model/ExpenseClaimDetails.cs +++ /dev/null @@ -1,606 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ExpenseClaimDetails - /// - [DataContract] - public partial class ExpenseClaimDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// amountInClaimCurrency. - /// aPRefNbr. - /// aRRefNbr. - /// billable. - /// branch. - /// claimAmount. - /// costCode. - /// currencyID. - /// customerID. - /// date. - /// description. - /// employeePart. - /// expenseAccount. - /// expenseItemID. - /// expenseSubaccount. - /// locationID. - /// netAmount. - /// projectID. - /// projectTaskID. - /// qty. - /// refNbr. - /// salesAccount. - /// salesSubaccount. - /// status. - /// taxAmount. - /// taxCategory. - /// taxZone. - /// tipAmount. - /// unitCost. - /// uOM. - public ExpenseClaimDetails(DecimalValue amount = default(DecimalValue), DecimalValue amountInClaimCurrency = default(DecimalValue), StringValue aPRefNbr = default(StringValue), StringValue aRRefNbr = default(StringValue), BooleanValue billable = default(BooleanValue), StringValue branch = default(StringValue), DecimalValue claimAmount = default(DecimalValue), StringValue costCode = default(StringValue), StringValue currencyID = default(StringValue), StringValue customerID = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), DecimalValue employeePart = default(DecimalValue), StringValue expenseAccount = default(StringValue), StringValue expenseItemID = default(StringValue), StringValue expenseSubaccount = default(StringValue), StringValue locationID = default(StringValue), DecimalValue netAmount = default(DecimalValue), StringValue projectID = default(StringValue), StringValue projectTaskID = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue refNbr = default(StringValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), StringValue status = default(StringValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxCategory = default(StringValue), StringValue taxZone = default(StringValue), DecimalValue tipAmount = default(DecimalValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.AmountInClaimCurrency = amountInClaimCurrency; - this.APRefNbr = aPRefNbr; - this.ARRefNbr = aRRefNbr; - this.Billable = billable; - this.Branch = branch; - this.ClaimAmount = claimAmount; - this.CostCode = costCode; - this.CurrencyID = currencyID; - this.CustomerID = customerID; - this.Date = date; - this.Description = description; - this.EmployeePart = employeePart; - this.ExpenseAccount = expenseAccount; - this.ExpenseItemID = expenseItemID; - this.ExpenseSubaccount = expenseSubaccount; - this.LocationID = locationID; - this.NetAmount = netAmount; - this.ProjectID = projectID; - this.ProjectTaskID = projectTaskID; - this.Qty = qty; - this.RefNbr = refNbr; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.Status = status; - this.TaxAmount = taxAmount; - this.TaxCategory = taxCategory; - this.TaxZone = taxZone; - this.TipAmount = tipAmount; - this.UnitCost = unitCost; - this.UOM = uOM; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets AmountInClaimCurrency - /// - [DataMember(Name="AmountInClaimCurrency", EmitDefaultValue=false)] - public DecimalValue AmountInClaimCurrency { get; set; } - - /// - /// Gets or Sets APRefNbr - /// - [DataMember(Name="APRefNbr", EmitDefaultValue=false)] - public StringValue APRefNbr { get; set; } - - /// - /// Gets or Sets ARRefNbr - /// - [DataMember(Name="ARRefNbr", EmitDefaultValue=false)] - public StringValue ARRefNbr { get; set; } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ClaimAmount - /// - [DataMember(Name="ClaimAmount", EmitDefaultValue=false)] - public DecimalValue ClaimAmount { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EmployeePart - /// - [DataMember(Name="EmployeePart", EmitDefaultValue=false)] - public DecimalValue EmployeePart { get; set; } - - /// - /// Gets or Sets ExpenseAccount - /// - [DataMember(Name="ExpenseAccount", EmitDefaultValue=false)] - public StringValue ExpenseAccount { get; set; } - - /// - /// Gets or Sets ExpenseItemID - /// - [DataMember(Name="ExpenseItemID", EmitDefaultValue=false)] - public StringValue ExpenseItemID { get; set; } - - /// - /// Gets or Sets ExpenseSubaccount - /// - [DataMember(Name="ExpenseSubaccount", EmitDefaultValue=false)] - public StringValue ExpenseSubaccount { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets NetAmount - /// - [DataMember(Name="NetAmount", EmitDefaultValue=false)] - public DecimalValue NetAmount { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets RefNbr - /// - [DataMember(Name="RefNbr", EmitDefaultValue=false)] - public StringValue RefNbr { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets TipAmount - /// - [DataMember(Name="TipAmount", EmitDefaultValue=false)] - public DecimalValue TipAmount { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExpenseClaimDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" AmountInClaimCurrency: ").Append(AmountInClaimCurrency).Append("\n"); - sb.Append(" APRefNbr: ").Append(APRefNbr).Append("\n"); - sb.Append(" ARRefNbr: ").Append(ARRefNbr).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ClaimAmount: ").Append(ClaimAmount).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EmployeePart: ").Append(EmployeePart).Append("\n"); - sb.Append(" ExpenseAccount: ").Append(ExpenseAccount).Append("\n"); - sb.Append(" ExpenseItemID: ").Append(ExpenseItemID).Append("\n"); - sb.Append(" ExpenseSubaccount: ").Append(ExpenseSubaccount).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" NetAmount: ").Append(NetAmount).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" RefNbr: ").Append(RefNbr).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" TipAmount: ").Append(TipAmount).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExpenseClaimDetails); - } - - /// - /// Returns true if ExpenseClaimDetails instances are equal - /// - /// Instance of ExpenseClaimDetails to be compared - /// Boolean - public bool Equals(ExpenseClaimDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.AmountInClaimCurrency == input.AmountInClaimCurrency || - (this.AmountInClaimCurrency != null && - this.AmountInClaimCurrency.Equals(input.AmountInClaimCurrency)) - ) && base.Equals(input) && - ( - this.APRefNbr == input.APRefNbr || - (this.APRefNbr != null && - this.APRefNbr.Equals(input.APRefNbr)) - ) && base.Equals(input) && - ( - this.ARRefNbr == input.ARRefNbr || - (this.ARRefNbr != null && - this.ARRefNbr.Equals(input.ARRefNbr)) - ) && base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ClaimAmount == input.ClaimAmount || - (this.ClaimAmount != null && - this.ClaimAmount.Equals(input.ClaimAmount)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EmployeePart == input.EmployeePart || - (this.EmployeePart != null && - this.EmployeePart.Equals(input.EmployeePart)) - ) && base.Equals(input) && - ( - this.ExpenseAccount == input.ExpenseAccount || - (this.ExpenseAccount != null && - this.ExpenseAccount.Equals(input.ExpenseAccount)) - ) && base.Equals(input) && - ( - this.ExpenseItemID == input.ExpenseItemID || - (this.ExpenseItemID != null && - this.ExpenseItemID.Equals(input.ExpenseItemID)) - ) && base.Equals(input) && - ( - this.ExpenseSubaccount == input.ExpenseSubaccount || - (this.ExpenseSubaccount != null && - this.ExpenseSubaccount.Equals(input.ExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.NetAmount == input.NetAmount || - (this.NetAmount != null && - this.NetAmount.Equals(input.NetAmount)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.RefNbr == input.RefNbr || - (this.RefNbr != null && - this.RefNbr.Equals(input.RefNbr)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.TipAmount == input.TipAmount || - (this.TipAmount != null && - this.TipAmount.Equals(input.TipAmount)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.AmountInClaimCurrency != null) - hashCode = hashCode * 59 + this.AmountInClaimCurrency.GetHashCode(); - if (this.APRefNbr != null) - hashCode = hashCode * 59 + this.APRefNbr.GetHashCode(); - if (this.ARRefNbr != null) - hashCode = hashCode * 59 + this.ARRefNbr.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ClaimAmount != null) - hashCode = hashCode * 59 + this.ClaimAmount.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EmployeePart != null) - hashCode = hashCode * 59 + this.EmployeePart.GetHashCode(); - if (this.ExpenseAccount != null) - hashCode = hashCode * 59 + this.ExpenseAccount.GetHashCode(); - if (this.ExpenseItemID != null) - hashCode = hashCode * 59 + this.ExpenseItemID.GetHashCode(); - if (this.ExpenseSubaccount != null) - hashCode = hashCode * 59 + this.ExpenseSubaccount.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.NetAmount != null) - hashCode = hashCode * 59 + this.NetAmount.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.RefNbr != null) - hashCode = hashCode * 59 + this.RefNbr.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.TipAmount != null) - hashCode = hashCode * 59 + this.TipAmount.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ExpenseClaimFinancialDetail.cs b/Default.18.200.001/Model/ExpenseClaimFinancialDetail.cs deleted file mode 100644 index efdd2321..00000000 --- a/Default.18.200.001/Model/ExpenseClaimFinancialDetail.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ExpenseClaimFinancialDetail - /// - [DataContract] - public partial class ExpenseClaimFinancialDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aPDocuments. - /// branch. - /// posttoPeriod. - /// taxZone. - public ExpenseClaimFinancialDetail(IEnumerable aPDocuments = default(IEnumerable), StringValue branch = default(StringValue), StringValue posttoPeriod = default(StringValue), StringValue taxZone = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.APDocuments = aPDocuments; - this.Branch = branch; - this.PosttoPeriod = posttoPeriod; - this.TaxZone = taxZone; - } - - /// - /// Gets or Sets APDocuments - /// - [DataMember(Name="APDocuments", EmitDefaultValue=false)] - public IEnumerable APDocuments { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets PosttoPeriod - /// - [DataMember(Name="PosttoPeriod", EmitDefaultValue=false)] - public StringValue PosttoPeriod { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExpenseClaimFinancialDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" APDocuments: ").Append(APDocuments).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" PosttoPeriod: ").Append(PosttoPeriod).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExpenseClaimFinancialDetail); - } - - /// - /// Returns true if ExpenseClaimFinancialDetail instances are equal - /// - /// Instance of ExpenseClaimFinancialDetail to be compared - /// Boolean - public bool Equals(ExpenseClaimFinancialDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.APDocuments == input.APDocuments || - this.APDocuments != null && - this.APDocuments.SequenceEqual(input.APDocuments) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.PosttoPeriod == input.PosttoPeriod || - (this.PosttoPeriod != null && - this.PosttoPeriod.Equals(input.PosttoPeriod)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.APDocuments != null) - hashCode = hashCode * 59 + this.APDocuments.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.PosttoPeriod != null) - hashCode = hashCode * 59 + this.PosttoPeriod.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ExpenseClaimTaxDetail.cs b/Default.18.200.001/Model/ExpenseClaimTaxDetail.cs deleted file mode 100644 index 82915c91..00000000 --- a/Default.18.200.001/Model/ExpenseClaimTaxDetail.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ExpenseClaimTaxDetail - /// - [DataContract] - public partial class ExpenseClaimTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// deductibleTaxRate. - /// expenseAmount. - /// includeinVATExemptTotal. - /// pendingVAT. - /// reverseVAT. - /// statisticalVAT. - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - /// taxType. - public ExpenseClaimTaxDetail(DecimalValue deductibleTaxRate = default(DecimalValue), DecimalValue expenseAmount = default(DecimalValue), BooleanValue includeinVATExemptTotal = default(BooleanValue), BooleanValue pendingVAT = default(BooleanValue), BooleanValue reverseVAT = default(BooleanValue), BooleanValue statisticalVAT = default(BooleanValue), DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), StringValue taxType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DeductibleTaxRate = deductibleTaxRate; - this.ExpenseAmount = expenseAmount; - this.IncludeinVATExemptTotal = includeinVATExemptTotal; - this.PendingVAT = pendingVAT; - this.ReverseVAT = reverseVAT; - this.StatisticalVAT = statisticalVAT; - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - this.TaxType = taxType; - } - - /// - /// Gets or Sets DeductibleTaxRate - /// - [DataMember(Name="DeductibleTaxRate", EmitDefaultValue=false)] - public DecimalValue DeductibleTaxRate { get; set; } - - /// - /// Gets or Sets ExpenseAmount - /// - [DataMember(Name="ExpenseAmount", EmitDefaultValue=false)] - public DecimalValue ExpenseAmount { get; set; } - - /// - /// Gets or Sets IncludeinVATExemptTotal - /// - [DataMember(Name="IncludeinVATExemptTotal", EmitDefaultValue=false)] - public BooleanValue IncludeinVATExemptTotal { get; set; } - - /// - /// Gets or Sets PendingVAT - /// - [DataMember(Name="PendingVAT", EmitDefaultValue=false)] - public BooleanValue PendingVAT { get; set; } - - /// - /// Gets or Sets ReverseVAT - /// - [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] - public BooleanValue ReverseVAT { get; set; } - - /// - /// Gets or Sets StatisticalVAT - /// - [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] - public BooleanValue StatisticalVAT { get; set; } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Gets or Sets TaxType - /// - [DataMember(Name="TaxType", EmitDefaultValue=false)] - public StringValue TaxType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExpenseClaimTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DeductibleTaxRate: ").Append(DeductibleTaxRate).Append("\n"); - sb.Append(" ExpenseAmount: ").Append(ExpenseAmount).Append("\n"); - sb.Append(" IncludeinVATExemptTotal: ").Append(IncludeinVATExemptTotal).Append("\n"); - sb.Append(" PendingVAT: ").Append(PendingVAT).Append("\n"); - sb.Append(" ReverseVAT: ").Append(ReverseVAT).Append("\n"); - sb.Append(" StatisticalVAT: ").Append(StatisticalVAT).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append(" TaxType: ").Append(TaxType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExpenseClaimTaxDetail); - } - - /// - /// Returns true if ExpenseClaimTaxDetail instances are equal - /// - /// Instance of ExpenseClaimTaxDetail to be compared - /// Boolean - public bool Equals(ExpenseClaimTaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DeductibleTaxRate == input.DeductibleTaxRate || - (this.DeductibleTaxRate != null && - this.DeductibleTaxRate.Equals(input.DeductibleTaxRate)) - ) && base.Equals(input) && - ( - this.ExpenseAmount == input.ExpenseAmount || - (this.ExpenseAmount != null && - this.ExpenseAmount.Equals(input.ExpenseAmount)) - ) && base.Equals(input) && - ( - this.IncludeinVATExemptTotal == input.IncludeinVATExemptTotal || - (this.IncludeinVATExemptTotal != null && - this.IncludeinVATExemptTotal.Equals(input.IncludeinVATExemptTotal)) - ) && base.Equals(input) && - ( - this.PendingVAT == input.PendingVAT || - (this.PendingVAT != null && - this.PendingVAT.Equals(input.PendingVAT)) - ) && base.Equals(input) && - ( - this.ReverseVAT == input.ReverseVAT || - (this.ReverseVAT != null && - this.ReverseVAT.Equals(input.ReverseVAT)) - ) && base.Equals(input) && - ( - this.StatisticalVAT == input.StatisticalVAT || - (this.StatisticalVAT != null && - this.StatisticalVAT.Equals(input.StatisticalVAT)) - ) && base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ) && base.Equals(input) && - ( - this.TaxType == input.TaxType || - (this.TaxType != null && - this.TaxType.Equals(input.TaxType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DeductibleTaxRate != null) - hashCode = hashCode * 59 + this.DeductibleTaxRate.GetHashCode(); - if (this.ExpenseAmount != null) - hashCode = hashCode * 59 + this.ExpenseAmount.GetHashCode(); - if (this.IncludeinVATExemptTotal != null) - hashCode = hashCode * 59 + this.IncludeinVATExemptTotal.GetHashCode(); - if (this.PendingVAT != null) - hashCode = hashCode * 59 + this.PendingVAT.GetHashCode(); - if (this.ReverseVAT != null) - hashCode = hashCode * 59 + this.ReverseVAT.GetHashCode(); - if (this.StatisticalVAT != null) - hashCode = hashCode * 59 + this.StatisticalVAT.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - if (this.TaxType != null) - hashCode = hashCode * 59 + this.TaxType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ExpenseReceipt.cs b/Default.18.200.001/Model/ExpenseReceipt.cs deleted file mode 100644 index c34813fa..00000000 --- a/Default.18.200.001/Model/ExpenseReceipt.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ExpenseReceipt - /// - [DataContract] - public partial class ExpenseReceipt : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// branch. - /// claimAmount. - /// claimedBy. - /// date. - /// expenseItemID. - /// lastModifiedDateTime. - /// receiptDetails. - /// receiptID. - /// status. - /// taxDetails. - /// taxTotal. - public ExpenseReceipt(StringValue branch = default(StringValue), DecimalValue claimAmount = default(DecimalValue), StringValue claimedBy = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue expenseItemID = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ExpenseReceiptDetails receiptDetails = default(ExpenseReceiptDetails), IntValue receiptID = default(IntValue), StringValue status = default(StringValue), IEnumerable taxDetails = default(IEnumerable), DecimalValue taxTotal = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Branch = branch; - this.ClaimAmount = claimAmount; - this.ClaimedBy = claimedBy; - this.Date = date; - this.ExpenseItemID = expenseItemID; - this.LastModifiedDateTime = lastModifiedDateTime; - this.ReceiptDetails = receiptDetails; - this.ReceiptID = receiptID; - this.Status = status; - this.TaxDetails = taxDetails; - this.TaxTotal = taxTotal; - } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ClaimAmount - /// - [DataMember(Name="ClaimAmount", EmitDefaultValue=false)] - public DecimalValue ClaimAmount { get; set; } - - /// - /// Gets or Sets ClaimedBy - /// - [DataMember(Name="ClaimedBy", EmitDefaultValue=false)] - public StringValue ClaimedBy { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets ExpenseItemID - /// - [DataMember(Name="ExpenseItemID", EmitDefaultValue=false)] - public StringValue ExpenseItemID { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets ReceiptDetails - /// - [DataMember(Name="ReceiptDetails", EmitDefaultValue=false)] - public ExpenseReceiptDetails ReceiptDetails { get; set; } - - /// - /// Gets or Sets ReceiptID - /// - [DataMember(Name="ReceiptID", EmitDefaultValue=false)] - public IntValue ReceiptID { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public IEnumerable TaxDetails { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExpenseReceipt {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ClaimAmount: ").Append(ClaimAmount).Append("\n"); - sb.Append(" ClaimedBy: ").Append(ClaimedBy).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" ExpenseItemID: ").Append(ExpenseItemID).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" ReceiptDetails: ").Append(ReceiptDetails).Append("\n"); - sb.Append(" ReceiptID: ").Append(ReceiptID).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExpenseReceipt); - } - - /// - /// Returns true if ExpenseReceipt instances are equal - /// - /// Instance of ExpenseReceipt to be compared - /// Boolean - public bool Equals(ExpenseReceipt input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ClaimAmount == input.ClaimAmount || - (this.ClaimAmount != null && - this.ClaimAmount.Equals(input.ClaimAmount)) - ) && base.Equals(input) && - ( - this.ClaimedBy == input.ClaimedBy || - (this.ClaimedBy != null && - this.ClaimedBy.Equals(input.ClaimedBy)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.ExpenseItemID == input.ExpenseItemID || - (this.ExpenseItemID != null && - this.ExpenseItemID.Equals(input.ExpenseItemID)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.ReceiptDetails == input.ReceiptDetails || - (this.ReceiptDetails != null && - this.ReceiptDetails.Equals(input.ReceiptDetails)) - ) && base.Equals(input) && - ( - this.ReceiptID == input.ReceiptID || - (this.ReceiptID != null && - this.ReceiptID.Equals(input.ReceiptID)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ClaimAmount != null) - hashCode = hashCode * 59 + this.ClaimAmount.GetHashCode(); - if (this.ClaimedBy != null) - hashCode = hashCode * 59 + this.ClaimedBy.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.ExpenseItemID != null) - hashCode = hashCode * 59 + this.ExpenseItemID.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.ReceiptDetails != null) - hashCode = hashCode * 59 + this.ReceiptDetails.GetHashCode(); - if (this.ReceiptID != null) - hashCode = hashCode * 59 + this.ReceiptID.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ExpenseReceiptDetails.cs b/Default.18.200.001/Model/ExpenseReceiptDetails.cs deleted file mode 100644 index c6374748..00000000 --- a/Default.18.200.001/Model/ExpenseReceiptDetails.cs +++ /dev/null @@ -1,526 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ExpenseReceiptDetails - /// - [DataContract] - public partial class ExpenseReceiptDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// baseCurrencyID. - /// billable. - /// costCode. - /// currancyRateTypeID. - /// currencyID. - /// currencyRate. - /// customerID. - /// description. - /// employeePart. - /// expenseAccount. - /// expenseClaimID. - /// expenseClaimStatus. - /// expenseSubaccount. - /// locationID. - /// projectID. - /// projectTaskID. - /// qty. - /// reciprocalRate. - /// refNbr. - /// salesAccount. - /// salesSubaccount. - /// taxCategory. - /// taxZone. - /// unitCost. - /// uOM. - public ExpenseReceiptDetails(DecimalValue amount = default(DecimalValue), StringValue baseCurrencyID = default(StringValue), BooleanValue billable = default(BooleanValue), StringValue costCode = default(StringValue), StringValue currancyRateTypeID = default(StringValue), StringValue currencyID = default(StringValue), DecimalValue currencyRate = default(DecimalValue), StringValue customerID = default(StringValue), StringValue description = default(StringValue), DecimalValue employeePart = default(DecimalValue), StringValue expenseAccount = default(StringValue), StringValue expenseClaimID = default(StringValue), StringValue expenseClaimStatus = default(StringValue), StringValue expenseSubaccount = default(StringValue), StringValue locationID = default(StringValue), StringValue projectID = default(StringValue), StringValue projectTaskID = default(StringValue), DecimalValue qty = default(DecimalValue), DecimalValue reciprocalRate = default(DecimalValue), StringValue refNbr = default(StringValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), StringValue taxCategory = default(StringValue), StringValue taxZone = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.BaseCurrencyID = baseCurrencyID; - this.Billable = billable; - this.CostCode = costCode; - this.CurrancyRateTypeID = currancyRateTypeID; - this.CurrencyID = currencyID; - this.CurrencyRate = currencyRate; - this.CustomerID = customerID; - this.Description = description; - this.EmployeePart = employeePart; - this.ExpenseAccount = expenseAccount; - this.ExpenseClaimID = expenseClaimID; - this.ExpenseClaimStatus = expenseClaimStatus; - this.ExpenseSubaccount = expenseSubaccount; - this.LocationID = locationID; - this.ProjectID = projectID; - this.ProjectTaskID = projectTaskID; - this.Qty = qty; - this.ReciprocalRate = reciprocalRate; - this.RefNbr = refNbr; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.TaxCategory = taxCategory; - this.TaxZone = taxZone; - this.UnitCost = unitCost; - this.UOM = uOM; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets BaseCurrencyID - /// - [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] - public StringValue BaseCurrencyID { get; set; } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets CurrancyRateTypeID - /// - [DataMember(Name="CurrancyRateTypeID", EmitDefaultValue=false)] - public StringValue CurrancyRateTypeID { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRate - /// - [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] - public DecimalValue CurrencyRate { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EmployeePart - /// - [DataMember(Name="EmployeePart", EmitDefaultValue=false)] - public DecimalValue EmployeePart { get; set; } - - /// - /// Gets or Sets ExpenseAccount - /// - [DataMember(Name="ExpenseAccount", EmitDefaultValue=false)] - public StringValue ExpenseAccount { get; set; } - - /// - /// Gets or Sets ExpenseClaimID - /// - [DataMember(Name="ExpenseClaimID", EmitDefaultValue=false)] - public StringValue ExpenseClaimID { get; set; } - - /// - /// Gets or Sets ExpenseClaimStatus - /// - [DataMember(Name="ExpenseClaimStatus", EmitDefaultValue=false)] - public StringValue ExpenseClaimStatus { get; set; } - - /// - /// Gets or Sets ExpenseSubaccount - /// - [DataMember(Name="ExpenseSubaccount", EmitDefaultValue=false)] - public StringValue ExpenseSubaccount { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReciprocalRate - /// - [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] - public DecimalValue ReciprocalRate { get; set; } - - /// - /// Gets or Sets RefNbr - /// - [DataMember(Name="RefNbr", EmitDefaultValue=false)] - public StringValue RefNbr { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExpenseReceiptDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" BaseCurrencyID: ").Append(BaseCurrencyID).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" CurrancyRateTypeID: ").Append(CurrancyRateTypeID).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EmployeePart: ").Append(EmployeePart).Append("\n"); - sb.Append(" ExpenseAccount: ").Append(ExpenseAccount).Append("\n"); - sb.Append(" ExpenseClaimID: ").Append(ExpenseClaimID).Append("\n"); - sb.Append(" ExpenseClaimStatus: ").Append(ExpenseClaimStatus).Append("\n"); - sb.Append(" ExpenseSubaccount: ").Append(ExpenseSubaccount).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReciprocalRate: ").Append(ReciprocalRate).Append("\n"); - sb.Append(" RefNbr: ").Append(RefNbr).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExpenseReceiptDetails); - } - - /// - /// Returns true if ExpenseReceiptDetails instances are equal - /// - /// Instance of ExpenseReceiptDetails to be compared - /// Boolean - public bool Equals(ExpenseReceiptDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.BaseCurrencyID == input.BaseCurrencyID || - (this.BaseCurrencyID != null && - this.BaseCurrencyID.Equals(input.BaseCurrencyID)) - ) && base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.CurrancyRateTypeID == input.CurrancyRateTypeID || - (this.CurrancyRateTypeID != null && - this.CurrancyRateTypeID.Equals(input.CurrancyRateTypeID)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRate == input.CurrencyRate || - (this.CurrencyRate != null && - this.CurrencyRate.Equals(input.CurrencyRate)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EmployeePart == input.EmployeePart || - (this.EmployeePart != null && - this.EmployeePart.Equals(input.EmployeePart)) - ) && base.Equals(input) && - ( - this.ExpenseAccount == input.ExpenseAccount || - (this.ExpenseAccount != null && - this.ExpenseAccount.Equals(input.ExpenseAccount)) - ) && base.Equals(input) && - ( - this.ExpenseClaimID == input.ExpenseClaimID || - (this.ExpenseClaimID != null && - this.ExpenseClaimID.Equals(input.ExpenseClaimID)) - ) && base.Equals(input) && - ( - this.ExpenseClaimStatus == input.ExpenseClaimStatus || - (this.ExpenseClaimStatus != null && - this.ExpenseClaimStatus.Equals(input.ExpenseClaimStatus)) - ) && base.Equals(input) && - ( - this.ExpenseSubaccount == input.ExpenseSubaccount || - (this.ExpenseSubaccount != null && - this.ExpenseSubaccount.Equals(input.ExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReciprocalRate == input.ReciprocalRate || - (this.ReciprocalRate != null && - this.ReciprocalRate.Equals(input.ReciprocalRate)) - ) && base.Equals(input) && - ( - this.RefNbr == input.RefNbr || - (this.RefNbr != null && - this.RefNbr.Equals(input.RefNbr)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.BaseCurrencyID != null) - hashCode = hashCode * 59 + this.BaseCurrencyID.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.CurrancyRateTypeID != null) - hashCode = hashCode * 59 + this.CurrancyRateTypeID.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRate != null) - hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EmployeePart != null) - hashCode = hashCode * 59 + this.EmployeePart.GetHashCode(); - if (this.ExpenseAccount != null) - hashCode = hashCode * 59 + this.ExpenseAccount.GetHashCode(); - if (this.ExpenseClaimID != null) - hashCode = hashCode * 59 + this.ExpenseClaimID.GetHashCode(); - if (this.ExpenseClaimStatus != null) - hashCode = hashCode * 59 + this.ExpenseClaimStatus.GetHashCode(); - if (this.ExpenseSubaccount != null) - hashCode = hashCode * 59 + this.ExpenseSubaccount.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReciprocalRate != null) - hashCode = hashCode * 59 + this.ReciprocalRate.GetHashCode(); - if (this.RefNbr != null) - hashCode = hashCode * 59 + this.RefNbr.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ExpenseReceiptTaxDetails.cs b/Default.18.200.001/Model/ExpenseReceiptTaxDetails.cs deleted file mode 100644 index 0eff7510..00000000 --- a/Default.18.200.001/Model/ExpenseReceiptTaxDetails.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ExpenseReceiptTaxDetails - /// - [DataContract] - public partial class ExpenseReceiptTaxDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// deductibleTaxRate. - /// expenseAmount. - /// includeInVATExemptTotal. - /// pendingVAT. - /// reverseVAT. - /// statisticalVAT. - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - /// taxType. - public ExpenseReceiptTaxDetails(DecimalValue deductibleTaxRate = default(DecimalValue), DecimalValue expenseAmount = default(DecimalValue), BooleanValue includeInVATExemptTotal = default(BooleanValue), BooleanValue pendingVAT = default(BooleanValue), BooleanValue reverseVAT = default(BooleanValue), BooleanValue statisticalVAT = default(BooleanValue), DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), StringValue taxType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DeductibleTaxRate = deductibleTaxRate; - this.ExpenseAmount = expenseAmount; - this.IncludeInVATExemptTotal = includeInVATExemptTotal; - this.PendingVAT = pendingVAT; - this.ReverseVAT = reverseVAT; - this.StatisticalVAT = statisticalVAT; - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - this.TaxType = taxType; - } - - /// - /// Gets or Sets DeductibleTaxRate - /// - [DataMember(Name="DeductibleTaxRate", EmitDefaultValue=false)] - public DecimalValue DeductibleTaxRate { get; set; } - - /// - /// Gets or Sets ExpenseAmount - /// - [DataMember(Name="ExpenseAmount", EmitDefaultValue=false)] - public DecimalValue ExpenseAmount { get; set; } - - /// - /// Gets or Sets IncludeInVATExemptTotal - /// - [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] - public BooleanValue IncludeInVATExemptTotal { get; set; } - - /// - /// Gets or Sets PendingVAT - /// - [DataMember(Name="PendingVAT", EmitDefaultValue=false)] - public BooleanValue PendingVAT { get; set; } - - /// - /// Gets or Sets ReverseVAT - /// - [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] - public BooleanValue ReverseVAT { get; set; } - - /// - /// Gets or Sets StatisticalVAT - /// - [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] - public BooleanValue StatisticalVAT { get; set; } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Gets or Sets TaxType - /// - [DataMember(Name="TaxType", EmitDefaultValue=false)] - public StringValue TaxType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExpenseReceiptTaxDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DeductibleTaxRate: ").Append(DeductibleTaxRate).Append("\n"); - sb.Append(" ExpenseAmount: ").Append(ExpenseAmount).Append("\n"); - sb.Append(" IncludeInVATExemptTotal: ").Append(IncludeInVATExemptTotal).Append("\n"); - sb.Append(" PendingVAT: ").Append(PendingVAT).Append("\n"); - sb.Append(" ReverseVAT: ").Append(ReverseVAT).Append("\n"); - sb.Append(" StatisticalVAT: ").Append(StatisticalVAT).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append(" TaxType: ").Append(TaxType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExpenseReceiptTaxDetails); - } - - /// - /// Returns true if ExpenseReceiptTaxDetails instances are equal - /// - /// Instance of ExpenseReceiptTaxDetails to be compared - /// Boolean - public bool Equals(ExpenseReceiptTaxDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DeductibleTaxRate == input.DeductibleTaxRate || - (this.DeductibleTaxRate != null && - this.DeductibleTaxRate.Equals(input.DeductibleTaxRate)) - ) && base.Equals(input) && - ( - this.ExpenseAmount == input.ExpenseAmount || - (this.ExpenseAmount != null && - this.ExpenseAmount.Equals(input.ExpenseAmount)) - ) && base.Equals(input) && - ( - this.IncludeInVATExemptTotal == input.IncludeInVATExemptTotal || - (this.IncludeInVATExemptTotal != null && - this.IncludeInVATExemptTotal.Equals(input.IncludeInVATExemptTotal)) - ) && base.Equals(input) && - ( - this.PendingVAT == input.PendingVAT || - (this.PendingVAT != null && - this.PendingVAT.Equals(input.PendingVAT)) - ) && base.Equals(input) && - ( - this.ReverseVAT == input.ReverseVAT || - (this.ReverseVAT != null && - this.ReverseVAT.Equals(input.ReverseVAT)) - ) && base.Equals(input) && - ( - this.StatisticalVAT == input.StatisticalVAT || - (this.StatisticalVAT != null && - this.StatisticalVAT.Equals(input.StatisticalVAT)) - ) && base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ) && base.Equals(input) && - ( - this.TaxType == input.TaxType || - (this.TaxType != null && - this.TaxType.Equals(input.TaxType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DeductibleTaxRate != null) - hashCode = hashCode * 59 + this.DeductibleTaxRate.GetHashCode(); - if (this.ExpenseAmount != null) - hashCode = hashCode * 59 + this.ExpenseAmount.GetHashCode(); - if (this.IncludeInVATExemptTotal != null) - hashCode = hashCode * 59 + this.IncludeInVATExemptTotal.GetHashCode(); - if (this.PendingVAT != null) - hashCode = hashCode * 59 + this.PendingVAT.GetHashCode(); - if (this.ReverseVAT != null) - hashCode = hashCode * 59 + this.ReverseVAT.GetHashCode(); - if (this.StatisticalVAT != null) - hashCode = hashCode * 59 + this.StatisticalVAT.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - if (this.TaxType != null) - hashCode = hashCode * 59 + this.TaxType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ExternalCommitment.cs b/Default.18.200.001/Model/ExternalCommitment.cs deleted file mode 100644 index 186031c6..00000000 --- a/Default.18.200.001/Model/ExternalCommitment.cs +++ /dev/null @@ -1,446 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ExternalCommitment - /// - [DataContract] - public partial class ExternalCommitment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountGroup. - /// committedCOAmount. - /// committedCOQty. - /// committedInvoicedAmount. - /// committedInvoicedQty. - /// committedOpenAmount. - /// committedOpenQty. - /// committedReceivedQty. - /// costCode. - /// externalRefNbr. - /// inventoryID. - /// lastModifiedDateTime. - /// originalCommittedAmount. - /// originalCommittedQty. - /// projectID. - /// projectTaskID. - /// relatedDocument. - /// revisedCommittedAmount. - /// revisedCommittedQty. - /// type. - /// uOM. - public ExternalCommitment(StringValue accountGroup = default(StringValue), DecimalValue committedCOAmount = default(DecimalValue), DecimalValue committedCOQty = default(DecimalValue), DecimalValue committedInvoicedAmount = default(DecimalValue), DecimalValue committedInvoicedQty = default(DecimalValue), DecimalValue committedOpenAmount = default(DecimalValue), DecimalValue committedOpenQty = default(DecimalValue), DecimalValue committedReceivedQty = default(DecimalValue), StringValue costCode = default(StringValue), StringValue externalRefNbr = default(StringValue), StringValue inventoryID = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue originalCommittedAmount = default(DecimalValue), DecimalValue originalCommittedQty = default(DecimalValue), StringValue projectID = default(StringValue), StringValue projectTaskID = default(StringValue), StringValue relatedDocument = default(StringValue), DecimalValue revisedCommittedAmount = default(DecimalValue), DecimalValue revisedCommittedQty = default(DecimalValue), StringValue type = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountGroup = accountGroup; - this.CommittedCOAmount = committedCOAmount; - this.CommittedCOQty = committedCOQty; - this.CommittedInvoicedAmount = committedInvoicedAmount; - this.CommittedInvoicedQty = committedInvoicedQty; - this.CommittedOpenAmount = committedOpenAmount; - this.CommittedOpenQty = committedOpenQty; - this.CommittedReceivedQty = committedReceivedQty; - this.CostCode = costCode; - this.ExternalRefNbr = externalRefNbr; - this.InventoryID = inventoryID; - this.LastModifiedDateTime = lastModifiedDateTime; - this.OriginalCommittedAmount = originalCommittedAmount; - this.OriginalCommittedQty = originalCommittedQty; - this.ProjectID = projectID; - this.ProjectTaskID = projectTaskID; - this.RelatedDocument = relatedDocument; - this.RevisedCommittedAmount = revisedCommittedAmount; - this.RevisedCommittedQty = revisedCommittedQty; - this.Type = type; - this.UOM = uOM; - } - - /// - /// Gets or Sets AccountGroup - /// - [DataMember(Name="AccountGroup", EmitDefaultValue=false)] - public StringValue AccountGroup { get; set; } - - /// - /// Gets or Sets CommittedCOAmount - /// - [DataMember(Name="CommittedCOAmount", EmitDefaultValue=false)] - public DecimalValue CommittedCOAmount { get; set; } - - /// - /// Gets or Sets CommittedCOQty - /// - [DataMember(Name="CommittedCOQty", EmitDefaultValue=false)] - public DecimalValue CommittedCOQty { get; set; } - - /// - /// Gets or Sets CommittedInvoicedAmount - /// - [DataMember(Name="CommittedInvoicedAmount", EmitDefaultValue=false)] - public DecimalValue CommittedInvoicedAmount { get; set; } - - /// - /// Gets or Sets CommittedInvoicedQty - /// - [DataMember(Name="CommittedInvoicedQty", EmitDefaultValue=false)] - public DecimalValue CommittedInvoicedQty { get; set; } - - /// - /// Gets or Sets CommittedOpenAmount - /// - [DataMember(Name="CommittedOpenAmount", EmitDefaultValue=false)] - public DecimalValue CommittedOpenAmount { get; set; } - - /// - /// Gets or Sets CommittedOpenQty - /// - [DataMember(Name="CommittedOpenQty", EmitDefaultValue=false)] - public DecimalValue CommittedOpenQty { get; set; } - - /// - /// Gets or Sets CommittedReceivedQty - /// - [DataMember(Name="CommittedReceivedQty", EmitDefaultValue=false)] - public DecimalValue CommittedReceivedQty { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets ExternalRefNbr - /// - [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] - public StringValue ExternalRefNbr { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets OriginalCommittedAmount - /// - [DataMember(Name="OriginalCommittedAmount", EmitDefaultValue=false)] - public DecimalValue OriginalCommittedAmount { get; set; } - - /// - /// Gets or Sets OriginalCommittedQty - /// - [DataMember(Name="OriginalCommittedQty", EmitDefaultValue=false)] - public DecimalValue OriginalCommittedQty { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets RelatedDocument - /// - [DataMember(Name="RelatedDocument", EmitDefaultValue=false)] - public StringValue RelatedDocument { get; set; } - - /// - /// Gets or Sets RevisedCommittedAmount - /// - [DataMember(Name="RevisedCommittedAmount", EmitDefaultValue=false)] - public DecimalValue RevisedCommittedAmount { get; set; } - - /// - /// Gets or Sets RevisedCommittedQty - /// - [DataMember(Name="RevisedCommittedQty", EmitDefaultValue=false)] - public DecimalValue RevisedCommittedQty { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ExternalCommitment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountGroup: ").Append(AccountGroup).Append("\n"); - sb.Append(" CommittedCOAmount: ").Append(CommittedCOAmount).Append("\n"); - sb.Append(" CommittedCOQty: ").Append(CommittedCOQty).Append("\n"); - sb.Append(" CommittedInvoicedAmount: ").Append(CommittedInvoicedAmount).Append("\n"); - sb.Append(" CommittedInvoicedQty: ").Append(CommittedInvoicedQty).Append("\n"); - sb.Append(" CommittedOpenAmount: ").Append(CommittedOpenAmount).Append("\n"); - sb.Append(" CommittedOpenQty: ").Append(CommittedOpenQty).Append("\n"); - sb.Append(" CommittedReceivedQty: ").Append(CommittedReceivedQty).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" ExternalRefNbr: ").Append(ExternalRefNbr).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" OriginalCommittedAmount: ").Append(OriginalCommittedAmount).Append("\n"); - sb.Append(" OriginalCommittedQty: ").Append(OriginalCommittedQty).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" RelatedDocument: ").Append(RelatedDocument).Append("\n"); - sb.Append(" RevisedCommittedAmount: ").Append(RevisedCommittedAmount).Append("\n"); - sb.Append(" RevisedCommittedQty: ").Append(RevisedCommittedQty).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ExternalCommitment); - } - - /// - /// Returns true if ExternalCommitment instances are equal - /// - /// Instance of ExternalCommitment to be compared - /// Boolean - public bool Equals(ExternalCommitment input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountGroup == input.AccountGroup || - (this.AccountGroup != null && - this.AccountGroup.Equals(input.AccountGroup)) - ) && base.Equals(input) && - ( - this.CommittedCOAmount == input.CommittedCOAmount || - (this.CommittedCOAmount != null && - this.CommittedCOAmount.Equals(input.CommittedCOAmount)) - ) && base.Equals(input) && - ( - this.CommittedCOQty == input.CommittedCOQty || - (this.CommittedCOQty != null && - this.CommittedCOQty.Equals(input.CommittedCOQty)) - ) && base.Equals(input) && - ( - this.CommittedInvoicedAmount == input.CommittedInvoicedAmount || - (this.CommittedInvoicedAmount != null && - this.CommittedInvoicedAmount.Equals(input.CommittedInvoicedAmount)) - ) && base.Equals(input) && - ( - this.CommittedInvoicedQty == input.CommittedInvoicedQty || - (this.CommittedInvoicedQty != null && - this.CommittedInvoicedQty.Equals(input.CommittedInvoicedQty)) - ) && base.Equals(input) && - ( - this.CommittedOpenAmount == input.CommittedOpenAmount || - (this.CommittedOpenAmount != null && - this.CommittedOpenAmount.Equals(input.CommittedOpenAmount)) - ) && base.Equals(input) && - ( - this.CommittedOpenQty == input.CommittedOpenQty || - (this.CommittedOpenQty != null && - this.CommittedOpenQty.Equals(input.CommittedOpenQty)) - ) && base.Equals(input) && - ( - this.CommittedReceivedQty == input.CommittedReceivedQty || - (this.CommittedReceivedQty != null && - this.CommittedReceivedQty.Equals(input.CommittedReceivedQty)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.ExternalRefNbr == input.ExternalRefNbr || - (this.ExternalRefNbr != null && - this.ExternalRefNbr.Equals(input.ExternalRefNbr)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.OriginalCommittedAmount == input.OriginalCommittedAmount || - (this.OriginalCommittedAmount != null && - this.OriginalCommittedAmount.Equals(input.OriginalCommittedAmount)) - ) && base.Equals(input) && - ( - this.OriginalCommittedQty == input.OriginalCommittedQty || - (this.OriginalCommittedQty != null && - this.OriginalCommittedQty.Equals(input.OriginalCommittedQty)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.RelatedDocument == input.RelatedDocument || - (this.RelatedDocument != null && - this.RelatedDocument.Equals(input.RelatedDocument)) - ) && base.Equals(input) && - ( - this.RevisedCommittedAmount == input.RevisedCommittedAmount || - (this.RevisedCommittedAmount != null && - this.RevisedCommittedAmount.Equals(input.RevisedCommittedAmount)) - ) && base.Equals(input) && - ( - this.RevisedCommittedQty == input.RevisedCommittedQty || - (this.RevisedCommittedQty != null && - this.RevisedCommittedQty.Equals(input.RevisedCommittedQty)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountGroup != null) - hashCode = hashCode * 59 + this.AccountGroup.GetHashCode(); - if (this.CommittedCOAmount != null) - hashCode = hashCode * 59 + this.CommittedCOAmount.GetHashCode(); - if (this.CommittedCOQty != null) - hashCode = hashCode * 59 + this.CommittedCOQty.GetHashCode(); - if (this.CommittedInvoicedAmount != null) - hashCode = hashCode * 59 + this.CommittedInvoicedAmount.GetHashCode(); - if (this.CommittedInvoicedQty != null) - hashCode = hashCode * 59 + this.CommittedInvoicedQty.GetHashCode(); - if (this.CommittedOpenAmount != null) - hashCode = hashCode * 59 + this.CommittedOpenAmount.GetHashCode(); - if (this.CommittedOpenQty != null) - hashCode = hashCode * 59 + this.CommittedOpenQty.GetHashCode(); - if (this.CommittedReceivedQty != null) - hashCode = hashCode * 59 + this.CommittedReceivedQty.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.ExternalRefNbr != null) - hashCode = hashCode * 59 + this.ExternalRefNbr.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.OriginalCommittedAmount != null) - hashCode = hashCode * 59 + this.OriginalCommittedAmount.GetHashCode(); - if (this.OriginalCommittedQty != null) - hashCode = hashCode * 59 + this.OriginalCommittedQty.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.RelatedDocument != null) - hashCode = hashCode * 59 + this.RelatedDocument.GetHashCode(); - if (this.RevisedCommittedAmount != null) - hashCode = hashCode * 59 + this.RevisedCommittedAmount.GetHashCode(); - if (this.RevisedCommittedQty != null) - hashCode = hashCode * 59 + this.RevisedCommittedQty.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/FOBPoint.cs b/Default.18.200.001/Model/FOBPoint.cs deleted file mode 100644 index 11c49cdb..00000000 --- a/Default.18.200.001/Model/FOBPoint.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// FOBPoint - /// - [DataContract] - public partial class FOBPoint : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// fOBPointID. - public FOBPoint(StringValue description = default(StringValue), StringValue fOBPointID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.FOBPointID = fOBPointID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets FOBPointID - /// - [DataMember(Name="FOBPointID", EmitDefaultValue=false)] - public StringValue FOBPointID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FOBPoint {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" FOBPointID: ").Append(FOBPointID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FOBPoint); - } - - /// - /// Returns true if FOBPoint instances are equal - /// - /// Instance of FOBPoint to be compared - /// Boolean - public bool Equals(FOBPoint input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.FOBPointID == input.FOBPointID || - (this.FOBPointID != null && - this.FOBPointID.Equals(input.FOBPointID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.FOBPointID != null) - hashCode = hashCode * 59 + this.FOBPointID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/FinancialPeriod.cs b/Default.18.200.001/Model/FinancialPeriod.cs deleted file mode 100644 index 029ad629..00000000 --- a/Default.18.200.001/Model/FinancialPeriod.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// FinancialPeriod - /// - [DataContract] - public partial class FinancialPeriod : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// details. - /// financialYear. - /// lastModifiedDateTime. - /// nbrOfPeriods. - /// startDate. - /// userDefinedPeriods. - public FinancialPeriod(DateTimeValue createdDateTime = default(DateTimeValue), IEnumerable details = default(IEnumerable), StringValue financialYear = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ShortValue nbrOfPeriods = default(ShortValue), DateTimeValue startDate = default(DateTimeValue), BooleanValue userDefinedPeriods = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Details = details; - this.FinancialYear = financialYear; - this.LastModifiedDateTime = lastModifiedDateTime; - this.NbrOfPeriods = nbrOfPeriods; - this.StartDate = startDate; - this.UserDefinedPeriods = userDefinedPeriods; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets FinancialYear - /// - [DataMember(Name="FinancialYear", EmitDefaultValue=false)] - public StringValue FinancialYear { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets NbrOfPeriods - /// - [DataMember(Name="NbrOfPeriods", EmitDefaultValue=false)] - public ShortValue NbrOfPeriods { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets UserDefinedPeriods - /// - [DataMember(Name="UserDefinedPeriods", EmitDefaultValue=false)] - public BooleanValue UserDefinedPeriods { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FinancialPeriod {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" FinancialYear: ").Append(FinancialYear).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" NbrOfPeriods: ").Append(NbrOfPeriods).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" UserDefinedPeriods: ").Append(UserDefinedPeriods).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FinancialPeriod); - } - - /// - /// Returns true if FinancialPeriod instances are equal - /// - /// Instance of FinancialPeriod to be compared - /// Boolean - public bool Equals(FinancialPeriod input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.FinancialYear == input.FinancialYear || - (this.FinancialYear != null && - this.FinancialYear.Equals(input.FinancialYear)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.NbrOfPeriods == input.NbrOfPeriods || - (this.NbrOfPeriods != null && - this.NbrOfPeriods.Equals(input.NbrOfPeriods)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.UserDefinedPeriods == input.UserDefinedPeriods || - (this.UserDefinedPeriods != null && - this.UserDefinedPeriods.Equals(input.UserDefinedPeriods)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.FinancialYear != null) - hashCode = hashCode * 59 + this.FinancialYear.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.NbrOfPeriods != null) - hashCode = hashCode * 59 + this.NbrOfPeriods.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.UserDefinedPeriods != null) - hashCode = hashCode * 59 + this.UserDefinedPeriods.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/FinancialPeriodDetail.cs b/Default.18.200.001/Model/FinancialPeriodDetail.cs deleted file mode 100644 index da0be008..00000000 --- a/Default.18.200.001/Model/FinancialPeriodDetail.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// FinancialPeriodDetail - /// - [DataContract] - public partial class FinancialPeriodDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// adjustmentPeriod. - /// closedInAP. - /// closedInAR. - /// closedInCA. - /// closedInFA. - /// closedInIN. - /// description. - /// endDate. - /// financialPeriodID. - /// lengthInDays. - /// periodNbr. - /// startDate. - /// status. - public FinancialPeriodDetail(BooleanValue adjustmentPeriod = default(BooleanValue), BooleanValue closedInAP = default(BooleanValue), BooleanValue closedInAR = default(BooleanValue), BooleanValue closedInCA = default(BooleanValue), BooleanValue closedInFA = default(BooleanValue), BooleanValue closedInIN = default(BooleanValue), StringValue description = default(StringValue), DateTimeValue endDate = default(DateTimeValue), StringValue financialPeriodID = default(StringValue), IntValue lengthInDays = default(IntValue), StringValue periodNbr = default(StringValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AdjustmentPeriod = adjustmentPeriod; - this.ClosedInAP = closedInAP; - this.ClosedInAR = closedInAR; - this.ClosedInCA = closedInCA; - this.ClosedInFA = closedInFA; - this.ClosedInIN = closedInIN; - this.Description = description; - this.EndDate = endDate; - this.FinancialPeriodID = financialPeriodID; - this.LengthInDays = lengthInDays; - this.PeriodNbr = periodNbr; - this.StartDate = startDate; - this.Status = status; - } - - /// - /// Gets or Sets AdjustmentPeriod - /// - [DataMember(Name="AdjustmentPeriod", EmitDefaultValue=false)] - public BooleanValue AdjustmentPeriod { get; set; } - - /// - /// Gets or Sets ClosedInAP - /// - [DataMember(Name="ClosedInAP", EmitDefaultValue=false)] - public BooleanValue ClosedInAP { get; set; } - - /// - /// Gets or Sets ClosedInAR - /// - [DataMember(Name="ClosedInAR", EmitDefaultValue=false)] - public BooleanValue ClosedInAR { get; set; } - - /// - /// Gets or Sets ClosedInCA - /// - [DataMember(Name="ClosedInCA", EmitDefaultValue=false)] - public BooleanValue ClosedInCA { get; set; } - - /// - /// Gets or Sets ClosedInFA - /// - [DataMember(Name="ClosedInFA", EmitDefaultValue=false)] - public BooleanValue ClosedInFA { get; set; } - - /// - /// Gets or Sets ClosedInIN - /// - [DataMember(Name="ClosedInIN", EmitDefaultValue=false)] - public BooleanValue ClosedInIN { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets FinancialPeriodID - /// - [DataMember(Name="FinancialPeriodID", EmitDefaultValue=false)] - public StringValue FinancialPeriodID { get; set; } - - /// - /// Gets or Sets LengthInDays - /// - [DataMember(Name="LengthInDays", EmitDefaultValue=false)] - public IntValue LengthInDays { get; set; } - - /// - /// Gets or Sets PeriodNbr - /// - [DataMember(Name="PeriodNbr", EmitDefaultValue=false)] - public StringValue PeriodNbr { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FinancialPeriodDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AdjustmentPeriod: ").Append(AdjustmentPeriod).Append("\n"); - sb.Append(" ClosedInAP: ").Append(ClosedInAP).Append("\n"); - sb.Append(" ClosedInAR: ").Append(ClosedInAR).Append("\n"); - sb.Append(" ClosedInCA: ").Append(ClosedInCA).Append("\n"); - sb.Append(" ClosedInFA: ").Append(ClosedInFA).Append("\n"); - sb.Append(" ClosedInIN: ").Append(ClosedInIN).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" FinancialPeriodID: ").Append(FinancialPeriodID).Append("\n"); - sb.Append(" LengthInDays: ").Append(LengthInDays).Append("\n"); - sb.Append(" PeriodNbr: ").Append(PeriodNbr).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FinancialPeriodDetail); - } - - /// - /// Returns true if FinancialPeriodDetail instances are equal - /// - /// Instance of FinancialPeriodDetail to be compared - /// Boolean - public bool Equals(FinancialPeriodDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AdjustmentPeriod == input.AdjustmentPeriod || - (this.AdjustmentPeriod != null && - this.AdjustmentPeriod.Equals(input.AdjustmentPeriod)) - ) && base.Equals(input) && - ( - this.ClosedInAP == input.ClosedInAP || - (this.ClosedInAP != null && - this.ClosedInAP.Equals(input.ClosedInAP)) - ) && base.Equals(input) && - ( - this.ClosedInAR == input.ClosedInAR || - (this.ClosedInAR != null && - this.ClosedInAR.Equals(input.ClosedInAR)) - ) && base.Equals(input) && - ( - this.ClosedInCA == input.ClosedInCA || - (this.ClosedInCA != null && - this.ClosedInCA.Equals(input.ClosedInCA)) - ) && base.Equals(input) && - ( - this.ClosedInFA == input.ClosedInFA || - (this.ClosedInFA != null && - this.ClosedInFA.Equals(input.ClosedInFA)) - ) && base.Equals(input) && - ( - this.ClosedInIN == input.ClosedInIN || - (this.ClosedInIN != null && - this.ClosedInIN.Equals(input.ClosedInIN)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.FinancialPeriodID == input.FinancialPeriodID || - (this.FinancialPeriodID != null && - this.FinancialPeriodID.Equals(input.FinancialPeriodID)) - ) && base.Equals(input) && - ( - this.LengthInDays == input.LengthInDays || - (this.LengthInDays != null && - this.LengthInDays.Equals(input.LengthInDays)) - ) && base.Equals(input) && - ( - this.PeriodNbr == input.PeriodNbr || - (this.PeriodNbr != null && - this.PeriodNbr.Equals(input.PeriodNbr)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AdjustmentPeriod != null) - hashCode = hashCode * 59 + this.AdjustmentPeriod.GetHashCode(); - if (this.ClosedInAP != null) - hashCode = hashCode * 59 + this.ClosedInAP.GetHashCode(); - if (this.ClosedInAR != null) - hashCode = hashCode * 59 + this.ClosedInAR.GetHashCode(); - if (this.ClosedInCA != null) - hashCode = hashCode * 59 + this.ClosedInCA.GetHashCode(); - if (this.ClosedInFA != null) - hashCode = hashCode * 59 + this.ClosedInFA.GetHashCode(); - if (this.ClosedInIN != null) - hashCode = hashCode * 59 + this.ClosedInIN.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.FinancialPeriodID != null) - hashCode = hashCode * 59 + this.FinancialPeriodID.GetHashCode(); - if (this.LengthInDays != null) - hashCode = hashCode * 59 + this.LengthInDays.GetHashCode(); - if (this.PeriodNbr != null) - hashCode = hashCode * 59 + this.PeriodNbr.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/FinancialSettings.cs b/Default.18.200.001/Model/FinancialSettings.cs deleted file mode 100644 index 913bb16c..00000000 --- a/Default.18.200.001/Model/FinancialSettings.cs +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// FinancialSettings - /// - [DataContract] - public partial class FinancialSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billSeparately. - /// branch. - /// cashDiscountDate. - /// customerTaxZone. - /// dueDate. - /// entityUsageType. - /// invoiceDate. - /// invoiceNbr. - /// originalOrderNbr. - /// originalOrderType. - /// overrideTaxZone. - /// owner. - /// postPeriod. - /// terms. - public FinancialSettings(BooleanValue billSeparately = default(BooleanValue), StringValue branch = default(StringValue), DateTimeValue cashDiscountDate = default(DateTimeValue), StringValue customerTaxZone = default(StringValue), DateTimeValue dueDate = default(DateTimeValue), StringValue entityUsageType = default(StringValue), DateTimeValue invoiceDate = default(DateTimeValue), StringValue invoiceNbr = default(StringValue), StringValue originalOrderNbr = default(StringValue), StringValue originalOrderType = default(StringValue), BooleanValue overrideTaxZone = default(BooleanValue), StringValue owner = default(StringValue), StringValue postPeriod = default(StringValue), StringValue terms = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillSeparately = billSeparately; - this.Branch = branch; - this.CashDiscountDate = cashDiscountDate; - this.CustomerTaxZone = customerTaxZone; - this.DueDate = dueDate; - this.EntityUsageType = entityUsageType; - this.InvoiceDate = invoiceDate; - this.InvoiceNbr = invoiceNbr; - this.OriginalOrderNbr = originalOrderNbr; - this.OriginalOrderType = originalOrderType; - this.OverrideTaxZone = overrideTaxZone; - this.Owner = owner; - this.PostPeriod = postPeriod; - this.Terms = terms; - } - - /// - /// Gets or Sets BillSeparately - /// - [DataMember(Name="BillSeparately", EmitDefaultValue=false)] - public BooleanValue BillSeparately { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CashDiscountDate - /// - [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] - public DateTimeValue CashDiscountDate { get; set; } - - /// - /// Gets or Sets CustomerTaxZone - /// - [DataMember(Name="CustomerTaxZone", EmitDefaultValue=false)] - public StringValue CustomerTaxZone { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets EntityUsageType - /// - [DataMember(Name="EntityUsageType", EmitDefaultValue=false)] - public StringValue EntityUsageType { get; set; } - - /// - /// Gets or Sets InvoiceDate - /// - [DataMember(Name="InvoiceDate", EmitDefaultValue=false)] - public DateTimeValue InvoiceDate { get; set; } - - /// - /// Gets or Sets InvoiceNbr - /// - [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] - public StringValue InvoiceNbr { get; set; } - - /// - /// Gets or Sets OriginalOrderNbr - /// - [DataMember(Name="OriginalOrderNbr", EmitDefaultValue=false)] - public StringValue OriginalOrderNbr { get; set; } - - /// - /// Gets or Sets OriginalOrderType - /// - [DataMember(Name="OriginalOrderType", EmitDefaultValue=false)] - public StringValue OriginalOrderType { get; set; } - - /// - /// Gets or Sets OverrideTaxZone - /// - [DataMember(Name="OverrideTaxZone", EmitDefaultValue=false)] - public BooleanValue OverrideTaxZone { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FinancialSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillSeparately: ").Append(BillSeparately).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CashDiscountDate: ").Append(CashDiscountDate).Append("\n"); - sb.Append(" CustomerTaxZone: ").Append(CustomerTaxZone).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" EntityUsageType: ").Append(EntityUsageType).Append("\n"); - sb.Append(" InvoiceDate: ").Append(InvoiceDate).Append("\n"); - sb.Append(" InvoiceNbr: ").Append(InvoiceNbr).Append("\n"); - sb.Append(" OriginalOrderNbr: ").Append(OriginalOrderNbr).Append("\n"); - sb.Append(" OriginalOrderType: ").Append(OriginalOrderType).Append("\n"); - sb.Append(" OverrideTaxZone: ").Append(OverrideTaxZone).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FinancialSettings); - } - - /// - /// Returns true if FinancialSettings instances are equal - /// - /// Instance of FinancialSettings to be compared - /// Boolean - public bool Equals(FinancialSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BillSeparately == input.BillSeparately || - (this.BillSeparately != null && - this.BillSeparately.Equals(input.BillSeparately)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CashDiscountDate == input.CashDiscountDate || - (this.CashDiscountDate != null && - this.CashDiscountDate.Equals(input.CashDiscountDate)) - ) && base.Equals(input) && - ( - this.CustomerTaxZone == input.CustomerTaxZone || - (this.CustomerTaxZone != null && - this.CustomerTaxZone.Equals(input.CustomerTaxZone)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.EntityUsageType == input.EntityUsageType || - (this.EntityUsageType != null && - this.EntityUsageType.Equals(input.EntityUsageType)) - ) && base.Equals(input) && - ( - this.InvoiceDate == input.InvoiceDate || - (this.InvoiceDate != null && - this.InvoiceDate.Equals(input.InvoiceDate)) - ) && base.Equals(input) && - ( - this.InvoiceNbr == input.InvoiceNbr || - (this.InvoiceNbr != null && - this.InvoiceNbr.Equals(input.InvoiceNbr)) - ) && base.Equals(input) && - ( - this.OriginalOrderNbr == input.OriginalOrderNbr || - (this.OriginalOrderNbr != null && - this.OriginalOrderNbr.Equals(input.OriginalOrderNbr)) - ) && base.Equals(input) && - ( - this.OriginalOrderType == input.OriginalOrderType || - (this.OriginalOrderType != null && - this.OriginalOrderType.Equals(input.OriginalOrderType)) - ) && base.Equals(input) && - ( - this.OverrideTaxZone == input.OverrideTaxZone || - (this.OverrideTaxZone != null && - this.OverrideTaxZone.Equals(input.OverrideTaxZone)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillSeparately != null) - hashCode = hashCode * 59 + this.BillSeparately.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CashDiscountDate != null) - hashCode = hashCode * 59 + this.CashDiscountDate.GetHashCode(); - if (this.CustomerTaxZone != null) - hashCode = hashCode * 59 + this.CustomerTaxZone.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.EntityUsageType != null) - hashCode = hashCode * 59 + this.EntityUsageType.GetHashCode(); - if (this.InvoiceDate != null) - hashCode = hashCode * 59 + this.InvoiceDate.GetHashCode(); - if (this.InvoiceNbr != null) - hashCode = hashCode * 59 + this.InvoiceNbr.GetHashCode(); - if (this.OriginalOrderNbr != null) - hashCode = hashCode * 59 + this.OriginalOrderNbr.GetHashCode(); - if (this.OriginalOrderType != null) - hashCode = hashCode * 59 + this.OriginalOrderType.GetHashCode(); - if (this.OverrideTaxZone != null) - hashCode = hashCode * 59 + this.OverrideTaxZone.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/FinancialYear.cs b/Default.18.200.001/Model/FinancialYear.cs deleted file mode 100644 index a0e78785..00000000 --- a/Default.18.200.001/Model/FinancialYear.cs +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// FinancialYear - /// - [DataContract] - public partial class FinancialYear : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// adjustToPeriodStart. - /// belongsToNextYear. - /// createdDateTime. - /// dayOfWeek. - /// details. - /// financialYearStartsOn. - /// firstFinancialYear. - /// firstPeriodStartDate. - /// hasAdjustmentPeriod. - /// lastModifiedDateTime. - /// lengthOfFinancialPeriodInDays. - /// nbrOfFinancialPeriods. - /// periodsStartDayOfWeek. - /// periodType. - /// userDefinedPeriods. - /// yearEndCalculationMethod. - public FinancialYear(BooleanValue adjustToPeriodStart = default(BooleanValue), BooleanValue belongsToNextYear = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue dayOfWeek = default(StringValue), IEnumerable details = default(IEnumerable), DateTimeValue financialYearStartsOn = default(DateTimeValue), StringValue firstFinancialYear = default(StringValue), DateTimeValue firstPeriodStartDate = default(DateTimeValue), BooleanValue hasAdjustmentPeriod = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ShortValue lengthOfFinancialPeriodInDays = default(ShortValue), ShortValue nbrOfFinancialPeriods = default(ShortValue), StringValue periodsStartDayOfWeek = default(StringValue), StringValue periodType = default(StringValue), BooleanValue userDefinedPeriods = default(BooleanValue), StringValue yearEndCalculationMethod = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AdjustToPeriodStart = adjustToPeriodStart; - this.BelongsToNextYear = belongsToNextYear; - this.CreatedDateTime = createdDateTime; - this.DayOfWeek = dayOfWeek; - this.Details = details; - this.FinancialYearStartsOn = financialYearStartsOn; - this.FirstFinancialYear = firstFinancialYear; - this.FirstPeriodStartDate = firstPeriodStartDate; - this.HasAdjustmentPeriod = hasAdjustmentPeriod; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LengthOfFinancialPeriodInDays = lengthOfFinancialPeriodInDays; - this.NbrOfFinancialPeriods = nbrOfFinancialPeriods; - this.PeriodsStartDayOfWeek = periodsStartDayOfWeek; - this.PeriodType = periodType; - this.UserDefinedPeriods = userDefinedPeriods; - this.YearEndCalculationMethod = yearEndCalculationMethod; - } - - /// - /// Gets or Sets AdjustToPeriodStart - /// - [DataMember(Name="AdjustToPeriodStart", EmitDefaultValue=false)] - public BooleanValue AdjustToPeriodStart { get; set; } - - /// - /// Gets or Sets BelongsToNextYear - /// - [DataMember(Name="BelongsToNextYear", EmitDefaultValue=false)] - public BooleanValue BelongsToNextYear { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets DayOfWeek - /// - [DataMember(Name="DayOfWeek", EmitDefaultValue=false)] - public StringValue DayOfWeek { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets FinancialYearStartsOn - /// - [DataMember(Name="FinancialYearStartsOn", EmitDefaultValue=false)] - public DateTimeValue FinancialYearStartsOn { get; set; } - - /// - /// Gets or Sets FirstFinancialYear - /// - [DataMember(Name="FirstFinancialYear", EmitDefaultValue=false)] - public StringValue FirstFinancialYear { get; set; } - - /// - /// Gets or Sets FirstPeriodStartDate - /// - [DataMember(Name="FirstPeriodStartDate", EmitDefaultValue=false)] - public DateTimeValue FirstPeriodStartDate { get; set; } - - /// - /// Gets or Sets HasAdjustmentPeriod - /// - [DataMember(Name="HasAdjustmentPeriod", EmitDefaultValue=false)] - public BooleanValue HasAdjustmentPeriod { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LengthOfFinancialPeriodInDays - /// - [DataMember(Name="LengthOfFinancialPeriodInDays", EmitDefaultValue=false)] - public ShortValue LengthOfFinancialPeriodInDays { get; set; } - - /// - /// Gets or Sets NbrOfFinancialPeriods - /// - [DataMember(Name="NbrOfFinancialPeriods", EmitDefaultValue=false)] - public ShortValue NbrOfFinancialPeriods { get; set; } - - /// - /// Gets or Sets PeriodsStartDayOfWeek - /// - [DataMember(Name="PeriodsStartDayOfWeek", EmitDefaultValue=false)] - public StringValue PeriodsStartDayOfWeek { get; set; } - - /// - /// Gets or Sets PeriodType - /// - [DataMember(Name="PeriodType", EmitDefaultValue=false)] - public StringValue PeriodType { get; set; } - - /// - /// Gets or Sets UserDefinedPeriods - /// - [DataMember(Name="UserDefinedPeriods", EmitDefaultValue=false)] - public BooleanValue UserDefinedPeriods { get; set; } - - /// - /// Gets or Sets YearEndCalculationMethod - /// - [DataMember(Name="YearEndCalculationMethod", EmitDefaultValue=false)] - public StringValue YearEndCalculationMethod { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FinancialYear {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AdjustToPeriodStart: ").Append(AdjustToPeriodStart).Append("\n"); - sb.Append(" BelongsToNextYear: ").Append(BelongsToNextYear).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" DayOfWeek: ").Append(DayOfWeek).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" FinancialYearStartsOn: ").Append(FinancialYearStartsOn).Append("\n"); - sb.Append(" FirstFinancialYear: ").Append(FirstFinancialYear).Append("\n"); - sb.Append(" FirstPeriodStartDate: ").Append(FirstPeriodStartDate).Append("\n"); - sb.Append(" HasAdjustmentPeriod: ").Append(HasAdjustmentPeriod).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LengthOfFinancialPeriodInDays: ").Append(LengthOfFinancialPeriodInDays).Append("\n"); - sb.Append(" NbrOfFinancialPeriods: ").Append(NbrOfFinancialPeriods).Append("\n"); - sb.Append(" PeriodsStartDayOfWeek: ").Append(PeriodsStartDayOfWeek).Append("\n"); - sb.Append(" PeriodType: ").Append(PeriodType).Append("\n"); - sb.Append(" UserDefinedPeriods: ").Append(UserDefinedPeriods).Append("\n"); - sb.Append(" YearEndCalculationMethod: ").Append(YearEndCalculationMethod).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FinancialYear); - } - - /// - /// Returns true if FinancialYear instances are equal - /// - /// Instance of FinancialYear to be compared - /// Boolean - public bool Equals(FinancialYear input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AdjustToPeriodStart == input.AdjustToPeriodStart || - (this.AdjustToPeriodStart != null && - this.AdjustToPeriodStart.Equals(input.AdjustToPeriodStart)) - ) && base.Equals(input) && - ( - this.BelongsToNextYear == input.BelongsToNextYear || - (this.BelongsToNextYear != null && - this.BelongsToNextYear.Equals(input.BelongsToNextYear)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.DayOfWeek == input.DayOfWeek || - (this.DayOfWeek != null && - this.DayOfWeek.Equals(input.DayOfWeek)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.FinancialYearStartsOn == input.FinancialYearStartsOn || - (this.FinancialYearStartsOn != null && - this.FinancialYearStartsOn.Equals(input.FinancialYearStartsOn)) - ) && base.Equals(input) && - ( - this.FirstFinancialYear == input.FirstFinancialYear || - (this.FirstFinancialYear != null && - this.FirstFinancialYear.Equals(input.FirstFinancialYear)) - ) && base.Equals(input) && - ( - this.FirstPeriodStartDate == input.FirstPeriodStartDate || - (this.FirstPeriodStartDate != null && - this.FirstPeriodStartDate.Equals(input.FirstPeriodStartDate)) - ) && base.Equals(input) && - ( - this.HasAdjustmentPeriod == input.HasAdjustmentPeriod || - (this.HasAdjustmentPeriod != null && - this.HasAdjustmentPeriod.Equals(input.HasAdjustmentPeriod)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LengthOfFinancialPeriodInDays == input.LengthOfFinancialPeriodInDays || - (this.LengthOfFinancialPeriodInDays != null && - this.LengthOfFinancialPeriodInDays.Equals(input.LengthOfFinancialPeriodInDays)) - ) && base.Equals(input) && - ( - this.NbrOfFinancialPeriods == input.NbrOfFinancialPeriods || - (this.NbrOfFinancialPeriods != null && - this.NbrOfFinancialPeriods.Equals(input.NbrOfFinancialPeriods)) - ) && base.Equals(input) && - ( - this.PeriodsStartDayOfWeek == input.PeriodsStartDayOfWeek || - (this.PeriodsStartDayOfWeek != null && - this.PeriodsStartDayOfWeek.Equals(input.PeriodsStartDayOfWeek)) - ) && base.Equals(input) && - ( - this.PeriodType == input.PeriodType || - (this.PeriodType != null && - this.PeriodType.Equals(input.PeriodType)) - ) && base.Equals(input) && - ( - this.UserDefinedPeriods == input.UserDefinedPeriods || - (this.UserDefinedPeriods != null && - this.UserDefinedPeriods.Equals(input.UserDefinedPeriods)) - ) && base.Equals(input) && - ( - this.YearEndCalculationMethod == input.YearEndCalculationMethod || - (this.YearEndCalculationMethod != null && - this.YearEndCalculationMethod.Equals(input.YearEndCalculationMethod)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AdjustToPeriodStart != null) - hashCode = hashCode * 59 + this.AdjustToPeriodStart.GetHashCode(); - if (this.BelongsToNextYear != null) - hashCode = hashCode * 59 + this.BelongsToNextYear.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.DayOfWeek != null) - hashCode = hashCode * 59 + this.DayOfWeek.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.FinancialYearStartsOn != null) - hashCode = hashCode * 59 + this.FinancialYearStartsOn.GetHashCode(); - if (this.FirstFinancialYear != null) - hashCode = hashCode * 59 + this.FirstFinancialYear.GetHashCode(); - if (this.FirstPeriodStartDate != null) - hashCode = hashCode * 59 + this.FirstPeriodStartDate.GetHashCode(); - if (this.HasAdjustmentPeriod != null) - hashCode = hashCode * 59 + this.HasAdjustmentPeriod.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LengthOfFinancialPeriodInDays != null) - hashCode = hashCode * 59 + this.LengthOfFinancialPeriodInDays.GetHashCode(); - if (this.NbrOfFinancialPeriods != null) - hashCode = hashCode * 59 + this.NbrOfFinancialPeriods.GetHashCode(); - if (this.PeriodsStartDayOfWeek != null) - hashCode = hashCode * 59 + this.PeriodsStartDayOfWeek.GetHashCode(); - if (this.PeriodType != null) - hashCode = hashCode * 59 + this.PeriodType.GetHashCode(); - if (this.UserDefinedPeriods != null) - hashCode = hashCode * 59 + this.UserDefinedPeriods.GetHashCode(); - if (this.YearEndCalculationMethod != null) - hashCode = hashCode * 59 + this.YearEndCalculationMethod.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/FinancialYearPeriodDetail.cs b/Default.18.200.001/Model/FinancialYearPeriodDetail.cs deleted file mode 100644 index 6c93e505..00000000 --- a/Default.18.200.001/Model/FinancialYearPeriodDetail.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// FinancialYearPeriodDetail - /// - [DataContract] - public partial class FinancialYearPeriodDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// endDate. - /// periodNbr. - /// startDate. - public FinancialYearPeriodDetail(StringValue description = default(StringValue), DateTimeValue endDate = default(DateTimeValue), StringValue periodNbr = default(StringValue), DateTimeValue startDate = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.EndDate = endDate; - this.PeriodNbr = periodNbr; - this.StartDate = startDate; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets PeriodNbr - /// - [DataMember(Name="PeriodNbr", EmitDefaultValue=false)] - public StringValue PeriodNbr { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FinancialYearPeriodDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" PeriodNbr: ").Append(PeriodNbr).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FinancialYearPeriodDetail); - } - - /// - /// Returns true if FinancialYearPeriodDetail instances are equal - /// - /// Instance of FinancialYearPeriodDetail to be compared - /// Boolean - public bool Equals(FinancialYearPeriodDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.PeriodNbr == input.PeriodNbr || - (this.PeriodNbr != null && - this.PeriodNbr.Equals(input.PeriodNbr)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.PeriodNbr != null) - hashCode = hashCode * 59 + this.PeriodNbr.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InterBranchAccountMapping.cs b/Default.18.200.001/Model/InterBranchAccountMapping.cs deleted file mode 100644 index 32643ffd..00000000 --- a/Default.18.200.001/Model/InterBranchAccountMapping.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InterBranchAccountMapping - /// - [DataContract] - public partial class InterBranchAccountMapping : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// originatingBranch. - /// postingLedger. - /// transactionsInDestinationBranch. - /// transactionsInSourceBranch. - public InterBranchAccountMapping(StringValue originatingBranch = default(StringValue), StringValue postingLedger = default(StringValue), IEnumerable transactionsInDestinationBranch = default(IEnumerable), IEnumerable transactionsInSourceBranch = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.OriginatingBranch = originatingBranch; - this.PostingLedger = postingLedger; - this.TransactionsInDestinationBranch = transactionsInDestinationBranch; - this.TransactionsInSourceBranch = transactionsInSourceBranch; - } - - /// - /// Gets or Sets OriginatingBranch - /// - [DataMember(Name="OriginatingBranch", EmitDefaultValue=false)] - public StringValue OriginatingBranch { get; set; } - - /// - /// Gets or Sets PostingLedger - /// - [DataMember(Name="PostingLedger", EmitDefaultValue=false)] - public StringValue PostingLedger { get; set; } - - /// - /// Gets or Sets TransactionsInDestinationBranch - /// - [DataMember(Name="TransactionsInDestinationBranch", EmitDefaultValue=false)] - public IEnumerable TransactionsInDestinationBranch { get; set; } - - /// - /// Gets or Sets TransactionsInSourceBranch - /// - [DataMember(Name="TransactionsInSourceBranch", EmitDefaultValue=false)] - public IEnumerable TransactionsInSourceBranch { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InterBranchAccountMapping {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" OriginatingBranch: ").Append(OriginatingBranch).Append("\n"); - sb.Append(" PostingLedger: ").Append(PostingLedger).Append("\n"); - sb.Append(" TransactionsInDestinationBranch: ").Append(TransactionsInDestinationBranch).Append("\n"); - sb.Append(" TransactionsInSourceBranch: ").Append(TransactionsInSourceBranch).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InterBranchAccountMapping); - } - - /// - /// Returns true if InterBranchAccountMapping instances are equal - /// - /// Instance of InterBranchAccountMapping to be compared - /// Boolean - public bool Equals(InterBranchAccountMapping input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.OriginatingBranch == input.OriginatingBranch || - (this.OriginatingBranch != null && - this.OriginatingBranch.Equals(input.OriginatingBranch)) - ) && base.Equals(input) && - ( - this.PostingLedger == input.PostingLedger || - (this.PostingLedger != null && - this.PostingLedger.Equals(input.PostingLedger)) - ) && base.Equals(input) && - ( - this.TransactionsInDestinationBranch == input.TransactionsInDestinationBranch || - this.TransactionsInDestinationBranch != null && - this.TransactionsInDestinationBranch.SequenceEqual(input.TransactionsInDestinationBranch) - ) && base.Equals(input) && - ( - this.TransactionsInSourceBranch == input.TransactionsInSourceBranch || - this.TransactionsInSourceBranch != null && - this.TransactionsInSourceBranch.SequenceEqual(input.TransactionsInSourceBranch) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.OriginatingBranch != null) - hashCode = hashCode * 59 + this.OriginatingBranch.GetHashCode(); - if (this.PostingLedger != null) - hashCode = hashCode * 59 + this.PostingLedger.GetHashCode(); - if (this.TransactionsInDestinationBranch != null) - hashCode = hashCode * 59 + this.TransactionsInDestinationBranch.GetHashCode(); - if (this.TransactionsInSourceBranch != null) - hashCode = hashCode * 59 + this.TransactionsInSourceBranch.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs b/Default.18.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs deleted file mode 100644 index 1fe760ef..00000000 --- a/Default.18.200.001/Model/InterBranchAccountMappingTransactionInDestinationBranchDetail.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InterBranchAccountMappingTransactionInDestinationBranchDetail - /// - [DataContract] - public partial class InterBranchAccountMappingTransactionInDestinationBranchDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountFrom. - /// accountTo. - /// branchID. - /// destinationBranch. - /// lineNbr. - /// offsetAccount. - /// offsetSubaccount. - public InterBranchAccountMappingTransactionInDestinationBranchDetail(StringValue accountFrom = default(StringValue), StringValue accountTo = default(StringValue), IntValue branchID = default(IntValue), StringValue destinationBranch = default(StringValue), IntValue lineNbr = default(IntValue), StringValue offsetAccount = default(StringValue), StringValue offsetSubaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountFrom = accountFrom; - this.AccountTo = accountTo; - this.BranchID = branchID; - this.DestinationBranch = destinationBranch; - this.LineNbr = lineNbr; - this.OffsetAccount = offsetAccount; - this.OffsetSubaccount = offsetSubaccount; - } - - /// - /// Gets or Sets AccountFrom - /// - [DataMember(Name="AccountFrom", EmitDefaultValue=false)] - public StringValue AccountFrom { get; set; } - - /// - /// Gets or Sets AccountTo - /// - [DataMember(Name="AccountTo", EmitDefaultValue=false)] - public StringValue AccountTo { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public IntValue BranchID { get; set; } - - /// - /// Gets or Sets DestinationBranch - /// - [DataMember(Name="DestinationBranch", EmitDefaultValue=false)] - public StringValue DestinationBranch { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets OffsetAccount - /// - [DataMember(Name="OffsetAccount", EmitDefaultValue=false)] - public StringValue OffsetAccount { get; set; } - - /// - /// Gets or Sets OffsetSubaccount - /// - [DataMember(Name="OffsetSubaccount", EmitDefaultValue=false)] - public StringValue OffsetSubaccount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InterBranchAccountMappingTransactionInDestinationBranchDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountFrom: ").Append(AccountFrom).Append("\n"); - sb.Append(" AccountTo: ").Append(AccountTo).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" DestinationBranch: ").Append(DestinationBranch).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" OffsetAccount: ").Append(OffsetAccount).Append("\n"); - sb.Append(" OffsetSubaccount: ").Append(OffsetSubaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InterBranchAccountMappingTransactionInDestinationBranchDetail); - } - - /// - /// Returns true if InterBranchAccountMappingTransactionInDestinationBranchDetail instances are equal - /// - /// Instance of InterBranchAccountMappingTransactionInDestinationBranchDetail to be compared - /// Boolean - public bool Equals(InterBranchAccountMappingTransactionInDestinationBranchDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountFrom == input.AccountFrom || - (this.AccountFrom != null && - this.AccountFrom.Equals(input.AccountFrom)) - ) && base.Equals(input) && - ( - this.AccountTo == input.AccountTo || - (this.AccountTo != null && - this.AccountTo.Equals(input.AccountTo)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.DestinationBranch == input.DestinationBranch || - (this.DestinationBranch != null && - this.DestinationBranch.Equals(input.DestinationBranch)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.OffsetAccount == input.OffsetAccount || - (this.OffsetAccount != null && - this.OffsetAccount.Equals(input.OffsetAccount)) - ) && base.Equals(input) && - ( - this.OffsetSubaccount == input.OffsetSubaccount || - (this.OffsetSubaccount != null && - this.OffsetSubaccount.Equals(input.OffsetSubaccount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountFrom != null) - hashCode = hashCode * 59 + this.AccountFrom.GetHashCode(); - if (this.AccountTo != null) - hashCode = hashCode * 59 + this.AccountTo.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.DestinationBranch != null) - hashCode = hashCode * 59 + this.DestinationBranch.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.OffsetAccount != null) - hashCode = hashCode * 59 + this.OffsetAccount.GetHashCode(); - if (this.OffsetSubaccount != null) - hashCode = hashCode * 59 + this.OffsetSubaccount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs b/Default.18.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs deleted file mode 100644 index 7de9b942..00000000 --- a/Default.18.200.001/Model/InterBranchAccountMappingTransactionInSourceBranchDetail.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InterBranchAccountMappingTransactionInSourceBranchDetail - /// - [DataContract] - public partial class InterBranchAccountMappingTransactionInSourceBranchDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountFrom. - /// accountTo. - /// branchID. - /// destinationBranch. - /// lineNbr. - /// offsetAccount. - /// offsetSubaccount. - public InterBranchAccountMappingTransactionInSourceBranchDetail(StringValue accountFrom = default(StringValue), StringValue accountTo = default(StringValue), IntValue branchID = default(IntValue), StringValue destinationBranch = default(StringValue), IntValue lineNbr = default(IntValue), StringValue offsetAccount = default(StringValue), StringValue offsetSubaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountFrom = accountFrom; - this.AccountTo = accountTo; - this.BranchID = branchID; - this.DestinationBranch = destinationBranch; - this.LineNbr = lineNbr; - this.OffsetAccount = offsetAccount; - this.OffsetSubaccount = offsetSubaccount; - } - - /// - /// Gets or Sets AccountFrom - /// - [DataMember(Name="AccountFrom", EmitDefaultValue=false)] - public StringValue AccountFrom { get; set; } - - /// - /// Gets or Sets AccountTo - /// - [DataMember(Name="AccountTo", EmitDefaultValue=false)] - public StringValue AccountTo { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public IntValue BranchID { get; set; } - - /// - /// Gets or Sets DestinationBranch - /// - [DataMember(Name="DestinationBranch", EmitDefaultValue=false)] - public StringValue DestinationBranch { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets OffsetAccount - /// - [DataMember(Name="OffsetAccount", EmitDefaultValue=false)] - public StringValue OffsetAccount { get; set; } - - /// - /// Gets or Sets OffsetSubaccount - /// - [DataMember(Name="OffsetSubaccount", EmitDefaultValue=false)] - public StringValue OffsetSubaccount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InterBranchAccountMappingTransactionInSourceBranchDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountFrom: ").Append(AccountFrom).Append("\n"); - sb.Append(" AccountTo: ").Append(AccountTo).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" DestinationBranch: ").Append(DestinationBranch).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" OffsetAccount: ").Append(OffsetAccount).Append("\n"); - sb.Append(" OffsetSubaccount: ").Append(OffsetSubaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InterBranchAccountMappingTransactionInSourceBranchDetail); - } - - /// - /// Returns true if InterBranchAccountMappingTransactionInSourceBranchDetail instances are equal - /// - /// Instance of InterBranchAccountMappingTransactionInSourceBranchDetail to be compared - /// Boolean - public bool Equals(InterBranchAccountMappingTransactionInSourceBranchDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountFrom == input.AccountFrom || - (this.AccountFrom != null && - this.AccountFrom.Equals(input.AccountFrom)) - ) && base.Equals(input) && - ( - this.AccountTo == input.AccountTo || - (this.AccountTo != null && - this.AccountTo.Equals(input.AccountTo)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.DestinationBranch == input.DestinationBranch || - (this.DestinationBranch != null && - this.DestinationBranch.Equals(input.DestinationBranch)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.OffsetAccount == input.OffsetAccount || - (this.OffsetAccount != null && - this.OffsetAccount.Equals(input.OffsetAccount)) - ) && base.Equals(input) && - ( - this.OffsetSubaccount == input.OffsetSubaccount || - (this.OffsetSubaccount != null && - this.OffsetSubaccount.Equals(input.OffsetSubaccount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountFrom != null) - hashCode = hashCode * 59 + this.AccountFrom.GetHashCode(); - if (this.AccountTo != null) - hashCode = hashCode * 59 + this.AccountTo.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.DestinationBranch != null) - hashCode = hashCode * 59 + this.DestinationBranch.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.OffsetAccount != null) - hashCode = hashCode * 59 + this.OffsetAccount.GetHashCode(); - if (this.OffsetSubaccount != null) - hashCode = hashCode * 59 + this.OffsetSubaccount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InventoryAllocationInquiry.cs b/Default.18.200.001/Model/InventoryAllocationInquiry.cs deleted file mode 100644 index 48956349..00000000 --- a/Default.18.200.001/Model/InventoryAllocationInquiry.cs +++ /dev/null @@ -1,590 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InventoryAllocationInquiry - /// - [DataContract] - public partial class InventoryAllocationInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// available. - /// availableForIssue. - /// availableForShipping. - /// baseUnit. - /// inTransit. - /// inTransitToSO. - /// inventoryID. - /// inventoryIssues. - /// inventoryReceipts. - /// kitAssemblyDemand. - /// kitAssemblySupply. - /// location. - /// onHand. - /// onLocationNotAvailable. - /// purchaseForSO. - /// purchaseForSOPrepared. - /// purchaseOrders. - /// purchasePrepared. - /// purchaseReceipts. - /// receiptsForSO. - /// results. - /// sOAllocated. - /// sOBackOrdered. - /// sOBooked. - /// sOPrepared. - /// sOShipped. - /// sOToPurchase. - /// totalAddition. - /// totalDeduction. - /// warehouseID. - public InventoryAllocationInquiry(DecimalValue available = default(DecimalValue), DecimalValue availableForIssue = default(DecimalValue), DecimalValue availableForShipping = default(DecimalValue), StringValue baseUnit = default(StringValue), DecimalValue inTransit = default(DecimalValue), DecimalValue inTransitToSO = default(DecimalValue), StringValue inventoryID = default(StringValue), DecimalValue inventoryIssues = default(DecimalValue), DecimalValue inventoryReceipts = default(DecimalValue), DecimalValue kitAssemblyDemand = default(DecimalValue), DecimalValue kitAssemblySupply = default(DecimalValue), StringValue location = default(StringValue), DecimalValue onHand = default(DecimalValue), DecimalValue onLocationNotAvailable = default(DecimalValue), DecimalValue purchaseForSO = default(DecimalValue), DecimalValue purchaseForSOPrepared = default(DecimalValue), DecimalValue purchaseOrders = default(DecimalValue), DecimalValue purchasePrepared = default(DecimalValue), DecimalValue purchaseReceipts = default(DecimalValue), DecimalValue receiptsForSO = default(DecimalValue), IEnumerable results = default(IEnumerable), DecimalValue sOAllocated = default(DecimalValue), DecimalValue sOBackOrdered = default(DecimalValue), DecimalValue sOBooked = default(DecimalValue), DecimalValue sOPrepared = default(DecimalValue), DecimalValue sOShipped = default(DecimalValue), DecimalValue sOToPurchase = default(DecimalValue), DecimalValue totalAddition = default(DecimalValue), DecimalValue totalDeduction = default(DecimalValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Available = available; - this.AvailableForIssue = availableForIssue; - this.AvailableForShipping = availableForShipping; - this.BaseUnit = baseUnit; - this.InTransit = inTransit; - this.InTransitToSO = inTransitToSO; - this.InventoryID = inventoryID; - this.InventoryIssues = inventoryIssues; - this.InventoryReceipts = inventoryReceipts; - this.KitAssemblyDemand = kitAssemblyDemand; - this.KitAssemblySupply = kitAssemblySupply; - this.Location = location; - this.OnHand = onHand; - this.OnLocationNotAvailable = onLocationNotAvailable; - this.PurchaseForSO = purchaseForSO; - this.PurchaseForSOPrepared = purchaseForSOPrepared; - this.PurchaseOrders = purchaseOrders; - this.PurchasePrepared = purchasePrepared; - this.PurchaseReceipts = purchaseReceipts; - this.ReceiptsForSO = receiptsForSO; - this.Results = results; - this.SOAllocated = sOAllocated; - this.SOBackOrdered = sOBackOrdered; - this.SOBooked = sOBooked; - this.SOPrepared = sOPrepared; - this.SOShipped = sOShipped; - this.SOToPurchase = sOToPurchase; - this.TotalAddition = totalAddition; - this.TotalDeduction = totalDeduction; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Available - /// - [DataMember(Name="Available", EmitDefaultValue=false)] - public DecimalValue Available { get; set; } - - /// - /// Gets or Sets AvailableForIssue - /// - [DataMember(Name="AvailableForIssue", EmitDefaultValue=false)] - public DecimalValue AvailableForIssue { get; set; } - - /// - /// Gets or Sets AvailableForShipping - /// - [DataMember(Name="AvailableForShipping", EmitDefaultValue=false)] - public DecimalValue AvailableForShipping { get; set; } - - /// - /// Gets or Sets BaseUnit - /// - [DataMember(Name="BaseUnit", EmitDefaultValue=false)] - public StringValue BaseUnit { get; set; } - - /// - /// Gets or Sets InTransit - /// - [DataMember(Name="InTransit", EmitDefaultValue=false)] - public DecimalValue InTransit { get; set; } - - /// - /// Gets or Sets InTransitToSO - /// - [DataMember(Name="InTransitToSO", EmitDefaultValue=false)] - public DecimalValue InTransitToSO { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets InventoryIssues - /// - [DataMember(Name="InventoryIssues", EmitDefaultValue=false)] - public DecimalValue InventoryIssues { get; set; } - - /// - /// Gets or Sets InventoryReceipts - /// - [DataMember(Name="InventoryReceipts", EmitDefaultValue=false)] - public DecimalValue InventoryReceipts { get; set; } - - /// - /// Gets or Sets KitAssemblyDemand - /// - [DataMember(Name="KitAssemblyDemand", EmitDefaultValue=false)] - public DecimalValue KitAssemblyDemand { get; set; } - - /// - /// Gets or Sets KitAssemblySupply - /// - [DataMember(Name="KitAssemblySupply", EmitDefaultValue=false)] - public DecimalValue KitAssemblySupply { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets OnHand - /// - [DataMember(Name="OnHand", EmitDefaultValue=false)] - public DecimalValue OnHand { get; set; } - - /// - /// Gets or Sets OnLocationNotAvailable - /// - [DataMember(Name="OnLocationNotAvailable", EmitDefaultValue=false)] - public DecimalValue OnLocationNotAvailable { get; set; } - - /// - /// Gets or Sets PurchaseForSO - /// - [DataMember(Name="PurchaseForSO", EmitDefaultValue=false)] - public DecimalValue PurchaseForSO { get; set; } - - /// - /// Gets or Sets PurchaseForSOPrepared - /// - [DataMember(Name="PurchaseForSOPrepared", EmitDefaultValue=false)] - public DecimalValue PurchaseForSOPrepared { get; set; } - - /// - /// Gets or Sets PurchaseOrders - /// - [DataMember(Name="PurchaseOrders", EmitDefaultValue=false)] - public DecimalValue PurchaseOrders { get; set; } - - /// - /// Gets or Sets PurchasePrepared - /// - [DataMember(Name="PurchasePrepared", EmitDefaultValue=false)] - public DecimalValue PurchasePrepared { get; set; } - - /// - /// Gets or Sets PurchaseReceipts - /// - [DataMember(Name="PurchaseReceipts", EmitDefaultValue=false)] - public DecimalValue PurchaseReceipts { get; set; } - - /// - /// Gets or Sets ReceiptsForSO - /// - [DataMember(Name="ReceiptsForSO", EmitDefaultValue=false)] - public DecimalValue ReceiptsForSO { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public IEnumerable Results { get; set; } - - /// - /// Gets or Sets SOAllocated - /// - [DataMember(Name="SOAllocated", EmitDefaultValue=false)] - public DecimalValue SOAllocated { get; set; } - - /// - /// Gets or Sets SOBackOrdered - /// - [DataMember(Name="SOBackOrdered", EmitDefaultValue=false)] - public DecimalValue SOBackOrdered { get; set; } - - /// - /// Gets or Sets SOBooked - /// - [DataMember(Name="SOBooked", EmitDefaultValue=false)] - public DecimalValue SOBooked { get; set; } - - /// - /// Gets or Sets SOPrepared - /// - [DataMember(Name="SOPrepared", EmitDefaultValue=false)] - public DecimalValue SOPrepared { get; set; } - - /// - /// Gets or Sets SOShipped - /// - [DataMember(Name="SOShipped", EmitDefaultValue=false)] - public DecimalValue SOShipped { get; set; } - - /// - /// Gets or Sets SOToPurchase - /// - [DataMember(Name="SOToPurchase", EmitDefaultValue=false)] - public DecimalValue SOToPurchase { get; set; } - - /// - /// Gets or Sets TotalAddition - /// - [DataMember(Name="TotalAddition", EmitDefaultValue=false)] - public DecimalValue TotalAddition { get; set; } - - /// - /// Gets or Sets TotalDeduction - /// - [DataMember(Name="TotalDeduction", EmitDefaultValue=false)] - public DecimalValue TotalDeduction { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryAllocationInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Available: ").Append(Available).Append("\n"); - sb.Append(" AvailableForIssue: ").Append(AvailableForIssue).Append("\n"); - sb.Append(" AvailableForShipping: ").Append(AvailableForShipping).Append("\n"); - sb.Append(" BaseUnit: ").Append(BaseUnit).Append("\n"); - sb.Append(" InTransit: ").Append(InTransit).Append("\n"); - sb.Append(" InTransitToSO: ").Append(InTransitToSO).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" InventoryIssues: ").Append(InventoryIssues).Append("\n"); - sb.Append(" InventoryReceipts: ").Append(InventoryReceipts).Append("\n"); - sb.Append(" KitAssemblyDemand: ").Append(KitAssemblyDemand).Append("\n"); - sb.Append(" KitAssemblySupply: ").Append(KitAssemblySupply).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" OnHand: ").Append(OnHand).Append("\n"); - sb.Append(" OnLocationNotAvailable: ").Append(OnLocationNotAvailable).Append("\n"); - sb.Append(" PurchaseForSO: ").Append(PurchaseForSO).Append("\n"); - sb.Append(" PurchaseForSOPrepared: ").Append(PurchaseForSOPrepared).Append("\n"); - sb.Append(" PurchaseOrders: ").Append(PurchaseOrders).Append("\n"); - sb.Append(" PurchasePrepared: ").Append(PurchasePrepared).Append("\n"); - sb.Append(" PurchaseReceipts: ").Append(PurchaseReceipts).Append("\n"); - sb.Append(" ReceiptsForSO: ").Append(ReceiptsForSO).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" SOAllocated: ").Append(SOAllocated).Append("\n"); - sb.Append(" SOBackOrdered: ").Append(SOBackOrdered).Append("\n"); - sb.Append(" SOBooked: ").Append(SOBooked).Append("\n"); - sb.Append(" SOPrepared: ").Append(SOPrepared).Append("\n"); - sb.Append(" SOShipped: ").Append(SOShipped).Append("\n"); - sb.Append(" SOToPurchase: ").Append(SOToPurchase).Append("\n"); - sb.Append(" TotalAddition: ").Append(TotalAddition).Append("\n"); - sb.Append(" TotalDeduction: ").Append(TotalDeduction).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryAllocationInquiry); - } - - /// - /// Returns true if InventoryAllocationInquiry instances are equal - /// - /// Instance of InventoryAllocationInquiry to be compared - /// Boolean - public bool Equals(InventoryAllocationInquiry input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Available == input.Available || - (this.Available != null && - this.Available.Equals(input.Available)) - ) && base.Equals(input) && - ( - this.AvailableForIssue == input.AvailableForIssue || - (this.AvailableForIssue != null && - this.AvailableForIssue.Equals(input.AvailableForIssue)) - ) && base.Equals(input) && - ( - this.AvailableForShipping == input.AvailableForShipping || - (this.AvailableForShipping != null && - this.AvailableForShipping.Equals(input.AvailableForShipping)) - ) && base.Equals(input) && - ( - this.BaseUnit == input.BaseUnit || - (this.BaseUnit != null && - this.BaseUnit.Equals(input.BaseUnit)) - ) && base.Equals(input) && - ( - this.InTransit == input.InTransit || - (this.InTransit != null && - this.InTransit.Equals(input.InTransit)) - ) && base.Equals(input) && - ( - this.InTransitToSO == input.InTransitToSO || - (this.InTransitToSO != null && - this.InTransitToSO.Equals(input.InTransitToSO)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.InventoryIssues == input.InventoryIssues || - (this.InventoryIssues != null && - this.InventoryIssues.Equals(input.InventoryIssues)) - ) && base.Equals(input) && - ( - this.InventoryReceipts == input.InventoryReceipts || - (this.InventoryReceipts != null && - this.InventoryReceipts.Equals(input.InventoryReceipts)) - ) && base.Equals(input) && - ( - this.KitAssemblyDemand == input.KitAssemblyDemand || - (this.KitAssemblyDemand != null && - this.KitAssemblyDemand.Equals(input.KitAssemblyDemand)) - ) && base.Equals(input) && - ( - this.KitAssemblySupply == input.KitAssemblySupply || - (this.KitAssemblySupply != null && - this.KitAssemblySupply.Equals(input.KitAssemblySupply)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.OnHand == input.OnHand || - (this.OnHand != null && - this.OnHand.Equals(input.OnHand)) - ) && base.Equals(input) && - ( - this.OnLocationNotAvailable == input.OnLocationNotAvailable || - (this.OnLocationNotAvailable != null && - this.OnLocationNotAvailable.Equals(input.OnLocationNotAvailable)) - ) && base.Equals(input) && - ( - this.PurchaseForSO == input.PurchaseForSO || - (this.PurchaseForSO != null && - this.PurchaseForSO.Equals(input.PurchaseForSO)) - ) && base.Equals(input) && - ( - this.PurchaseForSOPrepared == input.PurchaseForSOPrepared || - (this.PurchaseForSOPrepared != null && - this.PurchaseForSOPrepared.Equals(input.PurchaseForSOPrepared)) - ) && base.Equals(input) && - ( - this.PurchaseOrders == input.PurchaseOrders || - (this.PurchaseOrders != null && - this.PurchaseOrders.Equals(input.PurchaseOrders)) - ) && base.Equals(input) && - ( - this.PurchasePrepared == input.PurchasePrepared || - (this.PurchasePrepared != null && - this.PurchasePrepared.Equals(input.PurchasePrepared)) - ) && base.Equals(input) && - ( - this.PurchaseReceipts == input.PurchaseReceipts || - (this.PurchaseReceipts != null && - this.PurchaseReceipts.Equals(input.PurchaseReceipts)) - ) && base.Equals(input) && - ( - this.ReceiptsForSO == input.ReceiptsForSO || - (this.ReceiptsForSO != null && - this.ReceiptsForSO.Equals(input.ReceiptsForSO)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.SOAllocated == input.SOAllocated || - (this.SOAllocated != null && - this.SOAllocated.Equals(input.SOAllocated)) - ) && base.Equals(input) && - ( - this.SOBackOrdered == input.SOBackOrdered || - (this.SOBackOrdered != null && - this.SOBackOrdered.Equals(input.SOBackOrdered)) - ) && base.Equals(input) && - ( - this.SOBooked == input.SOBooked || - (this.SOBooked != null && - this.SOBooked.Equals(input.SOBooked)) - ) && base.Equals(input) && - ( - this.SOPrepared == input.SOPrepared || - (this.SOPrepared != null && - this.SOPrepared.Equals(input.SOPrepared)) - ) && base.Equals(input) && - ( - this.SOShipped == input.SOShipped || - (this.SOShipped != null && - this.SOShipped.Equals(input.SOShipped)) - ) && base.Equals(input) && - ( - this.SOToPurchase == input.SOToPurchase || - (this.SOToPurchase != null && - this.SOToPurchase.Equals(input.SOToPurchase)) - ) && base.Equals(input) && - ( - this.TotalAddition == input.TotalAddition || - (this.TotalAddition != null && - this.TotalAddition.Equals(input.TotalAddition)) - ) && base.Equals(input) && - ( - this.TotalDeduction == input.TotalDeduction || - (this.TotalDeduction != null && - this.TotalDeduction.Equals(input.TotalDeduction)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Available != null) - hashCode = hashCode * 59 + this.Available.GetHashCode(); - if (this.AvailableForIssue != null) - hashCode = hashCode * 59 + this.AvailableForIssue.GetHashCode(); - if (this.AvailableForShipping != null) - hashCode = hashCode * 59 + this.AvailableForShipping.GetHashCode(); - if (this.BaseUnit != null) - hashCode = hashCode * 59 + this.BaseUnit.GetHashCode(); - if (this.InTransit != null) - hashCode = hashCode * 59 + this.InTransit.GetHashCode(); - if (this.InTransitToSO != null) - hashCode = hashCode * 59 + this.InTransitToSO.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.InventoryIssues != null) - hashCode = hashCode * 59 + this.InventoryIssues.GetHashCode(); - if (this.InventoryReceipts != null) - hashCode = hashCode * 59 + this.InventoryReceipts.GetHashCode(); - if (this.KitAssemblyDemand != null) - hashCode = hashCode * 59 + this.KitAssemblyDemand.GetHashCode(); - if (this.KitAssemblySupply != null) - hashCode = hashCode * 59 + this.KitAssemblySupply.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.OnHand != null) - hashCode = hashCode * 59 + this.OnHand.GetHashCode(); - if (this.OnLocationNotAvailable != null) - hashCode = hashCode * 59 + this.OnLocationNotAvailable.GetHashCode(); - if (this.PurchaseForSO != null) - hashCode = hashCode * 59 + this.PurchaseForSO.GetHashCode(); - if (this.PurchaseForSOPrepared != null) - hashCode = hashCode * 59 + this.PurchaseForSOPrepared.GetHashCode(); - if (this.PurchaseOrders != null) - hashCode = hashCode * 59 + this.PurchaseOrders.GetHashCode(); - if (this.PurchasePrepared != null) - hashCode = hashCode * 59 + this.PurchasePrepared.GetHashCode(); - if (this.PurchaseReceipts != null) - hashCode = hashCode * 59 + this.PurchaseReceipts.GetHashCode(); - if (this.ReceiptsForSO != null) - hashCode = hashCode * 59 + this.ReceiptsForSO.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.SOAllocated != null) - hashCode = hashCode * 59 + this.SOAllocated.GetHashCode(); - if (this.SOBackOrdered != null) - hashCode = hashCode * 59 + this.SOBackOrdered.GetHashCode(); - if (this.SOBooked != null) - hashCode = hashCode * 59 + this.SOBooked.GetHashCode(); - if (this.SOPrepared != null) - hashCode = hashCode * 59 + this.SOPrepared.GetHashCode(); - if (this.SOShipped != null) - hashCode = hashCode * 59 + this.SOShipped.GetHashCode(); - if (this.SOToPurchase != null) - hashCode = hashCode * 59 + this.SOToPurchase.GetHashCode(); - if (this.TotalAddition != null) - hashCode = hashCode * 59 + this.TotalAddition.GetHashCode(); - if (this.TotalDeduction != null) - hashCode = hashCode * 59 + this.TotalDeduction.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InventoryAllocationRow.cs b/Default.18.200.001/Model/InventoryAllocationRow.cs deleted file mode 100644 index d2e8f49d..00000000 --- a/Default.18.200.001/Model/InventoryAllocationRow.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InventoryAllocationRow - /// - [DataContract] - public partial class InventoryAllocationRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocationDate. - /// allocationType. - /// docType. - /// expired. - /// location. - /// lotSerialNbr. - /// module. - /// qty. - public InventoryAllocationRow(DateTimeValue allocationDate = default(DateTimeValue), StringValue allocationType = default(StringValue), StringValue docType = default(StringValue), BooleanValue expired = default(BooleanValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), StringValue module = default(StringValue), DecimalValue qty = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllocationDate = allocationDate; - this.AllocationType = allocationType; - this.DocType = docType; - this.Expired = expired; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.Module = module; - this.Qty = qty; - } - - /// - /// Gets or Sets AllocationDate - /// - [DataMember(Name="AllocationDate", EmitDefaultValue=false)] - public DateTimeValue AllocationDate { get; set; } - - /// - /// Gets or Sets AllocationType - /// - [DataMember(Name="AllocationType", EmitDefaultValue=false)] - public StringValue AllocationType { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets Expired - /// - [DataMember(Name="Expired", EmitDefaultValue=false)] - public BooleanValue Expired { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryAllocationRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllocationDate: ").Append(AllocationDate).Append("\n"); - sb.Append(" AllocationType: ").Append(AllocationType).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" Expired: ").Append(Expired).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryAllocationRow); - } - - /// - /// Returns true if InventoryAllocationRow instances are equal - /// - /// Instance of InventoryAllocationRow to be compared - /// Boolean - public bool Equals(InventoryAllocationRow input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AllocationDate == input.AllocationDate || - (this.AllocationDate != null && - this.AllocationDate.Equals(input.AllocationDate)) - ) && base.Equals(input) && - ( - this.AllocationType == input.AllocationType || - (this.AllocationType != null && - this.AllocationType.Equals(input.AllocationType)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.Expired == input.Expired || - (this.Expired != null && - this.Expired.Equals(input.Expired)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllocationDate != null) - hashCode = hashCode * 59 + this.AllocationDate.GetHashCode(); - if (this.AllocationType != null) - hashCode = hashCode * 59 + this.AllocationType.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.Expired != null) - hashCode = hashCode * 59 + this.Expired.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InventoryItemCrossReference.cs b/Default.18.200.001/Model/InventoryItemCrossReference.cs deleted file mode 100644 index bdec7b45..00000000 --- a/Default.18.200.001/Model/InventoryItemCrossReference.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InventoryItemCrossReference - /// - [DataContract] - public partial class InventoryItemCrossReference : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// alternateID. - /// alternateType. - /// description. - /// subitem. - /// vendorOrCustomer. - public InventoryItemCrossReference(StringValue alternateID = default(StringValue), StringValue alternateType = default(StringValue), StringValue description = default(StringValue), StringValue subitem = default(StringValue), StringValue vendorOrCustomer = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AlternateID = alternateID; - this.AlternateType = alternateType; - this.Description = description; - this.Subitem = subitem; - this.VendorOrCustomer = vendorOrCustomer; - } - - /// - /// Gets or Sets AlternateID - /// - [DataMember(Name="AlternateID", EmitDefaultValue=false)] - public StringValue AlternateID { get; set; } - - /// - /// Gets or Sets AlternateType - /// - [DataMember(Name="AlternateType", EmitDefaultValue=false)] - public StringValue AlternateType { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets VendorOrCustomer - /// - [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] - public StringValue VendorOrCustomer { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryItemCrossReference {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AlternateID: ").Append(AlternateID).Append("\n"); - sb.Append(" AlternateType: ").Append(AlternateType).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" VendorOrCustomer: ").Append(VendorOrCustomer).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryItemCrossReference); - } - - /// - /// Returns true if InventoryItemCrossReference instances are equal - /// - /// Instance of InventoryItemCrossReference to be compared - /// Boolean - public bool Equals(InventoryItemCrossReference input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AlternateID == input.AlternateID || - (this.AlternateID != null && - this.AlternateID.Equals(input.AlternateID)) - ) && base.Equals(input) && - ( - this.AlternateType == input.AlternateType || - (this.AlternateType != null && - this.AlternateType.Equals(input.AlternateType)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.VendorOrCustomer == input.VendorOrCustomer || - (this.VendorOrCustomer != null && - this.VendorOrCustomer.Equals(input.VendorOrCustomer)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AlternateID != null) - hashCode = hashCode * 59 + this.AlternateID.GetHashCode(); - if (this.AlternateType != null) - hashCode = hashCode * 59 + this.AlternateType.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.VendorOrCustomer != null) - hashCode = hashCode * 59 + this.VendorOrCustomer.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InventoryItemUOMConversion.cs b/Default.18.200.001/Model/InventoryItemUOMConversion.cs deleted file mode 100644 index 57ca9fab..00000000 --- a/Default.18.200.001/Model/InventoryItemUOMConversion.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InventoryItemUOMConversion - /// - [DataContract] - public partial class InventoryItemUOMConversion : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// conversionFactor. - /// fromUOM. - /// multiplyOrDivide. - /// toUOM. - public InventoryItemUOMConversion(DecimalValue conversionFactor = default(DecimalValue), StringValue fromUOM = default(StringValue), StringValue multiplyOrDivide = default(StringValue), StringValue toUOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ConversionFactor = conversionFactor; - this.FromUOM = fromUOM; - this.MultiplyOrDivide = multiplyOrDivide; - this.ToUOM = toUOM; - } - - /// - /// Gets or Sets ConversionFactor - /// - [DataMember(Name="ConversionFactor", EmitDefaultValue=false)] - public DecimalValue ConversionFactor { get; set; } - - /// - /// Gets or Sets FromUOM - /// - [DataMember(Name="FromUOM", EmitDefaultValue=false)] - public StringValue FromUOM { get; set; } - - /// - /// Gets or Sets MultiplyOrDivide - /// - [DataMember(Name="MultiplyOrDivide", EmitDefaultValue=false)] - public StringValue MultiplyOrDivide { get; set; } - - /// - /// Gets or Sets ToUOM - /// - [DataMember(Name="ToUOM", EmitDefaultValue=false)] - public StringValue ToUOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryItemUOMConversion {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ConversionFactor: ").Append(ConversionFactor).Append("\n"); - sb.Append(" FromUOM: ").Append(FromUOM).Append("\n"); - sb.Append(" MultiplyOrDivide: ").Append(MultiplyOrDivide).Append("\n"); - sb.Append(" ToUOM: ").Append(ToUOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryItemUOMConversion); - } - - /// - /// Returns true if InventoryItemUOMConversion instances are equal - /// - /// Instance of InventoryItemUOMConversion to be compared - /// Boolean - public bool Equals(InventoryItemUOMConversion input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ConversionFactor == input.ConversionFactor || - (this.ConversionFactor != null && - this.ConversionFactor.Equals(input.ConversionFactor)) - ) && base.Equals(input) && - ( - this.FromUOM == input.FromUOM || - (this.FromUOM != null && - this.FromUOM.Equals(input.FromUOM)) - ) && base.Equals(input) && - ( - this.MultiplyOrDivide == input.MultiplyOrDivide || - (this.MultiplyOrDivide != null && - this.MultiplyOrDivide.Equals(input.MultiplyOrDivide)) - ) && base.Equals(input) && - ( - this.ToUOM == input.ToUOM || - (this.ToUOM != null && - this.ToUOM.Equals(input.ToUOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ConversionFactor != null) - hashCode = hashCode * 59 + this.ConversionFactor.GetHashCode(); - if (this.FromUOM != null) - hashCode = hashCode * 59 + this.FromUOM.GetHashCode(); - if (this.MultiplyOrDivide != null) - hashCode = hashCode * 59 + this.MultiplyOrDivide.GetHashCode(); - if (this.ToUOM != null) - hashCode = hashCode * 59 + this.ToUOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InventoryReceipt.cs b/Default.18.200.001/Model/InventoryReceipt.cs deleted file mode 100644 index 6ab10922..00000000 --- a/Default.18.200.001/Model/InventoryReceipt.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InventoryReceipt - /// - [DataContract] - public partial class InventoryReceipt : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// controlCost. - /// controlQty. - /// date. - /// description. - /// details. - /// hold. - /// postPeriod. - /// referenceNbr. - /// status. - /// totalCost. - /// totalQty. - /// transferNbr. - public InventoryReceipt(DecimalValue controlCost = default(DecimalValue), DecimalValue controlQty = default(DecimalValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), BooleanValue hold = default(BooleanValue), StringValue postPeriod = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalCost = default(DecimalValue), DecimalValue totalQty = default(DecimalValue), StringValue transferNbr = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ControlCost = controlCost; - this.ControlQty = controlQty; - this.Date = date; - this.Description = description; - this.Details = details; - this.Hold = hold; - this.PostPeriod = postPeriod; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TotalCost = totalCost; - this.TotalQty = totalQty; - this.TransferNbr = transferNbr; - } - - /// - /// Gets or Sets ControlCost - /// - [DataMember(Name="ControlCost", EmitDefaultValue=false)] - public DecimalValue ControlCost { get; set; } - - /// - /// Gets or Sets ControlQty - /// - [DataMember(Name="ControlQty", EmitDefaultValue=false)] - public DecimalValue ControlQty { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TotalCost - /// - [DataMember(Name="TotalCost", EmitDefaultValue=false)] - public DecimalValue TotalCost { get; set; } - - /// - /// Gets or Sets TotalQty - /// - [DataMember(Name="TotalQty", EmitDefaultValue=false)] - public DecimalValue TotalQty { get; set; } - - /// - /// Gets or Sets TransferNbr - /// - [DataMember(Name="TransferNbr", EmitDefaultValue=false)] - public StringValue TransferNbr { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryReceipt {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ControlCost: ").Append(ControlCost).Append("\n"); - sb.Append(" ControlQty: ").Append(ControlQty).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalCost: ").Append(TotalCost).Append("\n"); - sb.Append(" TotalQty: ").Append(TotalQty).Append("\n"); - sb.Append(" TransferNbr: ").Append(TransferNbr).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryReceipt); - } - - /// - /// Returns true if InventoryReceipt instances are equal - /// - /// Instance of InventoryReceipt to be compared - /// Boolean - public bool Equals(InventoryReceipt input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ControlCost == input.ControlCost || - (this.ControlCost != null && - this.ControlCost.Equals(input.ControlCost)) - ) && base.Equals(input) && - ( - this.ControlQty == input.ControlQty || - (this.ControlQty != null && - this.ControlQty.Equals(input.ControlQty)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalCost == input.TotalCost || - (this.TotalCost != null && - this.TotalCost.Equals(input.TotalCost)) - ) && base.Equals(input) && - ( - this.TotalQty == input.TotalQty || - (this.TotalQty != null && - this.TotalQty.Equals(input.TotalQty)) - ) && base.Equals(input) && - ( - this.TransferNbr == input.TransferNbr || - (this.TransferNbr != null && - this.TransferNbr.Equals(input.TransferNbr)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ControlCost != null) - hashCode = hashCode * 59 + this.ControlCost.GetHashCode(); - if (this.ControlQty != null) - hashCode = hashCode * 59 + this.ControlQty.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalCost != null) - hashCode = hashCode * 59 + this.TotalCost.GetHashCode(); - if (this.TotalQty != null) - hashCode = hashCode * 59 + this.TotalQty.GetHashCode(); - if (this.TransferNbr != null) - hashCode = hashCode * 59 + this.TransferNbr.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InventoryReceiptDetail.cs b/Default.18.200.001/Model/InventoryReceiptDetail.cs deleted file mode 100644 index 611c68e3..00000000 --- a/Default.18.200.001/Model/InventoryReceiptDetail.cs +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InventoryReceiptDetail - /// - [DataContract] - public partial class InventoryReceiptDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocations. - /// costCode. - /// description. - /// expirationDate. - /// extCost. - /// inventoryID. - /// lineNumber. - /// location. - /// lotSerialNbr. - /// project. - /// projectTask. - /// qty. - /// subitem. - /// unitCost. - /// uOM. - /// warehouseID. - public InventoryReceiptDetail(IEnumerable allocations = default(IEnumerable), StringValue costCode = default(StringValue), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), DecimalValue extCost = default(DecimalValue), StringValue inventoryID = default(StringValue), IntValue lineNumber = default(IntValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subitem = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocations = allocations; - this.CostCode = costCode; - this.Description = description; - this.ExpirationDate = expirationDate; - this.ExtCost = extCost; - this.InventoryID = inventoryID; - this.LineNumber = lineNumber; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.Project = project; - this.ProjectTask = projectTask; - this.Qty = qty; - this.Subitem = subitem; - this.UnitCost = unitCost; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public IEnumerable Allocations { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets ExtCost - /// - [DataMember(Name="ExtCost", EmitDefaultValue=false)] - public DecimalValue ExtCost { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNumber - /// - [DataMember(Name="LineNumber", EmitDefaultValue=false)] - public IntValue LineNumber { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryReceiptDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" ExtCost: ").Append(ExtCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNumber: ").Append(LineNumber).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryReceiptDetail); - } - - /// - /// Returns true if InventoryReceiptDetail instances are equal - /// - /// Instance of InventoryReceiptDetail to be compared - /// Boolean - public bool Equals(InventoryReceiptDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.ExtCost == input.ExtCost || - (this.ExtCost != null && - this.ExtCost.Equals(input.ExtCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNumber == input.LineNumber || - (this.LineNumber != null && - this.LineNumber.Equals(input.LineNumber)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.ExtCost != null) - hashCode = hashCode * 59 + this.ExtCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNumber != null) - hashCode = hashCode * 59 + this.LineNumber.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InventoryReceiptDetailAllocation.cs b/Default.18.200.001/Model/InventoryReceiptDetailAllocation.cs deleted file mode 100644 index d465ce41..00000000 --- a/Default.18.200.001/Model/InventoryReceiptDetailAllocation.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InventoryReceiptDetailAllocation - /// - [DataContract] - public partial class InventoryReceiptDetailAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// expirationDate. - /// inventoryID. - /// location. - /// lotSerialNbr. - /// qty. - /// splitLineNumber. - /// subitem. - /// uOM. - public InventoryReceiptDetailAllocation(DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), IntValue splitLineNumber = default(IntValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.SplitLineNumber = splitLineNumber; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets SplitLineNumber - /// - [DataMember(Name="SplitLineNumber", EmitDefaultValue=false)] - public IntValue SplitLineNumber { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventoryReceiptDetailAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" SplitLineNumber: ").Append(SplitLineNumber).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventoryReceiptDetailAllocation); - } - - /// - /// Returns true if InventoryReceiptDetailAllocation instances are equal - /// - /// Instance of InventoryReceiptDetailAllocation to be compared - /// Boolean - public bool Equals(InventoryReceiptDetailAllocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.SplitLineNumber == input.SplitLineNumber || - (this.SplitLineNumber != null && - this.SplitLineNumber.Equals(input.SplitLineNumber)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.SplitLineNumber != null) - hashCode = hashCode * 59 + this.SplitLineNumber.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InventorySummaryInquiry.cs b/Default.18.200.001/Model/InventorySummaryInquiry.cs deleted file mode 100644 index a10aba34..00000000 --- a/Default.18.200.001/Model/InventorySummaryInquiry.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InventorySummaryInquiry - /// - [DataContract] - public partial class InventorySummaryInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// expandByLotSerialNbr. - /// inventoryID. - /// locationID. - /// results. - /// subitem. - /// warehouseID. - public InventorySummaryInquiry(BooleanValue expandByLotSerialNbr = default(BooleanValue), StringValue inventoryID = default(StringValue), StringValue locationID = default(StringValue), IEnumerable results = default(IEnumerable), StringValue subitem = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ExpandByLotSerialNbr = expandByLotSerialNbr; - this.InventoryID = inventoryID; - this.LocationID = locationID; - this.Results = results; - this.Subitem = subitem; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets ExpandByLotSerialNbr - /// - [DataMember(Name="ExpandByLotSerialNbr", EmitDefaultValue=false)] - public BooleanValue ExpandByLotSerialNbr { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets Results - /// - [DataMember(Name="Results", EmitDefaultValue=false)] - public IEnumerable Results { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventorySummaryInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ExpandByLotSerialNbr: ").Append(ExpandByLotSerialNbr).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" Results: ").Append(Results).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventorySummaryInquiry); - } - - /// - /// Returns true if InventorySummaryInquiry instances are equal - /// - /// Instance of InventorySummaryInquiry to be compared - /// Boolean - public bool Equals(InventorySummaryInquiry input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ExpandByLotSerialNbr == input.ExpandByLotSerialNbr || - (this.ExpandByLotSerialNbr != null && - this.ExpandByLotSerialNbr.Equals(input.ExpandByLotSerialNbr)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.Results == input.Results || - this.Results != null && - this.Results.SequenceEqual(input.Results) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ExpandByLotSerialNbr != null) - hashCode = hashCode * 59 + this.ExpandByLotSerialNbr.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.Results != null) - hashCode = hashCode * 59 + this.Results.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InventorySummaryRow.cs b/Default.18.200.001/Model/InventorySummaryRow.cs deleted file mode 100644 index f9c8c7c5..00000000 --- a/Default.18.200.001/Model/InventorySummaryRow.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InventorySummaryRow - /// - [DataContract] - public partial class InventorySummaryRow : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// baseUOM. - /// estimatedTotalCost. - /// estimatedUnitCost. - /// expirationDate. - /// locationID. - /// lotSerialNbr. - /// qtyAvailable. - /// qtyAvailableForShipment. - /// qtyNotAvailable. - /// qtyOnHand. - /// subitem. - /// warehouseID. - public InventorySummaryRow(StringValue baseUOM = default(StringValue), DecimalValue estimatedTotalCost = default(DecimalValue), DecimalValue estimatedUnitCost = default(DecimalValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qtyAvailable = default(DecimalValue), DecimalValue qtyAvailableForShipment = default(DecimalValue), DecimalValue qtyNotAvailable = default(DecimalValue), DecimalValue qtyOnHand = default(DecimalValue), StringValue subitem = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BaseUOM = baseUOM; - this.EstimatedTotalCost = estimatedTotalCost; - this.EstimatedUnitCost = estimatedUnitCost; - this.ExpirationDate = expirationDate; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.QtyAvailable = qtyAvailable; - this.QtyAvailableForShipment = qtyAvailableForShipment; - this.QtyNotAvailable = qtyNotAvailable; - this.QtyOnHand = qtyOnHand; - this.Subitem = subitem; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets BaseUOM - /// - [DataMember(Name="BaseUOM", EmitDefaultValue=false)] - public StringValue BaseUOM { get; set; } - - /// - /// Gets or Sets EstimatedTotalCost - /// - [DataMember(Name="EstimatedTotalCost", EmitDefaultValue=false)] - public DecimalValue EstimatedTotalCost { get; set; } - - /// - /// Gets or Sets EstimatedUnitCost - /// - [DataMember(Name="EstimatedUnitCost", EmitDefaultValue=false)] - public DecimalValue EstimatedUnitCost { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets QtyAvailable - /// - [DataMember(Name="QtyAvailable", EmitDefaultValue=false)] - public DecimalValue QtyAvailable { get; set; } - - /// - /// Gets or Sets QtyAvailableForShipment - /// - [DataMember(Name="QtyAvailableForShipment", EmitDefaultValue=false)] - public DecimalValue QtyAvailableForShipment { get; set; } - - /// - /// Gets or Sets QtyNotAvailable - /// - [DataMember(Name="QtyNotAvailable", EmitDefaultValue=false)] - public DecimalValue QtyNotAvailable { get; set; } - - /// - /// Gets or Sets QtyOnHand - /// - [DataMember(Name="QtyOnHand", EmitDefaultValue=false)] - public DecimalValue QtyOnHand { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InventorySummaryRow {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BaseUOM: ").Append(BaseUOM).Append("\n"); - sb.Append(" EstimatedTotalCost: ").Append(EstimatedTotalCost).Append("\n"); - sb.Append(" EstimatedUnitCost: ").Append(EstimatedUnitCost).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" QtyAvailable: ").Append(QtyAvailable).Append("\n"); - sb.Append(" QtyAvailableForShipment: ").Append(QtyAvailableForShipment).Append("\n"); - sb.Append(" QtyNotAvailable: ").Append(QtyNotAvailable).Append("\n"); - sb.Append(" QtyOnHand: ").Append(QtyOnHand).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InventorySummaryRow); - } - - /// - /// Returns true if InventorySummaryRow instances are equal - /// - /// Instance of InventorySummaryRow to be compared - /// Boolean - public bool Equals(InventorySummaryRow input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BaseUOM == input.BaseUOM || - (this.BaseUOM != null && - this.BaseUOM.Equals(input.BaseUOM)) - ) && base.Equals(input) && - ( - this.EstimatedTotalCost == input.EstimatedTotalCost || - (this.EstimatedTotalCost != null && - this.EstimatedTotalCost.Equals(input.EstimatedTotalCost)) - ) && base.Equals(input) && - ( - this.EstimatedUnitCost == input.EstimatedUnitCost || - (this.EstimatedUnitCost != null && - this.EstimatedUnitCost.Equals(input.EstimatedUnitCost)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.QtyAvailable == input.QtyAvailable || - (this.QtyAvailable != null && - this.QtyAvailable.Equals(input.QtyAvailable)) - ) && base.Equals(input) && - ( - this.QtyAvailableForShipment == input.QtyAvailableForShipment || - (this.QtyAvailableForShipment != null && - this.QtyAvailableForShipment.Equals(input.QtyAvailableForShipment)) - ) && base.Equals(input) && - ( - this.QtyNotAvailable == input.QtyNotAvailable || - (this.QtyNotAvailable != null && - this.QtyNotAvailable.Equals(input.QtyNotAvailable)) - ) && base.Equals(input) && - ( - this.QtyOnHand == input.QtyOnHand || - (this.QtyOnHand != null && - this.QtyOnHand.Equals(input.QtyOnHand)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BaseUOM != null) - hashCode = hashCode * 59 + this.BaseUOM.GetHashCode(); - if (this.EstimatedTotalCost != null) - hashCode = hashCode * 59 + this.EstimatedTotalCost.GetHashCode(); - if (this.EstimatedUnitCost != null) - hashCode = hashCode * 59 + this.EstimatedUnitCost.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.QtyAvailable != null) - hashCode = hashCode * 59 + this.QtyAvailable.GetHashCode(); - if (this.QtyAvailableForShipment != null) - hashCode = hashCode * 59 + this.QtyAvailableForShipment.GetHashCode(); - if (this.QtyNotAvailable != null) - hashCode = hashCode * 59 + this.QtyNotAvailable.GetHashCode(); - if (this.QtyOnHand != null) - hashCode = hashCode * 59 + this.QtyOnHand.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Invoice.cs b/Default.18.200.001/Model/Invoice.cs deleted file mode 100644 index 23b4a43c..00000000 --- a/Default.18.200.001/Model/Invoice.cs +++ /dev/null @@ -1,526 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Invoice - /// - [DataContract] - public partial class Invoice : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// applicationsCreditMemo. - /// applicationsDefault. - /// balance. - /// billingPrinted. - /// createdDateTime. - /// customer. - /// customerOrder. - /// date. - /// description. - /// details. - /// discountDetails. - /// dueDate. - /// hold. - /// lastModifiedDateTime. - /// linkARAccount. - /// linkBranch. - /// locationID. - /// postPeriod. - /// project. - /// referenceNbr. - /// status. - /// taxDetails. - /// taxTotal. - /// terms. - /// type. - public Invoice(DecimalValue amount = default(DecimalValue), IEnumerable applicationsCreditMemo = default(IEnumerable), IEnumerable applicationsDefault = default(IEnumerable), DecimalValue balance = default(DecimalValue), BooleanValue billingPrinted = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue customer = default(StringValue), StringValue customerOrder = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), IEnumerable discountDetails = default(IEnumerable), DateTimeValue dueDate = default(DateTimeValue), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue linkARAccount = default(StringValue), StringValue linkBranch = default(StringValue), StringValue locationID = default(StringValue), StringValue postPeriod = default(StringValue), StringValue project = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), IEnumerable taxDetails = default(IEnumerable), DecimalValue taxTotal = default(DecimalValue), StringValue terms = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.ApplicationsCreditMemo = applicationsCreditMemo; - this.ApplicationsDefault = applicationsDefault; - this.Balance = balance; - this.BillingPrinted = billingPrinted; - this.CreatedDateTime = createdDateTime; - this.Customer = customer; - this.CustomerOrder = customerOrder; - this.Date = date; - this.Description = description; - this.Details = details; - this.DiscountDetails = discountDetails; - this.DueDate = dueDate; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LinkARAccount = linkARAccount; - this.LinkBranch = linkBranch; - this.LocationID = locationID; - this.PostPeriod = postPeriod; - this.Project = project; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TaxDetails = taxDetails; - this.TaxTotal = taxTotal; - this.Terms = terms; - this.Type = type; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets ApplicationsCreditMemo - /// - [DataMember(Name="ApplicationsCreditMemo", EmitDefaultValue=false)] - public IEnumerable ApplicationsCreditMemo { get; set; } - - /// - /// Gets or Sets ApplicationsDefault - /// - [DataMember(Name="ApplicationsDefault", EmitDefaultValue=false)] - public IEnumerable ApplicationsDefault { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets BillingPrinted - /// - [DataMember(Name="BillingPrinted", EmitDefaultValue=false)] - public BooleanValue BillingPrinted { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets DiscountDetails - /// - [DataMember(Name="DiscountDetails", EmitDefaultValue=false)] - public IEnumerable DiscountDetails { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LinkARAccount - /// - [DataMember(Name="LinkARAccount", EmitDefaultValue=false)] - public StringValue LinkARAccount { get; set; } - - /// - /// Gets or Sets LinkBranch - /// - [DataMember(Name="LinkBranch", EmitDefaultValue=false)] - public StringValue LinkBranch { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public IEnumerable TaxDetails { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Invoice {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" ApplicationsCreditMemo: ").Append(ApplicationsCreditMemo).Append("\n"); - sb.Append(" ApplicationsDefault: ").Append(ApplicationsDefault).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" BillingPrinted: ").Append(BillingPrinted).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" DiscountDetails: ").Append(DiscountDetails).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LinkARAccount: ").Append(LinkARAccount).Append("\n"); - sb.Append(" LinkBranch: ").Append(LinkBranch).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Invoice); - } - - /// - /// Returns true if Invoice instances are equal - /// - /// Instance of Invoice to be compared - /// Boolean - public bool Equals(Invoice input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.ApplicationsCreditMemo == input.ApplicationsCreditMemo || - this.ApplicationsCreditMemo != null && - this.ApplicationsCreditMemo.SequenceEqual(input.ApplicationsCreditMemo) - ) && base.Equals(input) && - ( - this.ApplicationsDefault == input.ApplicationsDefault || - this.ApplicationsDefault != null && - this.ApplicationsDefault.SequenceEqual(input.ApplicationsDefault) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.BillingPrinted == input.BillingPrinted || - (this.BillingPrinted != null && - this.BillingPrinted.Equals(input.BillingPrinted)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.DiscountDetails == input.DiscountDetails || - this.DiscountDetails != null && - this.DiscountDetails.SequenceEqual(input.DiscountDetails) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LinkARAccount == input.LinkARAccount || - (this.LinkARAccount != null && - this.LinkARAccount.Equals(input.LinkARAccount)) - ) && base.Equals(input) && - ( - this.LinkBranch == input.LinkBranch || - (this.LinkBranch != null && - this.LinkBranch.Equals(input.LinkBranch)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.ApplicationsCreditMemo != null) - hashCode = hashCode * 59 + this.ApplicationsCreditMemo.GetHashCode(); - if (this.ApplicationsDefault != null) - hashCode = hashCode * 59 + this.ApplicationsDefault.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.BillingPrinted != null) - hashCode = hashCode * 59 + this.BillingPrinted.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.DiscountDetails != null) - hashCode = hashCode * 59 + this.DiscountDetails.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LinkARAccount != null) - hashCode = hashCode * 59 + this.LinkARAccount.GetHashCode(); - if (this.LinkBranch != null) - hashCode = hashCode * 59 + this.LinkBranch.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InvoiceApplicationsCreditMemo.cs b/Default.18.200.001/Model/InvoiceApplicationsCreditMemo.cs deleted file mode 100644 index 2fde1e0b..00000000 --- a/Default.18.200.001/Model/InvoiceApplicationsCreditMemo.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InvoiceApplicationsCreditMemo - /// - [DataContract] - public partial class InvoiceApplicationsCreditMemo : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// customer. - /// customerOrder. - /// description. - /// docType. - /// postPeriod. - /// referenceNbr. - /// status. - public InvoiceApplicationsCreditMemo(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), StringValue customer = default(StringValue), StringValue customerOrder = default(StringValue), StringValue description = default(StringValue), StringValue docType = default(StringValue), StringValue postPeriod = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.Customer = customer; - this.CustomerOrder = customerOrder; - this.Description = description; - this.DocType = docType; - this.PostPeriod = postPeriod; - this.ReferenceNbr = referenceNbr; - this.Status = status; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InvoiceApplicationsCreditMemo {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InvoiceApplicationsCreditMemo); - } - - /// - /// Returns true if InvoiceApplicationsCreditMemo instances are equal - /// - /// Instance of InvoiceApplicationsCreditMemo to be compared - /// Boolean - public bool Equals(InvoiceApplicationsCreditMemo input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InvoiceApplicationsDefault.cs b/Default.18.200.001/Model/InvoiceApplicationsDefault.cs deleted file mode 100644 index 86c33d72..00000000 --- a/Default.18.200.001/Model/InvoiceApplicationsDefault.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InvoiceApplicationsDefault - /// - [DataContract] - public partial class InvoiceApplicationsDefault : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// cashDiscountTaken. - /// docType. - /// paymentDate. - /// referenceNbr. - /// status. - public InvoiceApplicationsDefault(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), DecimalValue cashDiscountTaken = default(DecimalValue), StringValue docType = default(StringValue), DateTimeValue paymentDate = default(DateTimeValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.CashDiscountTaken = cashDiscountTaken; - this.DocType = docType; - this.PaymentDate = paymentDate; - this.ReferenceNbr = referenceNbr; - this.Status = status; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashDiscountTaken - /// - [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] - public DecimalValue CashDiscountTaken { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets PaymentDate - /// - [DataMember(Name="PaymentDate", EmitDefaultValue=false)] - public DateTimeValue PaymentDate { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InvoiceApplicationsDefault {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashDiscountTaken: ").Append(CashDiscountTaken).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" PaymentDate: ").Append(PaymentDate).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InvoiceApplicationsDefault); - } - - /// - /// Returns true if InvoiceApplicationsDefault instances are equal - /// - /// Instance of InvoiceApplicationsDefault to be compared - /// Boolean - public bool Equals(InvoiceApplicationsDefault input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashDiscountTaken == input.CashDiscountTaken || - (this.CashDiscountTaken != null && - this.CashDiscountTaken.Equals(input.CashDiscountTaken)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.PaymentDate == input.PaymentDate || - (this.PaymentDate != null && - this.PaymentDate.Equals(input.PaymentDate)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashDiscountTaken != null) - hashCode = hashCode * 59 + this.CashDiscountTaken.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.PaymentDate != null) - hashCode = hashCode * 59 + this.PaymentDate.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InvoiceDetail.cs b/Default.18.200.001/Model/InvoiceDetail.cs deleted file mode 100644 index 8f953a9e..00000000 --- a/Default.18.200.001/Model/InvoiceDetail.cs +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InvoiceDetail - /// - [DataContract] - public partial class InvoiceDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// amount. - /// branch. - /// calculateDiscountsOnImport. - /// costCode. - /// discountAmount. - /// extendedPrice. - /// inventoryID. - /// lastModifiedDateTime. - /// lineNbr. - /// projectTask. - /// qty. - /// subaccount. - /// subitem. - /// transactionDescription. - /// unitPrice. - /// uOM. - public InvoiceDetail(StringValue account = default(StringValue), DecimalValue amount = default(DecimalValue), StringValue branch = default(StringValue), BooleanValue calculateDiscountsOnImport = default(BooleanValue), StringValue costCode = default(StringValue), DecimalValue discountAmount = default(DecimalValue), DecimalValue extendedPrice = default(DecimalValue), StringValue inventoryID = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), IntValue lineNbr = default(IntValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subaccount = default(StringValue), StringValue subitem = default(StringValue), StringValue transactionDescription = default(StringValue), DecimalValue unitPrice = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Amount = amount; - this.Branch = branch; - this.CalculateDiscountsOnImport = calculateDiscountsOnImport; - this.CostCode = costCode; - this.DiscountAmount = discountAmount; - this.ExtendedPrice = extendedPrice; - this.InventoryID = inventoryID; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LineNbr = lineNbr; - this.ProjectTask = projectTask; - this.Qty = qty; - this.Subaccount = subaccount; - this.Subitem = subitem; - this.TransactionDescription = transactionDescription; - this.UnitPrice = unitPrice; - this.UOM = uOM; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CalculateDiscountsOnImport - /// - [DataMember(Name="CalculateDiscountsOnImport", EmitDefaultValue=false)] - public BooleanValue CalculateDiscountsOnImport { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets ExtendedPrice - /// - [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] - public DecimalValue ExtendedPrice { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } - - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InvoiceDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CalculateDiscountsOnImport: ").Append(CalculateDiscountsOnImport).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" ExtendedPrice: ").Append(ExtendedPrice).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InvoiceDetail); - } - - /// - /// Returns true if InvoiceDetail instances are equal - /// - /// Instance of InvoiceDetail to be compared - /// Boolean - public bool Equals(InvoiceDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CalculateDiscountsOnImport == input.CalculateDiscountsOnImport || - (this.CalculateDiscountsOnImport != null && - this.CalculateDiscountsOnImport.Equals(input.CalculateDiscountsOnImport)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.ExtendedPrice == input.ExtendedPrice || - (this.ExtendedPrice != null && - this.ExtendedPrice.Equals(input.ExtendedPrice)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CalculateDiscountsOnImport != null) - hashCode = hashCode * 59 + this.CalculateDiscountsOnImport.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.ExtendedPrice != null) - hashCode = hashCode * 59 + this.ExtendedPrice.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InvoiceDiscountDetail.cs b/Default.18.200.001/Model/InvoiceDiscountDetail.cs deleted file mode 100644 index f172f538..00000000 --- a/Default.18.200.001/Model/InvoiceDiscountDetail.cs +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InvoiceDiscountDetail - /// - [DataContract] - public partial class InvoiceDiscountDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// discountableAmount. - /// discountableQty. - /// discountAmount. - /// discountCode. - /// discountPercent. - /// externalDiscountCode. - /// manualDiscount. - /// orderNbr. - /// orderType. - /// retainedDiscount. - /// sequenceID. - /// skipDiscount. - /// type. - public InvoiceDiscountDetail(StringValue description = default(StringValue), DecimalValue discountableAmount = default(DecimalValue), DecimalValue discountableQty = default(DecimalValue), DecimalValue discountAmount = default(DecimalValue), StringValue discountCode = default(StringValue), DecimalValue discountPercent = default(DecimalValue), StringValue externalDiscountCode = default(StringValue), BooleanValue manualDiscount = default(BooleanValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), DecimalValue retainedDiscount = default(DecimalValue), StringValue sequenceID = default(StringValue), BooleanValue skipDiscount = default(BooleanValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.DiscountableAmount = discountableAmount; - this.DiscountableQty = discountableQty; - this.DiscountAmount = discountAmount; - this.DiscountCode = discountCode; - this.DiscountPercent = discountPercent; - this.ExternalDiscountCode = externalDiscountCode; - this.ManualDiscount = manualDiscount; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.RetainedDiscount = retainedDiscount; - this.SequenceID = sequenceID; - this.SkipDiscount = skipDiscount; - this.Type = type; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DiscountableAmount - /// - [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] - public DecimalValue DiscountableAmount { get; set; } - - /// - /// Gets or Sets DiscountableQty - /// - [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] - public DecimalValue DiscountableQty { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets ExternalDiscountCode - /// - [DataMember(Name="ExternalDiscountCode", EmitDefaultValue=false)] - public StringValue ExternalDiscountCode { get; set; } - - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets RetainedDiscount - /// - [DataMember(Name="RetainedDiscount", EmitDefaultValue=false)] - public DecimalValue RetainedDiscount { get; set; } - - /// - /// Gets or Sets SequenceID - /// - [DataMember(Name="SequenceID", EmitDefaultValue=false)] - public StringValue SequenceID { get; set; } - - /// - /// Gets or Sets SkipDiscount - /// - [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] - public BooleanValue SkipDiscount { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InvoiceDiscountDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountableAmount: ").Append(DiscountableAmount).Append("\n"); - sb.Append(" DiscountableQty: ").Append(DiscountableQty).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" ExternalDiscountCode: ").Append(ExternalDiscountCode).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" RetainedDiscount: ").Append(RetainedDiscount).Append("\n"); - sb.Append(" SequenceID: ").Append(SequenceID).Append("\n"); - sb.Append(" SkipDiscount: ").Append(SkipDiscount).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InvoiceDiscountDetail); - } - - /// - /// Returns true if InvoiceDiscountDetail instances are equal - /// - /// Instance of InvoiceDiscountDetail to be compared - /// Boolean - public bool Equals(InvoiceDiscountDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountableAmount == input.DiscountableAmount || - (this.DiscountableAmount != null && - this.DiscountableAmount.Equals(input.DiscountableAmount)) - ) && base.Equals(input) && - ( - this.DiscountableQty == input.DiscountableQty || - (this.DiscountableQty != null && - this.DiscountableQty.Equals(input.DiscountableQty)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.ExternalDiscountCode == input.ExternalDiscountCode || - (this.ExternalDiscountCode != null && - this.ExternalDiscountCode.Equals(input.ExternalDiscountCode)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.RetainedDiscount == input.RetainedDiscount || - (this.RetainedDiscount != null && - this.RetainedDiscount.Equals(input.RetainedDiscount)) - ) && base.Equals(input) && - ( - this.SequenceID == input.SequenceID || - (this.SequenceID != null && - this.SequenceID.Equals(input.SequenceID)) - ) && base.Equals(input) && - ( - this.SkipDiscount == input.SkipDiscount || - (this.SkipDiscount != null && - this.SkipDiscount.Equals(input.SkipDiscount)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountableAmount != null) - hashCode = hashCode * 59 + this.DiscountableAmount.GetHashCode(); - if (this.DiscountableQty != null) - hashCode = hashCode * 59 + this.DiscountableQty.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.ExternalDiscountCode != null) - hashCode = hashCode * 59 + this.ExternalDiscountCode.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.RetainedDiscount != null) - hashCode = hashCode * 59 + this.RetainedDiscount.GetHashCode(); - if (this.SequenceID != null) - hashCode = hashCode * 59 + this.SequenceID.GetHashCode(); - if (this.SkipDiscount != null) - hashCode = hashCode * 59 + this.SkipDiscount.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/InvoiceTaxDetail.cs b/Default.18.200.001/Model/InvoiceTaxDetail.cs deleted file mode 100644 index 805a4e46..00000000 --- a/Default.18.200.001/Model/InvoiceTaxDetail.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// InvoiceTaxDetail - /// - [DataContract] - public partial class InvoiceTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - public InvoiceTaxDetail(DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class InvoiceTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as InvoiceTaxDetail); - } - - /// - /// Returns true if InvoiceTaxDetail instances are equal - /// - /// Instance of InvoiceTaxDetail to be compared - /// Boolean - public bool Equals(InvoiceTaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ItemClass.cs b/Default.18.200.001/Model/ItemClass.cs deleted file mode 100644 index 605e0583..00000000 --- a/Default.18.200.001/Model/ItemClass.cs +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ItemClass - /// - [DataContract] - public partial class ItemClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributes. - /// availabilityCalculationRule. - /// baseUOM. - /// classID. - /// defaultWarehouseID. - /// description. - /// itemType. - /// lastModifiedDateTime. - /// lotSerialClass. - /// postingClass. - /// priceClass. - /// purchaseUOM. - /// salesUOM. - /// stockItem. - /// taxCategoryID. - /// valuationMethod. - public ItemClass(IEnumerable attributes = default(IEnumerable), StringValue availabilityCalculationRule = default(StringValue), StringValue baseUOM = default(StringValue), StringValue classID = default(StringValue), StringValue defaultWarehouseID = default(StringValue), StringValue description = default(StringValue), StringValue itemType = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue lotSerialClass = default(StringValue), StringValue postingClass = default(StringValue), StringValue priceClass = default(StringValue), StringValue purchaseUOM = default(StringValue), StringValue salesUOM = default(StringValue), BooleanValue stockItem = default(BooleanValue), StringValue taxCategoryID = default(StringValue), StringValue valuationMethod = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attributes = attributes; - this.AvailabilityCalculationRule = availabilityCalculationRule; - this.BaseUOM = baseUOM; - this.ClassID = classID; - this.DefaultWarehouseID = defaultWarehouseID; - this.Description = description; - this.ItemType = itemType; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LotSerialClass = lotSerialClass; - this.PostingClass = postingClass; - this.PriceClass = priceClass; - this.PurchaseUOM = purchaseUOM; - this.SalesUOM = salesUOM; - this.StockItem = stockItem; - this.TaxCategoryID = taxCategoryID; - this.ValuationMethod = valuationMethod; - } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets AvailabilityCalculationRule - /// - [DataMember(Name="AvailabilityCalculationRule", EmitDefaultValue=false)] - public StringValue AvailabilityCalculationRule { get; set; } - - /// - /// Gets or Sets BaseUOM - /// - [DataMember(Name="BaseUOM", EmitDefaultValue=false)] - public StringValue BaseUOM { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets DefaultWarehouseID - /// - [DataMember(Name="DefaultWarehouseID", EmitDefaultValue=false)] - public StringValue DefaultWarehouseID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ItemType - /// - [DataMember(Name="ItemType", EmitDefaultValue=false)] - public StringValue ItemType { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LotSerialClass - /// - [DataMember(Name="LotSerialClass", EmitDefaultValue=false)] - public StringValue LotSerialClass { get; set; } - - /// - /// Gets or Sets PostingClass - /// - [DataMember(Name="PostingClass", EmitDefaultValue=false)] - public StringValue PostingClass { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets PurchaseUOM - /// - [DataMember(Name="PurchaseUOM", EmitDefaultValue=false)] - public StringValue PurchaseUOM { get; set; } - - /// - /// Gets or Sets SalesUOM - /// - [DataMember(Name="SalesUOM", EmitDefaultValue=false)] - public StringValue SalesUOM { get; set; } - - /// - /// Gets or Sets StockItem - /// - [DataMember(Name="StockItem", EmitDefaultValue=false)] - public BooleanValue StockItem { get; set; } - - /// - /// Gets or Sets TaxCategoryID - /// - [DataMember(Name="TaxCategoryID", EmitDefaultValue=false)] - public StringValue TaxCategoryID { get; set; } - - /// - /// Gets or Sets ValuationMethod - /// - [DataMember(Name="ValuationMethod", EmitDefaultValue=false)] - public StringValue ValuationMethod { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" AvailabilityCalculationRule: ").Append(AvailabilityCalculationRule).Append("\n"); - sb.Append(" BaseUOM: ").Append(BaseUOM).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" DefaultWarehouseID: ").Append(DefaultWarehouseID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LotSerialClass: ").Append(LotSerialClass).Append("\n"); - sb.Append(" PostingClass: ").Append(PostingClass).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" PurchaseUOM: ").Append(PurchaseUOM).Append("\n"); - sb.Append(" SalesUOM: ").Append(SalesUOM).Append("\n"); - sb.Append(" StockItem: ").Append(StockItem).Append("\n"); - sb.Append(" TaxCategoryID: ").Append(TaxCategoryID).Append("\n"); - sb.Append(" ValuationMethod: ").Append(ValuationMethod).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemClass); - } - - /// - /// Returns true if ItemClass instances are equal - /// - /// Instance of ItemClass to be compared - /// Boolean - public bool Equals(ItemClass input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.AvailabilityCalculationRule == input.AvailabilityCalculationRule || - (this.AvailabilityCalculationRule != null && - this.AvailabilityCalculationRule.Equals(input.AvailabilityCalculationRule)) - ) && base.Equals(input) && - ( - this.BaseUOM == input.BaseUOM || - (this.BaseUOM != null && - this.BaseUOM.Equals(input.BaseUOM)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.DefaultWarehouseID == input.DefaultWarehouseID || - (this.DefaultWarehouseID != null && - this.DefaultWarehouseID.Equals(input.DefaultWarehouseID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ItemType == input.ItemType || - (this.ItemType != null && - this.ItemType.Equals(input.ItemType)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LotSerialClass == input.LotSerialClass || - (this.LotSerialClass != null && - this.LotSerialClass.Equals(input.LotSerialClass)) - ) && base.Equals(input) && - ( - this.PostingClass == input.PostingClass || - (this.PostingClass != null && - this.PostingClass.Equals(input.PostingClass)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.PurchaseUOM == input.PurchaseUOM || - (this.PurchaseUOM != null && - this.PurchaseUOM.Equals(input.PurchaseUOM)) - ) && base.Equals(input) && - ( - this.SalesUOM == input.SalesUOM || - (this.SalesUOM != null && - this.SalesUOM.Equals(input.SalesUOM)) - ) && base.Equals(input) && - ( - this.StockItem == input.StockItem || - (this.StockItem != null && - this.StockItem.Equals(input.StockItem)) - ) && base.Equals(input) && - ( - this.TaxCategoryID == input.TaxCategoryID || - (this.TaxCategoryID != null && - this.TaxCategoryID.Equals(input.TaxCategoryID)) - ) && base.Equals(input) && - ( - this.ValuationMethod == input.ValuationMethod || - (this.ValuationMethod != null && - this.ValuationMethod.Equals(input.ValuationMethod)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.AvailabilityCalculationRule != null) - hashCode = hashCode * 59 + this.AvailabilityCalculationRule.GetHashCode(); - if (this.BaseUOM != null) - hashCode = hashCode * 59 + this.BaseUOM.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.DefaultWarehouseID != null) - hashCode = hashCode * 59 + this.DefaultWarehouseID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ItemType != null) - hashCode = hashCode * 59 + this.ItemType.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LotSerialClass != null) - hashCode = hashCode * 59 + this.LotSerialClass.GetHashCode(); - if (this.PostingClass != null) - hashCode = hashCode * 59 + this.PostingClass.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.PurchaseUOM != null) - hashCode = hashCode * 59 + this.PurchaseUOM.GetHashCode(); - if (this.SalesUOM != null) - hashCode = hashCode * 59 + this.SalesUOM.GetHashCode(); - if (this.StockItem != null) - hashCode = hashCode * 59 + this.StockItem.GetHashCode(); - if (this.TaxCategoryID != null) - hashCode = hashCode * 59 + this.TaxCategoryID.GetHashCode(); - if (this.ValuationMethod != null) - hashCode = hashCode * 59 + this.ValuationMethod.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ItemClassAtrribute.cs b/Default.18.200.001/Model/ItemClassAtrribute.cs deleted file mode 100644 index d4d880b9..00000000 --- a/Default.18.200.001/Model/ItemClassAtrribute.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ItemClassAtrribute - /// - [DataContract] - public partial class ItemClassAtrribute : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributeID. - /// required. - /// sortOrder. - public ItemClassAtrribute(StringValue attributeID = default(StringValue), BooleanValue required = default(BooleanValue), ShortValue sortOrder = default(ShortValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AttributeID = attributeID; - this.Required = required; - this.SortOrder = sortOrder; - } - - /// - /// Gets or Sets AttributeID - /// - [DataMember(Name="AttributeID", EmitDefaultValue=false)] - public StringValue AttributeID { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="Required", EmitDefaultValue=false)] - public BooleanValue Required { get; set; } - - /// - /// Gets or Sets SortOrder - /// - [DataMember(Name="SortOrder", EmitDefaultValue=false)] - public ShortValue SortOrder { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemClassAtrribute {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AttributeID: ").Append(AttributeID).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" SortOrder: ").Append(SortOrder).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemClassAtrribute); - } - - /// - /// Returns true if ItemClassAtrribute instances are equal - /// - /// Instance of ItemClassAtrribute to be compared - /// Boolean - public bool Equals(ItemClassAtrribute input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AttributeID == input.AttributeID || - (this.AttributeID != null && - this.AttributeID.Equals(input.AttributeID)) - ) && base.Equals(input) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && base.Equals(input) && - ( - this.SortOrder == input.SortOrder || - (this.SortOrder != null && - this.SortOrder.Equals(input.SortOrder)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AttributeID != null) - hashCode = hashCode * 59 + this.AttributeID.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.SortOrder != null) - hashCode = hashCode * 59 + this.SortOrder.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ItemPriceClassesDetails.cs b/Default.18.200.001/Model/ItemPriceClassesDetails.cs deleted file mode 100644 index 639ce8a5..00000000 --- a/Default.18.200.001/Model/ItemPriceClassesDetails.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ItemPriceClassesDetails - /// - [DataContract] - public partial class ItemPriceClassesDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// priceClassID. - public ItemPriceClassesDetails(StringValue priceClassID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.PriceClassID = priceClassID; - } - - /// - /// Gets or Sets PriceClassID - /// - [DataMember(Name="PriceClassID", EmitDefaultValue=false)] - public StringValue PriceClassID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemPriceClassesDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" PriceClassID: ").Append(PriceClassID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemPriceClassesDetails); - } - - /// - /// Returns true if ItemPriceClassesDetails instances are equal - /// - /// Instance of ItemPriceClassesDetails to be compared - /// Boolean - public bool Equals(ItemPriceClassesDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.PriceClassID == input.PriceClassID || - (this.PriceClassID != null && - this.PriceClassID.Equals(input.PriceClassID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.PriceClassID != null) - hashCode = hashCode * 59 + this.PriceClassID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ItemSalesCategory.cs b/Default.18.200.001/Model/ItemSalesCategory.cs deleted file mode 100644 index 3fb270df..00000000 --- a/Default.18.200.001/Model/ItemSalesCategory.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ItemSalesCategory - /// - [DataContract] - public partial class ItemSalesCategory : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// categoryID. - /// description. - /// lastModifiedDateTime. - /// members. - /// parentCategoryID. - /// path. - public ItemSalesCategory(IntValue categoryID = default(IntValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), IEnumerable members = default(IEnumerable), IntValue parentCategoryID = default(IntValue), StringValue path = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CategoryID = categoryID; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Members = members; - this.ParentCategoryID = parentCategoryID; - this.Path = path; - } - - /// - /// Gets or Sets CategoryID - /// - [DataMember(Name="CategoryID", EmitDefaultValue=false)] - public IntValue CategoryID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Members - /// - [DataMember(Name="Members", EmitDefaultValue=false)] - public IEnumerable Members { get; set; } - - /// - /// Gets or Sets ParentCategoryID - /// - [DataMember(Name="ParentCategoryID", EmitDefaultValue=false)] - public IntValue ParentCategoryID { get; set; } - - /// - /// Gets or Sets Path - /// - [DataMember(Name="Path", EmitDefaultValue=false)] - public StringValue Path { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemSalesCategory {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CategoryID: ").Append(CategoryID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Members: ").Append(Members).Append("\n"); - sb.Append(" ParentCategoryID: ").Append(ParentCategoryID).Append("\n"); - sb.Append(" Path: ").Append(Path).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemSalesCategory); - } - - /// - /// Returns true if ItemSalesCategory instances are equal - /// - /// Instance of ItemSalesCategory to be compared - /// Boolean - public bool Equals(ItemSalesCategory input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CategoryID == input.CategoryID || - (this.CategoryID != null && - this.CategoryID.Equals(input.CategoryID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Members == input.Members || - this.Members != null && - this.Members.SequenceEqual(input.Members) - ) && base.Equals(input) && - ( - this.ParentCategoryID == input.ParentCategoryID || - (this.ParentCategoryID != null && - this.ParentCategoryID.Equals(input.ParentCategoryID)) - ) && base.Equals(input) && - ( - this.Path == input.Path || - (this.Path != null && - this.Path.Equals(input.Path)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CategoryID != null) - hashCode = hashCode * 59 + this.CategoryID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Members != null) - hashCode = hashCode * 59 + this.Members.GetHashCode(); - if (this.ParentCategoryID != null) - hashCode = hashCode * 59 + this.ParentCategoryID.GetHashCode(); - if (this.Path != null) - hashCode = hashCode * 59 + this.Path.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ItemSalesCategoryMember.cs b/Default.18.200.001/Model/ItemSalesCategoryMember.cs deleted file mode 100644 index fc9ab002..00000000 --- a/Default.18.200.001/Model/ItemSalesCategoryMember.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ItemSalesCategoryMember - /// - [DataContract] - public partial class ItemSalesCategoryMember : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// inventoryID. - /// itemClass. - /// itemStatus. - public ItemSalesCategoryMember(StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), StringValue itemClass = default(StringValue), StringValue itemStatus = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.InventoryID = inventoryID; - this.ItemClass = itemClass; - this.ItemStatus = itemStatus; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets ItemClass - /// - [DataMember(Name="ItemClass", EmitDefaultValue=false)] - public StringValue ItemClass { get; set; } - - /// - /// Gets or Sets ItemStatus - /// - [DataMember(Name="ItemStatus", EmitDefaultValue=false)] - public StringValue ItemStatus { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemSalesCategoryMember {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" ItemClass: ").Append(ItemClass).Append("\n"); - sb.Append(" ItemStatus: ").Append(ItemStatus).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemSalesCategoryMember); - } - - /// - /// Returns true if ItemSalesCategoryMember instances are equal - /// - /// Instance of ItemSalesCategoryMember to be compared - /// Boolean - public bool Equals(ItemSalesCategoryMember input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.ItemClass == input.ItemClass || - (this.ItemClass != null && - this.ItemClass.Equals(input.ItemClass)) - ) && base.Equals(input) && - ( - this.ItemStatus == input.ItemStatus || - (this.ItemStatus != null && - this.ItemStatus.Equals(input.ItemStatus)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.ItemClass != null) - hashCode = hashCode * 59 + this.ItemClass.GetHashCode(); - if (this.ItemStatus != null) - hashCode = hashCode * 59 + this.ItemStatus.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ItemWarehouse.cs b/Default.18.200.001/Model/ItemWarehouse.cs deleted file mode 100644 index 7fff7798..00000000 --- a/Default.18.200.001/Model/ItemWarehouse.cs +++ /dev/null @@ -1,542 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ItemWarehouse - /// - [DataContract] - public partial class ItemWarehouse : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// defaultIssueFrom. - /// defaultReceiptTo. - /// defaultSubitem. - /// inventoryAccount. - /// inventoryID. - /// inventorySubaccount. - /// lastModifiedDateTime. - /// mSRP. - /// overrideInventoryAccountSubaccount. - /// overridePreferredVendor. - /// overridePrice. - /// overrideReplenishmentSettings. - /// overrideServiceLevelOverride. - /// overrideStandardCost. - /// preferredLocation. - /// preferredVendor. - /// productManager. - /// productWorkgroup. - /// replenishmentClass. - /// replenishmentMethod. - /// replenishmentSource. - /// replenishmentWarehouse. - /// seasonality. - /// serviceLevel. - /// status. - /// warehouseID. - public ItemWarehouse(DateTimeValue createdDateTime = default(DateTimeValue), StringValue defaultIssueFrom = default(StringValue), StringValue defaultReceiptTo = default(StringValue), StringValue defaultSubitem = default(StringValue), StringValue inventoryAccount = default(StringValue), StringValue inventoryID = default(StringValue), StringValue inventorySubaccount = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue mSRP = default(DecimalValue), BooleanValue overrideInventoryAccountSubaccount = default(BooleanValue), BooleanValue overridePreferredVendor = default(BooleanValue), BooleanValue overridePrice = default(BooleanValue), BooleanValue overrideReplenishmentSettings = default(BooleanValue), BooleanValue overrideServiceLevelOverride = default(BooleanValue), BooleanValue overrideStandardCost = default(BooleanValue), StringValue preferredLocation = default(StringValue), StringValue preferredVendor = default(StringValue), StringValue productManager = default(StringValue), StringValue productWorkgroup = default(StringValue), StringValue replenishmentClass = default(StringValue), StringValue replenishmentMethod = default(StringValue), StringValue replenishmentSource = default(StringValue), StringValue replenishmentWarehouse = default(StringValue), StringValue seasonality = default(StringValue), DecimalValue serviceLevel = default(DecimalValue), StringValue status = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.DefaultIssueFrom = defaultIssueFrom; - this.DefaultReceiptTo = defaultReceiptTo; - this.DefaultSubitem = defaultSubitem; - this.InventoryAccount = inventoryAccount; - this.InventoryID = inventoryID; - this.InventorySubaccount = inventorySubaccount; - this.LastModifiedDateTime = lastModifiedDateTime; - this.MSRP = mSRP; - this.OverrideInventoryAccountSubaccount = overrideInventoryAccountSubaccount; - this.OverridePreferredVendor = overridePreferredVendor; - this.OverridePrice = overridePrice; - this.OverrideReplenishmentSettings = overrideReplenishmentSettings; - this.OverrideServiceLevelOverride = overrideServiceLevelOverride; - this.OverrideStandardCost = overrideStandardCost; - this.PreferredLocation = preferredLocation; - this.PreferredVendor = preferredVendor; - this.ProductManager = productManager; - this.ProductWorkgroup = productWorkgroup; - this.ReplenishmentClass = replenishmentClass; - this.ReplenishmentMethod = replenishmentMethod; - this.ReplenishmentSource = replenishmentSource; - this.ReplenishmentWarehouse = replenishmentWarehouse; - this.Seasonality = seasonality; - this.ServiceLevel = serviceLevel; - this.Status = status; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets DefaultIssueFrom - /// - [DataMember(Name="DefaultIssueFrom", EmitDefaultValue=false)] - public StringValue DefaultIssueFrom { get; set; } - - /// - /// Gets or Sets DefaultReceiptTo - /// - [DataMember(Name="DefaultReceiptTo", EmitDefaultValue=false)] - public StringValue DefaultReceiptTo { get; set; } - - /// - /// Gets or Sets DefaultSubitem - /// - [DataMember(Name="DefaultSubitem", EmitDefaultValue=false)] - public StringValue DefaultSubitem { get; set; } - - /// - /// Gets or Sets InventoryAccount - /// - [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] - public StringValue InventoryAccount { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets InventorySubaccount - /// - [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] - public StringValue InventorySubaccount { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets MSRP - /// - [DataMember(Name="MSRP", EmitDefaultValue=false)] - public DecimalValue MSRP { get; set; } - - /// - /// Gets or Sets OverrideInventoryAccountSubaccount - /// - [DataMember(Name="OverrideInventoryAccountSubaccount", EmitDefaultValue=false)] - public BooleanValue OverrideInventoryAccountSubaccount { get; set; } - - /// - /// Gets or Sets OverridePreferredVendor - /// - [DataMember(Name="OverridePreferredVendor", EmitDefaultValue=false)] - public BooleanValue OverridePreferredVendor { get; set; } - - /// - /// Gets or Sets OverridePrice - /// - [DataMember(Name="OverridePrice", EmitDefaultValue=false)] - public BooleanValue OverridePrice { get; set; } - - /// - /// Gets or Sets OverrideReplenishmentSettings - /// - [DataMember(Name="OverrideReplenishmentSettings", EmitDefaultValue=false)] - public BooleanValue OverrideReplenishmentSettings { get; set; } - - /// - /// Gets or Sets OverrideServiceLevelOverride - /// - [DataMember(Name="OverrideServiceLevelOverride", EmitDefaultValue=false)] - public BooleanValue OverrideServiceLevelOverride { get; set; } - - /// - /// Gets or Sets OverrideStandardCost - /// - [DataMember(Name="OverrideStandardCost", EmitDefaultValue=false)] - public BooleanValue OverrideStandardCost { get; set; } - - /// - /// Gets or Sets PreferredLocation - /// - [DataMember(Name="PreferredLocation", EmitDefaultValue=false)] - public StringValue PreferredLocation { get; set; } - - /// - /// Gets or Sets PreferredVendor - /// - [DataMember(Name="PreferredVendor", EmitDefaultValue=false)] - public StringValue PreferredVendor { get; set; } - - /// - /// Gets or Sets ProductManager - /// - [DataMember(Name="ProductManager", EmitDefaultValue=false)] - public StringValue ProductManager { get; set; } - - /// - /// Gets or Sets ProductWorkgroup - /// - [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] - public StringValue ProductWorkgroup { get; set; } - - /// - /// Gets or Sets ReplenishmentClass - /// - [DataMember(Name="ReplenishmentClass", EmitDefaultValue=false)] - public StringValue ReplenishmentClass { get; set; } - - /// - /// Gets or Sets ReplenishmentMethod - /// - [DataMember(Name="ReplenishmentMethod", EmitDefaultValue=false)] - public StringValue ReplenishmentMethod { get; set; } - - /// - /// Gets or Sets ReplenishmentSource - /// - [DataMember(Name="ReplenishmentSource", EmitDefaultValue=false)] - public StringValue ReplenishmentSource { get; set; } - - /// - /// Gets or Sets ReplenishmentWarehouse - /// - [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] - public StringValue ReplenishmentWarehouse { get; set; } - - /// - /// Gets or Sets Seasonality - /// - [DataMember(Name="Seasonality", EmitDefaultValue=false)] - public StringValue Seasonality { get; set; } - - /// - /// Gets or Sets ServiceLevel - /// - [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] - public DecimalValue ServiceLevel { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemWarehouse {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" DefaultIssueFrom: ").Append(DefaultIssueFrom).Append("\n"); - sb.Append(" DefaultReceiptTo: ").Append(DefaultReceiptTo).Append("\n"); - sb.Append(" DefaultSubitem: ").Append(DefaultSubitem).Append("\n"); - sb.Append(" InventoryAccount: ").Append(InventoryAccount).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" InventorySubaccount: ").Append(InventorySubaccount).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" MSRP: ").Append(MSRP).Append("\n"); - sb.Append(" OverrideInventoryAccountSubaccount: ").Append(OverrideInventoryAccountSubaccount).Append("\n"); - sb.Append(" OverridePreferredVendor: ").Append(OverridePreferredVendor).Append("\n"); - sb.Append(" OverridePrice: ").Append(OverridePrice).Append("\n"); - sb.Append(" OverrideReplenishmentSettings: ").Append(OverrideReplenishmentSettings).Append("\n"); - sb.Append(" OverrideServiceLevelOverride: ").Append(OverrideServiceLevelOverride).Append("\n"); - sb.Append(" OverrideStandardCost: ").Append(OverrideStandardCost).Append("\n"); - sb.Append(" PreferredLocation: ").Append(PreferredLocation).Append("\n"); - sb.Append(" PreferredVendor: ").Append(PreferredVendor).Append("\n"); - sb.Append(" ProductManager: ").Append(ProductManager).Append("\n"); - sb.Append(" ProductWorkgroup: ").Append(ProductWorkgroup).Append("\n"); - sb.Append(" ReplenishmentClass: ").Append(ReplenishmentClass).Append("\n"); - sb.Append(" ReplenishmentMethod: ").Append(ReplenishmentMethod).Append("\n"); - sb.Append(" ReplenishmentSource: ").Append(ReplenishmentSource).Append("\n"); - sb.Append(" ReplenishmentWarehouse: ").Append(ReplenishmentWarehouse).Append("\n"); - sb.Append(" Seasonality: ").Append(Seasonality).Append("\n"); - sb.Append(" ServiceLevel: ").Append(ServiceLevel).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemWarehouse); - } - - /// - /// Returns true if ItemWarehouse instances are equal - /// - /// Instance of ItemWarehouse to be compared - /// Boolean - public bool Equals(ItemWarehouse input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.DefaultIssueFrom == input.DefaultIssueFrom || - (this.DefaultIssueFrom != null && - this.DefaultIssueFrom.Equals(input.DefaultIssueFrom)) - ) && base.Equals(input) && - ( - this.DefaultReceiptTo == input.DefaultReceiptTo || - (this.DefaultReceiptTo != null && - this.DefaultReceiptTo.Equals(input.DefaultReceiptTo)) - ) && base.Equals(input) && - ( - this.DefaultSubitem == input.DefaultSubitem || - (this.DefaultSubitem != null && - this.DefaultSubitem.Equals(input.DefaultSubitem)) - ) && base.Equals(input) && - ( - this.InventoryAccount == input.InventoryAccount || - (this.InventoryAccount != null && - this.InventoryAccount.Equals(input.InventoryAccount)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.InventorySubaccount == input.InventorySubaccount || - (this.InventorySubaccount != null && - this.InventorySubaccount.Equals(input.InventorySubaccount)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.MSRP == input.MSRP || - (this.MSRP != null && - this.MSRP.Equals(input.MSRP)) - ) && base.Equals(input) && - ( - this.OverrideInventoryAccountSubaccount == input.OverrideInventoryAccountSubaccount || - (this.OverrideInventoryAccountSubaccount != null && - this.OverrideInventoryAccountSubaccount.Equals(input.OverrideInventoryAccountSubaccount)) - ) && base.Equals(input) && - ( - this.OverridePreferredVendor == input.OverridePreferredVendor || - (this.OverridePreferredVendor != null && - this.OverridePreferredVendor.Equals(input.OverridePreferredVendor)) - ) && base.Equals(input) && - ( - this.OverridePrice == input.OverridePrice || - (this.OverridePrice != null && - this.OverridePrice.Equals(input.OverridePrice)) - ) && base.Equals(input) && - ( - this.OverrideReplenishmentSettings == input.OverrideReplenishmentSettings || - (this.OverrideReplenishmentSettings != null && - this.OverrideReplenishmentSettings.Equals(input.OverrideReplenishmentSettings)) - ) && base.Equals(input) && - ( - this.OverrideServiceLevelOverride == input.OverrideServiceLevelOverride || - (this.OverrideServiceLevelOverride != null && - this.OverrideServiceLevelOverride.Equals(input.OverrideServiceLevelOverride)) - ) && base.Equals(input) && - ( - this.OverrideStandardCost == input.OverrideStandardCost || - (this.OverrideStandardCost != null && - this.OverrideStandardCost.Equals(input.OverrideStandardCost)) - ) && base.Equals(input) && - ( - this.PreferredLocation == input.PreferredLocation || - (this.PreferredLocation != null && - this.PreferredLocation.Equals(input.PreferredLocation)) - ) && base.Equals(input) && - ( - this.PreferredVendor == input.PreferredVendor || - (this.PreferredVendor != null && - this.PreferredVendor.Equals(input.PreferredVendor)) - ) && base.Equals(input) && - ( - this.ProductManager == input.ProductManager || - (this.ProductManager != null && - this.ProductManager.Equals(input.ProductManager)) - ) && base.Equals(input) && - ( - this.ProductWorkgroup == input.ProductWorkgroup || - (this.ProductWorkgroup != null && - this.ProductWorkgroup.Equals(input.ProductWorkgroup)) - ) && base.Equals(input) && - ( - this.ReplenishmentClass == input.ReplenishmentClass || - (this.ReplenishmentClass != null && - this.ReplenishmentClass.Equals(input.ReplenishmentClass)) - ) && base.Equals(input) && - ( - this.ReplenishmentMethod == input.ReplenishmentMethod || - (this.ReplenishmentMethod != null && - this.ReplenishmentMethod.Equals(input.ReplenishmentMethod)) - ) && base.Equals(input) && - ( - this.ReplenishmentSource == input.ReplenishmentSource || - (this.ReplenishmentSource != null && - this.ReplenishmentSource.Equals(input.ReplenishmentSource)) - ) && base.Equals(input) && - ( - this.ReplenishmentWarehouse == input.ReplenishmentWarehouse || - (this.ReplenishmentWarehouse != null && - this.ReplenishmentWarehouse.Equals(input.ReplenishmentWarehouse)) - ) && base.Equals(input) && - ( - this.Seasonality == input.Seasonality || - (this.Seasonality != null && - this.Seasonality.Equals(input.Seasonality)) - ) && base.Equals(input) && - ( - this.ServiceLevel == input.ServiceLevel || - (this.ServiceLevel != null && - this.ServiceLevel.Equals(input.ServiceLevel)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.DefaultIssueFrom != null) - hashCode = hashCode * 59 + this.DefaultIssueFrom.GetHashCode(); - if (this.DefaultReceiptTo != null) - hashCode = hashCode * 59 + this.DefaultReceiptTo.GetHashCode(); - if (this.DefaultSubitem != null) - hashCode = hashCode * 59 + this.DefaultSubitem.GetHashCode(); - if (this.InventoryAccount != null) - hashCode = hashCode * 59 + this.InventoryAccount.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.InventorySubaccount != null) - hashCode = hashCode * 59 + this.InventorySubaccount.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.MSRP != null) - hashCode = hashCode * 59 + this.MSRP.GetHashCode(); - if (this.OverrideInventoryAccountSubaccount != null) - hashCode = hashCode * 59 + this.OverrideInventoryAccountSubaccount.GetHashCode(); - if (this.OverridePreferredVendor != null) - hashCode = hashCode * 59 + this.OverridePreferredVendor.GetHashCode(); - if (this.OverridePrice != null) - hashCode = hashCode * 59 + this.OverridePrice.GetHashCode(); - if (this.OverrideReplenishmentSettings != null) - hashCode = hashCode * 59 + this.OverrideReplenishmentSettings.GetHashCode(); - if (this.OverrideServiceLevelOverride != null) - hashCode = hashCode * 59 + this.OverrideServiceLevelOverride.GetHashCode(); - if (this.OverrideStandardCost != null) - hashCode = hashCode * 59 + this.OverrideStandardCost.GetHashCode(); - if (this.PreferredLocation != null) - hashCode = hashCode * 59 + this.PreferredLocation.GetHashCode(); - if (this.PreferredVendor != null) - hashCode = hashCode * 59 + this.PreferredVendor.GetHashCode(); - if (this.ProductManager != null) - hashCode = hashCode * 59 + this.ProductManager.GetHashCode(); - if (this.ProductWorkgroup != null) - hashCode = hashCode * 59 + this.ProductWorkgroup.GetHashCode(); - if (this.ReplenishmentClass != null) - hashCode = hashCode * 59 + this.ReplenishmentClass.GetHashCode(); - if (this.ReplenishmentMethod != null) - hashCode = hashCode * 59 + this.ReplenishmentMethod.GetHashCode(); - if (this.ReplenishmentSource != null) - hashCode = hashCode * 59 + this.ReplenishmentSource.GetHashCode(); - if (this.ReplenishmentWarehouse != null) - hashCode = hashCode * 59 + this.ReplenishmentWarehouse.GetHashCode(); - if (this.Seasonality != null) - hashCode = hashCode * 59 + this.Seasonality.GetHashCode(); - if (this.ServiceLevel != null) - hashCode = hashCode * 59 + this.ServiceLevel.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ItemsDetails.cs b/Default.18.200.001/Model/ItemsDetails.cs deleted file mode 100644 index 801d5b69..00000000 --- a/Default.18.200.001/Model/ItemsDetails.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ItemsDetails - /// - [DataContract] - public partial class ItemsDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// inventoryID. - public ItemsDetails(StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.InventoryID = inventoryID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ItemsDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ItemsDetails); - } - - /// - /// Returns true if ItemsDetails instances are equal - /// - /// Instance of ItemsDetails to be compared - /// Boolean - public bool Equals(ItemsDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/JournalTransaction.cs b/Default.18.200.001/Model/JournalTransaction.cs deleted file mode 100644 index 85b0e2aa..00000000 --- a/Default.18.200.001/Model/JournalTransaction.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// JournalTransaction - /// - [DataContract] - public partial class JournalTransaction : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// batchNbr. - /// branchID. - /// createdDateTime. - /// currencyID. - /// description. - /// details. - /// hold. - /// lastModifiedDateTime. - /// ledgerID. - /// module. - /// postPeriod. - /// status. - /// transactionDate. - public JournalTransaction(StringValue batchNbr = default(StringValue), StringValue branchID = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue ledgerID = default(StringValue), StringValue module = default(StringValue), StringValue postPeriod = default(StringValue), StringValue status = default(StringValue), DateTimeValue transactionDate = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BatchNbr = batchNbr; - this.BranchID = branchID; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.Description = description; - this.Details = details; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LedgerID = ledgerID; - this.Module = module; - this.PostPeriod = postPeriod; - this.Status = status; - this.TransactionDate = transactionDate; - } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LedgerID - /// - [DataMember(Name="LedgerID", EmitDefaultValue=false)] - public StringValue LedgerID { get; set; } - - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TransactionDate - /// - [DataMember(Name="TransactionDate", EmitDefaultValue=false)] - public DateTimeValue TransactionDate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalTransaction {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LedgerID: ").Append(LedgerID).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TransactionDate: ").Append(TransactionDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalTransaction); - } - - /// - /// Returns true if JournalTransaction instances are equal - /// - /// Instance of JournalTransaction to be compared - /// Boolean - public bool Equals(JournalTransaction input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LedgerID == input.LedgerID || - (this.LedgerID != null && - this.LedgerID.Equals(input.LedgerID)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TransactionDate == input.TransactionDate || - (this.TransactionDate != null && - this.TransactionDate.Equals(input.TransactionDate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LedgerID != null) - hashCode = hashCode * 59 + this.LedgerID.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TransactionDate != null) - hashCode = hashCode * 59 + this.TransactionDate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/JournalTransactionDetail.cs b/Default.18.200.001/Model/JournalTransactionDetail.cs deleted file mode 100644 index cba2fbca..00000000 --- a/Default.18.200.001/Model/JournalTransactionDetail.cs +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// JournalTransactionDetail - /// - [DataContract] - public partial class JournalTransactionDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// branchID. - /// costCode. - /// creditAmount. - /// debitAmount. - /// description. - /// isNonPM. - /// lineNbr. - /// nonBillable. - /// project. - /// projectTask. - /// projectTransactionID. - /// qty. - /// referenceNbr. - /// subaccount. - /// transactionDescription. - /// uOM. - /// vendorOrCustomer. - public JournalTransactionDetail(StringValue account = default(StringValue), StringValue branchID = default(StringValue), StringValue costCode = default(StringValue), DecimalValue creditAmount = default(DecimalValue), DecimalValue debitAmount = default(DecimalValue), StringValue description = default(StringValue), BooleanValue isNonPM = default(BooleanValue), IntValue lineNbr = default(IntValue), BooleanValue nonBillable = default(BooleanValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), LongValue projectTransactionID = default(LongValue), DecimalValue qty = default(DecimalValue), StringValue referenceNbr = default(StringValue), StringValue subaccount = default(StringValue), StringValue transactionDescription = default(StringValue), StringValue uOM = default(StringValue), StringValue vendorOrCustomer = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.BranchID = branchID; - this.CostCode = costCode; - this.CreditAmount = creditAmount; - this.DebitAmount = debitAmount; - this.Description = description; - this.IsNonPM = isNonPM; - this.LineNbr = lineNbr; - this.NonBillable = nonBillable; - this.Project = project; - this.ProjectTask = projectTask; - this.ProjectTransactionID = projectTransactionID; - this.Qty = qty; - this.ReferenceNbr = referenceNbr; - this.Subaccount = subaccount; - this.TransactionDescription = transactionDescription; - this.UOM = uOM; - this.VendorOrCustomer = vendorOrCustomer; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets CreditAmount - /// - [DataMember(Name="CreditAmount", EmitDefaultValue=false)] - public DecimalValue CreditAmount { get; set; } - - /// - /// Gets or Sets DebitAmount - /// - [DataMember(Name="DebitAmount", EmitDefaultValue=false)] - public DecimalValue DebitAmount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets IsNonPM - /// - [DataMember(Name="IsNonPM", EmitDefaultValue=false)] - public BooleanValue IsNonPM { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets NonBillable - /// - [DataMember(Name="NonBillable", EmitDefaultValue=false)] - public BooleanValue NonBillable { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets ProjectTransactionID - /// - [DataMember(Name="ProjectTransactionID", EmitDefaultValue=false)] - public LongValue ProjectTransactionID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets VendorOrCustomer - /// - [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] - public StringValue VendorOrCustomer { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalTransactionDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" CreditAmount: ").Append(CreditAmount).Append("\n"); - sb.Append(" DebitAmount: ").Append(DebitAmount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IsNonPM: ").Append(IsNonPM).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" NonBillable: ").Append(NonBillable).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" ProjectTransactionID: ").Append(ProjectTransactionID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" VendorOrCustomer: ").Append(VendorOrCustomer).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalTransactionDetail); - } - - /// - /// Returns true if JournalTransactionDetail instances are equal - /// - /// Instance of JournalTransactionDetail to be compared - /// Boolean - public bool Equals(JournalTransactionDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.CreditAmount == input.CreditAmount || - (this.CreditAmount != null && - this.CreditAmount.Equals(input.CreditAmount)) - ) && base.Equals(input) && - ( - this.DebitAmount == input.DebitAmount || - (this.DebitAmount != null && - this.DebitAmount.Equals(input.DebitAmount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.IsNonPM == input.IsNonPM || - (this.IsNonPM != null && - this.IsNonPM.Equals(input.IsNonPM)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.NonBillable == input.NonBillable || - (this.NonBillable != null && - this.NonBillable.Equals(input.NonBillable)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.ProjectTransactionID == input.ProjectTransactionID || - (this.ProjectTransactionID != null && - this.ProjectTransactionID.Equals(input.ProjectTransactionID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.VendorOrCustomer == input.VendorOrCustomer || - (this.VendorOrCustomer != null && - this.VendorOrCustomer.Equals(input.VendorOrCustomer)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.CreditAmount != null) - hashCode = hashCode * 59 + this.CreditAmount.GetHashCode(); - if (this.DebitAmount != null) - hashCode = hashCode * 59 + this.DebitAmount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IsNonPM != null) - hashCode = hashCode * 59 + this.IsNonPM.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.NonBillable != null) - hashCode = hashCode * 59 + this.NonBillable.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.ProjectTransactionID != null) - hashCode = hashCode * 59 + this.ProjectTransactionID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.VendorOrCustomer != null) - hashCode = hashCode * 59 + this.VendorOrCustomer.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/JournalVoucher.cs b/Default.18.200.001/Model/JournalVoucher.cs deleted file mode 100644 index 8395c7e7..00000000 --- a/Default.18.200.001/Model/JournalVoucher.cs +++ /dev/null @@ -1,446 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// JournalVoucher - /// - [DataContract] - public partial class JournalVoucher : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// baseCurrencyID. - /// batchNbr. - /// branch. - /// controlTotal. - /// createdDateTime. - /// creditTotal. - /// currencyID. - /// currencyRate. - /// currencyRateTypeID. - /// debitTotal. - /// description. - /// details. - /// effectiveDate. - /// gLTransactions. - /// hold. - /// lastModifiedDateTime. - /// ledger. - /// postPeriod. - /// reciprocalRate. - /// status. - /// transactionDate. - public JournalVoucher(StringValue baseCurrencyID = default(StringValue), StringValue batchNbr = default(StringValue), StringValue branch = default(StringValue), DecimalValue controlTotal = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), DecimalValue creditTotal = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue currencyRate = default(DecimalValue), StringValue currencyRateTypeID = default(StringValue), DecimalValue debitTotal = default(DecimalValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), DateTimeValue effectiveDate = default(DateTimeValue), IEnumerable gLTransactions = default(IEnumerable), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue ledger = default(StringValue), StringValue postPeriod = default(StringValue), DecimalValue reciprocalRate = default(DecimalValue), StringValue status = default(StringValue), DateTimeValue transactionDate = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BaseCurrencyID = baseCurrencyID; - this.BatchNbr = batchNbr; - this.Branch = branch; - this.ControlTotal = controlTotal; - this.CreatedDateTime = createdDateTime; - this.CreditTotal = creditTotal; - this.CurrencyID = currencyID; - this.CurrencyRate = currencyRate; - this.CurrencyRateTypeID = currencyRateTypeID; - this.DebitTotal = debitTotal; - this.Description = description; - this.Details = details; - this.EffectiveDate = effectiveDate; - this.GLTransactions = gLTransactions; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Ledger = ledger; - this.PostPeriod = postPeriod; - this.ReciprocalRate = reciprocalRate; - this.Status = status; - this.TransactionDate = transactionDate; - } - - /// - /// Gets or Sets BaseCurrencyID - /// - [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] - public StringValue BaseCurrencyID { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ControlTotal - /// - [DataMember(Name="ControlTotal", EmitDefaultValue=false)] - public DecimalValue ControlTotal { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CreditTotal - /// - [DataMember(Name="CreditTotal", EmitDefaultValue=false)] - public DecimalValue CreditTotal { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRate - /// - [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] - public DecimalValue CurrencyRate { get; set; } - - /// - /// Gets or Sets CurrencyRateTypeID - /// - [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] - public StringValue CurrencyRateTypeID { get; set; } - - /// - /// Gets or Sets DebitTotal - /// - [DataMember(Name="DebitTotal", EmitDefaultValue=false)] - public DecimalValue DebitTotal { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets GLTransactions - /// - [DataMember(Name="GLTransactions", EmitDefaultValue=false)] - public IEnumerable GLTransactions { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets ReciprocalRate - /// - [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] - public DecimalValue ReciprocalRate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TransactionDate - /// - [DataMember(Name="TransactionDate", EmitDefaultValue=false)] - public DateTimeValue TransactionDate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalVoucher {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BaseCurrencyID: ").Append(BaseCurrencyID).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ControlTotal: ").Append(ControlTotal).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CreditTotal: ").Append(CreditTotal).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n"); - sb.Append(" CurrencyRateTypeID: ").Append(CurrencyRateTypeID).Append("\n"); - sb.Append(" DebitTotal: ").Append(DebitTotal).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" GLTransactions: ").Append(GLTransactions).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReciprocalRate: ").Append(ReciprocalRate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TransactionDate: ").Append(TransactionDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalVoucher); - } - - /// - /// Returns true if JournalVoucher instances are equal - /// - /// Instance of JournalVoucher to be compared - /// Boolean - public bool Equals(JournalVoucher input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BaseCurrencyID == input.BaseCurrencyID || - (this.BaseCurrencyID != null && - this.BaseCurrencyID.Equals(input.BaseCurrencyID)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ControlTotal == input.ControlTotal || - (this.ControlTotal != null && - this.ControlTotal.Equals(input.ControlTotal)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CreditTotal == input.CreditTotal || - (this.CreditTotal != null && - this.CreditTotal.Equals(input.CreditTotal)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRate == input.CurrencyRate || - (this.CurrencyRate != null && - this.CurrencyRate.Equals(input.CurrencyRate)) - ) && base.Equals(input) && - ( - this.CurrencyRateTypeID == input.CurrencyRateTypeID || - (this.CurrencyRateTypeID != null && - this.CurrencyRateTypeID.Equals(input.CurrencyRateTypeID)) - ) && base.Equals(input) && - ( - this.DebitTotal == input.DebitTotal || - (this.DebitTotal != null && - this.DebitTotal.Equals(input.DebitTotal)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.GLTransactions == input.GLTransactions || - this.GLTransactions != null && - this.GLTransactions.SequenceEqual(input.GLTransactions) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReciprocalRate == input.ReciprocalRate || - (this.ReciprocalRate != null && - this.ReciprocalRate.Equals(input.ReciprocalRate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TransactionDate == input.TransactionDate || - (this.TransactionDate != null && - this.TransactionDate.Equals(input.TransactionDate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BaseCurrencyID != null) - hashCode = hashCode * 59 + this.BaseCurrencyID.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ControlTotal != null) - hashCode = hashCode * 59 + this.ControlTotal.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CreditTotal != null) - hashCode = hashCode * 59 + this.CreditTotal.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRate != null) - hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode(); - if (this.CurrencyRateTypeID != null) - hashCode = hashCode * 59 + this.CurrencyRateTypeID.GetHashCode(); - if (this.DebitTotal != null) - hashCode = hashCode * 59 + this.DebitTotal.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.GLTransactions != null) - hashCode = hashCode * 59 + this.GLTransactions.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReciprocalRate != null) - hashCode = hashCode * 59 + this.ReciprocalRate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TransactionDate != null) - hashCode = hashCode * 59 + this.TransactionDate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/JournalVoucherDetail.cs b/Default.18.200.001/Model/JournalVoucherDetail.cs deleted file mode 100644 index 5d641cb3..00000000 --- a/Default.18.200.001/Model/JournalVoucherDetail.cs +++ /dev/null @@ -1,702 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// JournalVoucherDetail - /// - [DataContract] - public partial class JournalVoucherDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aPDocumentsToApply. - /// aRDocumentsToApply. - /// batchModule. - /// batchNbr. - /// cardAccountNbr. - /// cardAccountNbrCardAccountNbr. - /// cashDiscount. - /// cashDiscountDate. - /// creditAccount. - /// creditSubaccount. - /// debitAccount. - /// debitSubaccount. - /// docCreated. - /// docTotal. - /// dueDate. - /// entryTypeID. - /// externalRef. - /// groupTransactionID. - /// includedTaxAmount. - /// lineNbr. - /// location. - /// paymentMethod. - /// project. - /// projectTask. - /// referenceNbr. - /// released. - /// split. - /// subtotalAmount. - /// taxAmount. - /// taxCategory. - /// taxZone. - /// terms. - /// totalAmount. - /// transactionCode. - /// transactionDate. - /// transactionDescription. - /// vendorOrCustomer. - public JournalVoucherDetail(IEnumerable aPDocumentsToApply = default(IEnumerable), IEnumerable aRDocumentsToApply = default(IEnumerable), StringValue batchModule = default(StringValue), StringValue batchNbr = default(StringValue), IntValue cardAccountNbr = default(IntValue), StringValue cardAccountNbrCardAccountNbr = default(StringValue), DecimalValue cashDiscount = default(DecimalValue), DateTimeValue cashDiscountDate = default(DateTimeValue), StringValue creditAccount = default(StringValue), StringValue creditSubaccount = default(StringValue), StringValue debitAccount = default(StringValue), StringValue debitSubaccount = default(StringValue), BooleanValue docCreated = default(BooleanValue), DecimalValue docTotal = default(DecimalValue), DateTimeValue dueDate = default(DateTimeValue), StringValue entryTypeID = default(StringValue), StringValue externalRef = default(StringValue), IntValue groupTransactionID = default(IntValue), DecimalValue includedTaxAmount = default(DecimalValue), IntValue lineNbr = default(IntValue), StringValue location = default(StringValue), StringValue paymentMethod = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), StringValue referenceNbr = default(StringValue), BooleanValue released = default(BooleanValue), BooleanValue split = default(BooleanValue), DecimalValue subtotalAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxCategory = default(StringValue), StringValue taxZone = default(StringValue), StringValue terms = default(StringValue), DecimalValue totalAmount = default(DecimalValue), StringValue transactionCode = default(StringValue), DateTimeValue transactionDate = default(DateTimeValue), StringValue transactionDescription = default(StringValue), StringValue vendorOrCustomer = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.APDocumentsToApply = aPDocumentsToApply; - this.ARDocumentsToApply = aRDocumentsToApply; - this.BatchModule = batchModule; - this.BatchNbr = batchNbr; - this.CardAccountNbr = cardAccountNbr; - this.CardAccountNbrCardAccountNbr = cardAccountNbrCardAccountNbr; - this.CashDiscount = cashDiscount; - this.CashDiscountDate = cashDiscountDate; - this.CreditAccount = creditAccount; - this.CreditSubaccount = creditSubaccount; - this.DebitAccount = debitAccount; - this.DebitSubaccount = debitSubaccount; - this.DocCreated = docCreated; - this.DocTotal = docTotal; - this.DueDate = dueDate; - this.EntryTypeID = entryTypeID; - this.ExternalRef = externalRef; - this.GroupTransactionID = groupTransactionID; - this.IncludedTaxAmount = includedTaxAmount; - this.LineNbr = lineNbr; - this.Location = location; - this.PaymentMethod = paymentMethod; - this.Project = project; - this.ProjectTask = projectTask; - this.ReferenceNbr = referenceNbr; - this.Released = released; - this.Split = split; - this.SubtotalAmount = subtotalAmount; - this.TaxAmount = taxAmount; - this.TaxCategory = taxCategory; - this.TaxZone = taxZone; - this.Terms = terms; - this.TotalAmount = totalAmount; - this.TransactionCode = transactionCode; - this.TransactionDate = transactionDate; - this.TransactionDescription = transactionDescription; - this.VendorOrCustomer = vendorOrCustomer; - } - - /// - /// Gets or Sets APDocumentsToApply - /// - [DataMember(Name="APDocumentsToApply", EmitDefaultValue=false)] - public IEnumerable APDocumentsToApply { get; set; } - - /// - /// Gets or Sets ARDocumentsToApply - /// - [DataMember(Name="ARDocumentsToApply", EmitDefaultValue=false)] - public IEnumerable ARDocumentsToApply { get; set; } - - /// - /// Gets or Sets BatchModule - /// - [DataMember(Name="BatchModule", EmitDefaultValue=false)] - public StringValue BatchModule { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets CardAccountNbr - /// - [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] - public IntValue CardAccountNbr { get; set; } - - /// - /// Gets or Sets CardAccountNbrCardAccountNbr - /// - [DataMember(Name="CardAccountNbrCardAccountNbr", EmitDefaultValue=false)] - public StringValue CardAccountNbrCardAccountNbr { get; set; } - - /// - /// Gets or Sets CashDiscount - /// - [DataMember(Name="CashDiscount", EmitDefaultValue=false)] - public DecimalValue CashDiscount { get; set; } - - /// - /// Gets or Sets CashDiscountDate - /// - [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] - public DateTimeValue CashDiscountDate { get; set; } - - /// - /// Gets or Sets CreditAccount - /// - [DataMember(Name="CreditAccount", EmitDefaultValue=false)] - public StringValue CreditAccount { get; set; } - - /// - /// Gets or Sets CreditSubaccount - /// - [DataMember(Name="CreditSubaccount", EmitDefaultValue=false)] - public StringValue CreditSubaccount { get; set; } - - /// - /// Gets or Sets DebitAccount - /// - [DataMember(Name="DebitAccount", EmitDefaultValue=false)] - public StringValue DebitAccount { get; set; } - - /// - /// Gets or Sets DebitSubaccount - /// - [DataMember(Name="DebitSubaccount", EmitDefaultValue=false)] - public StringValue DebitSubaccount { get; set; } - - /// - /// Gets or Sets DocCreated - /// - [DataMember(Name="DocCreated", EmitDefaultValue=false)] - public BooleanValue DocCreated { get; set; } - - /// - /// Gets or Sets DocTotal - /// - [DataMember(Name="DocTotal", EmitDefaultValue=false)] - public DecimalValue DocTotal { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets EntryTypeID - /// - [DataMember(Name="EntryTypeID", EmitDefaultValue=false)] - public StringValue EntryTypeID { get; set; } - - /// - /// Gets or Sets ExternalRef - /// - [DataMember(Name="ExternalRef", EmitDefaultValue=false)] - public StringValue ExternalRef { get; set; } - - /// - /// Gets or Sets GroupTransactionID - /// - [DataMember(Name="GroupTransactionID", EmitDefaultValue=false)] - public IntValue GroupTransactionID { get; set; } - - /// - /// Gets or Sets IncludedTaxAmount - /// - [DataMember(Name="IncludedTaxAmount", EmitDefaultValue=false)] - public DecimalValue IncludedTaxAmount { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } - - /// - /// Gets or Sets Split - /// - [DataMember(Name="Split", EmitDefaultValue=false)] - public BooleanValue Split { get; set; } - - /// - /// Gets or Sets SubtotalAmount - /// - [DataMember(Name="SubtotalAmount", EmitDefaultValue=false)] - public DecimalValue SubtotalAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets TotalAmount - /// - [DataMember(Name="TotalAmount", EmitDefaultValue=false)] - public DecimalValue TotalAmount { get; set; } - - /// - /// Gets or Sets TransactionCode - /// - [DataMember(Name="TransactionCode", EmitDefaultValue=false)] - public StringValue TransactionCode { get; set; } - - /// - /// Gets or Sets TransactionDate - /// - [DataMember(Name="TransactionDate", EmitDefaultValue=false)] - public DateTimeValue TransactionDate { get; set; } - - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } - - /// - /// Gets or Sets VendorOrCustomer - /// - [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] - public StringValue VendorOrCustomer { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalVoucherDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" APDocumentsToApply: ").Append(APDocumentsToApply).Append("\n"); - sb.Append(" ARDocumentsToApply: ").Append(ARDocumentsToApply).Append("\n"); - sb.Append(" BatchModule: ").Append(BatchModule).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" CardAccountNbr: ").Append(CardAccountNbr).Append("\n"); - sb.Append(" CardAccountNbrCardAccountNbr: ").Append(CardAccountNbrCardAccountNbr).Append("\n"); - sb.Append(" CashDiscount: ").Append(CashDiscount).Append("\n"); - sb.Append(" CashDiscountDate: ").Append(CashDiscountDate).Append("\n"); - sb.Append(" CreditAccount: ").Append(CreditAccount).Append("\n"); - sb.Append(" CreditSubaccount: ").Append(CreditSubaccount).Append("\n"); - sb.Append(" DebitAccount: ").Append(DebitAccount).Append("\n"); - sb.Append(" DebitSubaccount: ").Append(DebitSubaccount).Append("\n"); - sb.Append(" DocCreated: ").Append(DocCreated).Append("\n"); - sb.Append(" DocTotal: ").Append(DocTotal).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" EntryTypeID: ").Append(EntryTypeID).Append("\n"); - sb.Append(" ExternalRef: ").Append(ExternalRef).Append("\n"); - sb.Append(" GroupTransactionID: ").Append(GroupTransactionID).Append("\n"); - sb.Append(" IncludedTaxAmount: ").Append(IncludedTaxAmount).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" Split: ").Append(Split).Append("\n"); - sb.Append(" SubtotalAmount: ").Append(SubtotalAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); - sb.Append(" TransactionCode: ").Append(TransactionCode).Append("\n"); - sb.Append(" TransactionDate: ").Append(TransactionDate).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" VendorOrCustomer: ").Append(VendorOrCustomer).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalVoucherDetail); - } - - /// - /// Returns true if JournalVoucherDetail instances are equal - /// - /// Instance of JournalVoucherDetail to be compared - /// Boolean - public bool Equals(JournalVoucherDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.APDocumentsToApply == input.APDocumentsToApply || - this.APDocumentsToApply != null && - this.APDocumentsToApply.SequenceEqual(input.APDocumentsToApply) - ) && base.Equals(input) && - ( - this.ARDocumentsToApply == input.ARDocumentsToApply || - this.ARDocumentsToApply != null && - this.ARDocumentsToApply.SequenceEqual(input.ARDocumentsToApply) - ) && base.Equals(input) && - ( - this.BatchModule == input.BatchModule || - (this.BatchModule != null && - this.BatchModule.Equals(input.BatchModule)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.CardAccountNbr == input.CardAccountNbr || - (this.CardAccountNbr != null && - this.CardAccountNbr.Equals(input.CardAccountNbr)) - ) && base.Equals(input) && - ( - this.CardAccountNbrCardAccountNbr == input.CardAccountNbrCardAccountNbr || - (this.CardAccountNbrCardAccountNbr != null && - this.CardAccountNbrCardAccountNbr.Equals(input.CardAccountNbrCardAccountNbr)) - ) && base.Equals(input) && - ( - this.CashDiscount == input.CashDiscount || - (this.CashDiscount != null && - this.CashDiscount.Equals(input.CashDiscount)) - ) && base.Equals(input) && - ( - this.CashDiscountDate == input.CashDiscountDate || - (this.CashDiscountDate != null && - this.CashDiscountDate.Equals(input.CashDiscountDate)) - ) && base.Equals(input) && - ( - this.CreditAccount == input.CreditAccount || - (this.CreditAccount != null && - this.CreditAccount.Equals(input.CreditAccount)) - ) && base.Equals(input) && - ( - this.CreditSubaccount == input.CreditSubaccount || - (this.CreditSubaccount != null && - this.CreditSubaccount.Equals(input.CreditSubaccount)) - ) && base.Equals(input) && - ( - this.DebitAccount == input.DebitAccount || - (this.DebitAccount != null && - this.DebitAccount.Equals(input.DebitAccount)) - ) && base.Equals(input) && - ( - this.DebitSubaccount == input.DebitSubaccount || - (this.DebitSubaccount != null && - this.DebitSubaccount.Equals(input.DebitSubaccount)) - ) && base.Equals(input) && - ( - this.DocCreated == input.DocCreated || - (this.DocCreated != null && - this.DocCreated.Equals(input.DocCreated)) - ) && base.Equals(input) && - ( - this.DocTotal == input.DocTotal || - (this.DocTotal != null && - this.DocTotal.Equals(input.DocTotal)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.EntryTypeID == input.EntryTypeID || - (this.EntryTypeID != null && - this.EntryTypeID.Equals(input.EntryTypeID)) - ) && base.Equals(input) && - ( - this.ExternalRef == input.ExternalRef || - (this.ExternalRef != null && - this.ExternalRef.Equals(input.ExternalRef)) - ) && base.Equals(input) && - ( - this.GroupTransactionID == input.GroupTransactionID || - (this.GroupTransactionID != null && - this.GroupTransactionID.Equals(input.GroupTransactionID)) - ) && base.Equals(input) && - ( - this.IncludedTaxAmount == input.IncludedTaxAmount || - (this.IncludedTaxAmount != null && - this.IncludedTaxAmount.Equals(input.IncludedTaxAmount)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.Split == input.Split || - (this.Split != null && - this.Split.Equals(input.Split)) - ) && base.Equals(input) && - ( - this.SubtotalAmount == input.SubtotalAmount || - (this.SubtotalAmount != null && - this.SubtotalAmount.Equals(input.SubtotalAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.TotalAmount == input.TotalAmount || - (this.TotalAmount != null && - this.TotalAmount.Equals(input.TotalAmount)) - ) && base.Equals(input) && - ( - this.TransactionCode == input.TransactionCode || - (this.TransactionCode != null && - this.TransactionCode.Equals(input.TransactionCode)) - ) && base.Equals(input) && - ( - this.TransactionDate == input.TransactionDate || - (this.TransactionDate != null && - this.TransactionDate.Equals(input.TransactionDate)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.VendorOrCustomer == input.VendorOrCustomer || - (this.VendorOrCustomer != null && - this.VendorOrCustomer.Equals(input.VendorOrCustomer)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.APDocumentsToApply != null) - hashCode = hashCode * 59 + this.APDocumentsToApply.GetHashCode(); - if (this.ARDocumentsToApply != null) - hashCode = hashCode * 59 + this.ARDocumentsToApply.GetHashCode(); - if (this.BatchModule != null) - hashCode = hashCode * 59 + this.BatchModule.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.CardAccountNbr != null) - hashCode = hashCode * 59 + this.CardAccountNbr.GetHashCode(); - if (this.CardAccountNbrCardAccountNbr != null) - hashCode = hashCode * 59 + this.CardAccountNbrCardAccountNbr.GetHashCode(); - if (this.CashDiscount != null) - hashCode = hashCode * 59 + this.CashDiscount.GetHashCode(); - if (this.CashDiscountDate != null) - hashCode = hashCode * 59 + this.CashDiscountDate.GetHashCode(); - if (this.CreditAccount != null) - hashCode = hashCode * 59 + this.CreditAccount.GetHashCode(); - if (this.CreditSubaccount != null) - hashCode = hashCode * 59 + this.CreditSubaccount.GetHashCode(); - if (this.DebitAccount != null) - hashCode = hashCode * 59 + this.DebitAccount.GetHashCode(); - if (this.DebitSubaccount != null) - hashCode = hashCode * 59 + this.DebitSubaccount.GetHashCode(); - if (this.DocCreated != null) - hashCode = hashCode * 59 + this.DocCreated.GetHashCode(); - if (this.DocTotal != null) - hashCode = hashCode * 59 + this.DocTotal.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.EntryTypeID != null) - hashCode = hashCode * 59 + this.EntryTypeID.GetHashCode(); - if (this.ExternalRef != null) - hashCode = hashCode * 59 + this.ExternalRef.GetHashCode(); - if (this.GroupTransactionID != null) - hashCode = hashCode * 59 + this.GroupTransactionID.GetHashCode(); - if (this.IncludedTaxAmount != null) - hashCode = hashCode * 59 + this.IncludedTaxAmount.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.Split != null) - hashCode = hashCode * 59 + this.Split.GetHashCode(); - if (this.SubtotalAmount != null) - hashCode = hashCode * 59 + this.SubtotalAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.TotalAmount != null) - hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); - if (this.TransactionCode != null) - hashCode = hashCode * 59 + this.TransactionCode.GetHashCode(); - if (this.TransactionDate != null) - hashCode = hashCode * 59 + this.TransactionDate.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.VendorOrCustomer != null) - hashCode = hashCode * 59 + this.VendorOrCustomer.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs b/Default.18.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs deleted file mode 100644 index 6998da7a..00000000 --- a/Default.18.200.001/Model/JournalVoucherDetailAPDocumentToApply.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// JournalVoucherDetailAPDocumentToApply - /// - [DataContract] - public partial class JournalVoucherDetailAPDocumentToApply : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// docType. - /// referenceNbr. - /// vendorRef. - /// withTax. - /// withTaxBalance. - public JournalVoucherDetailAPDocumentToApply(StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue vendorRef = default(StringValue), DecimalValue withTax = default(DecimalValue), DecimalValue withTaxBalance = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - this.VendorRef = vendorRef; - this.WithTax = withTax; - this.WithTaxBalance = withTaxBalance; - } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets VendorRef - /// - [DataMember(Name="VendorRef", EmitDefaultValue=false)] - public StringValue VendorRef { get; set; } - - /// - /// Gets or Sets WithTax - /// - [DataMember(Name="WithTax", EmitDefaultValue=false)] - public DecimalValue WithTax { get; set; } - - /// - /// Gets or Sets WithTaxBalance - /// - [DataMember(Name="WithTaxBalance", EmitDefaultValue=false)] - public DecimalValue WithTaxBalance { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalVoucherDetailAPDocumentToApply {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" VendorRef: ").Append(VendorRef).Append("\n"); - sb.Append(" WithTax: ").Append(WithTax).Append("\n"); - sb.Append(" WithTaxBalance: ").Append(WithTaxBalance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalVoucherDetailAPDocumentToApply); - } - - /// - /// Returns true if JournalVoucherDetailAPDocumentToApply instances are equal - /// - /// Instance of JournalVoucherDetailAPDocumentToApply to be compared - /// Boolean - public bool Equals(JournalVoucherDetailAPDocumentToApply input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.VendorRef == input.VendorRef || - (this.VendorRef != null && - this.VendorRef.Equals(input.VendorRef)) - ) && base.Equals(input) && - ( - this.WithTax == input.WithTax || - (this.WithTax != null && - this.WithTax.Equals(input.WithTax)) - ) && base.Equals(input) && - ( - this.WithTaxBalance == input.WithTaxBalance || - (this.WithTaxBalance != null && - this.WithTaxBalance.Equals(input.WithTaxBalance)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.VendorRef != null) - hashCode = hashCode * 59 + this.VendorRef.GetHashCode(); - if (this.WithTax != null) - hashCode = hashCode * 59 + this.WithTax.GetHashCode(); - if (this.WithTaxBalance != null) - hashCode = hashCode * 59 + this.WithTaxBalance.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/JournalVoucherDetailARDocumentToApply.cs b/Default.18.200.001/Model/JournalVoucherDetailARDocumentToApply.cs deleted file mode 100644 index 3b8172cd..00000000 --- a/Default.18.200.001/Model/JournalVoucherDetailARDocumentToApply.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// JournalVoucherDetailARDocumentToApply - /// - [DataContract] - public partial class JournalVoucherDetailARDocumentToApply : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// balanceWriteOff. - /// customerOrder. - /// docType. - /// referenceNbr. - /// writeOffLimit. - /// writeOffReasonCode. - public JournalVoucherDetailARDocumentToApply(DecimalValue balanceWriteOff = default(DecimalValue), StringValue customerOrder = default(StringValue), StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), DecimalValue writeOffLimit = default(DecimalValue), StringValue writeOffReasonCode = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BalanceWriteOff = balanceWriteOff; - this.CustomerOrder = customerOrder; - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - this.WriteOffLimit = writeOffLimit; - this.WriteOffReasonCode = writeOffReasonCode; - } - - /// - /// Gets or Sets BalanceWriteOff - /// - [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] - public DecimalValue BalanceWriteOff { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets WriteOffLimit - /// - [DataMember(Name="WriteOffLimit", EmitDefaultValue=false)] - public DecimalValue WriteOffLimit { get; set; } - - /// - /// Gets or Sets WriteOffReasonCode - /// - [DataMember(Name="WriteOffReasonCode", EmitDefaultValue=false)] - public StringValue WriteOffReasonCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalVoucherDetailARDocumentToApply {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BalanceWriteOff: ").Append(BalanceWriteOff).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" WriteOffLimit: ").Append(WriteOffLimit).Append("\n"); - sb.Append(" WriteOffReasonCode: ").Append(WriteOffReasonCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalVoucherDetailARDocumentToApply); - } - - /// - /// Returns true if JournalVoucherDetailARDocumentToApply instances are equal - /// - /// Instance of JournalVoucherDetailARDocumentToApply to be compared - /// Boolean - public bool Equals(JournalVoucherDetailARDocumentToApply input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BalanceWriteOff == input.BalanceWriteOff || - (this.BalanceWriteOff != null && - this.BalanceWriteOff.Equals(input.BalanceWriteOff)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.WriteOffLimit == input.WriteOffLimit || - (this.WriteOffLimit != null && - this.WriteOffLimit.Equals(input.WriteOffLimit)) - ) && base.Equals(input) && - ( - this.WriteOffReasonCode == input.WriteOffReasonCode || - (this.WriteOffReasonCode != null && - this.WriteOffReasonCode.Equals(input.WriteOffReasonCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BalanceWriteOff != null) - hashCode = hashCode * 59 + this.BalanceWriteOff.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.WriteOffLimit != null) - hashCode = hashCode * 59 + this.WriteOffLimit.GetHashCode(); - if (this.WriteOffReasonCode != null) - hashCode = hashCode * 59 + this.WriteOffReasonCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/JournalVoucherGLTransaction.cs b/Default.18.200.001/Model/JournalVoucherGLTransaction.cs deleted file mode 100644 index be8ef4c6..00000000 --- a/Default.18.200.001/Model/JournalVoucherGLTransaction.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// JournalVoucherGLTransaction - /// - [DataContract] - public partial class JournalVoucherGLTransaction : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// batchNbr. - /// creditAmount. - /// currencyID. - /// debitAmount. - /// lineNbr. - /// module. - /// qty. - /// referenceNbr. - /// subaccount. - /// transactionDate. - /// transactionDescription. - public JournalVoucherGLTransaction(StringValue account = default(StringValue), StringValue batchNbr = default(StringValue), DecimalValue creditAmount = default(DecimalValue), StringValue currencyID = default(StringValue), DecimalValue debitAmount = default(DecimalValue), IntValue lineNbr = default(IntValue), StringValue module = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue referenceNbr = default(StringValue), StringValue subaccount = default(StringValue), DateTimeValue transactionDate = default(DateTimeValue), StringValue transactionDescription = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.BatchNbr = batchNbr; - this.CreditAmount = creditAmount; - this.CurrencyID = currencyID; - this.DebitAmount = debitAmount; - this.LineNbr = lineNbr; - this.Module = module; - this.Qty = qty; - this.ReferenceNbr = referenceNbr; - this.Subaccount = subaccount; - this.TransactionDate = transactionDate; - this.TransactionDescription = transactionDescription; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets CreditAmount - /// - [DataMember(Name="CreditAmount", EmitDefaultValue=false)] - public DecimalValue CreditAmount { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets DebitAmount - /// - [DataMember(Name="DebitAmount", EmitDefaultValue=false)] - public DecimalValue DebitAmount { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets TransactionDate - /// - [DataMember(Name="TransactionDate", EmitDefaultValue=false)] - public DateTimeValue TransactionDate { get; set; } - - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class JournalVoucherGLTransaction {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" CreditAmount: ").Append(CreditAmount).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" DebitAmount: ").Append(DebitAmount).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" TransactionDate: ").Append(TransactionDate).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as JournalVoucherGLTransaction); - } - - /// - /// Returns true if JournalVoucherGLTransaction instances are equal - /// - /// Instance of JournalVoucherGLTransaction to be compared - /// Boolean - public bool Equals(JournalVoucherGLTransaction input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.CreditAmount == input.CreditAmount || - (this.CreditAmount != null && - this.CreditAmount.Equals(input.CreditAmount)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.DebitAmount == input.DebitAmount || - (this.DebitAmount != null && - this.DebitAmount.Equals(input.DebitAmount)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.TransactionDate == input.TransactionDate || - (this.TransactionDate != null && - this.TransactionDate.Equals(input.TransactionDate)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.CreditAmount != null) - hashCode = hashCode * 59 + this.CreditAmount.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.DebitAmount != null) - hashCode = hashCode * 59 + this.DebitAmount.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.TransactionDate != null) - hashCode = hashCode * 59 + this.TransactionDate.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/KitAssembly.cs b/Default.18.200.001/Model/KitAssembly.cs deleted file mode 100644 index ac9c7345..00000000 --- a/Default.18.200.001/Model/KitAssembly.cs +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// KitAssembly - /// - [DataContract] - public partial class KitAssembly : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocations. - /// date. - /// description. - /// hold. - /// kitInventoryID. - /// locationID. - /// nonStockComponents. - /// postPeriod. - /// qty. - /// reasonCode. - /// referenceNbr. - /// revision. - /// status. - /// stockComponents. - /// subitem. - /// type. - /// uOM. - /// warehouseID. - public KitAssembly(IEnumerable allocations = default(IEnumerable), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), BooleanValue hold = default(BooleanValue), StringValue kitInventoryID = default(StringValue), StringValue locationID = default(StringValue), IEnumerable nonStockComponents = default(IEnumerable), StringValue postPeriod = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue reasonCode = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue revision = default(StringValue), StringValue status = default(StringValue), IEnumerable stockComponents = default(IEnumerable), StringValue subitem = default(StringValue), StringValue type = default(StringValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocations = allocations; - this.Date = date; - this.Description = description; - this.Hold = hold; - this.KitInventoryID = kitInventoryID; - this.LocationID = locationID; - this.NonStockComponents = nonStockComponents; - this.PostPeriod = postPeriod; - this.Qty = qty; - this.ReasonCode = reasonCode; - this.ReferenceNbr = referenceNbr; - this.Revision = revision; - this.Status = status; - this.StockComponents = stockComponents; - this.Subitem = subitem; - this.Type = type; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public IEnumerable Allocations { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets KitInventoryID - /// - [DataMember(Name="KitInventoryID", EmitDefaultValue=false)] - public StringValue KitInventoryID { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets NonStockComponents - /// - [DataMember(Name="NonStockComponents", EmitDefaultValue=false)] - public IEnumerable NonStockComponents { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Revision - /// - [DataMember(Name="Revision", EmitDefaultValue=false)] - public StringValue Revision { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets StockComponents - /// - [DataMember(Name="StockComponents", EmitDefaultValue=false)] - public IEnumerable StockComponents { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitAssembly {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" KitInventoryID: ").Append(KitInventoryID).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" NonStockComponents: ").Append(NonStockComponents).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Revision: ").Append(Revision).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" StockComponents: ").Append(StockComponents).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitAssembly); - } - - /// - /// Returns true if KitAssembly instances are equal - /// - /// Instance of KitAssembly to be compared - /// Boolean - public bool Equals(KitAssembly input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.KitInventoryID == input.KitInventoryID || - (this.KitInventoryID != null && - this.KitInventoryID.Equals(input.KitInventoryID)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.NonStockComponents == input.NonStockComponents || - this.NonStockComponents != null && - this.NonStockComponents.SequenceEqual(input.NonStockComponents) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Revision == input.Revision || - (this.Revision != null && - this.Revision.Equals(input.Revision)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.StockComponents == input.StockComponents || - this.StockComponents != null && - this.StockComponents.SequenceEqual(input.StockComponents) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.KitInventoryID != null) - hashCode = hashCode * 59 + this.KitInventoryID.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.NonStockComponents != null) - hashCode = hashCode * 59 + this.NonStockComponents.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Revision != null) - hashCode = hashCode * 59 + this.Revision.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.StockComponents != null) - hashCode = hashCode * 59 + this.StockComponents.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/KitAssemblyAllocation.cs b/Default.18.200.001/Model/KitAssemblyAllocation.cs deleted file mode 100644 index 4e01ee4a..00000000 --- a/Default.18.200.001/Model/KitAssemblyAllocation.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// KitAssemblyAllocation - /// - [DataContract] - public partial class KitAssemblyAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// expirationDate. - /// lineNbr. - /// locationID. - /// lotSerialNbr. - /// qty. - /// splitLineNbr. - /// subitem. - /// uOM. - public KitAssemblyAllocation(DateTimeValue expirationDate = default(DateTimeValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), IntValue splitLineNbr = default(IntValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ExpirationDate = expirationDate; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.SplitLineNbr = splitLineNbr; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets SplitLineNbr - /// - [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] - public IntValue SplitLineNbr { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitAssemblyAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" SplitLineNbr: ").Append(SplitLineNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitAssemblyAllocation); - } - - /// - /// Returns true if KitAssemblyAllocation instances are equal - /// - /// Instance of KitAssemblyAllocation to be compared - /// Boolean - public bool Equals(KitAssemblyAllocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.SplitLineNbr == input.SplitLineNbr || - (this.SplitLineNbr != null && - this.SplitLineNbr.Equals(input.SplitLineNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.SplitLineNbr != null) - hashCode = hashCode * 59 + this.SplitLineNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/KitAssemblyNonStockComponent.cs b/Default.18.200.001/Model/KitAssemblyNonStockComponent.cs deleted file mode 100644 index d155b7b8..00000000 --- a/Default.18.200.001/Model/KitAssemblyNonStockComponent.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// KitAssemblyNonStockComponent - /// - [DataContract] - public partial class KitAssemblyNonStockComponent : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// componentQty. - /// lineNbr. - /// nonStockInventoryID. - /// qty. - /// reasonCode. - /// unitCost. - /// uOM. - public KitAssemblyNonStockComponent(DecimalValue componentQty = default(DecimalValue), IntValue lineNbr = default(IntValue), StringValue nonStockInventoryID = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue reasonCode = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ComponentQty = componentQty; - this.LineNbr = lineNbr; - this.NonStockInventoryID = nonStockInventoryID; - this.Qty = qty; - this.ReasonCode = reasonCode; - this.UnitCost = unitCost; - this.UOM = uOM; - } - - /// - /// Gets or Sets ComponentQty - /// - [DataMember(Name="ComponentQty", EmitDefaultValue=false)] - public DecimalValue ComponentQty { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets NonStockInventoryID - /// - [DataMember(Name="NonStockInventoryID", EmitDefaultValue=false)] - public StringValue NonStockInventoryID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitAssemblyNonStockComponent {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ComponentQty: ").Append(ComponentQty).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" NonStockInventoryID: ").Append(NonStockInventoryID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitAssemblyNonStockComponent); - } - - /// - /// Returns true if KitAssemblyNonStockComponent instances are equal - /// - /// Instance of KitAssemblyNonStockComponent to be compared - /// Boolean - public bool Equals(KitAssemblyNonStockComponent input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ComponentQty == input.ComponentQty || - (this.ComponentQty != null && - this.ComponentQty.Equals(input.ComponentQty)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.NonStockInventoryID == input.NonStockInventoryID || - (this.NonStockInventoryID != null && - this.NonStockInventoryID.Equals(input.NonStockInventoryID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ComponentQty != null) - hashCode = hashCode * 59 + this.ComponentQty.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.NonStockInventoryID != null) - hashCode = hashCode * 59 + this.NonStockInventoryID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/KitAssemblyStockComponent.cs b/Default.18.200.001/Model/KitAssemblyStockComponent.cs deleted file mode 100644 index deb8f877..00000000 --- a/Default.18.200.001/Model/KitAssemblyStockComponent.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// KitAssemblyStockComponent - /// - [DataContract] - public partial class KitAssemblyStockComponent : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocations. - /// componentQty. - /// lineNbr. - /// locationID. - /// qty. - /// reasonCode. - /// stockInventoryID. - /// subitem. - /// unitCost. - /// uOM. - public KitAssemblyStockComponent(IEnumerable allocations = default(IEnumerable), DecimalValue componentQty = default(DecimalValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue reasonCode = default(StringValue), StringValue stockInventoryID = default(StringValue), StringValue subitem = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocations = allocations; - this.ComponentQty = componentQty; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.Qty = qty; - this.ReasonCode = reasonCode; - this.StockInventoryID = stockInventoryID; - this.Subitem = subitem; - this.UnitCost = unitCost; - this.UOM = uOM; - } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public IEnumerable Allocations { get; set; } - - /// - /// Gets or Sets ComponentQty - /// - [DataMember(Name="ComponentQty", EmitDefaultValue=false)] - public DecimalValue ComponentQty { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } - - /// - /// Gets or Sets StockInventoryID - /// - [DataMember(Name="StockInventoryID", EmitDefaultValue=false)] - public StringValue StockInventoryID { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitAssemblyStockComponent {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" ComponentQty: ").Append(ComponentQty).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" StockInventoryID: ").Append(StockInventoryID).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitAssemblyStockComponent); - } - - /// - /// Returns true if KitAssemblyStockComponent instances are equal - /// - /// Instance of KitAssemblyStockComponent to be compared - /// Boolean - public bool Equals(KitAssemblyStockComponent input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.ComponentQty == input.ComponentQty || - (this.ComponentQty != null && - this.ComponentQty.Equals(input.ComponentQty)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.StockInventoryID == input.StockInventoryID || - (this.StockInventoryID != null && - this.StockInventoryID.Equals(input.StockInventoryID)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.ComponentQty != null) - hashCode = hashCode * 59 + this.ComponentQty.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.StockInventoryID != null) - hashCode = hashCode * 59 + this.StockInventoryID.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/KitAssemblyStockComponentAllocation.cs b/Default.18.200.001/Model/KitAssemblyStockComponentAllocation.cs deleted file mode 100644 index e52b1dea..00000000 --- a/Default.18.200.001/Model/KitAssemblyStockComponentAllocation.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// KitAssemblyStockComponentAllocation - /// - [DataContract] - public partial class KitAssemblyStockComponentAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// docType. - /// expirationDate. - /// inventoryID. - /// lineNbr. - /// locationID. - /// lotSerialNbr. - /// qty. - /// referenceNbr. - /// splitLineNbr. - /// subitem. - /// uOM. - public KitAssemblyStockComponentAllocation(StringValue docType = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue referenceNbr = default(StringValue), IntValue splitLineNbr = default(IntValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DocType = docType; - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.ReferenceNbr = referenceNbr; - this.SplitLineNbr = splitLineNbr; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets SplitLineNbr - /// - [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] - public IntValue SplitLineNbr { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitAssemblyStockComponentAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" SplitLineNbr: ").Append(SplitLineNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitAssemblyStockComponentAllocation); - } - - /// - /// Returns true if KitAssemblyStockComponentAllocation instances are equal - /// - /// Instance of KitAssemblyStockComponentAllocation to be compared - /// Boolean - public bool Equals(KitAssemblyStockComponentAllocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.SplitLineNbr == input.SplitLineNbr || - (this.SplitLineNbr != null && - this.SplitLineNbr.Equals(input.SplitLineNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.SplitLineNbr != null) - hashCode = hashCode * 59 + this.SplitLineNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/KitNonStockComponent.cs b/Default.18.200.001/Model/KitNonStockComponent.cs deleted file mode 100644 index 261436c5..00000000 --- a/Default.18.200.001/Model/KitNonStockComponent.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// KitNonStockComponent - /// - [DataContract] - public partial class KitNonStockComponent : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allowComponentQtyVariance. - /// componentQty. - /// maxComponentQty. - /// minComponentQty. - /// nonStockInventoryID. - /// uOM. - public KitNonStockComponent(BooleanValue allowComponentQtyVariance = default(BooleanValue), DecimalValue componentQty = default(DecimalValue), DecimalValue maxComponentQty = default(DecimalValue), DecimalValue minComponentQty = default(DecimalValue), StringValue nonStockInventoryID = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllowComponentQtyVariance = allowComponentQtyVariance; - this.ComponentQty = componentQty; - this.MaxComponentQty = maxComponentQty; - this.MinComponentQty = minComponentQty; - this.NonStockInventoryID = nonStockInventoryID; - this.UOM = uOM; - } - - /// - /// Gets or Sets AllowComponentQtyVariance - /// - [DataMember(Name="AllowComponentQtyVariance", EmitDefaultValue=false)] - public BooleanValue AllowComponentQtyVariance { get; set; } - - /// - /// Gets or Sets ComponentQty - /// - [DataMember(Name="ComponentQty", EmitDefaultValue=false)] - public DecimalValue ComponentQty { get; set; } - - /// - /// Gets or Sets MaxComponentQty - /// - [DataMember(Name="MaxComponentQty", EmitDefaultValue=false)] - public DecimalValue MaxComponentQty { get; set; } - - /// - /// Gets or Sets MinComponentQty - /// - [DataMember(Name="MinComponentQty", EmitDefaultValue=false)] - public DecimalValue MinComponentQty { get; set; } - - /// - /// Gets or Sets NonStockInventoryID - /// - [DataMember(Name="NonStockInventoryID", EmitDefaultValue=false)] - public StringValue NonStockInventoryID { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitNonStockComponent {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllowComponentQtyVariance: ").Append(AllowComponentQtyVariance).Append("\n"); - sb.Append(" ComponentQty: ").Append(ComponentQty).Append("\n"); - sb.Append(" MaxComponentQty: ").Append(MaxComponentQty).Append("\n"); - sb.Append(" MinComponentQty: ").Append(MinComponentQty).Append("\n"); - sb.Append(" NonStockInventoryID: ").Append(NonStockInventoryID).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitNonStockComponent); - } - - /// - /// Returns true if KitNonStockComponent instances are equal - /// - /// Instance of KitNonStockComponent to be compared - /// Boolean - public bool Equals(KitNonStockComponent input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AllowComponentQtyVariance == input.AllowComponentQtyVariance || - (this.AllowComponentQtyVariance != null && - this.AllowComponentQtyVariance.Equals(input.AllowComponentQtyVariance)) - ) && base.Equals(input) && - ( - this.ComponentQty == input.ComponentQty || - (this.ComponentQty != null && - this.ComponentQty.Equals(input.ComponentQty)) - ) && base.Equals(input) && - ( - this.MaxComponentQty == input.MaxComponentQty || - (this.MaxComponentQty != null && - this.MaxComponentQty.Equals(input.MaxComponentQty)) - ) && base.Equals(input) && - ( - this.MinComponentQty == input.MinComponentQty || - (this.MinComponentQty != null && - this.MinComponentQty.Equals(input.MinComponentQty)) - ) && base.Equals(input) && - ( - this.NonStockInventoryID == input.NonStockInventoryID || - (this.NonStockInventoryID != null && - this.NonStockInventoryID.Equals(input.NonStockInventoryID)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllowComponentQtyVariance != null) - hashCode = hashCode * 59 + this.AllowComponentQtyVariance.GetHashCode(); - if (this.ComponentQty != null) - hashCode = hashCode * 59 + this.ComponentQty.GetHashCode(); - if (this.MaxComponentQty != null) - hashCode = hashCode * 59 + this.MaxComponentQty.GetHashCode(); - if (this.MinComponentQty != null) - hashCode = hashCode * 59 + this.MinComponentQty.GetHashCode(); - if (this.NonStockInventoryID != null) - hashCode = hashCode * 59 + this.NonStockInventoryID.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/KitSpecification.cs b/Default.18.200.001/Model/KitSpecification.cs deleted file mode 100644 index 13e9d6fa..00000000 --- a/Default.18.200.001/Model/KitSpecification.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// KitSpecification - /// - [DataContract] - public partial class KitSpecification : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// description. - /// isNonStock. - /// kitInventoryID. - /// nonStockComponents. - /// revisionID. - /// stockComponents. - public KitSpecification(BooleanValue active = default(BooleanValue), StringValue description = default(StringValue), BooleanValue isNonStock = default(BooleanValue), StringValue kitInventoryID = default(StringValue), IEnumerable nonStockComponents = default(IEnumerable), StringValue revisionID = default(StringValue), IEnumerable stockComponents = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Description = description; - this.IsNonStock = isNonStock; - this.KitInventoryID = kitInventoryID; - this.NonStockComponents = nonStockComponents; - this.RevisionID = revisionID; - this.StockComponents = stockComponents; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets IsNonStock - /// - [DataMember(Name="IsNonStock", EmitDefaultValue=false)] - public BooleanValue IsNonStock { get; set; } - - /// - /// Gets or Sets KitInventoryID - /// - [DataMember(Name="KitInventoryID", EmitDefaultValue=false)] - public StringValue KitInventoryID { get; set; } - - /// - /// Gets or Sets NonStockComponents - /// - [DataMember(Name="NonStockComponents", EmitDefaultValue=false)] - public IEnumerable NonStockComponents { get; set; } - - /// - /// Gets or Sets RevisionID - /// - [DataMember(Name="RevisionID", EmitDefaultValue=false)] - public StringValue RevisionID { get; set; } - - /// - /// Gets or Sets StockComponents - /// - [DataMember(Name="StockComponents", EmitDefaultValue=false)] - public IEnumerable StockComponents { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitSpecification {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IsNonStock: ").Append(IsNonStock).Append("\n"); - sb.Append(" KitInventoryID: ").Append(KitInventoryID).Append("\n"); - sb.Append(" NonStockComponents: ").Append(NonStockComponents).Append("\n"); - sb.Append(" RevisionID: ").Append(RevisionID).Append("\n"); - sb.Append(" StockComponents: ").Append(StockComponents).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitSpecification); - } - - /// - /// Returns true if KitSpecification instances are equal - /// - /// Instance of KitSpecification to be compared - /// Boolean - public bool Equals(KitSpecification input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.IsNonStock == input.IsNonStock || - (this.IsNonStock != null && - this.IsNonStock.Equals(input.IsNonStock)) - ) && base.Equals(input) && - ( - this.KitInventoryID == input.KitInventoryID || - (this.KitInventoryID != null && - this.KitInventoryID.Equals(input.KitInventoryID)) - ) && base.Equals(input) && - ( - this.NonStockComponents == input.NonStockComponents || - this.NonStockComponents != null && - this.NonStockComponents.SequenceEqual(input.NonStockComponents) - ) && base.Equals(input) && - ( - this.RevisionID == input.RevisionID || - (this.RevisionID != null && - this.RevisionID.Equals(input.RevisionID)) - ) && base.Equals(input) && - ( - this.StockComponents == input.StockComponents || - this.StockComponents != null && - this.StockComponents.SequenceEqual(input.StockComponents) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IsNonStock != null) - hashCode = hashCode * 59 + this.IsNonStock.GetHashCode(); - if (this.KitInventoryID != null) - hashCode = hashCode * 59 + this.KitInventoryID.GetHashCode(); - if (this.NonStockComponents != null) - hashCode = hashCode * 59 + this.NonStockComponents.GetHashCode(); - if (this.RevisionID != null) - hashCode = hashCode * 59 + this.RevisionID.GetHashCode(); - if (this.StockComponents != null) - hashCode = hashCode * 59 + this.StockComponents.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/KitStockComponent.cs b/Default.18.200.001/Model/KitStockComponent.cs deleted file mode 100644 index 886877ec..00000000 --- a/Default.18.200.001/Model/KitStockComponent.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// KitStockComponent - /// - [DataContract] - public partial class KitStockComponent : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allowComponentQtyVariance. - /// componentQty. - /// maxComponentQty. - /// minComponentQty. - /// stockInventoryID. - /// subitem. - /// uOM. - public KitStockComponent(BooleanValue allowComponentQtyVariance = default(BooleanValue), DecimalValue componentQty = default(DecimalValue), DecimalValue maxComponentQty = default(DecimalValue), DecimalValue minComponentQty = default(DecimalValue), StringValue stockInventoryID = default(StringValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllowComponentQtyVariance = allowComponentQtyVariance; - this.ComponentQty = componentQty; - this.MaxComponentQty = maxComponentQty; - this.MinComponentQty = minComponentQty; - this.StockInventoryID = stockInventoryID; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets AllowComponentQtyVariance - /// - [DataMember(Name="AllowComponentQtyVariance", EmitDefaultValue=false)] - public BooleanValue AllowComponentQtyVariance { get; set; } - - /// - /// Gets or Sets ComponentQty - /// - [DataMember(Name="ComponentQty", EmitDefaultValue=false)] - public DecimalValue ComponentQty { get; set; } - - /// - /// Gets or Sets MaxComponentQty - /// - [DataMember(Name="MaxComponentQty", EmitDefaultValue=false)] - public DecimalValue MaxComponentQty { get; set; } - - /// - /// Gets or Sets MinComponentQty - /// - [DataMember(Name="MinComponentQty", EmitDefaultValue=false)] - public DecimalValue MinComponentQty { get; set; } - - /// - /// Gets or Sets StockInventoryID - /// - [DataMember(Name="StockInventoryID", EmitDefaultValue=false)] - public StringValue StockInventoryID { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KitStockComponent {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllowComponentQtyVariance: ").Append(AllowComponentQtyVariance).Append("\n"); - sb.Append(" ComponentQty: ").Append(ComponentQty).Append("\n"); - sb.Append(" MaxComponentQty: ").Append(MaxComponentQty).Append("\n"); - sb.Append(" MinComponentQty: ").Append(MinComponentQty).Append("\n"); - sb.Append(" StockInventoryID: ").Append(StockInventoryID).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KitStockComponent); - } - - /// - /// Returns true if KitStockComponent instances are equal - /// - /// Instance of KitStockComponent to be compared - /// Boolean - public bool Equals(KitStockComponent input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AllowComponentQtyVariance == input.AllowComponentQtyVariance || - (this.AllowComponentQtyVariance != null && - this.AllowComponentQtyVariance.Equals(input.AllowComponentQtyVariance)) - ) && base.Equals(input) && - ( - this.ComponentQty == input.ComponentQty || - (this.ComponentQty != null && - this.ComponentQty.Equals(input.ComponentQty)) - ) && base.Equals(input) && - ( - this.MaxComponentQty == input.MaxComponentQty || - (this.MaxComponentQty != null && - this.MaxComponentQty.Equals(input.MaxComponentQty)) - ) && base.Equals(input) && - ( - this.MinComponentQty == input.MinComponentQty || - (this.MinComponentQty != null && - this.MinComponentQty.Equals(input.MinComponentQty)) - ) && base.Equals(input) && - ( - this.StockInventoryID == input.StockInventoryID || - (this.StockInventoryID != null && - this.StockInventoryID.Equals(input.StockInventoryID)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllowComponentQtyVariance != null) - hashCode = hashCode * 59 + this.AllowComponentQtyVariance.GetHashCode(); - if (this.ComponentQty != null) - hashCode = hashCode * 59 + this.ComponentQty.GetHashCode(); - if (this.MaxComponentQty != null) - hashCode = hashCode * 59 + this.MaxComponentQty.GetHashCode(); - if (this.MinComponentQty != null) - hashCode = hashCode * 59 + this.MinComponentQty.GetHashCode(); - if (this.StockInventoryID != null) - hashCode = hashCode * 59 + this.StockInventoryID.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/LaborCostRate.cs b/Default.18.200.001/Model/LaborCostRate.cs deleted file mode 100644 index 3f47d0b3..00000000 --- a/Default.18.200.001/Model/LaborCostRate.cs +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// LaborCostRate - /// - [DataContract] - public partial class LaborCostRate : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// annualRate. - /// currencyID. - /// description. - /// effectiveDate. - /// employeeID. - /// employeeName. - /// externalRefNbr. - /// hourlyRate. - /// laborItem. - /// laborRateType. - /// projectID. - /// projectTaskID. - /// recordID. - /// regularHoursPerWeek. - /// typeOfEmployment. - /// unionLocalID. - public LaborCostRate(DecimalValue annualRate = default(DecimalValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), StringValue employeeID = default(StringValue), StringValue employeeName = default(StringValue), StringValue externalRefNbr = default(StringValue), DecimalValue hourlyRate = default(DecimalValue), StringValue laborItem = default(StringValue), StringValue laborRateType = default(StringValue), StringValue projectID = default(StringValue), StringValue projectTaskID = default(StringValue), IntValue recordID = default(IntValue), DecimalValue regularHoursPerWeek = default(DecimalValue), StringValue typeOfEmployment = default(StringValue), StringValue unionLocalID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AnnualRate = annualRate; - this.CurrencyID = currencyID; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.EmployeeID = employeeID; - this.EmployeeName = employeeName; - this.ExternalRefNbr = externalRefNbr; - this.HourlyRate = hourlyRate; - this.LaborItem = laborItem; - this.LaborRateType = laborRateType; - this.ProjectID = projectID; - this.ProjectTaskID = projectTaskID; - this.RecordID = recordID; - this.RegularHoursPerWeek = regularHoursPerWeek; - this.TypeOfEmployment = typeOfEmployment; - this.UnionLocalID = unionLocalID; - } - - /// - /// Gets or Sets AnnualRate - /// - [DataMember(Name="AnnualRate", EmitDefaultValue=false)] - public DecimalValue AnnualRate { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets EmployeeID - /// - [DataMember(Name="EmployeeID", EmitDefaultValue=false)] - public StringValue EmployeeID { get; set; } - - /// - /// Gets or Sets EmployeeName - /// - [DataMember(Name="EmployeeName", EmitDefaultValue=false)] - public StringValue EmployeeName { get; set; } - - /// - /// Gets or Sets ExternalRefNbr - /// - [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] - public StringValue ExternalRefNbr { get; set; } - - /// - /// Gets or Sets HourlyRate - /// - [DataMember(Name="HourlyRate", EmitDefaultValue=false)] - public DecimalValue HourlyRate { get; set; } - - /// - /// Gets or Sets LaborItem - /// - [DataMember(Name="LaborItem", EmitDefaultValue=false)] - public StringValue LaborItem { get; set; } - - /// - /// Gets or Sets LaborRateType - /// - [DataMember(Name="LaborRateType", EmitDefaultValue=false)] - public StringValue LaborRateType { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } - - /// - /// Gets or Sets RegularHoursPerWeek - /// - [DataMember(Name="RegularHoursPerWeek", EmitDefaultValue=false)] - public DecimalValue RegularHoursPerWeek { get; set; } - - /// - /// Gets or Sets TypeOfEmployment - /// - [DataMember(Name="TypeOfEmployment", EmitDefaultValue=false)] - public StringValue TypeOfEmployment { get; set; } - - /// - /// Gets or Sets UnionLocalID - /// - [DataMember(Name="UnionLocalID", EmitDefaultValue=false)] - public StringValue UnionLocalID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LaborCostRate {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AnnualRate: ").Append(AnnualRate).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" EmployeeID: ").Append(EmployeeID).Append("\n"); - sb.Append(" EmployeeName: ").Append(EmployeeName).Append("\n"); - sb.Append(" ExternalRefNbr: ").Append(ExternalRefNbr).Append("\n"); - sb.Append(" HourlyRate: ").Append(HourlyRate).Append("\n"); - sb.Append(" LaborItem: ").Append(LaborItem).Append("\n"); - sb.Append(" LaborRateType: ").Append(LaborRateType).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" RegularHoursPerWeek: ").Append(RegularHoursPerWeek).Append("\n"); - sb.Append(" TypeOfEmployment: ").Append(TypeOfEmployment).Append("\n"); - sb.Append(" UnionLocalID: ").Append(UnionLocalID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LaborCostRate); - } - - /// - /// Returns true if LaborCostRate instances are equal - /// - /// Instance of LaborCostRate to be compared - /// Boolean - public bool Equals(LaborCostRate input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AnnualRate == input.AnnualRate || - (this.AnnualRate != null && - this.AnnualRate.Equals(input.AnnualRate)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.EmployeeID == input.EmployeeID || - (this.EmployeeID != null && - this.EmployeeID.Equals(input.EmployeeID)) - ) && base.Equals(input) && - ( - this.EmployeeName == input.EmployeeName || - (this.EmployeeName != null && - this.EmployeeName.Equals(input.EmployeeName)) - ) && base.Equals(input) && - ( - this.ExternalRefNbr == input.ExternalRefNbr || - (this.ExternalRefNbr != null && - this.ExternalRefNbr.Equals(input.ExternalRefNbr)) - ) && base.Equals(input) && - ( - this.HourlyRate == input.HourlyRate || - (this.HourlyRate != null && - this.HourlyRate.Equals(input.HourlyRate)) - ) && base.Equals(input) && - ( - this.LaborItem == input.LaborItem || - (this.LaborItem != null && - this.LaborItem.Equals(input.LaborItem)) - ) && base.Equals(input) && - ( - this.LaborRateType == input.LaborRateType || - (this.LaborRateType != null && - this.LaborRateType.Equals(input.LaborRateType)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.RegularHoursPerWeek == input.RegularHoursPerWeek || - (this.RegularHoursPerWeek != null && - this.RegularHoursPerWeek.Equals(input.RegularHoursPerWeek)) - ) && base.Equals(input) && - ( - this.TypeOfEmployment == input.TypeOfEmployment || - (this.TypeOfEmployment != null && - this.TypeOfEmployment.Equals(input.TypeOfEmployment)) - ) && base.Equals(input) && - ( - this.UnionLocalID == input.UnionLocalID || - (this.UnionLocalID != null && - this.UnionLocalID.Equals(input.UnionLocalID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AnnualRate != null) - hashCode = hashCode * 59 + this.AnnualRate.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.EmployeeID != null) - hashCode = hashCode * 59 + this.EmployeeID.GetHashCode(); - if (this.EmployeeName != null) - hashCode = hashCode * 59 + this.EmployeeName.GetHashCode(); - if (this.ExternalRefNbr != null) - hashCode = hashCode * 59 + this.ExternalRefNbr.GetHashCode(); - if (this.HourlyRate != null) - hashCode = hashCode * 59 + this.HourlyRate.GetHashCode(); - if (this.LaborItem != null) - hashCode = hashCode * 59 + this.LaborItem.GetHashCode(); - if (this.LaborRateType != null) - hashCode = hashCode * 59 + this.LaborRateType.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.RegularHoursPerWeek != null) - hashCode = hashCode * 59 + this.RegularHoursPerWeek.GetHashCode(); - if (this.TypeOfEmployment != null) - hashCode = hashCode * 59 + this.TypeOfEmployment.GetHashCode(); - if (this.UnionLocalID != null) - hashCode = hashCode * 59 + this.UnionLocalID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Lead.cs b/Default.18.200.001/Model/Lead.cs deleted file mode 100644 index d4ca9a4a..00000000 --- a/Default.18.200.001/Model/Lead.cs +++ /dev/null @@ -1,862 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Lead - /// - [DataContract] - public partial class Lead : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// activities. - /// address. - /// attributes. - /// businessAccount. - /// campaigns. - /// companyName. - /// contactMethod. - /// doNotCall. - /// doNotEmail. - /// doNotFax. - /// doNotMail. - /// duplicate. - /// duplicateFound. - /// duplicates. - /// email. - /// fax. - /// faxType. - /// firstName. - /// jobTitle. - /// languageOrLocale. - /// lastIncomingActivity. - /// lastName. - /// lastOutgoingActivity. - /// leadClass. - /// leadDisplayName. - /// leadID. - /// marketingLists. - /// noMarketing. - /// noMassMail. - /// owner. - /// ownerEmployeeName. - /// parentAccount. - /// phone1. - /// phone1Type. - /// phone2. - /// phone2Type. - /// phone3. - /// phone3Type. - /// reason. - /// relations. - /// source. - /// sourceCampaign. - /// status. - /// title. - /// webSite. - /// workgroup. - /// workgroupDescription. - public Lead(IEnumerable activities = default(IEnumerable), Address address = default(Address), IEnumerable attributes = default(IEnumerable), StringValue businessAccount = default(StringValue), IEnumerable campaigns = default(IEnumerable), StringValue companyName = default(StringValue), StringValue contactMethod = default(StringValue), BooleanValue doNotCall = default(BooleanValue), BooleanValue doNotEmail = default(BooleanValue), BooleanValue doNotFax = default(BooleanValue), BooleanValue doNotMail = default(BooleanValue), StringValue duplicate = default(StringValue), BooleanValue duplicateFound = default(BooleanValue), IEnumerable duplicates = default(IEnumerable), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue faxType = default(StringValue), StringValue firstName = default(StringValue), StringValue jobTitle = default(StringValue), StringValue languageOrLocale = default(StringValue), DateTimeValue lastIncomingActivity = default(DateTimeValue), StringValue lastName = default(StringValue), DateTimeValue lastOutgoingActivity = default(DateTimeValue), StringValue leadClass = default(StringValue), StringValue leadDisplayName = default(StringValue), IntValue leadID = default(IntValue), IEnumerable marketingLists = default(IEnumerable), BooleanValue noMarketing = default(BooleanValue), BooleanValue noMassMail = default(BooleanValue), StringValue owner = default(StringValue), StringValue ownerEmployeeName = default(StringValue), StringValue parentAccount = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone1Type = default(StringValue), StringValue phone2 = default(StringValue), StringValue phone2Type = default(StringValue), StringValue phone3 = default(StringValue), StringValue phone3Type = default(StringValue), StringValue reason = default(StringValue), IEnumerable relations = default(IEnumerable), StringValue source = default(StringValue), StringValue sourceCampaign = default(StringValue), StringValue status = default(StringValue), StringValue title = default(StringValue), StringValue webSite = default(StringValue), StringValue workgroup = default(StringValue), StringValue workgroupDescription = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Activities = activities; - this.Address = address; - this.Attributes = attributes; - this.BusinessAccount = businessAccount; - this.Campaigns = campaigns; - this.CompanyName = companyName; - this.ContactMethod = contactMethod; - this.DoNotCall = doNotCall; - this.DoNotEmail = doNotEmail; - this.DoNotFax = doNotFax; - this.DoNotMail = doNotMail; - this.Duplicate = duplicate; - this.DuplicateFound = duplicateFound; - this.Duplicates = duplicates; - this.Email = email; - this.Fax = fax; - this.FaxType = faxType; - this.FirstName = firstName; - this.JobTitle = jobTitle; - this.LanguageOrLocale = languageOrLocale; - this.LastIncomingActivity = lastIncomingActivity; - this.LastName = lastName; - this.LastOutgoingActivity = lastOutgoingActivity; - this.LeadClass = leadClass; - this.LeadDisplayName = leadDisplayName; - this.LeadID = leadID; - this.MarketingLists = marketingLists; - this.NoMarketing = noMarketing; - this.NoMassMail = noMassMail; - this.Owner = owner; - this.OwnerEmployeeName = ownerEmployeeName; - this.ParentAccount = parentAccount; - this.Phone1 = phone1; - this.Phone1Type = phone1Type; - this.Phone2 = phone2; - this.Phone2Type = phone2Type; - this.Phone3 = phone3; - this.Phone3Type = phone3Type; - this.Reason = reason; - this.Relations = relations; - this.Source = source; - this.SourceCampaign = sourceCampaign; - this.Status = status; - this.Title = title; - this.WebSite = webSite; - this.Workgroup = workgroup; - this.WorkgroupDescription = workgroupDescription; - } - - /// - /// Gets or Sets Activities - /// - [DataMember(Name="Activities", EmitDefaultValue=false)] - public IEnumerable Activities { get; set; } - - /// - /// Gets or Sets Address - /// - [DataMember(Name="Address", EmitDefaultValue=false)] - public Address Address { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets Campaigns - /// - [DataMember(Name="Campaigns", EmitDefaultValue=false)] - public IEnumerable Campaigns { get; set; } - - /// - /// Gets or Sets CompanyName - /// - [DataMember(Name="CompanyName", EmitDefaultValue=false)] - public StringValue CompanyName { get; set; } - - /// - /// Gets or Sets ContactMethod - /// - [DataMember(Name="ContactMethod", EmitDefaultValue=false)] - public StringValue ContactMethod { get; set; } - - /// - /// Gets or Sets DoNotCall - /// - [DataMember(Name="DoNotCall", EmitDefaultValue=false)] - public BooleanValue DoNotCall { get; set; } - - /// - /// Gets or Sets DoNotEmail - /// - [DataMember(Name="DoNotEmail", EmitDefaultValue=false)] - public BooleanValue DoNotEmail { get; set; } - - /// - /// Gets or Sets DoNotFax - /// - [DataMember(Name="DoNotFax", EmitDefaultValue=false)] - public BooleanValue DoNotFax { get; set; } - - /// - /// Gets or Sets DoNotMail - /// - [DataMember(Name="DoNotMail", EmitDefaultValue=false)] - public BooleanValue DoNotMail { get; set; } - - /// - /// Gets or Sets Duplicate - /// - [DataMember(Name="Duplicate", EmitDefaultValue=false)] - public StringValue Duplicate { get; set; } - - /// - /// Gets or Sets DuplicateFound - /// - [DataMember(Name="DuplicateFound", EmitDefaultValue=false)] - public BooleanValue DuplicateFound { get; set; } - - /// - /// Gets or Sets Duplicates - /// - [DataMember(Name="Duplicates", EmitDefaultValue=false)] - public IEnumerable Duplicates { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets FaxType - /// - [DataMember(Name="FaxType", EmitDefaultValue=false)] - public StringValue FaxType { get; set; } - - /// - /// Gets or Sets FirstName - /// - [DataMember(Name="FirstName", EmitDefaultValue=false)] - public StringValue FirstName { get; set; } - - /// - /// Gets or Sets JobTitle - /// - [DataMember(Name="JobTitle", EmitDefaultValue=false)] - public StringValue JobTitle { get; set; } - - /// - /// Gets or Sets LanguageOrLocale - /// - [DataMember(Name="LanguageOrLocale", EmitDefaultValue=false)] - public StringValue LanguageOrLocale { get; set; } - - /// - /// Gets or Sets LastIncomingActivity - /// - [DataMember(Name="LastIncomingActivity", EmitDefaultValue=false)] - public DateTimeValue LastIncomingActivity { get; set; } - - /// - /// Gets or Sets LastName - /// - [DataMember(Name="LastName", EmitDefaultValue=false)] - public StringValue LastName { get; set; } - - /// - /// Gets or Sets LastOutgoingActivity - /// - [DataMember(Name="LastOutgoingActivity", EmitDefaultValue=false)] - public DateTimeValue LastOutgoingActivity { get; set; } - - /// - /// Gets or Sets LeadClass - /// - [DataMember(Name="LeadClass", EmitDefaultValue=false)] - public StringValue LeadClass { get; set; } - - /// - /// Gets or Sets LeadDisplayName - /// - [DataMember(Name="LeadDisplayName", EmitDefaultValue=false)] - public StringValue LeadDisplayName { get; set; } - - /// - /// Gets or Sets LeadID - /// - [DataMember(Name="LeadID", EmitDefaultValue=false)] - public IntValue LeadID { get; set; } - - /// - /// Gets or Sets MarketingLists - /// - [DataMember(Name="MarketingLists", EmitDefaultValue=false)] - public IEnumerable MarketingLists { get; set; } - - /// - /// Gets or Sets NoMarketing - /// - [DataMember(Name="NoMarketing", EmitDefaultValue=false)] - public BooleanValue NoMarketing { get; set; } - - /// - /// Gets or Sets NoMassMail - /// - [DataMember(Name="NoMassMail", EmitDefaultValue=false)] - public BooleanValue NoMassMail { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets OwnerEmployeeName - /// - [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] - public StringValue OwnerEmployeeName { get; set; } - - /// - /// Gets or Sets ParentAccount - /// - [DataMember(Name="ParentAccount", EmitDefaultValue=false)] - public StringValue ParentAccount { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Phone1Type - /// - [DataMember(Name="Phone1Type", EmitDefaultValue=false)] - public StringValue Phone1Type { get; set; } - - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } - - /// - /// Gets or Sets Phone2Type - /// - [DataMember(Name="Phone2Type", EmitDefaultValue=false)] - public StringValue Phone2Type { get; set; } - - /// - /// Gets or Sets Phone3 - /// - [DataMember(Name="Phone3", EmitDefaultValue=false)] - public StringValue Phone3 { get; set; } - - /// - /// Gets or Sets Phone3Type - /// - [DataMember(Name="Phone3Type", EmitDefaultValue=false)] - public StringValue Phone3Type { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } - - /// - /// Gets or Sets Relations - /// - [DataMember(Name="Relations", EmitDefaultValue=false)] - public IEnumerable Relations { get; set; } - - /// - /// Gets or Sets Source - /// - [DataMember(Name="Source", EmitDefaultValue=false)] - public StringValue Source { get; set; } - - /// - /// Gets or Sets SourceCampaign - /// - [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] - public StringValue SourceCampaign { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Title - /// - [DataMember(Name="Title", EmitDefaultValue=false)] - public StringValue Title { get; set; } - - /// - /// Gets or Sets WebSite - /// - [DataMember(Name="WebSite", EmitDefaultValue=false)] - public StringValue WebSite { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Gets or Sets WorkgroupDescription - /// - [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] - public StringValue WorkgroupDescription { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Lead {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Activities: ").Append(Activities).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" Campaigns: ").Append(Campaigns).Append("\n"); - sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); - sb.Append(" ContactMethod: ").Append(ContactMethod).Append("\n"); - sb.Append(" DoNotCall: ").Append(DoNotCall).Append("\n"); - sb.Append(" DoNotEmail: ").Append(DoNotEmail).Append("\n"); - sb.Append(" DoNotFax: ").Append(DoNotFax).Append("\n"); - sb.Append(" DoNotMail: ").Append(DoNotMail).Append("\n"); - sb.Append(" Duplicate: ").Append(Duplicate).Append("\n"); - sb.Append(" DuplicateFound: ").Append(DuplicateFound).Append("\n"); - sb.Append(" Duplicates: ").Append(Duplicates).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" FaxType: ").Append(FaxType).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); - sb.Append(" LanguageOrLocale: ").Append(LanguageOrLocale).Append("\n"); - sb.Append(" LastIncomingActivity: ").Append(LastIncomingActivity).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" LastOutgoingActivity: ").Append(LastOutgoingActivity).Append("\n"); - sb.Append(" LeadClass: ").Append(LeadClass).Append("\n"); - sb.Append(" LeadDisplayName: ").Append(LeadDisplayName).Append("\n"); - sb.Append(" LeadID: ").Append(LeadID).Append("\n"); - sb.Append(" MarketingLists: ").Append(MarketingLists).Append("\n"); - sb.Append(" NoMarketing: ").Append(NoMarketing).Append("\n"); - sb.Append(" NoMassMail: ").Append(NoMassMail).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerEmployeeName: ").Append(OwnerEmployeeName).Append("\n"); - sb.Append(" ParentAccount: ").Append(ParentAccount).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone1Type: ").Append(Phone1Type).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" Phone2Type: ").Append(Phone2Type).Append("\n"); - sb.Append(" Phone3: ").Append(Phone3).Append("\n"); - sb.Append(" Phone3Type: ").Append(Phone3Type).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" Relations: ").Append(Relations).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append(" SourceCampaign: ").Append(SourceCampaign).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" WebSite: ").Append(WebSite).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append(" WorkgroupDescription: ").Append(WorkgroupDescription).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Lead); - } - - /// - /// Returns true if Lead instances are equal - /// - /// Instance of Lead to be compared - /// Boolean - public bool Equals(Lead input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Activities == input.Activities || - this.Activities != null && - this.Activities.SequenceEqual(input.Activities) - ) && base.Equals(input) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.Campaigns == input.Campaigns || - this.Campaigns != null && - this.Campaigns.SequenceEqual(input.Campaigns) - ) && base.Equals(input) && - ( - this.CompanyName == input.CompanyName || - (this.CompanyName != null && - this.CompanyName.Equals(input.CompanyName)) - ) && base.Equals(input) && - ( - this.ContactMethod == input.ContactMethod || - (this.ContactMethod != null && - this.ContactMethod.Equals(input.ContactMethod)) - ) && base.Equals(input) && - ( - this.DoNotCall == input.DoNotCall || - (this.DoNotCall != null && - this.DoNotCall.Equals(input.DoNotCall)) - ) && base.Equals(input) && - ( - this.DoNotEmail == input.DoNotEmail || - (this.DoNotEmail != null && - this.DoNotEmail.Equals(input.DoNotEmail)) - ) && base.Equals(input) && - ( - this.DoNotFax == input.DoNotFax || - (this.DoNotFax != null && - this.DoNotFax.Equals(input.DoNotFax)) - ) && base.Equals(input) && - ( - this.DoNotMail == input.DoNotMail || - (this.DoNotMail != null && - this.DoNotMail.Equals(input.DoNotMail)) - ) && base.Equals(input) && - ( - this.Duplicate == input.Duplicate || - (this.Duplicate != null && - this.Duplicate.Equals(input.Duplicate)) - ) && base.Equals(input) && - ( - this.DuplicateFound == input.DuplicateFound || - (this.DuplicateFound != null && - this.DuplicateFound.Equals(input.DuplicateFound)) - ) && base.Equals(input) && - ( - this.Duplicates == input.Duplicates || - this.Duplicates != null && - this.Duplicates.SequenceEqual(input.Duplicates) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.FaxType == input.FaxType || - (this.FaxType != null && - this.FaxType.Equals(input.FaxType)) - ) && base.Equals(input) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && base.Equals(input) && - ( - this.JobTitle == input.JobTitle || - (this.JobTitle != null && - this.JobTitle.Equals(input.JobTitle)) - ) && base.Equals(input) && - ( - this.LanguageOrLocale == input.LanguageOrLocale || - (this.LanguageOrLocale != null && - this.LanguageOrLocale.Equals(input.LanguageOrLocale)) - ) && base.Equals(input) && - ( - this.LastIncomingActivity == input.LastIncomingActivity || - (this.LastIncomingActivity != null && - this.LastIncomingActivity.Equals(input.LastIncomingActivity)) - ) && base.Equals(input) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && base.Equals(input) && - ( - this.LastOutgoingActivity == input.LastOutgoingActivity || - (this.LastOutgoingActivity != null && - this.LastOutgoingActivity.Equals(input.LastOutgoingActivity)) - ) && base.Equals(input) && - ( - this.LeadClass == input.LeadClass || - (this.LeadClass != null && - this.LeadClass.Equals(input.LeadClass)) - ) && base.Equals(input) && - ( - this.LeadDisplayName == input.LeadDisplayName || - (this.LeadDisplayName != null && - this.LeadDisplayName.Equals(input.LeadDisplayName)) - ) && base.Equals(input) && - ( - this.LeadID == input.LeadID || - (this.LeadID != null && - this.LeadID.Equals(input.LeadID)) - ) && base.Equals(input) && - ( - this.MarketingLists == input.MarketingLists || - this.MarketingLists != null && - this.MarketingLists.SequenceEqual(input.MarketingLists) - ) && base.Equals(input) && - ( - this.NoMarketing == input.NoMarketing || - (this.NoMarketing != null && - this.NoMarketing.Equals(input.NoMarketing)) - ) && base.Equals(input) && - ( - this.NoMassMail == input.NoMassMail || - (this.NoMassMail != null && - this.NoMassMail.Equals(input.NoMassMail)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.OwnerEmployeeName == input.OwnerEmployeeName || - (this.OwnerEmployeeName != null && - this.OwnerEmployeeName.Equals(input.OwnerEmployeeName)) - ) && base.Equals(input) && - ( - this.ParentAccount == input.ParentAccount || - (this.ParentAccount != null && - this.ParentAccount.Equals(input.ParentAccount)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone1Type == input.Phone1Type || - (this.Phone1Type != null && - this.Phone1Type.Equals(input.Phone1Type)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.Phone2Type == input.Phone2Type || - (this.Phone2Type != null && - this.Phone2Type.Equals(input.Phone2Type)) - ) && base.Equals(input) && - ( - this.Phone3 == input.Phone3 || - (this.Phone3 != null && - this.Phone3.Equals(input.Phone3)) - ) && base.Equals(input) && - ( - this.Phone3Type == input.Phone3Type || - (this.Phone3Type != null && - this.Phone3Type.Equals(input.Phone3Type)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.Relations == input.Relations || - this.Relations != null && - this.Relations.SequenceEqual(input.Relations) - ) && base.Equals(input) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ) && base.Equals(input) && - ( - this.SourceCampaign == input.SourceCampaign || - (this.SourceCampaign != null && - this.SourceCampaign.Equals(input.SourceCampaign)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && base.Equals(input) && - ( - this.WebSite == input.WebSite || - (this.WebSite != null && - this.WebSite.Equals(input.WebSite)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ) && base.Equals(input) && - ( - this.WorkgroupDescription == input.WorkgroupDescription || - (this.WorkgroupDescription != null && - this.WorkgroupDescription.Equals(input.WorkgroupDescription)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Activities != null) - hashCode = hashCode * 59 + this.Activities.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.Campaigns != null) - hashCode = hashCode * 59 + this.Campaigns.GetHashCode(); - if (this.CompanyName != null) - hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); - if (this.ContactMethod != null) - hashCode = hashCode * 59 + this.ContactMethod.GetHashCode(); - if (this.DoNotCall != null) - hashCode = hashCode * 59 + this.DoNotCall.GetHashCode(); - if (this.DoNotEmail != null) - hashCode = hashCode * 59 + this.DoNotEmail.GetHashCode(); - if (this.DoNotFax != null) - hashCode = hashCode * 59 + this.DoNotFax.GetHashCode(); - if (this.DoNotMail != null) - hashCode = hashCode * 59 + this.DoNotMail.GetHashCode(); - if (this.Duplicate != null) - hashCode = hashCode * 59 + this.Duplicate.GetHashCode(); - if (this.DuplicateFound != null) - hashCode = hashCode * 59 + this.DuplicateFound.GetHashCode(); - if (this.Duplicates != null) - hashCode = hashCode * 59 + this.Duplicates.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.FaxType != null) - hashCode = hashCode * 59 + this.FaxType.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.JobTitle != null) - hashCode = hashCode * 59 + this.JobTitle.GetHashCode(); - if (this.LanguageOrLocale != null) - hashCode = hashCode * 59 + this.LanguageOrLocale.GetHashCode(); - if (this.LastIncomingActivity != null) - hashCode = hashCode * 59 + this.LastIncomingActivity.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.LastOutgoingActivity != null) - hashCode = hashCode * 59 + this.LastOutgoingActivity.GetHashCode(); - if (this.LeadClass != null) - hashCode = hashCode * 59 + this.LeadClass.GetHashCode(); - if (this.LeadDisplayName != null) - hashCode = hashCode * 59 + this.LeadDisplayName.GetHashCode(); - if (this.LeadID != null) - hashCode = hashCode * 59 + this.LeadID.GetHashCode(); - if (this.MarketingLists != null) - hashCode = hashCode * 59 + this.MarketingLists.GetHashCode(); - if (this.NoMarketing != null) - hashCode = hashCode * 59 + this.NoMarketing.GetHashCode(); - if (this.NoMassMail != null) - hashCode = hashCode * 59 + this.NoMassMail.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerEmployeeName != null) - hashCode = hashCode * 59 + this.OwnerEmployeeName.GetHashCode(); - if (this.ParentAccount != null) - hashCode = hashCode * 59 + this.ParentAccount.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone1Type != null) - hashCode = hashCode * 59 + this.Phone1Type.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.Phone2Type != null) - hashCode = hashCode * 59 + this.Phone2Type.GetHashCode(); - if (this.Phone3 != null) - hashCode = hashCode * 59 + this.Phone3.GetHashCode(); - if (this.Phone3Type != null) - hashCode = hashCode * 59 + this.Phone3Type.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.Relations != null) - hashCode = hashCode * 59 + this.Relations.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - if (this.SourceCampaign != null) - hashCode = hashCode * 59 + this.SourceCampaign.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Title != null) - hashCode = hashCode * 59 + this.Title.GetHashCode(); - if (this.WebSite != null) - hashCode = hashCode * 59 + this.WebSite.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - if (this.WorkgroupDescription != null) - hashCode = hashCode * 59 + this.WorkgroupDescription.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/LotSerialClass.cs b/Default.18.200.001/Model/LotSerialClass.cs deleted file mode 100644 index 29b1c357..00000000 --- a/Default.18.200.001/Model/LotSerialClass.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// LotSerialClass - /// - [DataContract] - public partial class LotSerialClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// assignmentMethod. - /// classID. - /// description. - /// issueMethod. - /// segments. - /// trackExpirationDate. - /// trackingMethod. - public LotSerialClass(StringValue assignmentMethod = default(StringValue), StringValue classID = default(StringValue), StringValue description = default(StringValue), StringValue issueMethod = default(StringValue), IEnumerable segments = default(IEnumerable), BooleanValue trackExpirationDate = default(BooleanValue), StringValue trackingMethod = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AssignmentMethod = assignmentMethod; - this.ClassID = classID; - this.Description = description; - this.IssueMethod = issueMethod; - this.Segments = segments; - this.TrackExpirationDate = trackExpirationDate; - this.TrackingMethod = trackingMethod; - } - - /// - /// Gets or Sets AssignmentMethod - /// - [DataMember(Name="AssignmentMethod", EmitDefaultValue=false)] - public StringValue AssignmentMethod { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets IssueMethod - /// - [DataMember(Name="IssueMethod", EmitDefaultValue=false)] - public StringValue IssueMethod { get; set; } - - /// - /// Gets or Sets Segments - /// - [DataMember(Name="Segments", EmitDefaultValue=false)] - public IEnumerable Segments { get; set; } - - /// - /// Gets or Sets TrackExpirationDate - /// - [DataMember(Name="TrackExpirationDate", EmitDefaultValue=false)] - public BooleanValue TrackExpirationDate { get; set; } - - /// - /// Gets or Sets TrackingMethod - /// - [DataMember(Name="TrackingMethod", EmitDefaultValue=false)] - public StringValue TrackingMethod { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LotSerialClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AssignmentMethod: ").Append(AssignmentMethod).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IssueMethod: ").Append(IssueMethod).Append("\n"); - sb.Append(" Segments: ").Append(Segments).Append("\n"); - sb.Append(" TrackExpirationDate: ").Append(TrackExpirationDate).Append("\n"); - sb.Append(" TrackingMethod: ").Append(TrackingMethod).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LotSerialClass); - } - - /// - /// Returns true if LotSerialClass instances are equal - /// - /// Instance of LotSerialClass to be compared - /// Boolean - public bool Equals(LotSerialClass input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AssignmentMethod == input.AssignmentMethod || - (this.AssignmentMethod != null && - this.AssignmentMethod.Equals(input.AssignmentMethod)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.IssueMethod == input.IssueMethod || - (this.IssueMethod != null && - this.IssueMethod.Equals(input.IssueMethod)) - ) && base.Equals(input) && - ( - this.Segments == input.Segments || - this.Segments != null && - this.Segments.SequenceEqual(input.Segments) - ) && base.Equals(input) && - ( - this.TrackExpirationDate == input.TrackExpirationDate || - (this.TrackExpirationDate != null && - this.TrackExpirationDate.Equals(input.TrackExpirationDate)) - ) && base.Equals(input) && - ( - this.TrackingMethod == input.TrackingMethod || - (this.TrackingMethod != null && - this.TrackingMethod.Equals(input.TrackingMethod)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AssignmentMethod != null) - hashCode = hashCode * 59 + this.AssignmentMethod.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IssueMethod != null) - hashCode = hashCode * 59 + this.IssueMethod.GetHashCode(); - if (this.Segments != null) - hashCode = hashCode * 59 + this.Segments.GetHashCode(); - if (this.TrackExpirationDate != null) - hashCode = hashCode * 59 + this.TrackExpirationDate.GetHashCode(); - if (this.TrackingMethod != null) - hashCode = hashCode * 59 + this.TrackingMethod.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/LotSerialClassSegment.cs b/Default.18.200.001/Model/LotSerialClassSegment.cs deleted file mode 100644 index 3a7ee5d8..00000000 --- a/Default.18.200.001/Model/LotSerialClassSegment.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// LotSerialClassSegment - /// - [DataContract] - public partial class LotSerialClassSegment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// segmentNbr. - /// type. - /// value. - public LotSerialClassSegment(ShortValue segmentNbr = default(ShortValue), StringValue type = default(StringValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.SegmentNbr = segmentNbr; - this.Type = type; - this.Value = value; - } - - /// - /// Gets or Sets SegmentNbr - /// - [DataMember(Name="SegmentNbr", EmitDefaultValue=false)] - public ShortValue SegmentNbr { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LotSerialClassSegment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" SegmentNbr: ").Append(SegmentNbr).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LotSerialClassSegment); - } - - /// - /// Returns true if LotSerialClassSegment instances are equal - /// - /// Instance of LotSerialClassSegment to be compared - /// Boolean - public bool Equals(LotSerialClassSegment input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.SegmentNbr == input.SegmentNbr || - (this.SegmentNbr != null && - this.SegmentNbr.Equals(input.SegmentNbr)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.SegmentNbr != null) - hashCode = hashCode * 59 + this.SegmentNbr.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ManageFinancialPeriods.cs b/Default.18.200.001/Model/ManageFinancialPeriods.cs deleted file mode 100644 index 12358c3f..00000000 --- a/Default.18.200.001/Model/ManageFinancialPeriods.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ManageFinancialPeriods - /// - [DataContract] - public partial class ManageFinancialPeriods : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// actionToPerform. - /// company. - /// details. - /// fromYear. - /// reopenFinancialPeriodsinAllModules. - /// toYear. - public ManageFinancialPeriods(StringValue actionToPerform = default(StringValue), StringValue company = default(StringValue), IEnumerable details = default(IEnumerable), StringValue fromYear = default(StringValue), BooleanValue reopenFinancialPeriodsinAllModules = default(BooleanValue), StringValue toYear = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ActionToPerform = actionToPerform; - this.Company = company; - this.Details = details; - this.FromYear = fromYear; - this.ReopenFinancialPeriodsinAllModules = reopenFinancialPeriodsinAllModules; - this.ToYear = toYear; - } - - /// - /// Gets or Sets ActionToPerform - /// - [DataMember(Name="ActionToPerform", EmitDefaultValue=false)] - public StringValue ActionToPerform { get; set; } - - /// - /// Gets or Sets Company - /// - [DataMember(Name="Company", EmitDefaultValue=false)] - public StringValue Company { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets FromYear - /// - [DataMember(Name="FromYear", EmitDefaultValue=false)] - public StringValue FromYear { get; set; } - - /// - /// Gets or Sets ReopenFinancialPeriodsinAllModules - /// - [DataMember(Name="ReopenFinancialPeriodsinAllModules", EmitDefaultValue=false)] - public BooleanValue ReopenFinancialPeriodsinAllModules { get; set; } - - /// - /// Gets or Sets ToYear - /// - [DataMember(Name="ToYear", EmitDefaultValue=false)] - public StringValue ToYear { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ManageFinancialPeriods {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ActionToPerform: ").Append(ActionToPerform).Append("\n"); - sb.Append(" Company: ").Append(Company).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" FromYear: ").Append(FromYear).Append("\n"); - sb.Append(" ReopenFinancialPeriodsinAllModules: ").Append(ReopenFinancialPeriodsinAllModules).Append("\n"); - sb.Append(" ToYear: ").Append(ToYear).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ManageFinancialPeriods); - } - - /// - /// Returns true if ManageFinancialPeriods instances are equal - /// - /// Instance of ManageFinancialPeriods to be compared - /// Boolean - public bool Equals(ManageFinancialPeriods input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ActionToPerform == input.ActionToPerform || - (this.ActionToPerform != null && - this.ActionToPerform.Equals(input.ActionToPerform)) - ) && base.Equals(input) && - ( - this.Company == input.Company || - (this.Company != null && - this.Company.Equals(input.Company)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.FromYear == input.FromYear || - (this.FromYear != null && - this.FromYear.Equals(input.FromYear)) - ) && base.Equals(input) && - ( - this.ReopenFinancialPeriodsinAllModules == input.ReopenFinancialPeriodsinAllModules || - (this.ReopenFinancialPeriodsinAllModules != null && - this.ReopenFinancialPeriodsinAllModules.Equals(input.ReopenFinancialPeriodsinAllModules)) - ) && base.Equals(input) && - ( - this.ToYear == input.ToYear || - (this.ToYear != null && - this.ToYear.Equals(input.ToYear)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ActionToPerform != null) - hashCode = hashCode * 59 + this.ActionToPerform.GetHashCode(); - if (this.Company != null) - hashCode = hashCode * 59 + this.Company.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.FromYear != null) - hashCode = hashCode * 59 + this.FromYear.GetHashCode(); - if (this.ReopenFinancialPeriodsinAllModules != null) - hashCode = hashCode * 59 + this.ReopenFinancialPeriodsinAllModules.GetHashCode(); - if (this.ToYear != null) - hashCode = hashCode * 59 + this.ToYear.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ManageFinancialPeriodsDetail.cs b/Default.18.200.001/Model/ManageFinancialPeriodsDetail.cs deleted file mode 100644 index ab5bca15..00000000 --- a/Default.18.200.001/Model/ManageFinancialPeriodsDetail.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ManageFinancialPeriodsDetail - /// - [DataContract] - public partial class ManageFinancialPeriodsDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// closedinAP. - /// closedinAR. - /// closedinCA. - /// closedinFA. - /// closedinIN. - /// descriptionDescription. - /// financialPeriodID. - /// selected. - /// status. - public ManageFinancialPeriodsDetail(BooleanValue closedinAP = default(BooleanValue), BooleanValue closedinAR = default(BooleanValue), BooleanValue closedinCA = default(BooleanValue), BooleanValue closedinFA = default(BooleanValue), BooleanValue closedinIN = default(BooleanValue), StringValue descriptionDescription = default(StringValue), StringValue financialPeriodID = default(StringValue), BooleanValue selected = default(BooleanValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ClosedinAP = closedinAP; - this.ClosedinAR = closedinAR; - this.ClosedinCA = closedinCA; - this.ClosedinFA = closedinFA; - this.ClosedinIN = closedinIN; - this.DescriptionDescription = descriptionDescription; - this.FinancialPeriodID = financialPeriodID; - this.Selected = selected; - this.Status = status; - } - - /// - /// Gets or Sets ClosedinAP - /// - [DataMember(Name="ClosedinAP", EmitDefaultValue=false)] - public BooleanValue ClosedinAP { get; set; } - - /// - /// Gets or Sets ClosedinAR - /// - [DataMember(Name="ClosedinAR", EmitDefaultValue=false)] - public BooleanValue ClosedinAR { get; set; } - - /// - /// Gets or Sets ClosedinCA - /// - [DataMember(Name="ClosedinCA", EmitDefaultValue=false)] - public BooleanValue ClosedinCA { get; set; } - - /// - /// Gets or Sets ClosedinFA - /// - [DataMember(Name="ClosedinFA", EmitDefaultValue=false)] - public BooleanValue ClosedinFA { get; set; } - - /// - /// Gets or Sets ClosedinIN - /// - [DataMember(Name="ClosedinIN", EmitDefaultValue=false)] - public BooleanValue ClosedinIN { get; set; } - - /// - /// Gets or Sets DescriptionDescription - /// - [DataMember(Name="DescriptionDescription", EmitDefaultValue=false)] - public StringValue DescriptionDescription { get; set; } - - /// - /// Gets or Sets FinancialPeriodID - /// - [DataMember(Name="FinancialPeriodID", EmitDefaultValue=false)] - public StringValue FinancialPeriodID { get; set; } - - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ManageFinancialPeriodsDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ClosedinAP: ").Append(ClosedinAP).Append("\n"); - sb.Append(" ClosedinAR: ").Append(ClosedinAR).Append("\n"); - sb.Append(" ClosedinCA: ").Append(ClosedinCA).Append("\n"); - sb.Append(" ClosedinFA: ").Append(ClosedinFA).Append("\n"); - sb.Append(" ClosedinIN: ").Append(ClosedinIN).Append("\n"); - sb.Append(" DescriptionDescription: ").Append(DescriptionDescription).Append("\n"); - sb.Append(" FinancialPeriodID: ").Append(FinancialPeriodID).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ManageFinancialPeriodsDetail); - } - - /// - /// Returns true if ManageFinancialPeriodsDetail instances are equal - /// - /// Instance of ManageFinancialPeriodsDetail to be compared - /// Boolean - public bool Equals(ManageFinancialPeriodsDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ClosedinAP == input.ClosedinAP || - (this.ClosedinAP != null && - this.ClosedinAP.Equals(input.ClosedinAP)) - ) && base.Equals(input) && - ( - this.ClosedinAR == input.ClosedinAR || - (this.ClosedinAR != null && - this.ClosedinAR.Equals(input.ClosedinAR)) - ) && base.Equals(input) && - ( - this.ClosedinCA == input.ClosedinCA || - (this.ClosedinCA != null && - this.ClosedinCA.Equals(input.ClosedinCA)) - ) && base.Equals(input) && - ( - this.ClosedinFA == input.ClosedinFA || - (this.ClosedinFA != null && - this.ClosedinFA.Equals(input.ClosedinFA)) - ) && base.Equals(input) && - ( - this.ClosedinIN == input.ClosedinIN || - (this.ClosedinIN != null && - this.ClosedinIN.Equals(input.ClosedinIN)) - ) && base.Equals(input) && - ( - this.DescriptionDescription == input.DescriptionDescription || - (this.DescriptionDescription != null && - this.DescriptionDescription.Equals(input.DescriptionDescription)) - ) && base.Equals(input) && - ( - this.FinancialPeriodID == input.FinancialPeriodID || - (this.FinancialPeriodID != null && - this.FinancialPeriodID.Equals(input.FinancialPeriodID)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ClosedinAP != null) - hashCode = hashCode * 59 + this.ClosedinAP.GetHashCode(); - if (this.ClosedinAR != null) - hashCode = hashCode * 59 + this.ClosedinAR.GetHashCode(); - if (this.ClosedinCA != null) - hashCode = hashCode * 59 + this.ClosedinCA.GetHashCode(); - if (this.ClosedinFA != null) - hashCode = hashCode * 59 + this.ClosedinFA.GetHashCode(); - if (this.ClosedinIN != null) - hashCode = hashCode * 59 + this.ClosedinIN.GetHashCode(); - if (this.DescriptionDescription != null) - hashCode = hashCode * 59 + this.DescriptionDescription.GetHashCode(); - if (this.FinancialPeriodID != null) - hashCode = hashCode * 59 + this.FinancialPeriodID.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/MarketingListDetail.cs b/Default.18.200.001/Model/MarketingListDetail.cs deleted file mode 100644 index 200acc06..00000000 --- a/Default.18.200.001/Model/MarketingListDetail.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// MarketingListDetail - /// - [DataContract] - public partial class MarketingListDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// contactID. - /// dynamicList. - /// format. - /// listName. - /// marketingListID. - /// subscribed. - public MarketingListDetail(IntValue contactID = default(IntValue), BooleanValue dynamicList = default(BooleanValue), StringValue format = default(StringValue), StringValue listName = default(StringValue), IntValue marketingListID = default(IntValue), BooleanValue subscribed = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ContactID = contactID; - this.DynamicList = dynamicList; - this.Format = format; - this.ListName = listName; - this.MarketingListID = marketingListID; - this.Subscribed = subscribed; - } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets DynamicList - /// - [DataMember(Name="DynamicList", EmitDefaultValue=false)] - public BooleanValue DynamicList { get; set; } - - /// - /// Gets or Sets Format - /// - [DataMember(Name="Format", EmitDefaultValue=false)] - public StringValue Format { get; set; } - - /// - /// Gets or Sets ListName - /// - [DataMember(Name="ListName", EmitDefaultValue=false)] - public StringValue ListName { get; set; } - - /// - /// Gets or Sets MarketingListID - /// - [DataMember(Name="MarketingListID", EmitDefaultValue=false)] - public IntValue MarketingListID { get; set; } - - /// - /// Gets or Sets Subscribed - /// - [DataMember(Name="Subscribed", EmitDefaultValue=false)] - public BooleanValue Subscribed { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class MarketingListDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" DynamicList: ").Append(DynamicList).Append("\n"); - sb.Append(" Format: ").Append(Format).Append("\n"); - sb.Append(" ListName: ").Append(ListName).Append("\n"); - sb.Append(" MarketingListID: ").Append(MarketingListID).Append("\n"); - sb.Append(" Subscribed: ").Append(Subscribed).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as MarketingListDetail); - } - - /// - /// Returns true if MarketingListDetail instances are equal - /// - /// Instance of MarketingListDetail to be compared - /// Boolean - public bool Equals(MarketingListDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.DynamicList == input.DynamicList || - (this.DynamicList != null && - this.DynamicList.Equals(input.DynamicList)) - ) && base.Equals(input) && - ( - this.Format == input.Format || - (this.Format != null && - this.Format.Equals(input.Format)) - ) && base.Equals(input) && - ( - this.ListName == input.ListName || - (this.ListName != null && - this.ListName.Equals(input.ListName)) - ) && base.Equals(input) && - ( - this.MarketingListID == input.MarketingListID || - (this.MarketingListID != null && - this.MarketingListID.Equals(input.MarketingListID)) - ) && base.Equals(input) && - ( - this.Subscribed == input.Subscribed || - (this.Subscribed != null && - this.Subscribed.Equals(input.Subscribed)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.DynamicList != null) - hashCode = hashCode * 59 + this.DynamicList.GetHashCode(); - if (this.Format != null) - hashCode = hashCode * 59 + this.Format.GetHashCode(); - if (this.ListName != null) - hashCode = hashCode * 59 + this.ListName.GetHashCode(); - if (this.MarketingListID != null) - hashCode = hashCode * 59 + this.MarketingListID.GetHashCode(); - if (this.Subscribed != null) - hashCode = hashCode * 59 + this.Subscribed.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/NonStockItem.cs b/Default.18.200.001/Model/NonStockItem.cs deleted file mode 100644 index 4af8f28c..00000000 --- a/Default.18.200.001/Model/NonStockItem.cs +++ /dev/null @@ -1,782 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// NonStockItem - /// - [DataContract] - public partial class NonStockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributes. - /// baseUnit. - /// crossReferences. - /// currentCost. - /// defaultPrice. - /// deferralAccount. - /// deferralSubaccount. - /// description. - /// effectiveDate. - /// expenseAccount. - /// expenseAccrualAccount. - /// expenseAccrualSubaccount. - /// expenseSubaccount. - /// inventoryID. - /// isKit. - /// itemClass. - /// itemStatus. - /// itemType. - /// lastCost. - /// lastModifiedDateTime. - /// pendingCost. - /// pendingCostDate. - /// pOAccrualAccount. - /// pOAccrualSubaccount. - /// postingClass. - /// priceClass. - /// purchasePriceVarianceAccount. - /// purchasePriceVarianceSubaccount. - /// purchaseUnit. - /// reasonCodeSubaccount. - /// requireReceipt. - /// requireShipment. - /// salesAccount. - /// salesCategories. - /// salesSubaccount. - /// salesUnit. - /// taxCategory. - /// vendorDetails. - /// volume. - /// volumeUOM. - /// weight. - /// weightUOM. - public NonStockItem(IEnumerable attributes = default(IEnumerable), StringValue baseUnit = default(StringValue), IEnumerable crossReferences = default(IEnumerable), DecimalValue currentCost = default(DecimalValue), DecimalValue defaultPrice = default(DecimalValue), StringValue deferralAccount = default(StringValue), StringValue deferralSubaccount = default(StringValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), StringValue expenseAccount = default(StringValue), StringValue expenseAccrualAccount = default(StringValue), StringValue expenseAccrualSubaccount = default(StringValue), StringValue expenseSubaccount = default(StringValue), StringValue inventoryID = default(StringValue), BooleanValue isKit = default(BooleanValue), StringValue itemClass = default(StringValue), StringValue itemStatus = default(StringValue), StringValue itemType = default(StringValue), DecimalValue lastCost = default(DecimalValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue pendingCost = default(DecimalValue), DateTimeValue pendingCostDate = default(DateTimeValue), StringValue pOAccrualAccount = default(StringValue), StringValue pOAccrualSubaccount = default(StringValue), StringValue postingClass = default(StringValue), StringValue priceClass = default(StringValue), StringValue purchasePriceVarianceAccount = default(StringValue), StringValue purchasePriceVarianceSubaccount = default(StringValue), StringValue purchaseUnit = default(StringValue), StringValue reasonCodeSubaccount = default(StringValue), BooleanValue requireReceipt = default(BooleanValue), BooleanValue requireShipment = default(BooleanValue), StringValue salesAccount = default(StringValue), IEnumerable salesCategories = default(IEnumerable), StringValue salesSubaccount = default(StringValue), StringValue salesUnit = default(StringValue), StringValue taxCategory = default(StringValue), IEnumerable vendorDetails = default(IEnumerable), DecimalValue volume = default(DecimalValue), StringValue volumeUOM = default(StringValue), DecimalValue weight = default(DecimalValue), StringValue weightUOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attributes = attributes; - this.BaseUnit = baseUnit; - this.CrossReferences = crossReferences; - this.CurrentCost = currentCost; - this.DefaultPrice = defaultPrice; - this.DeferralAccount = deferralAccount; - this.DeferralSubaccount = deferralSubaccount; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExpenseAccount = expenseAccount; - this.ExpenseAccrualAccount = expenseAccrualAccount; - this.ExpenseAccrualSubaccount = expenseAccrualSubaccount; - this.ExpenseSubaccount = expenseSubaccount; - this.InventoryID = inventoryID; - this.IsKit = isKit; - this.ItemClass = itemClass; - this.ItemStatus = itemStatus; - this.ItemType = itemType; - this.LastCost = lastCost; - this.LastModifiedDateTime = lastModifiedDateTime; - this.PendingCost = pendingCost; - this.PendingCostDate = pendingCostDate; - this.POAccrualAccount = pOAccrualAccount; - this.POAccrualSubaccount = pOAccrualSubaccount; - this.PostingClass = postingClass; - this.PriceClass = priceClass; - this.PurchasePriceVarianceAccount = purchasePriceVarianceAccount; - this.PurchasePriceVarianceSubaccount = purchasePriceVarianceSubaccount; - this.PurchaseUnit = purchaseUnit; - this.ReasonCodeSubaccount = reasonCodeSubaccount; - this.RequireReceipt = requireReceipt; - this.RequireShipment = requireShipment; - this.SalesAccount = salesAccount; - this.SalesCategories = salesCategories; - this.SalesSubaccount = salesSubaccount; - this.SalesUnit = salesUnit; - this.TaxCategory = taxCategory; - this.VendorDetails = vendorDetails; - this.Volume = volume; - this.VolumeUOM = volumeUOM; - this.Weight = weight; - this.WeightUOM = weightUOM; - } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets BaseUnit - /// - [DataMember(Name="BaseUnit", EmitDefaultValue=false)] - public StringValue BaseUnit { get; set; } - - /// - /// Gets or Sets CrossReferences - /// - [DataMember(Name="CrossReferences", EmitDefaultValue=false)] - public IEnumerable CrossReferences { get; set; } - - /// - /// Gets or Sets CurrentCost - /// - [DataMember(Name="CurrentCost", EmitDefaultValue=false)] - public DecimalValue CurrentCost { get; set; } - - /// - /// Gets or Sets DefaultPrice - /// - [DataMember(Name="DefaultPrice", EmitDefaultValue=false)] - public DecimalValue DefaultPrice { get; set; } - - /// - /// Gets or Sets DeferralAccount - /// - [DataMember(Name="DeferralAccount", EmitDefaultValue=false)] - public StringValue DeferralAccount { get; set; } - - /// - /// Gets or Sets DeferralSubaccount - /// - [DataMember(Name="DeferralSubaccount", EmitDefaultValue=false)] - public StringValue DeferralSubaccount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpenseAccount - /// - [DataMember(Name="ExpenseAccount", EmitDefaultValue=false)] - public StringValue ExpenseAccount { get; set; } - - /// - /// Gets or Sets ExpenseAccrualAccount - /// - [DataMember(Name="ExpenseAccrualAccount", EmitDefaultValue=false)] - public StringValue ExpenseAccrualAccount { get; set; } - - /// - /// Gets or Sets ExpenseAccrualSubaccount - /// - [DataMember(Name="ExpenseAccrualSubaccount", EmitDefaultValue=false)] - public StringValue ExpenseAccrualSubaccount { get; set; } - - /// - /// Gets or Sets ExpenseSubaccount - /// - [DataMember(Name="ExpenseSubaccount", EmitDefaultValue=false)] - public StringValue ExpenseSubaccount { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets IsKit - /// - [DataMember(Name="IsKit", EmitDefaultValue=false)] - public BooleanValue IsKit { get; set; } - - /// - /// Gets or Sets ItemClass - /// - [DataMember(Name="ItemClass", EmitDefaultValue=false)] - public StringValue ItemClass { get; set; } - - /// - /// Gets or Sets ItemStatus - /// - [DataMember(Name="ItemStatus", EmitDefaultValue=false)] - public StringValue ItemStatus { get; set; } - - /// - /// Gets or Sets ItemType - /// - [DataMember(Name="ItemType", EmitDefaultValue=false)] - public StringValue ItemType { get; set; } - - /// - /// Gets or Sets LastCost - /// - [DataMember(Name="LastCost", EmitDefaultValue=false)] - public DecimalValue LastCost { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets PendingCost - /// - [DataMember(Name="PendingCost", EmitDefaultValue=false)] - public DecimalValue PendingCost { get; set; } - - /// - /// Gets or Sets PendingCostDate - /// - [DataMember(Name="PendingCostDate", EmitDefaultValue=false)] - public DateTimeValue PendingCostDate { get; set; } - - /// - /// Gets or Sets POAccrualAccount - /// - [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] - public StringValue POAccrualAccount { get; set; } - - /// - /// Gets or Sets POAccrualSubaccount - /// - [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] - public StringValue POAccrualSubaccount { get; set; } - - /// - /// Gets or Sets PostingClass - /// - [DataMember(Name="PostingClass", EmitDefaultValue=false)] - public StringValue PostingClass { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceAccount - /// - [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceAccount { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceSubaccount - /// - [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceSubaccount { get; set; } - - /// - /// Gets or Sets PurchaseUnit - /// - [DataMember(Name="PurchaseUnit", EmitDefaultValue=false)] - public StringValue PurchaseUnit { get; set; } - - /// - /// Gets or Sets ReasonCodeSubaccount - /// - [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] - public StringValue ReasonCodeSubaccount { get; set; } - - /// - /// Gets or Sets RequireReceipt - /// - [DataMember(Name="RequireReceipt", EmitDefaultValue=false)] - public BooleanValue RequireReceipt { get; set; } - - /// - /// Gets or Sets RequireShipment - /// - [DataMember(Name="RequireShipment", EmitDefaultValue=false)] - public BooleanValue RequireShipment { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesCategories - /// - [DataMember(Name="SalesCategories", EmitDefaultValue=false)] - public IEnumerable SalesCategories { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets SalesUnit - /// - [DataMember(Name="SalesUnit", EmitDefaultValue=false)] - public StringValue SalesUnit { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets VendorDetails - /// - [DataMember(Name="VendorDetails", EmitDefaultValue=false)] - public IEnumerable VendorDetails { get; set; } - - /// - /// Gets or Sets Volume - /// - [DataMember(Name="Volume", EmitDefaultValue=false)] - public DecimalValue Volume { get; set; } - - /// - /// Gets or Sets VolumeUOM - /// - [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] - public StringValue VolumeUOM { get; set; } - - /// - /// Gets or Sets Weight - /// - [DataMember(Name="Weight", EmitDefaultValue=false)] - public DecimalValue Weight { get; set; } - - /// - /// Gets or Sets WeightUOM - /// - [DataMember(Name="WeightUOM", EmitDefaultValue=false)] - public StringValue WeightUOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NonStockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BaseUnit: ").Append(BaseUnit).Append("\n"); - sb.Append(" CrossReferences: ").Append(CrossReferences).Append("\n"); - sb.Append(" CurrentCost: ").Append(CurrentCost).Append("\n"); - sb.Append(" DefaultPrice: ").Append(DefaultPrice).Append("\n"); - sb.Append(" DeferralAccount: ").Append(DeferralAccount).Append("\n"); - sb.Append(" DeferralSubaccount: ").Append(DeferralSubaccount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpenseAccount: ").Append(ExpenseAccount).Append("\n"); - sb.Append(" ExpenseAccrualAccount: ").Append(ExpenseAccrualAccount).Append("\n"); - sb.Append(" ExpenseAccrualSubaccount: ").Append(ExpenseAccrualSubaccount).Append("\n"); - sb.Append(" ExpenseSubaccount: ").Append(ExpenseSubaccount).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" IsKit: ").Append(IsKit).Append("\n"); - sb.Append(" ItemClass: ").Append(ItemClass).Append("\n"); - sb.Append(" ItemStatus: ").Append(ItemStatus).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" LastCost: ").Append(LastCost).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" PendingCost: ").Append(PendingCost).Append("\n"); - sb.Append(" PendingCostDate: ").Append(PendingCostDate).Append("\n"); - sb.Append(" POAccrualAccount: ").Append(POAccrualAccount).Append("\n"); - sb.Append(" POAccrualSubaccount: ").Append(POAccrualSubaccount).Append("\n"); - sb.Append(" PostingClass: ").Append(PostingClass).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" PurchasePriceVarianceAccount: ").Append(PurchasePriceVarianceAccount).Append("\n"); - sb.Append(" PurchasePriceVarianceSubaccount: ").Append(PurchasePriceVarianceSubaccount).Append("\n"); - sb.Append(" PurchaseUnit: ").Append(PurchaseUnit).Append("\n"); - sb.Append(" ReasonCodeSubaccount: ").Append(ReasonCodeSubaccount).Append("\n"); - sb.Append(" RequireReceipt: ").Append(RequireReceipt).Append("\n"); - sb.Append(" RequireShipment: ").Append(RequireShipment).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesCategories: ").Append(SalesCategories).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" SalesUnit: ").Append(SalesUnit).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" VendorDetails: ").Append(VendorDetails).Append("\n"); - sb.Append(" Volume: ").Append(Volume).Append("\n"); - sb.Append(" VolumeUOM: ").Append(VolumeUOM).Append("\n"); - sb.Append(" Weight: ").Append(Weight).Append("\n"); - sb.Append(" WeightUOM: ").Append(WeightUOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NonStockItem); - } - - /// - /// Returns true if NonStockItem instances are equal - /// - /// Instance of NonStockItem to be compared - /// Boolean - public bool Equals(NonStockItem input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BaseUnit == input.BaseUnit || - (this.BaseUnit != null && - this.BaseUnit.Equals(input.BaseUnit)) - ) && base.Equals(input) && - ( - this.CrossReferences == input.CrossReferences || - this.CrossReferences != null && - this.CrossReferences.SequenceEqual(input.CrossReferences) - ) && base.Equals(input) && - ( - this.CurrentCost == input.CurrentCost || - (this.CurrentCost != null && - this.CurrentCost.Equals(input.CurrentCost)) - ) && base.Equals(input) && - ( - this.DefaultPrice == input.DefaultPrice || - (this.DefaultPrice != null && - this.DefaultPrice.Equals(input.DefaultPrice)) - ) && base.Equals(input) && - ( - this.DeferralAccount == input.DeferralAccount || - (this.DeferralAccount != null && - this.DeferralAccount.Equals(input.DeferralAccount)) - ) && base.Equals(input) && - ( - this.DeferralSubaccount == input.DeferralSubaccount || - (this.DeferralSubaccount != null && - this.DeferralSubaccount.Equals(input.DeferralSubaccount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpenseAccount == input.ExpenseAccount || - (this.ExpenseAccount != null && - this.ExpenseAccount.Equals(input.ExpenseAccount)) - ) && base.Equals(input) && - ( - this.ExpenseAccrualAccount == input.ExpenseAccrualAccount || - (this.ExpenseAccrualAccount != null && - this.ExpenseAccrualAccount.Equals(input.ExpenseAccrualAccount)) - ) && base.Equals(input) && - ( - this.ExpenseAccrualSubaccount == input.ExpenseAccrualSubaccount || - (this.ExpenseAccrualSubaccount != null && - this.ExpenseAccrualSubaccount.Equals(input.ExpenseAccrualSubaccount)) - ) && base.Equals(input) && - ( - this.ExpenseSubaccount == input.ExpenseSubaccount || - (this.ExpenseSubaccount != null && - this.ExpenseSubaccount.Equals(input.ExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.IsKit == input.IsKit || - (this.IsKit != null && - this.IsKit.Equals(input.IsKit)) - ) && base.Equals(input) && - ( - this.ItemClass == input.ItemClass || - (this.ItemClass != null && - this.ItemClass.Equals(input.ItemClass)) - ) && base.Equals(input) && - ( - this.ItemStatus == input.ItemStatus || - (this.ItemStatus != null && - this.ItemStatus.Equals(input.ItemStatus)) - ) && base.Equals(input) && - ( - this.ItemType == input.ItemType || - (this.ItemType != null && - this.ItemType.Equals(input.ItemType)) - ) && base.Equals(input) && - ( - this.LastCost == input.LastCost || - (this.LastCost != null && - this.LastCost.Equals(input.LastCost)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.PendingCost == input.PendingCost || - (this.PendingCost != null && - this.PendingCost.Equals(input.PendingCost)) - ) && base.Equals(input) && - ( - this.PendingCostDate == input.PendingCostDate || - (this.PendingCostDate != null && - this.PendingCostDate.Equals(input.PendingCostDate)) - ) && base.Equals(input) && - ( - this.POAccrualAccount == input.POAccrualAccount || - (this.POAccrualAccount != null && - this.POAccrualAccount.Equals(input.POAccrualAccount)) - ) && base.Equals(input) && - ( - this.POAccrualSubaccount == input.POAccrualSubaccount || - (this.POAccrualSubaccount != null && - this.POAccrualSubaccount.Equals(input.POAccrualSubaccount)) - ) && base.Equals(input) && - ( - this.PostingClass == input.PostingClass || - (this.PostingClass != null && - this.PostingClass.Equals(input.PostingClass)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceAccount == input.PurchasePriceVarianceAccount || - (this.PurchasePriceVarianceAccount != null && - this.PurchasePriceVarianceAccount.Equals(input.PurchasePriceVarianceAccount)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceSubaccount == input.PurchasePriceVarianceSubaccount || - (this.PurchasePriceVarianceSubaccount != null && - this.PurchasePriceVarianceSubaccount.Equals(input.PurchasePriceVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.PurchaseUnit == input.PurchaseUnit || - (this.PurchaseUnit != null && - this.PurchaseUnit.Equals(input.PurchaseUnit)) - ) && base.Equals(input) && - ( - this.ReasonCodeSubaccount == input.ReasonCodeSubaccount || - (this.ReasonCodeSubaccount != null && - this.ReasonCodeSubaccount.Equals(input.ReasonCodeSubaccount)) - ) && base.Equals(input) && - ( - this.RequireReceipt == input.RequireReceipt || - (this.RequireReceipt != null && - this.RequireReceipt.Equals(input.RequireReceipt)) - ) && base.Equals(input) && - ( - this.RequireShipment == input.RequireShipment || - (this.RequireShipment != null && - this.RequireShipment.Equals(input.RequireShipment)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesCategories == input.SalesCategories || - this.SalesCategories != null && - this.SalesCategories.SequenceEqual(input.SalesCategories) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.SalesUnit == input.SalesUnit || - (this.SalesUnit != null && - this.SalesUnit.Equals(input.SalesUnit)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.VendorDetails == input.VendorDetails || - this.VendorDetails != null && - this.VendorDetails.SequenceEqual(input.VendorDetails) - ) && base.Equals(input) && - ( - this.Volume == input.Volume || - (this.Volume != null && - this.Volume.Equals(input.Volume)) - ) && base.Equals(input) && - ( - this.VolumeUOM == input.VolumeUOM || - (this.VolumeUOM != null && - this.VolumeUOM.Equals(input.VolumeUOM)) - ) && base.Equals(input) && - ( - this.Weight == input.Weight || - (this.Weight != null && - this.Weight.Equals(input.Weight)) - ) && base.Equals(input) && - ( - this.WeightUOM == input.WeightUOM || - (this.WeightUOM != null && - this.WeightUOM.Equals(input.WeightUOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BaseUnit != null) - hashCode = hashCode * 59 + this.BaseUnit.GetHashCode(); - if (this.CrossReferences != null) - hashCode = hashCode * 59 + this.CrossReferences.GetHashCode(); - if (this.CurrentCost != null) - hashCode = hashCode * 59 + this.CurrentCost.GetHashCode(); - if (this.DefaultPrice != null) - hashCode = hashCode * 59 + this.DefaultPrice.GetHashCode(); - if (this.DeferralAccount != null) - hashCode = hashCode * 59 + this.DeferralAccount.GetHashCode(); - if (this.DeferralSubaccount != null) - hashCode = hashCode * 59 + this.DeferralSubaccount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpenseAccount != null) - hashCode = hashCode * 59 + this.ExpenseAccount.GetHashCode(); - if (this.ExpenseAccrualAccount != null) - hashCode = hashCode * 59 + this.ExpenseAccrualAccount.GetHashCode(); - if (this.ExpenseAccrualSubaccount != null) - hashCode = hashCode * 59 + this.ExpenseAccrualSubaccount.GetHashCode(); - if (this.ExpenseSubaccount != null) - hashCode = hashCode * 59 + this.ExpenseSubaccount.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.IsKit != null) - hashCode = hashCode * 59 + this.IsKit.GetHashCode(); - if (this.ItemClass != null) - hashCode = hashCode * 59 + this.ItemClass.GetHashCode(); - if (this.ItemStatus != null) - hashCode = hashCode * 59 + this.ItemStatus.GetHashCode(); - if (this.ItemType != null) - hashCode = hashCode * 59 + this.ItemType.GetHashCode(); - if (this.LastCost != null) - hashCode = hashCode * 59 + this.LastCost.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.PendingCost != null) - hashCode = hashCode * 59 + this.PendingCost.GetHashCode(); - if (this.PendingCostDate != null) - hashCode = hashCode * 59 + this.PendingCostDate.GetHashCode(); - if (this.POAccrualAccount != null) - hashCode = hashCode * 59 + this.POAccrualAccount.GetHashCode(); - if (this.POAccrualSubaccount != null) - hashCode = hashCode * 59 + this.POAccrualSubaccount.GetHashCode(); - if (this.PostingClass != null) - hashCode = hashCode * 59 + this.PostingClass.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.PurchasePriceVarianceAccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceAccount.GetHashCode(); - if (this.PurchasePriceVarianceSubaccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceSubaccount.GetHashCode(); - if (this.PurchaseUnit != null) - hashCode = hashCode * 59 + this.PurchaseUnit.GetHashCode(); - if (this.ReasonCodeSubaccount != null) - hashCode = hashCode * 59 + this.ReasonCodeSubaccount.GetHashCode(); - if (this.RequireReceipt != null) - hashCode = hashCode * 59 + this.RequireReceipt.GetHashCode(); - if (this.RequireShipment != null) - hashCode = hashCode * 59 + this.RequireShipment.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesCategories != null) - hashCode = hashCode * 59 + this.SalesCategories.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.SalesUnit != null) - hashCode = hashCode * 59 + this.SalesUnit.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.VendorDetails != null) - hashCode = hashCode * 59 + this.VendorDetails.GetHashCode(); - if (this.Volume != null) - hashCode = hashCode * 59 + this.Volume.GetHashCode(); - if (this.VolumeUOM != null) - hashCode = hashCode * 59 + this.VolumeUOM.GetHashCode(); - if (this.Weight != null) - hashCode = hashCode * 59 + this.Weight.GetHashCode(); - if (this.WeightUOM != null) - hashCode = hashCode * 59 + this.WeightUOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/NonStockItemAttribute.cs b/Default.18.200.001/Model/NonStockItemAttribute.cs deleted file mode 100644 index 468cc5f5..00000000 --- a/Default.18.200.001/Model/NonStockItemAttribute.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// NonStockItemAttribute - /// - [DataContract] - public partial class NonStockItemAttribute : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attribute. - /// required. - /// value. - public NonStockItemAttribute(StringValue attribute = default(StringValue), BooleanValue required = default(BooleanValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attribute = attribute; - this.Required = required; - this.Value = value; - } - - /// - /// Gets or Sets Attribute - /// - [DataMember(Name="Attribute", EmitDefaultValue=false)] - public StringValue Attribute { get; set; } - - /// - /// Gets or Sets Required - /// - [DataMember(Name="Required", EmitDefaultValue=false)] - public BooleanValue Required { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NonStockItemAttribute {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attribute: ").Append(Attribute).Append("\n"); - sb.Append(" Required: ").Append(Required).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NonStockItemAttribute); - } - - /// - /// Returns true if NonStockItemAttribute instances are equal - /// - /// Instance of NonStockItemAttribute to be compared - /// Boolean - public bool Equals(NonStockItemAttribute input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attribute == input.Attribute || - (this.Attribute != null && - this.Attribute.Equals(input.Attribute)) - ) && base.Equals(input) && - ( - this.Required == input.Required || - (this.Required != null && - this.Required.Equals(input.Required)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attribute != null) - hashCode = hashCode * 59 + this.Attribute.GetHashCode(); - if (this.Required != null) - hashCode = hashCode * 59 + this.Required.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/NonStockItemSalesCategory.cs b/Default.18.200.001/Model/NonStockItemSalesCategory.cs deleted file mode 100644 index 36b9a6f9..00000000 --- a/Default.18.200.001/Model/NonStockItemSalesCategory.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// NonStockItemSalesCategory - /// - [DataContract] - public partial class NonStockItemSalesCategory : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// categoryID. - public NonStockItemSalesCategory(IntValue categoryID = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CategoryID = categoryID; - } - - /// - /// Gets or Sets CategoryID - /// - [DataMember(Name="CategoryID", EmitDefaultValue=false)] - public IntValue CategoryID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NonStockItemSalesCategory {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CategoryID: ").Append(CategoryID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NonStockItemSalesCategory); - } - - /// - /// Returns true if NonStockItemSalesCategory instances are equal - /// - /// Instance of NonStockItemSalesCategory to be compared - /// Boolean - public bool Equals(NonStockItemSalesCategory input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CategoryID == input.CategoryID || - (this.CategoryID != null && - this.CategoryID.Equals(input.CategoryID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CategoryID != null) - hashCode = hashCode * 59 + this.CategoryID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/NonStockItemVendorDetail.cs b/Default.18.200.001/Model/NonStockItemVendorDetail.cs deleted file mode 100644 index d7911a11..00000000 --- a/Default.18.200.001/Model/NonStockItemVendorDetail.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// NonStockItemVendorDetail - /// - [DataContract] - public partial class NonStockItemVendorDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// vendorID. - /// vendorName. - public NonStockItemVendorDetail(StringValue vendorID = default(StringValue), StringValue vendorName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.VendorID = vendorID; - this.VendorName = vendorName; - } - - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } - - /// - /// Gets or Sets VendorName - /// - [DataMember(Name="VendorName", EmitDefaultValue=false)] - public StringValue VendorName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NonStockItemVendorDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append(" VendorName: ").Append(VendorName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as NonStockItemVendorDetail); - } - - /// - /// Returns true if NonStockItemVendorDetail instances are equal - /// - /// Instance of NonStockItemVendorDetail to be compared - /// Boolean - public bool Equals(NonStockItemVendorDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ) && base.Equals(input) && - ( - this.VendorName == input.VendorName || - (this.VendorName != null && - this.VendorName.Equals(input.VendorName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - if (this.VendorName != null) - hashCode = hashCode * 59 + this.VendorName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Opportunity.cs b/Default.18.200.001/Model/Opportunity.cs deleted file mode 100644 index 0c57795e..00000000 --- a/Default.18.200.001/Model/Opportunity.cs +++ /dev/null @@ -1,750 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Opportunity - /// - [DataContract] - public partial class Opportunity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// activities. - /// address. - /// amount. - /// attributes. - /// branch. - /// businessAccount. - /// classID. - /// contactDisplayName. - /// contactID. - /// contactInformation. - /// convertedLeadDisplayName. - /// convertedLeadID. - /// currencyID. - /// currencyViewState. - /// details. - /// discount. - /// discounts. - /// estimation. - /// location. - /// manualAmount. - /// opportunityID. - /// _override. - /// owner. - /// ownerEmployeeName. - /// parentAccount. - /// products. - /// project. - /// reason. - /// relations. - /// source. - /// sourceCampaign. - /// stage. - /// status. - /// subject. - /// taxDetails. - /// taxZone. - /// total. - /// weightTotal. - /// workgroupDescription. - /// workgroupID. - public Opportunity(IEnumerable activities = default(IEnumerable), Address address = default(Address), DecimalValue amount = default(DecimalValue), IEnumerable attributes = default(IEnumerable), StringValue branch = default(StringValue), StringValue businessAccount = default(StringValue), StringValue classID = default(StringValue), StringValue contactDisplayName = default(StringValue), IntValue contactID = default(IntValue), OpportunityContact contactInformation = default(OpportunityContact), StringValue convertedLeadDisplayName = default(StringValue), IntValue convertedLeadID = default(IntValue), StringValue currencyID = default(StringValue), BooleanValue currencyViewState = default(BooleanValue), StringValue details = default(StringValue), DecimalValue discount = default(DecimalValue), IEnumerable discounts = default(IEnumerable), DateTimeValue estimation = default(DateTimeValue), StringValue location = default(StringValue), BooleanValue manualAmount = default(BooleanValue), StringValue opportunityID = default(StringValue), BooleanValue _override = default(BooleanValue), StringValue owner = default(StringValue), StringValue ownerEmployeeName = default(StringValue), StringValue parentAccount = default(StringValue), IEnumerable products = default(IEnumerable), StringValue project = default(StringValue), StringValue reason = default(StringValue), IEnumerable relations = default(IEnumerable), StringValue source = default(StringValue), StringValue sourceCampaign = default(StringValue), StringValue stage = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), IEnumerable taxDetails = default(IEnumerable), StringValue taxZone = default(StringValue), DecimalValue total = default(DecimalValue), DecimalValue weightTotal = default(DecimalValue), StringValue workgroupDescription = default(StringValue), StringValue workgroupID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Activities = activities; - this.Address = address; - this.Amount = amount; - this.Attributes = attributes; - this.Branch = branch; - this.BusinessAccount = businessAccount; - this.ClassID = classID; - this.ContactDisplayName = contactDisplayName; - this.ContactID = contactID; - this.ContactInformation = contactInformation; - this.ConvertedLeadDisplayName = convertedLeadDisplayName; - this.ConvertedLeadID = convertedLeadID; - this.CurrencyID = currencyID; - this.CurrencyViewState = currencyViewState; - this.Details = details; - this.Discount = discount; - this.Discounts = discounts; - this.Estimation = estimation; - this.Location = location; - this.ManualAmount = manualAmount; - this.OpportunityID = opportunityID; - this.Override = _override; - this.Owner = owner; - this.OwnerEmployeeName = ownerEmployeeName; - this.ParentAccount = parentAccount; - this.Products = products; - this.Project = project; - this.Reason = reason; - this.Relations = relations; - this.Source = source; - this.SourceCampaign = sourceCampaign; - this.Stage = stage; - this.Status = status; - this.Subject = subject; - this.TaxDetails = taxDetails; - this.TaxZone = taxZone; - this.Total = total; - this.WeightTotal = weightTotal; - this.WorkgroupDescription = workgroupDescription; - this.WorkgroupID = workgroupID; - } - - /// - /// Gets or Sets Activities - /// - [DataMember(Name="Activities", EmitDefaultValue=false)] - public IEnumerable Activities { get; set; } - - /// - /// Gets or Sets Address - /// - [DataMember(Name="Address", EmitDefaultValue=false)] - public Address Address { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets BusinessAccount - /// - [DataMember(Name="BusinessAccount", EmitDefaultValue=false)] - public StringValue BusinessAccount { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets ContactDisplayName - /// - [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] - public StringValue ContactDisplayName { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets ContactInformation - /// - [DataMember(Name="ContactInformation", EmitDefaultValue=false)] - public OpportunityContact ContactInformation { get; set; } - - /// - /// Gets or Sets ConvertedLeadDisplayName - /// - [DataMember(Name="ConvertedLeadDisplayName", EmitDefaultValue=false)] - public StringValue ConvertedLeadDisplayName { get; set; } - - /// - /// Gets or Sets ConvertedLeadID - /// - [DataMember(Name="ConvertedLeadID", EmitDefaultValue=false)] - public IntValue ConvertedLeadID { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyViewState - /// - [DataMember(Name="CurrencyViewState", EmitDefaultValue=false)] - public BooleanValue CurrencyViewState { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public StringValue Details { get; set; } - - /// - /// Gets or Sets Discount - /// - [DataMember(Name="Discount", EmitDefaultValue=false)] - public DecimalValue Discount { get; set; } - - /// - /// Gets or Sets Discounts - /// - [DataMember(Name="Discounts", EmitDefaultValue=false)] - public IEnumerable Discounts { get; set; } - - /// - /// Gets or Sets Estimation - /// - [DataMember(Name="Estimation", EmitDefaultValue=false)] - public DateTimeValue Estimation { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets ManualAmount - /// - [DataMember(Name="ManualAmount", EmitDefaultValue=false)] - public BooleanValue ManualAmount { get; set; } - - /// - /// Gets or Sets OpportunityID - /// - [DataMember(Name="OpportunityID", EmitDefaultValue=false)] - public StringValue OpportunityID { get; set; } - - /// - /// Gets or Sets Override - /// - [DataMember(Name="Override", EmitDefaultValue=false)] - public BooleanValue Override { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets OwnerEmployeeName - /// - [DataMember(Name="OwnerEmployeeName", EmitDefaultValue=false)] - public StringValue OwnerEmployeeName { get; set; } - - /// - /// Gets or Sets ParentAccount - /// - [DataMember(Name="ParentAccount", EmitDefaultValue=false)] - public StringValue ParentAccount { get; set; } - - /// - /// Gets or Sets Products - /// - [DataMember(Name="Products", EmitDefaultValue=false)] - public IEnumerable Products { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets Reason - /// - [DataMember(Name="Reason", EmitDefaultValue=false)] - public StringValue Reason { get; set; } - - /// - /// Gets or Sets Relations - /// - [DataMember(Name="Relations", EmitDefaultValue=false)] - public IEnumerable Relations { get; set; } - - /// - /// Gets or Sets Source - /// - [DataMember(Name="Source", EmitDefaultValue=false)] - public StringValue Source { get; set; } - - /// - /// Gets or Sets SourceCampaign - /// - [DataMember(Name="SourceCampaign", EmitDefaultValue=false)] - public StringValue SourceCampaign { get; set; } - - /// - /// Gets or Sets Stage - /// - [DataMember(Name="Stage", EmitDefaultValue=false)] - public StringValue Stage { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public IEnumerable TaxDetails { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Total - /// - [DataMember(Name="Total", EmitDefaultValue=false)] - public DecimalValue Total { get; set; } - - /// - /// Gets or Sets WeightTotal - /// - [DataMember(Name="WeightTotal", EmitDefaultValue=false)] - public DecimalValue WeightTotal { get; set; } - - /// - /// Gets or Sets WorkgroupDescription - /// - [DataMember(Name="WorkgroupDescription", EmitDefaultValue=false)] - public StringValue WorkgroupDescription { get; set; } - - /// - /// Gets or Sets WorkgroupID - /// - [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] - public StringValue WorkgroupID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Opportunity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Activities: ").Append(Activities).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" BusinessAccount: ").Append(BusinessAccount).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" ContactDisplayName: ").Append(ContactDisplayName).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" ContactInformation: ").Append(ContactInformation).Append("\n"); - sb.Append(" ConvertedLeadDisplayName: ").Append(ConvertedLeadDisplayName).Append("\n"); - sb.Append(" ConvertedLeadID: ").Append(ConvertedLeadID).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyViewState: ").Append(CurrencyViewState).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Discount: ").Append(Discount).Append("\n"); - sb.Append(" Discounts: ").Append(Discounts).Append("\n"); - sb.Append(" Estimation: ").Append(Estimation).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" ManualAmount: ").Append(ManualAmount).Append("\n"); - sb.Append(" OpportunityID: ").Append(OpportunityID).Append("\n"); - sb.Append(" Override: ").Append(Override).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" OwnerEmployeeName: ").Append(OwnerEmployeeName).Append("\n"); - sb.Append(" ParentAccount: ").Append(ParentAccount).Append("\n"); - sb.Append(" Products: ").Append(Products).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" Reason: ").Append(Reason).Append("\n"); - sb.Append(" Relations: ").Append(Relations).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append(" SourceCampaign: ").Append(SourceCampaign).Append("\n"); - sb.Append(" Stage: ").Append(Stage).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Total: ").Append(Total).Append("\n"); - sb.Append(" WeightTotal: ").Append(WeightTotal).Append("\n"); - sb.Append(" WorkgroupDescription: ").Append(WorkgroupDescription).Append("\n"); - sb.Append(" WorkgroupID: ").Append(WorkgroupID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Opportunity); - } - - /// - /// Returns true if Opportunity instances are equal - /// - /// Instance of Opportunity to be compared - /// Boolean - public bool Equals(Opportunity input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Activities == input.Activities || - this.Activities != null && - this.Activities.SequenceEqual(input.Activities) - ) && base.Equals(input) && - ( - this.Address == input.Address || - (this.Address != null && - this.Address.Equals(input.Address)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.BusinessAccount == input.BusinessAccount || - (this.BusinessAccount != null && - this.BusinessAccount.Equals(input.BusinessAccount)) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.ContactDisplayName == input.ContactDisplayName || - (this.ContactDisplayName != null && - this.ContactDisplayName.Equals(input.ContactDisplayName)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.ContactInformation == input.ContactInformation || - (this.ContactInformation != null && - this.ContactInformation.Equals(input.ContactInformation)) - ) && base.Equals(input) && - ( - this.ConvertedLeadDisplayName == input.ConvertedLeadDisplayName || - (this.ConvertedLeadDisplayName != null && - this.ConvertedLeadDisplayName.Equals(input.ConvertedLeadDisplayName)) - ) && base.Equals(input) && - ( - this.ConvertedLeadID == input.ConvertedLeadID || - (this.ConvertedLeadID != null && - this.ConvertedLeadID.Equals(input.ConvertedLeadID)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyViewState == input.CurrencyViewState || - (this.CurrencyViewState != null && - this.CurrencyViewState.Equals(input.CurrencyViewState)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - (this.Details != null && - this.Details.Equals(input.Details)) - ) && base.Equals(input) && - ( - this.Discount == input.Discount || - (this.Discount != null && - this.Discount.Equals(input.Discount)) - ) && base.Equals(input) && - ( - this.Discounts == input.Discounts || - this.Discounts != null && - this.Discounts.SequenceEqual(input.Discounts) - ) && base.Equals(input) && - ( - this.Estimation == input.Estimation || - (this.Estimation != null && - this.Estimation.Equals(input.Estimation)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.ManualAmount == input.ManualAmount || - (this.ManualAmount != null && - this.ManualAmount.Equals(input.ManualAmount)) - ) && base.Equals(input) && - ( - this.OpportunityID == input.OpportunityID || - (this.OpportunityID != null && - this.OpportunityID.Equals(input.OpportunityID)) - ) && base.Equals(input) && - ( - this.Override == input.Override || - (this.Override != null && - this.Override.Equals(input.Override)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.OwnerEmployeeName == input.OwnerEmployeeName || - (this.OwnerEmployeeName != null && - this.OwnerEmployeeName.Equals(input.OwnerEmployeeName)) - ) && base.Equals(input) && - ( - this.ParentAccount == input.ParentAccount || - (this.ParentAccount != null && - this.ParentAccount.Equals(input.ParentAccount)) - ) && base.Equals(input) && - ( - this.Products == input.Products || - this.Products != null && - this.Products.SequenceEqual(input.Products) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.Reason == input.Reason || - (this.Reason != null && - this.Reason.Equals(input.Reason)) - ) && base.Equals(input) && - ( - this.Relations == input.Relations || - this.Relations != null && - this.Relations.SequenceEqual(input.Relations) - ) && base.Equals(input) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ) && base.Equals(input) && - ( - this.SourceCampaign == input.SourceCampaign || - (this.SourceCampaign != null && - this.SourceCampaign.Equals(input.SourceCampaign)) - ) && base.Equals(input) && - ( - this.Stage == input.Stage || - (this.Stage != null && - this.Stage.Equals(input.Stage)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Total == input.Total || - (this.Total != null && - this.Total.Equals(input.Total)) - ) && base.Equals(input) && - ( - this.WeightTotal == input.WeightTotal || - (this.WeightTotal != null && - this.WeightTotal.Equals(input.WeightTotal)) - ) && base.Equals(input) && - ( - this.WorkgroupDescription == input.WorkgroupDescription || - (this.WorkgroupDescription != null && - this.WorkgroupDescription.Equals(input.WorkgroupDescription)) - ) && base.Equals(input) && - ( - this.WorkgroupID == input.WorkgroupID || - (this.WorkgroupID != null && - this.WorkgroupID.Equals(input.WorkgroupID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Activities != null) - hashCode = hashCode * 59 + this.Activities.GetHashCode(); - if (this.Address != null) - hashCode = hashCode * 59 + this.Address.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.BusinessAccount != null) - hashCode = hashCode * 59 + this.BusinessAccount.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.ContactDisplayName != null) - hashCode = hashCode * 59 + this.ContactDisplayName.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.ContactInformation != null) - hashCode = hashCode * 59 + this.ContactInformation.GetHashCode(); - if (this.ConvertedLeadDisplayName != null) - hashCode = hashCode * 59 + this.ConvertedLeadDisplayName.GetHashCode(); - if (this.ConvertedLeadID != null) - hashCode = hashCode * 59 + this.ConvertedLeadID.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyViewState != null) - hashCode = hashCode * 59 + this.CurrencyViewState.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Discount != null) - hashCode = hashCode * 59 + this.Discount.GetHashCode(); - if (this.Discounts != null) - hashCode = hashCode * 59 + this.Discounts.GetHashCode(); - if (this.Estimation != null) - hashCode = hashCode * 59 + this.Estimation.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.ManualAmount != null) - hashCode = hashCode * 59 + this.ManualAmount.GetHashCode(); - if (this.OpportunityID != null) - hashCode = hashCode * 59 + this.OpportunityID.GetHashCode(); - if (this.Override != null) - hashCode = hashCode * 59 + this.Override.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.OwnerEmployeeName != null) - hashCode = hashCode * 59 + this.OwnerEmployeeName.GetHashCode(); - if (this.ParentAccount != null) - hashCode = hashCode * 59 + this.ParentAccount.GetHashCode(); - if (this.Products != null) - hashCode = hashCode * 59 + this.Products.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.Reason != null) - hashCode = hashCode * 59 + this.Reason.GetHashCode(); - if (this.Relations != null) - hashCode = hashCode * 59 + this.Relations.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - if (this.SourceCampaign != null) - hashCode = hashCode * 59 + this.SourceCampaign.GetHashCode(); - if (this.Stage != null) - hashCode = hashCode * 59 + this.Stage.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Total != null) - hashCode = hashCode * 59 + this.Total.GetHashCode(); - if (this.WeightTotal != null) - hashCode = hashCode * 59 + this.WeightTotal.GetHashCode(); - if (this.WorkgroupDescription != null) - hashCode = hashCode * 59 + this.WorkgroupDescription.GetHashCode(); - if (this.WorkgroupID != null) - hashCode = hashCode * 59 + this.WorkgroupID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/OpportunityContact.cs b/Default.18.200.001/Model/OpportunityContact.cs deleted file mode 100644 index cd0beae8..00000000 --- a/Default.18.200.001/Model/OpportunityContact.cs +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// OpportunityContact - /// - [DataContract] - public partial class OpportunityContact : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attention. - /// companyName. - /// email. - /// fax. - /// faxType. - /// firstName. - /// lastName. - /// phone1. - /// phone1Type. - /// phone2. - /// phone2Type. - /// phone3. - /// phone3Type. - /// position. - /// title. - /// webSite. - public OpportunityContact(StringValue attention = default(StringValue), StringValue companyName = default(StringValue), StringValue email = default(StringValue), StringValue fax = default(StringValue), StringValue faxType = default(StringValue), StringValue firstName = default(StringValue), StringValue lastName = default(StringValue), StringValue phone1 = default(StringValue), StringValue phone1Type = default(StringValue), StringValue phone2 = default(StringValue), StringValue phone2Type = default(StringValue), StringValue phone3 = default(StringValue), StringValue phone3Type = default(StringValue), StringValue position = default(StringValue), StringValue title = default(StringValue), StringValue webSite = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attention = attention; - this.CompanyName = companyName; - this.Email = email; - this.Fax = fax; - this.FaxType = faxType; - this.FirstName = firstName; - this.LastName = lastName; - this.Phone1 = phone1; - this.Phone1Type = phone1Type; - this.Phone2 = phone2; - this.Phone2Type = phone2Type; - this.Phone3 = phone3; - this.Phone3Type = phone3Type; - this.Position = position; - this.Title = title; - this.WebSite = webSite; - } - - /// - /// Gets or Sets Attention - /// - [DataMember(Name="Attention", EmitDefaultValue=false)] - public StringValue Attention { get; set; } - - /// - /// Gets or Sets CompanyName - /// - [DataMember(Name="CompanyName", EmitDefaultValue=false)] - public StringValue CompanyName { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Fax - /// - [DataMember(Name="Fax", EmitDefaultValue=false)] - public StringValue Fax { get; set; } - - /// - /// Gets or Sets FaxType - /// - [DataMember(Name="FaxType", EmitDefaultValue=false)] - public StringValue FaxType { get; set; } - - /// - /// Gets or Sets FirstName - /// - [DataMember(Name="FirstName", EmitDefaultValue=false)] - public StringValue FirstName { get; set; } - - /// - /// Gets or Sets LastName - /// - [DataMember(Name="LastName", EmitDefaultValue=false)] - public StringValue LastName { get; set; } - - /// - /// Gets or Sets Phone1 - /// - [DataMember(Name="Phone1", EmitDefaultValue=false)] - public StringValue Phone1 { get; set; } - - /// - /// Gets or Sets Phone1Type - /// - [DataMember(Name="Phone1Type", EmitDefaultValue=false)] - public StringValue Phone1Type { get; set; } - - /// - /// Gets or Sets Phone2 - /// - [DataMember(Name="Phone2", EmitDefaultValue=false)] - public StringValue Phone2 { get; set; } - - /// - /// Gets or Sets Phone2Type - /// - [DataMember(Name="Phone2Type", EmitDefaultValue=false)] - public StringValue Phone2Type { get; set; } - - /// - /// Gets or Sets Phone3 - /// - [DataMember(Name="Phone3", EmitDefaultValue=false)] - public StringValue Phone3 { get; set; } - - /// - /// Gets or Sets Phone3Type - /// - [DataMember(Name="Phone3Type", EmitDefaultValue=false)] - public StringValue Phone3Type { get; set; } - - /// - /// Gets or Sets Position - /// - [DataMember(Name="Position", EmitDefaultValue=false)] - public StringValue Position { get; set; } - - /// - /// Gets or Sets Title - /// - [DataMember(Name="Title", EmitDefaultValue=false)] - public StringValue Title { get; set; } - - /// - /// Gets or Sets WebSite - /// - [DataMember(Name="WebSite", EmitDefaultValue=false)] - public StringValue WebSite { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OpportunityContact {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attention: ").Append(Attention).Append("\n"); - sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Fax: ").Append(Fax).Append("\n"); - sb.Append(" FaxType: ").Append(FaxType).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append(" Phone1: ").Append(Phone1).Append("\n"); - sb.Append(" Phone1Type: ").Append(Phone1Type).Append("\n"); - sb.Append(" Phone2: ").Append(Phone2).Append("\n"); - sb.Append(" Phone2Type: ").Append(Phone2Type).Append("\n"); - sb.Append(" Phone3: ").Append(Phone3).Append("\n"); - sb.Append(" Phone3Type: ").Append(Phone3Type).Append("\n"); - sb.Append(" Position: ").Append(Position).Append("\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" WebSite: ").Append(WebSite).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OpportunityContact); - } - - /// - /// Returns true if OpportunityContact instances are equal - /// - /// Instance of OpportunityContact to be compared - /// Boolean - public bool Equals(OpportunityContact input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attention == input.Attention || - (this.Attention != null && - this.Attention.Equals(input.Attention)) - ) && base.Equals(input) && - ( - this.CompanyName == input.CompanyName || - (this.CompanyName != null && - this.CompanyName.Equals(input.CompanyName)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Fax == input.Fax || - (this.Fax != null && - this.Fax.Equals(input.Fax)) - ) && base.Equals(input) && - ( - this.FaxType == input.FaxType || - (this.FaxType != null && - this.FaxType.Equals(input.FaxType)) - ) && base.Equals(input) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && base.Equals(input) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ) && base.Equals(input) && - ( - this.Phone1 == input.Phone1 || - (this.Phone1 != null && - this.Phone1.Equals(input.Phone1)) - ) && base.Equals(input) && - ( - this.Phone1Type == input.Phone1Type || - (this.Phone1Type != null && - this.Phone1Type.Equals(input.Phone1Type)) - ) && base.Equals(input) && - ( - this.Phone2 == input.Phone2 || - (this.Phone2 != null && - this.Phone2.Equals(input.Phone2)) - ) && base.Equals(input) && - ( - this.Phone2Type == input.Phone2Type || - (this.Phone2Type != null && - this.Phone2Type.Equals(input.Phone2Type)) - ) && base.Equals(input) && - ( - this.Phone3 == input.Phone3 || - (this.Phone3 != null && - this.Phone3.Equals(input.Phone3)) - ) && base.Equals(input) && - ( - this.Phone3Type == input.Phone3Type || - (this.Phone3Type != null && - this.Phone3Type.Equals(input.Phone3Type)) - ) && base.Equals(input) && - ( - this.Position == input.Position || - (this.Position != null && - this.Position.Equals(input.Position)) - ) && base.Equals(input) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && base.Equals(input) && - ( - this.WebSite == input.WebSite || - (this.WebSite != null && - this.WebSite.Equals(input.WebSite)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attention != null) - hashCode = hashCode * 59 + this.Attention.GetHashCode(); - if (this.CompanyName != null) - hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Fax != null) - hashCode = hashCode * 59 + this.Fax.GetHashCode(); - if (this.FaxType != null) - hashCode = hashCode * 59 + this.FaxType.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - if (this.Phone1 != null) - hashCode = hashCode * 59 + this.Phone1.GetHashCode(); - if (this.Phone1Type != null) - hashCode = hashCode * 59 + this.Phone1Type.GetHashCode(); - if (this.Phone2 != null) - hashCode = hashCode * 59 + this.Phone2.GetHashCode(); - if (this.Phone2Type != null) - hashCode = hashCode * 59 + this.Phone2Type.GetHashCode(); - if (this.Phone3 != null) - hashCode = hashCode * 59 + this.Phone3.GetHashCode(); - if (this.Phone3Type != null) - hashCode = hashCode * 59 + this.Phone3Type.GetHashCode(); - if (this.Position != null) - hashCode = hashCode * 59 + this.Position.GetHashCode(); - if (this.Title != null) - hashCode = hashCode * 59 + this.Title.GetHashCode(); - if (this.WebSite != null) - hashCode = hashCode * 59 + this.WebSite.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/OpportunityDetail.cs b/Default.18.200.001/Model/OpportunityDetail.cs deleted file mode 100644 index f8510966..00000000 --- a/Default.18.200.001/Model/OpportunityDetail.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// OpportunityDetail - /// - [DataContract] - public partial class OpportunityDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// currency. - /// displayName. - /// estimation. - /// owner. - /// probability. - /// stage. - /// status. - /// subject. - /// total. - /// workgroup. - public OpportunityDetail(StringValue currency = default(StringValue), StringValue displayName = default(StringValue), DateTimeValue estimation = default(DateTimeValue), StringValue owner = default(StringValue), IntValue probability = default(IntValue), StringValue stage = default(StringValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), DecimalValue total = default(DecimalValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Currency = currency; - this.DisplayName = displayName; - this.Estimation = estimation; - this.Owner = owner; - this.Probability = probability; - this.Stage = stage; - this.Status = status; - this.Subject = subject; - this.Total = total; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Currency - /// - [DataMember(Name="Currency", EmitDefaultValue=false)] - public StringValue Currency { get; set; } - - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name="DisplayName", EmitDefaultValue=false)] - public StringValue DisplayName { get; set; } - - /// - /// Gets or Sets Estimation - /// - [DataMember(Name="Estimation", EmitDefaultValue=false)] - public DateTimeValue Estimation { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Probability - /// - [DataMember(Name="Probability", EmitDefaultValue=false)] - public IntValue Probability { get; set; } - - /// - /// Gets or Sets Stage - /// - [DataMember(Name="Stage", EmitDefaultValue=false)] - public StringValue Stage { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Gets or Sets Total - /// - [DataMember(Name="Total", EmitDefaultValue=false)] - public DecimalValue Total { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OpportunityDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Estimation: ").Append(Estimation).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Probability: ").Append(Probability).Append("\n"); - sb.Append(" Stage: ").Append(Stage).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Total: ").Append(Total).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OpportunityDetail); - } - - /// - /// Returns true if OpportunityDetail instances are equal - /// - /// Instance of OpportunityDetail to be compared - /// Boolean - public bool Equals(OpportunityDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Currency == input.Currency || - (this.Currency != null && - this.Currency.Equals(input.Currency)) - ) && base.Equals(input) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && base.Equals(input) && - ( - this.Estimation == input.Estimation || - (this.Estimation != null && - this.Estimation.Equals(input.Estimation)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Probability == input.Probability || - (this.Probability != null && - this.Probability.Equals(input.Probability)) - ) && base.Equals(input) && - ( - this.Stage == input.Stage || - (this.Stage != null && - this.Stage.Equals(input.Stage)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && base.Equals(input) && - ( - this.Total == input.Total || - (this.Total != null && - this.Total.Equals(input.Total)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Currency != null) - hashCode = hashCode * 59 + this.Currency.GetHashCode(); - if (this.DisplayName != null) - hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); - if (this.Estimation != null) - hashCode = hashCode * 59 + this.Estimation.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Probability != null) - hashCode = hashCode * 59 + this.Probability.GetHashCode(); - if (this.Stage != null) - hashCode = hashCode * 59 + this.Stage.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - if (this.Total != null) - hashCode = hashCode * 59 + this.Total.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/OpportunityDiscount.cs b/Default.18.200.001/Model/OpportunityDiscount.cs deleted file mode 100644 index c0c94547..00000000 --- a/Default.18.200.001/Model/OpportunityDiscount.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// OpportunityDiscount - /// - [DataContract] - public partial class OpportunityDiscount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// discountableAmount. - /// discountableQty. - /// discountAmount. - /// discountCode. - /// discountPercent. - /// freeItem. - /// freeItemQty. - /// lineNbr. - /// manualDiscount. - /// sequenceID. - /// skipDiscount. - /// type. - public OpportunityDiscount(DecimalValue discountableAmount = default(DecimalValue), DecimalValue discountableQty = default(DecimalValue), DecimalValue discountAmount = default(DecimalValue), StringValue discountCode = default(StringValue), DecimalValue discountPercent = default(DecimalValue), StringValue freeItem = default(StringValue), DecimalValue freeItemQty = default(DecimalValue), IntValue lineNbr = default(IntValue), BooleanValue manualDiscount = default(BooleanValue), StringValue sequenceID = default(StringValue), BooleanValue skipDiscount = default(BooleanValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DiscountableAmount = discountableAmount; - this.DiscountableQty = discountableQty; - this.DiscountAmount = discountAmount; - this.DiscountCode = discountCode; - this.DiscountPercent = discountPercent; - this.FreeItem = freeItem; - this.FreeItemQty = freeItemQty; - this.LineNbr = lineNbr; - this.ManualDiscount = manualDiscount; - this.SequenceID = sequenceID; - this.SkipDiscount = skipDiscount; - this.Type = type; - } - - /// - /// Gets or Sets DiscountableAmount - /// - [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] - public DecimalValue DiscountableAmount { get; set; } - - /// - /// Gets or Sets DiscountableQty - /// - [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] - public DecimalValue DiscountableQty { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public StringValue FreeItem { get; set; } - - /// - /// Gets or Sets FreeItemQty - /// - [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] - public DecimalValue FreeItemQty { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } - - /// - /// Gets or Sets SequenceID - /// - [DataMember(Name="SequenceID", EmitDefaultValue=false)] - public StringValue SequenceID { get; set; } - - /// - /// Gets or Sets SkipDiscount - /// - [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] - public BooleanValue SkipDiscount { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OpportunityDiscount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DiscountableAmount: ").Append(DiscountableAmount).Append("\n"); - sb.Append(" DiscountableQty: ").Append(DiscountableQty).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" FreeItemQty: ").Append(FreeItemQty).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" SequenceID: ").Append(SequenceID).Append("\n"); - sb.Append(" SkipDiscount: ").Append(SkipDiscount).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OpportunityDiscount); - } - - /// - /// Returns true if OpportunityDiscount instances are equal - /// - /// Instance of OpportunityDiscount to be compared - /// Boolean - public bool Equals(OpportunityDiscount input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DiscountableAmount == input.DiscountableAmount || - (this.DiscountableAmount != null && - this.DiscountableAmount.Equals(input.DiscountableAmount)) - ) && base.Equals(input) && - ( - this.DiscountableQty == input.DiscountableQty || - (this.DiscountableQty != null && - this.DiscountableQty.Equals(input.DiscountableQty)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.FreeItemQty == input.FreeItemQty || - (this.FreeItemQty != null && - this.FreeItemQty.Equals(input.FreeItemQty)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.SequenceID == input.SequenceID || - (this.SequenceID != null && - this.SequenceID.Equals(input.SequenceID)) - ) && base.Equals(input) && - ( - this.SkipDiscount == input.SkipDiscount || - (this.SkipDiscount != null && - this.SkipDiscount.Equals(input.SkipDiscount)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DiscountableAmount != null) - hashCode = hashCode * 59 + this.DiscountableAmount.GetHashCode(); - if (this.DiscountableQty != null) - hashCode = hashCode * 59 + this.DiscountableQty.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.FreeItemQty != null) - hashCode = hashCode * 59 + this.FreeItemQty.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.SequenceID != null) - hashCode = hashCode * 59 + this.SequenceID.GetHashCode(); - if (this.SkipDiscount != null) - hashCode = hashCode * 59 + this.SkipDiscount.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/OpportunityProduct.cs b/Default.18.200.001/Model/OpportunityProduct.cs deleted file mode 100644 index 93fc0713..00000000 --- a/Default.18.200.001/Model/OpportunityProduct.cs +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// OpportunityProduct - /// - [DataContract] - public partial class OpportunityProduct : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// discount. - /// discountAmount. - /// discountCode. - /// discountSequence. - /// externalPrice. - /// freeItem. - /// inventoryID. - /// manualDiscount. - /// opportunityProductID. - /// projectTask. - /// qty. - /// subitem. - /// taxCategory. - /// transactionDescription. - /// unitPrice. - /// uOM. - /// warehouse. - public OpportunityProduct(DecimalValue amount = default(DecimalValue), DecimalValue discount = default(DecimalValue), DecimalValue discountAmount = default(DecimalValue), StringValue discountCode = default(StringValue), StringValue discountSequence = default(StringValue), DecimalValue externalPrice = default(DecimalValue), BooleanValue freeItem = default(BooleanValue), StringValue inventoryID = default(StringValue), BooleanValue manualDiscount = default(BooleanValue), IntValue opportunityProductID = default(IntValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subitem = default(StringValue), StringValue taxCategory = default(StringValue), StringValue transactionDescription = default(StringValue), DecimalValue unitPrice = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.Discount = discount; - this.DiscountAmount = discountAmount; - this.DiscountCode = discountCode; - this.DiscountSequence = discountSequence; - this.ExternalPrice = externalPrice; - this.FreeItem = freeItem; - this.InventoryID = inventoryID; - this.ManualDiscount = manualDiscount; - this.OpportunityProductID = opportunityProductID; - this.ProjectTask = projectTask; - this.Qty = qty; - this.Subitem = subitem; - this.TaxCategory = taxCategory; - this.TransactionDescription = transactionDescription; - this.UnitPrice = unitPrice; - this.UOM = uOM; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets Discount - /// - [DataMember(Name="Discount", EmitDefaultValue=false)] - public DecimalValue Discount { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets DiscountSequence - /// - [DataMember(Name="DiscountSequence", EmitDefaultValue=false)] - public StringValue DiscountSequence { get; set; } - - /// - /// Gets or Sets ExternalPrice - /// - [DataMember(Name="ExternalPrice", EmitDefaultValue=false)] - public DecimalValue ExternalPrice { get; set; } - - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public BooleanValue FreeItem { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } - - /// - /// Gets or Sets OpportunityProductID - /// - [DataMember(Name="OpportunityProductID", EmitDefaultValue=false)] - public IntValue OpportunityProductID { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } - - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OpportunityProduct {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Discount: ").Append(Discount).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" DiscountSequence: ").Append(DiscountSequence).Append("\n"); - sb.Append(" ExternalPrice: ").Append(ExternalPrice).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" OpportunityProductID: ").Append(OpportunityProductID).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OpportunityProduct); - } - - /// - /// Returns true if OpportunityProduct instances are equal - /// - /// Instance of OpportunityProduct to be compared - /// Boolean - public bool Equals(OpportunityProduct input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.Discount == input.Discount || - (this.Discount != null && - this.Discount.Equals(input.Discount)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.DiscountSequence == input.DiscountSequence || - (this.DiscountSequence != null && - this.DiscountSequence.Equals(input.DiscountSequence)) - ) && base.Equals(input) && - ( - this.ExternalPrice == input.ExternalPrice || - (this.ExternalPrice != null && - this.ExternalPrice.Equals(input.ExternalPrice)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.OpportunityProductID == input.OpportunityProductID || - (this.OpportunityProductID != null && - this.OpportunityProductID.Equals(input.OpportunityProductID)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.Discount != null) - hashCode = hashCode * 59 + this.Discount.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.DiscountSequence != null) - hashCode = hashCode * 59 + this.DiscountSequence.GetHashCode(); - if (this.ExternalPrice != null) - hashCode = hashCode * 59 + this.ExternalPrice.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.OpportunityProductID != null) - hashCode = hashCode * 59 + this.OpportunityProductID.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/OpportunityTaxDetail.cs b/Default.18.200.001/Model/OpportunityTaxDetail.cs deleted file mode 100644 index 215e079d..00000000 --- a/Default.18.200.001/Model/OpportunityTaxDetail.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// OpportunityTaxDetail - /// - [DataContract] - public partial class OpportunityTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// includeInVATExemptTotal. - /// lineNbr. - /// pendingVAT. - /// reverseVAT. - /// statisticalVAT. - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - /// taxType. - public OpportunityTaxDetail(BooleanValue includeInVATExemptTotal = default(BooleanValue), IntValue lineNbr = default(IntValue), BooleanValue pendingVAT = default(BooleanValue), BooleanValue reverseVAT = default(BooleanValue), BooleanValue statisticalVAT = default(BooleanValue), DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), StringValue taxType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.IncludeInVATExemptTotal = includeInVATExemptTotal; - this.LineNbr = lineNbr; - this.PendingVAT = pendingVAT; - this.ReverseVAT = reverseVAT; - this.StatisticalVAT = statisticalVAT; - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - this.TaxType = taxType; - } - - /// - /// Gets or Sets IncludeInVATExemptTotal - /// - [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] - public BooleanValue IncludeInVATExemptTotal { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets PendingVAT - /// - [DataMember(Name="PendingVAT", EmitDefaultValue=false)] - public BooleanValue PendingVAT { get; set; } - - /// - /// Gets or Sets ReverseVAT - /// - [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] - public BooleanValue ReverseVAT { get; set; } - - /// - /// Gets or Sets StatisticalVAT - /// - [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] - public BooleanValue StatisticalVAT { get; set; } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Gets or Sets TaxType - /// - [DataMember(Name="TaxType", EmitDefaultValue=false)] - public StringValue TaxType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OpportunityTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" IncludeInVATExemptTotal: ").Append(IncludeInVATExemptTotal).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" PendingVAT: ").Append(PendingVAT).Append("\n"); - sb.Append(" ReverseVAT: ").Append(ReverseVAT).Append("\n"); - sb.Append(" StatisticalVAT: ").Append(StatisticalVAT).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append(" TaxType: ").Append(TaxType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as OpportunityTaxDetail); - } - - /// - /// Returns true if OpportunityTaxDetail instances are equal - /// - /// Instance of OpportunityTaxDetail to be compared - /// Boolean - public bool Equals(OpportunityTaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.IncludeInVATExemptTotal == input.IncludeInVATExemptTotal || - (this.IncludeInVATExemptTotal != null && - this.IncludeInVATExemptTotal.Equals(input.IncludeInVATExemptTotal)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.PendingVAT == input.PendingVAT || - (this.PendingVAT != null && - this.PendingVAT.Equals(input.PendingVAT)) - ) && base.Equals(input) && - ( - this.ReverseVAT == input.ReverseVAT || - (this.ReverseVAT != null && - this.ReverseVAT.Equals(input.ReverseVAT)) - ) && base.Equals(input) && - ( - this.StatisticalVAT == input.StatisticalVAT || - (this.StatisticalVAT != null && - this.StatisticalVAT.Equals(input.StatisticalVAT)) - ) && base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ) && base.Equals(input) && - ( - this.TaxType == input.TaxType || - (this.TaxType != null && - this.TaxType.Equals(input.TaxType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.IncludeInVATExemptTotal != null) - hashCode = hashCode * 59 + this.IncludeInVATExemptTotal.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.PendingVAT != null) - hashCode = hashCode * 59 + this.PendingVAT.GetHashCode(); - if (this.ReverseVAT != null) - hashCode = hashCode * 59 + this.ReverseVAT.GetHashCode(); - if (this.StatisticalVAT != null) - hashCode = hashCode * 59 + this.StatisticalVAT.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - if (this.TaxType != null) - hashCode = hashCode * 59 + this.TaxType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Payment.cs b/Default.18.200.001/Model/Payment.cs deleted file mode 100644 index 7e8aff44..00000000 --- a/Default.18.200.001/Model/Payment.cs +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Payment - /// - [DataContract] - public partial class Payment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// applicationDate. - /// applicationHistory. - /// appliedToDocuments. - /// cardAccountNbr. - /// cashAccount. - /// creditCardProcessingInfo. - /// currencyID. - /// customerID. - /// description. - /// documentsToApply. - /// hold. - /// ordersToApply. - /// paymentAmount. - /// paymentMethod. - /// paymentRef. - /// referenceNbr. - /// status. - /// type. - public Payment(DateTimeValue applicationDate = default(DateTimeValue), IEnumerable applicationHistory = default(IEnumerable), DecimalValue appliedToDocuments = default(DecimalValue), IntValue cardAccountNbr = default(IntValue), StringValue cashAccount = default(StringValue), IEnumerable creditCardProcessingInfo = default(IEnumerable), StringValue currencyID = default(StringValue), StringValue customerID = default(StringValue), StringValue description = default(StringValue), IEnumerable documentsToApply = default(IEnumerable), BooleanValue hold = default(BooleanValue), IEnumerable ordersToApply = default(IEnumerable), DecimalValue paymentAmount = default(DecimalValue), StringValue paymentMethod = default(StringValue), StringValue paymentRef = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApplicationDate = applicationDate; - this.ApplicationHistory = applicationHistory; - this.AppliedToDocuments = appliedToDocuments; - this.CardAccountNbr = cardAccountNbr; - this.CashAccount = cashAccount; - this.CreditCardProcessingInfo = creditCardProcessingInfo; - this.CurrencyID = currencyID; - this.CustomerID = customerID; - this.Description = description; - this.DocumentsToApply = documentsToApply; - this.Hold = hold; - this.OrdersToApply = ordersToApply; - this.PaymentAmount = paymentAmount; - this.PaymentMethod = paymentMethod; - this.PaymentRef = paymentRef; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.Type = type; - } - - /// - /// Gets or Sets ApplicationDate - /// - [DataMember(Name="ApplicationDate", EmitDefaultValue=false)] - public DateTimeValue ApplicationDate { get; set; } - - /// - /// Gets or Sets ApplicationHistory - /// - [DataMember(Name="ApplicationHistory", EmitDefaultValue=false)] - public IEnumerable ApplicationHistory { get; set; } - - /// - /// Gets or Sets AppliedToDocuments - /// - [DataMember(Name="AppliedToDocuments", EmitDefaultValue=false)] - public DecimalValue AppliedToDocuments { get; set; } - - /// - /// Gets or Sets CardAccountNbr - /// - [DataMember(Name="CardAccountNbr", EmitDefaultValue=false)] - public IntValue CardAccountNbr { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CreditCardProcessingInfo - /// - [DataMember(Name="CreditCardProcessingInfo", EmitDefaultValue=false)] - public IEnumerable CreditCardProcessingInfo { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DocumentsToApply - /// - [DataMember(Name="DocumentsToApply", EmitDefaultValue=false)] - public IEnumerable DocumentsToApply { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets OrdersToApply - /// - [DataMember(Name="OrdersToApply", EmitDefaultValue=false)] - public IEnumerable OrdersToApply { get; set; } - - /// - /// Gets or Sets PaymentAmount - /// - [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] - public DecimalValue PaymentAmount { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Payment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApplicationDate: ").Append(ApplicationDate).Append("\n"); - sb.Append(" ApplicationHistory: ").Append(ApplicationHistory).Append("\n"); - sb.Append(" AppliedToDocuments: ").Append(AppliedToDocuments).Append("\n"); - sb.Append(" CardAccountNbr: ").Append(CardAccountNbr).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CreditCardProcessingInfo: ").Append(CreditCardProcessingInfo).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocumentsToApply: ").Append(DocumentsToApply).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" OrdersToApply: ").Append(OrdersToApply).Append("\n"); - sb.Append(" PaymentAmount: ").Append(PaymentAmount).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Payment); - } - - /// - /// Returns true if Payment instances are equal - /// - /// Instance of Payment to be compared - /// Boolean - public bool Equals(Payment input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ApplicationDate == input.ApplicationDate || - (this.ApplicationDate != null && - this.ApplicationDate.Equals(input.ApplicationDate)) - ) && base.Equals(input) && - ( - this.ApplicationHistory == input.ApplicationHistory || - this.ApplicationHistory != null && - this.ApplicationHistory.SequenceEqual(input.ApplicationHistory) - ) && base.Equals(input) && - ( - this.AppliedToDocuments == input.AppliedToDocuments || - (this.AppliedToDocuments != null && - this.AppliedToDocuments.Equals(input.AppliedToDocuments)) - ) && base.Equals(input) && - ( - this.CardAccountNbr == input.CardAccountNbr || - (this.CardAccountNbr != null && - this.CardAccountNbr.Equals(input.CardAccountNbr)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CreditCardProcessingInfo == input.CreditCardProcessingInfo || - this.CreditCardProcessingInfo != null && - this.CreditCardProcessingInfo.SequenceEqual(input.CreditCardProcessingInfo) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DocumentsToApply == input.DocumentsToApply || - this.DocumentsToApply != null && - this.DocumentsToApply.SequenceEqual(input.DocumentsToApply) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.OrdersToApply == input.OrdersToApply || - this.OrdersToApply != null && - this.OrdersToApply.SequenceEqual(input.OrdersToApply) - ) && base.Equals(input) && - ( - this.PaymentAmount == input.PaymentAmount || - (this.PaymentAmount != null && - this.PaymentAmount.Equals(input.PaymentAmount)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApplicationDate != null) - hashCode = hashCode * 59 + this.ApplicationDate.GetHashCode(); - if (this.ApplicationHistory != null) - hashCode = hashCode * 59 + this.ApplicationHistory.GetHashCode(); - if (this.AppliedToDocuments != null) - hashCode = hashCode * 59 + this.AppliedToDocuments.GetHashCode(); - if (this.CardAccountNbr != null) - hashCode = hashCode * 59 + this.CardAccountNbr.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CreditCardProcessingInfo != null) - hashCode = hashCode * 59 + this.CreditCardProcessingInfo.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocumentsToApply != null) - hashCode = hashCode * 59 + this.DocumentsToApply.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.OrdersToApply != null) - hashCode = hashCode * 59 + this.OrdersToApply.GetHashCode(); - if (this.PaymentAmount != null) - hashCode = hashCode * 59 + this.PaymentAmount.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PaymentApplicationHistoryDetail.cs b/Default.18.200.001/Model/PaymentApplicationHistoryDetail.cs deleted file mode 100644 index 337afa6a..00000000 --- a/Default.18.200.001/Model/PaymentApplicationHistoryDetail.cs +++ /dev/null @@ -1,494 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PaymentApplicationHistoryDetail - /// - [DataContract] - public partial class PaymentApplicationHistoryDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// adjustedDocType. - /// adjustedRefNbr. - /// adjustingDocType. - /// adjustingRefNbr. - /// adjustmentNbr. - /// adjustsVAT. - /// amountPaid. - /// applicationPeriod. - /// balance. - /// balanceWriteOff. - /// batchNbr. - /// cashDiscountBalance. - /// cashDiscountDate. - /// cashDiscountTaken. - /// currencyID. - /// customer. - /// customerOrder. - /// date. - /// description. - /// displayDocType. - /// displayRefNbr. - /// dueDate. - /// postPeriod. - /// vATCreditMemo. - public PaymentApplicationHistoryDetail(StringValue adjustedDocType = default(StringValue), StringValue adjustedRefNbr = default(StringValue), StringValue adjustingDocType = default(StringValue), StringValue adjustingRefNbr = default(StringValue), IntValue adjustmentNbr = default(IntValue), BooleanValue adjustsVAT = default(BooleanValue), DecimalValue amountPaid = default(DecimalValue), StringValue applicationPeriod = default(StringValue), DecimalValue balance = default(DecimalValue), DecimalValue balanceWriteOff = default(DecimalValue), StringValue batchNbr = default(StringValue), DecimalValue cashDiscountBalance = default(DecimalValue), DateTimeValue cashDiscountDate = default(DateTimeValue), DecimalValue cashDiscountTaken = default(DecimalValue), StringValue currencyID = default(StringValue), StringValue customer = default(StringValue), StringValue customerOrder = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), StringValue displayDocType = default(StringValue), StringValue displayRefNbr = default(StringValue), DateTimeValue dueDate = default(DateTimeValue), StringValue postPeriod = default(StringValue), StringValue vATCreditMemo = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AdjustedDocType = adjustedDocType; - this.AdjustedRefNbr = adjustedRefNbr; - this.AdjustingDocType = adjustingDocType; - this.AdjustingRefNbr = adjustingRefNbr; - this.AdjustmentNbr = adjustmentNbr; - this.AdjustsVAT = adjustsVAT; - this.AmountPaid = amountPaid; - this.ApplicationPeriod = applicationPeriod; - this.Balance = balance; - this.BalanceWriteOff = balanceWriteOff; - this.BatchNbr = batchNbr; - this.CashDiscountBalance = cashDiscountBalance; - this.CashDiscountDate = cashDiscountDate; - this.CashDiscountTaken = cashDiscountTaken; - this.CurrencyID = currencyID; - this.Customer = customer; - this.CustomerOrder = customerOrder; - this.Date = date; - this.Description = description; - this.DisplayDocType = displayDocType; - this.DisplayRefNbr = displayRefNbr; - this.DueDate = dueDate; - this.PostPeriod = postPeriod; - this.VATCreditMemo = vATCreditMemo; - } - - /// - /// Gets or Sets AdjustedDocType - /// - [DataMember(Name="AdjustedDocType", EmitDefaultValue=false)] - public StringValue AdjustedDocType { get; set; } - - /// - /// Gets or Sets AdjustedRefNbr - /// - [DataMember(Name="AdjustedRefNbr", EmitDefaultValue=false)] - public StringValue AdjustedRefNbr { get; set; } - - /// - /// Gets or Sets AdjustingDocType - /// - [DataMember(Name="AdjustingDocType", EmitDefaultValue=false)] - public StringValue AdjustingDocType { get; set; } - - /// - /// Gets or Sets AdjustingRefNbr - /// - [DataMember(Name="AdjustingRefNbr", EmitDefaultValue=false)] - public StringValue AdjustingRefNbr { get; set; } - - /// - /// Gets or Sets AdjustmentNbr - /// - [DataMember(Name="AdjustmentNbr", EmitDefaultValue=false)] - public IntValue AdjustmentNbr { get; set; } - - /// - /// Gets or Sets AdjustsVAT - /// - [DataMember(Name="AdjustsVAT", EmitDefaultValue=false)] - public BooleanValue AdjustsVAT { get; set; } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets ApplicationPeriod - /// - [DataMember(Name="ApplicationPeriod", EmitDefaultValue=false)] - public StringValue ApplicationPeriod { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets BalanceWriteOff - /// - [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] - public DecimalValue BalanceWriteOff { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets CashDiscountBalance - /// - [DataMember(Name="CashDiscountBalance", EmitDefaultValue=false)] - public DecimalValue CashDiscountBalance { get; set; } - - /// - /// Gets or Sets CashDiscountDate - /// - [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] - public DateTimeValue CashDiscountDate { get; set; } - - /// - /// Gets or Sets CashDiscountTaken - /// - [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] - public DecimalValue CashDiscountTaken { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DisplayDocType - /// - [DataMember(Name="DisplayDocType", EmitDefaultValue=false)] - public StringValue DisplayDocType { get; set; } - - /// - /// Gets or Sets DisplayRefNbr - /// - [DataMember(Name="DisplayRefNbr", EmitDefaultValue=false)] - public StringValue DisplayRefNbr { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets VATCreditMemo - /// - [DataMember(Name="VATCreditMemo", EmitDefaultValue=false)] - public StringValue VATCreditMemo { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentApplicationHistoryDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AdjustedDocType: ").Append(AdjustedDocType).Append("\n"); - sb.Append(" AdjustedRefNbr: ").Append(AdjustedRefNbr).Append("\n"); - sb.Append(" AdjustingDocType: ").Append(AdjustingDocType).Append("\n"); - sb.Append(" AdjustingRefNbr: ").Append(AdjustingRefNbr).Append("\n"); - sb.Append(" AdjustmentNbr: ").Append(AdjustmentNbr).Append("\n"); - sb.Append(" AdjustsVAT: ").Append(AdjustsVAT).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" ApplicationPeriod: ").Append(ApplicationPeriod).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" BalanceWriteOff: ").Append(BalanceWriteOff).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" CashDiscountBalance: ").Append(CashDiscountBalance).Append("\n"); - sb.Append(" CashDiscountDate: ").Append(CashDiscountDate).Append("\n"); - sb.Append(" CashDiscountTaken: ").Append(CashDiscountTaken).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DisplayDocType: ").Append(DisplayDocType).Append("\n"); - sb.Append(" DisplayRefNbr: ").Append(DisplayRefNbr).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" VATCreditMemo: ").Append(VATCreditMemo).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentApplicationHistoryDetail); - } - - /// - /// Returns true if PaymentApplicationHistoryDetail instances are equal - /// - /// Instance of PaymentApplicationHistoryDetail to be compared - /// Boolean - public bool Equals(PaymentApplicationHistoryDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AdjustedDocType == input.AdjustedDocType || - (this.AdjustedDocType != null && - this.AdjustedDocType.Equals(input.AdjustedDocType)) - ) && base.Equals(input) && - ( - this.AdjustedRefNbr == input.AdjustedRefNbr || - (this.AdjustedRefNbr != null && - this.AdjustedRefNbr.Equals(input.AdjustedRefNbr)) - ) && base.Equals(input) && - ( - this.AdjustingDocType == input.AdjustingDocType || - (this.AdjustingDocType != null && - this.AdjustingDocType.Equals(input.AdjustingDocType)) - ) && base.Equals(input) && - ( - this.AdjustingRefNbr == input.AdjustingRefNbr || - (this.AdjustingRefNbr != null && - this.AdjustingRefNbr.Equals(input.AdjustingRefNbr)) - ) && base.Equals(input) && - ( - this.AdjustmentNbr == input.AdjustmentNbr || - (this.AdjustmentNbr != null && - this.AdjustmentNbr.Equals(input.AdjustmentNbr)) - ) && base.Equals(input) && - ( - this.AdjustsVAT == input.AdjustsVAT || - (this.AdjustsVAT != null && - this.AdjustsVAT.Equals(input.AdjustsVAT)) - ) && base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.ApplicationPeriod == input.ApplicationPeriod || - (this.ApplicationPeriod != null && - this.ApplicationPeriod.Equals(input.ApplicationPeriod)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.BalanceWriteOff == input.BalanceWriteOff || - (this.BalanceWriteOff != null && - this.BalanceWriteOff.Equals(input.BalanceWriteOff)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.CashDiscountBalance == input.CashDiscountBalance || - (this.CashDiscountBalance != null && - this.CashDiscountBalance.Equals(input.CashDiscountBalance)) - ) && base.Equals(input) && - ( - this.CashDiscountDate == input.CashDiscountDate || - (this.CashDiscountDate != null && - this.CashDiscountDate.Equals(input.CashDiscountDate)) - ) && base.Equals(input) && - ( - this.CashDiscountTaken == input.CashDiscountTaken || - (this.CashDiscountTaken != null && - this.CashDiscountTaken.Equals(input.CashDiscountTaken)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DisplayDocType == input.DisplayDocType || - (this.DisplayDocType != null && - this.DisplayDocType.Equals(input.DisplayDocType)) - ) && base.Equals(input) && - ( - this.DisplayRefNbr == input.DisplayRefNbr || - (this.DisplayRefNbr != null && - this.DisplayRefNbr.Equals(input.DisplayRefNbr)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.VATCreditMemo == input.VATCreditMemo || - (this.VATCreditMemo != null && - this.VATCreditMemo.Equals(input.VATCreditMemo)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AdjustedDocType != null) - hashCode = hashCode * 59 + this.AdjustedDocType.GetHashCode(); - if (this.AdjustedRefNbr != null) - hashCode = hashCode * 59 + this.AdjustedRefNbr.GetHashCode(); - if (this.AdjustingDocType != null) - hashCode = hashCode * 59 + this.AdjustingDocType.GetHashCode(); - if (this.AdjustingRefNbr != null) - hashCode = hashCode * 59 + this.AdjustingRefNbr.GetHashCode(); - if (this.AdjustmentNbr != null) - hashCode = hashCode * 59 + this.AdjustmentNbr.GetHashCode(); - if (this.AdjustsVAT != null) - hashCode = hashCode * 59 + this.AdjustsVAT.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.ApplicationPeriod != null) - hashCode = hashCode * 59 + this.ApplicationPeriod.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.BalanceWriteOff != null) - hashCode = hashCode * 59 + this.BalanceWriteOff.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.CashDiscountBalance != null) - hashCode = hashCode * 59 + this.CashDiscountBalance.GetHashCode(); - if (this.CashDiscountDate != null) - hashCode = hashCode * 59 + this.CashDiscountDate.GetHashCode(); - if (this.CashDiscountTaken != null) - hashCode = hashCode * 59 + this.CashDiscountTaken.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DisplayDocType != null) - hashCode = hashCode * 59 + this.DisplayDocType.GetHashCode(); - if (this.DisplayRefNbr != null) - hashCode = hashCode * 59 + this.DisplayRefNbr.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.VATCreditMemo != null) - hashCode = hashCode * 59 + this.VATCreditMemo.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PaymentDetail.cs b/Default.18.200.001/Model/PaymentDetail.cs deleted file mode 100644 index d7a0b8c9..00000000 --- a/Default.18.200.001/Model/PaymentDetail.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PaymentDetail - /// - [DataContract] - public partial class PaymentDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balanceWriteOff. - /// customerOrder. - /// description. - /// docType. - /// referenceNbr. - /// writeOffReasonCode. - public PaymentDetail(DecimalValue amountPaid = default(DecimalValue), DecimalValue balanceWriteOff = default(DecimalValue), StringValue customerOrder = default(StringValue), StringValue description = default(StringValue), StringValue docType = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue writeOffReasonCode = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.BalanceWriteOff = balanceWriteOff; - this.CustomerOrder = customerOrder; - this.Description = description; - this.DocType = docType; - this.ReferenceNbr = referenceNbr; - this.WriteOffReasonCode = writeOffReasonCode; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets BalanceWriteOff - /// - [DataMember(Name="BalanceWriteOff", EmitDefaultValue=false)] - public DecimalValue BalanceWriteOff { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets WriteOffReasonCode - /// - [DataMember(Name="WriteOffReasonCode", EmitDefaultValue=false)] - public StringValue WriteOffReasonCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" BalanceWriteOff: ").Append(BalanceWriteOff).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" WriteOffReasonCode: ").Append(WriteOffReasonCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentDetail); - } - - /// - /// Returns true if PaymentDetail instances are equal - /// - /// Instance of PaymentDetail to be compared - /// Boolean - public bool Equals(PaymentDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.BalanceWriteOff == input.BalanceWriteOff || - (this.BalanceWriteOff != null && - this.BalanceWriteOff.Equals(input.BalanceWriteOff)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.WriteOffReasonCode == input.WriteOffReasonCode || - (this.WriteOffReasonCode != null && - this.WriteOffReasonCode.Equals(input.WriteOffReasonCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.BalanceWriteOff != null) - hashCode = hashCode * 59 + this.BalanceWriteOff.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.WriteOffReasonCode != null) - hashCode = hashCode * 59 + this.WriteOffReasonCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PaymentMethod.cs b/Default.18.200.001/Model/PaymentMethod.cs deleted file mode 100644 index 2175d8e6..00000000 --- a/Default.18.200.001/Model/PaymentMethod.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PaymentMethod - /// - [DataContract] - public partial class PaymentMethod : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// allowedCashAccounts. - /// createdDateTime. - /// description. - /// integratedProcessing. - /// lastModifiedDateTime. - /// meansOfPayment. - /// paymentMethodID. - /// processingCenters. - /// requireRemittanceInformationforCashAccount. - /// useInAP. - /// useInAR. - public PaymentMethod(BooleanValue active = default(BooleanValue), IEnumerable allowedCashAccounts = default(IEnumerable), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), BooleanValue integratedProcessing = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue meansOfPayment = default(StringValue), StringValue paymentMethodID = default(StringValue), IEnumerable processingCenters = default(IEnumerable), BooleanValue requireRemittanceInformationforCashAccount = default(BooleanValue), BooleanValue useInAP = default(BooleanValue), BooleanValue useInAR = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AllowedCashAccounts = allowedCashAccounts; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.IntegratedProcessing = integratedProcessing; - this.LastModifiedDateTime = lastModifiedDateTime; - this.MeansOfPayment = meansOfPayment; - this.PaymentMethodID = paymentMethodID; - this.ProcessingCenters = processingCenters; - this.RequireRemittanceInformationforCashAccount = requireRemittanceInformationforCashAccount; - this.UseInAP = useInAP; - this.UseInAR = useInAR; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AllowedCashAccounts - /// - [DataMember(Name="AllowedCashAccounts", EmitDefaultValue=false)] - public IEnumerable AllowedCashAccounts { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets IntegratedProcessing - /// - [DataMember(Name="IntegratedProcessing", EmitDefaultValue=false)] - public BooleanValue IntegratedProcessing { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets MeansOfPayment - /// - [DataMember(Name="MeansOfPayment", EmitDefaultValue=false)] - public StringValue MeansOfPayment { get; set; } - - /// - /// Gets or Sets PaymentMethodID - /// - [DataMember(Name="PaymentMethodID", EmitDefaultValue=false)] - public StringValue PaymentMethodID { get; set; } - - /// - /// Gets or Sets ProcessingCenters - /// - [DataMember(Name="ProcessingCenters", EmitDefaultValue=false)] - public IEnumerable ProcessingCenters { get; set; } - - /// - /// Gets or Sets RequireRemittanceInformationforCashAccount - /// - [DataMember(Name="RequireRemittanceInformationforCashAccount", EmitDefaultValue=false)] - public BooleanValue RequireRemittanceInformationforCashAccount { get; set; } - - /// - /// Gets or Sets UseInAP - /// - [DataMember(Name="UseInAP", EmitDefaultValue=false)] - public BooleanValue UseInAP { get; set; } - - /// - /// Gets or Sets UseInAR - /// - [DataMember(Name="UseInAR", EmitDefaultValue=false)] - public BooleanValue UseInAR { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentMethod {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AllowedCashAccounts: ").Append(AllowedCashAccounts).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IntegratedProcessing: ").Append(IntegratedProcessing).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" MeansOfPayment: ").Append(MeansOfPayment).Append("\n"); - sb.Append(" PaymentMethodID: ").Append(PaymentMethodID).Append("\n"); - sb.Append(" ProcessingCenters: ").Append(ProcessingCenters).Append("\n"); - sb.Append(" RequireRemittanceInformationforCashAccount: ").Append(RequireRemittanceInformationforCashAccount).Append("\n"); - sb.Append(" UseInAP: ").Append(UseInAP).Append("\n"); - sb.Append(" UseInAR: ").Append(UseInAR).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentMethod); - } - - /// - /// Returns true if PaymentMethod instances are equal - /// - /// Instance of PaymentMethod to be compared - /// Boolean - public bool Equals(PaymentMethod input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AllowedCashAccounts == input.AllowedCashAccounts || - this.AllowedCashAccounts != null && - this.AllowedCashAccounts.SequenceEqual(input.AllowedCashAccounts) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.IntegratedProcessing == input.IntegratedProcessing || - (this.IntegratedProcessing != null && - this.IntegratedProcessing.Equals(input.IntegratedProcessing)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.MeansOfPayment == input.MeansOfPayment || - (this.MeansOfPayment != null && - this.MeansOfPayment.Equals(input.MeansOfPayment)) - ) && base.Equals(input) && - ( - this.PaymentMethodID == input.PaymentMethodID || - (this.PaymentMethodID != null && - this.PaymentMethodID.Equals(input.PaymentMethodID)) - ) && base.Equals(input) && - ( - this.ProcessingCenters == input.ProcessingCenters || - this.ProcessingCenters != null && - this.ProcessingCenters.SequenceEqual(input.ProcessingCenters) - ) && base.Equals(input) && - ( - this.RequireRemittanceInformationforCashAccount == input.RequireRemittanceInformationforCashAccount || - (this.RequireRemittanceInformationforCashAccount != null && - this.RequireRemittanceInformationforCashAccount.Equals(input.RequireRemittanceInformationforCashAccount)) - ) && base.Equals(input) && - ( - this.UseInAP == input.UseInAP || - (this.UseInAP != null && - this.UseInAP.Equals(input.UseInAP)) - ) && base.Equals(input) && - ( - this.UseInAR == input.UseInAR || - (this.UseInAR != null && - this.UseInAR.Equals(input.UseInAR)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AllowedCashAccounts != null) - hashCode = hashCode * 59 + this.AllowedCashAccounts.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.IntegratedProcessing != null) - hashCode = hashCode * 59 + this.IntegratedProcessing.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.MeansOfPayment != null) - hashCode = hashCode * 59 + this.MeansOfPayment.GetHashCode(); - if (this.PaymentMethodID != null) - hashCode = hashCode * 59 + this.PaymentMethodID.GetHashCode(); - if (this.ProcessingCenters != null) - hashCode = hashCode * 59 + this.ProcessingCenters.GetHashCode(); - if (this.RequireRemittanceInformationforCashAccount != null) - hashCode = hashCode * 59 + this.RequireRemittanceInformationforCashAccount.GetHashCode(); - if (this.UseInAP != null) - hashCode = hashCode * 59 + this.UseInAP.GetHashCode(); - if (this.UseInAR != null) - hashCode = hashCode * 59 + this.UseInAR.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs b/Default.18.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs deleted file mode 100644 index 167fc6f8..00000000 --- a/Default.18.200.001/Model/PaymentMethodAllowedCashAccountDetail.cs +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PaymentMethodAllowedCashAccountDetail - /// - [DataContract] - public partial class PaymentMethodAllowedCashAccountDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aPDefault. - /// aPLastRefNbr. - /// aPSuggestNextNbr. - /// aRDefault. - /// aRDefaultForRefund. - /// aRLastRefNbr. - /// aRSuggestNextNbr. - /// batchLastRefNbr. - /// branch. - /// cashAccount. - /// description. - /// paymentMethod. - /// useInAP. - /// useInAR. - public PaymentMethodAllowedCashAccountDetail(BooleanValue aPDefault = default(BooleanValue), StringValue aPLastRefNbr = default(StringValue), BooleanValue aPSuggestNextNbr = default(BooleanValue), BooleanValue aRDefault = default(BooleanValue), BooleanValue aRDefaultForRefund = default(BooleanValue), StringValue aRLastRefNbr = default(StringValue), BooleanValue aRSuggestNextNbr = default(BooleanValue), StringValue batchLastRefNbr = default(StringValue), StringValue branch = default(StringValue), StringValue cashAccount = default(StringValue), StringValue description = default(StringValue), StringValue paymentMethod = default(StringValue), BooleanValue useInAP = default(BooleanValue), BooleanValue useInAR = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.APDefault = aPDefault; - this.APLastRefNbr = aPLastRefNbr; - this.APSuggestNextNbr = aPSuggestNextNbr; - this.ARDefault = aRDefault; - this.ARDefaultForRefund = aRDefaultForRefund; - this.ARLastRefNbr = aRLastRefNbr; - this.ARSuggestNextNbr = aRSuggestNextNbr; - this.BatchLastRefNbr = batchLastRefNbr; - this.Branch = branch; - this.CashAccount = cashAccount; - this.Description = description; - this.PaymentMethod = paymentMethod; - this.UseInAP = useInAP; - this.UseInAR = useInAR; - } - - /// - /// Gets or Sets APDefault - /// - [DataMember(Name="APDefault", EmitDefaultValue=false)] - public BooleanValue APDefault { get; set; } - - /// - /// Gets or Sets APLastRefNbr - /// - [DataMember(Name="APLastRefNbr", EmitDefaultValue=false)] - public StringValue APLastRefNbr { get; set; } - - /// - /// Gets or Sets APSuggestNextNbr - /// - [DataMember(Name="APSuggestNextNbr", EmitDefaultValue=false)] - public BooleanValue APSuggestNextNbr { get; set; } - - /// - /// Gets or Sets ARDefault - /// - [DataMember(Name="ARDefault", EmitDefaultValue=false)] - public BooleanValue ARDefault { get; set; } - - /// - /// Gets or Sets ARDefaultForRefund - /// - [DataMember(Name="ARDefaultForRefund", EmitDefaultValue=false)] - public BooleanValue ARDefaultForRefund { get; set; } - - /// - /// Gets or Sets ARLastRefNbr - /// - [DataMember(Name="ARLastRefNbr", EmitDefaultValue=false)] - public StringValue ARLastRefNbr { get; set; } - - /// - /// Gets or Sets ARSuggestNextNbr - /// - [DataMember(Name="ARSuggestNextNbr", EmitDefaultValue=false)] - public BooleanValue ARSuggestNextNbr { get; set; } - - /// - /// Gets or Sets BatchLastRefNbr - /// - [DataMember(Name="BatchLastRefNbr", EmitDefaultValue=false)] - public StringValue BatchLastRefNbr { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets UseInAP - /// - [DataMember(Name="UseInAP", EmitDefaultValue=false)] - public BooleanValue UseInAP { get; set; } - - /// - /// Gets or Sets UseInAR - /// - [DataMember(Name="UseInAR", EmitDefaultValue=false)] - public BooleanValue UseInAR { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentMethodAllowedCashAccountDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" APDefault: ").Append(APDefault).Append("\n"); - sb.Append(" APLastRefNbr: ").Append(APLastRefNbr).Append("\n"); - sb.Append(" APSuggestNextNbr: ").Append(APSuggestNextNbr).Append("\n"); - sb.Append(" ARDefault: ").Append(ARDefault).Append("\n"); - sb.Append(" ARDefaultForRefund: ").Append(ARDefaultForRefund).Append("\n"); - sb.Append(" ARLastRefNbr: ").Append(ARLastRefNbr).Append("\n"); - sb.Append(" ARSuggestNextNbr: ").Append(ARSuggestNextNbr).Append("\n"); - sb.Append(" BatchLastRefNbr: ").Append(BatchLastRefNbr).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" UseInAP: ").Append(UseInAP).Append("\n"); - sb.Append(" UseInAR: ").Append(UseInAR).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentMethodAllowedCashAccountDetail); - } - - /// - /// Returns true if PaymentMethodAllowedCashAccountDetail instances are equal - /// - /// Instance of PaymentMethodAllowedCashAccountDetail to be compared - /// Boolean - public bool Equals(PaymentMethodAllowedCashAccountDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.APDefault == input.APDefault || - (this.APDefault != null && - this.APDefault.Equals(input.APDefault)) - ) && base.Equals(input) && - ( - this.APLastRefNbr == input.APLastRefNbr || - (this.APLastRefNbr != null && - this.APLastRefNbr.Equals(input.APLastRefNbr)) - ) && base.Equals(input) && - ( - this.APSuggestNextNbr == input.APSuggestNextNbr || - (this.APSuggestNextNbr != null && - this.APSuggestNextNbr.Equals(input.APSuggestNextNbr)) - ) && base.Equals(input) && - ( - this.ARDefault == input.ARDefault || - (this.ARDefault != null && - this.ARDefault.Equals(input.ARDefault)) - ) && base.Equals(input) && - ( - this.ARDefaultForRefund == input.ARDefaultForRefund || - (this.ARDefaultForRefund != null && - this.ARDefaultForRefund.Equals(input.ARDefaultForRefund)) - ) && base.Equals(input) && - ( - this.ARLastRefNbr == input.ARLastRefNbr || - (this.ARLastRefNbr != null && - this.ARLastRefNbr.Equals(input.ARLastRefNbr)) - ) && base.Equals(input) && - ( - this.ARSuggestNextNbr == input.ARSuggestNextNbr || - (this.ARSuggestNextNbr != null && - this.ARSuggestNextNbr.Equals(input.ARSuggestNextNbr)) - ) && base.Equals(input) && - ( - this.BatchLastRefNbr == input.BatchLastRefNbr || - (this.BatchLastRefNbr != null && - this.BatchLastRefNbr.Equals(input.BatchLastRefNbr)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.UseInAP == input.UseInAP || - (this.UseInAP != null && - this.UseInAP.Equals(input.UseInAP)) - ) && base.Equals(input) && - ( - this.UseInAR == input.UseInAR || - (this.UseInAR != null && - this.UseInAR.Equals(input.UseInAR)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.APDefault != null) - hashCode = hashCode * 59 + this.APDefault.GetHashCode(); - if (this.APLastRefNbr != null) - hashCode = hashCode * 59 + this.APLastRefNbr.GetHashCode(); - if (this.APSuggestNextNbr != null) - hashCode = hashCode * 59 + this.APSuggestNextNbr.GetHashCode(); - if (this.ARDefault != null) - hashCode = hashCode * 59 + this.ARDefault.GetHashCode(); - if (this.ARDefaultForRefund != null) - hashCode = hashCode * 59 + this.ARDefaultForRefund.GetHashCode(); - if (this.ARLastRefNbr != null) - hashCode = hashCode * 59 + this.ARLastRefNbr.GetHashCode(); - if (this.ARSuggestNextNbr != null) - hashCode = hashCode * 59 + this.ARSuggestNextNbr.GetHashCode(); - if (this.BatchLastRefNbr != null) - hashCode = hashCode * 59 + this.BatchLastRefNbr.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.UseInAP != null) - hashCode = hashCode * 59 + this.UseInAP.GetHashCode(); - if (this.UseInAR != null) - hashCode = hashCode * 59 + this.UseInAR.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PaymentMethodProcessingCenterDetail.cs b/Default.18.200.001/Model/PaymentMethodProcessingCenterDetail.cs deleted file mode 100644 index 87d16c89..00000000 --- a/Default.18.200.001/Model/PaymentMethodProcessingCenterDetail.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PaymentMethodProcessingCenterDetail - /// - [DataContract] - public partial class PaymentMethodProcessingCenterDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// _default. - /// paymentMethod. - /// procCenterID. - public PaymentMethodProcessingCenterDetail(BooleanValue active = default(BooleanValue), BooleanValue _default = default(BooleanValue), StringValue paymentMethod = default(StringValue), StringValue procCenterID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Default = _default; - this.PaymentMethod = paymentMethod; - this.ProcCenterID = procCenterID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Default - /// - [DataMember(Name="Default", EmitDefaultValue=false)] - public BooleanValue Default { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets ProcCenterID - /// - [DataMember(Name="ProcCenterID", EmitDefaultValue=false)] - public StringValue ProcCenterID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentMethodProcessingCenterDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" ProcCenterID: ").Append(ProcCenterID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentMethodProcessingCenterDetail); - } - - /// - /// Returns true if PaymentMethodProcessingCenterDetail instances are equal - /// - /// Instance of PaymentMethodProcessingCenterDetail to be compared - /// Boolean - public bool Equals(PaymentMethodProcessingCenterDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.ProcCenterID == input.ProcCenterID || - (this.ProcCenterID != null && - this.ProcCenterID.Equals(input.ProcCenterID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.ProcCenterID != null) - hashCode = hashCode * 59 + this.ProcCenterID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PaymentOrderDetail.cs b/Default.18.200.001/Model/PaymentOrderDetail.cs deleted file mode 100644 index 4ce10d5c..00000000 --- a/Default.18.200.001/Model/PaymentOrderDetail.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PaymentOrderDetail - /// - [DataContract] - public partial class PaymentOrderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// appliedToOrder. - /// orderNbr. - /// orderType. - public PaymentOrderDetail(DecimalValue appliedToOrder = default(DecimalValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AppliedToOrder = appliedToOrder; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - } - - /// - /// Gets or Sets AppliedToOrder - /// - [DataMember(Name="AppliedToOrder", EmitDefaultValue=false)] - public DecimalValue AppliedToOrder { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PaymentOrderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AppliedToOrder: ").Append(AppliedToOrder).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PaymentOrderDetail); - } - - /// - /// Returns true if PaymentOrderDetail instances are equal - /// - /// Instance of PaymentOrderDetail to be compared - /// Boolean - public bool Equals(PaymentOrderDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AppliedToOrder == input.AppliedToOrder || - (this.AppliedToOrder != null && - this.AppliedToOrder.Equals(input.AppliedToOrder)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AppliedToOrder != null) - hashCode = hashCode * 59 + this.AppliedToOrder.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Payments.cs b/Default.18.200.001/Model/Payments.cs deleted file mode 100644 index d1568687..00000000 --- a/Default.18.200.001/Model/Payments.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Payments - /// - [DataContract] - public partial class Payments : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// appliedToOrder. - /// balance. - /// cashAccount. - /// currencyID. - /// docType. - /// orderNbr. - /// orderType. - /// paymentAmount. - /// paymentMethod. - /// paymentRef. - /// referenceNbr. - /// status. - /// transferredtoInvoice. - public Payments(DecimalValue appliedToOrder = default(DecimalValue), DecimalValue balance = default(DecimalValue), StringValue cashAccount = default(StringValue), StringValue currencyID = default(StringValue), StringValue docType = default(StringValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), DecimalValue paymentAmount = default(DecimalValue), StringValue paymentMethod = default(StringValue), StringValue paymentRef = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue transferredtoInvoice = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AppliedToOrder = appliedToOrder; - this.Balance = balance; - this.CashAccount = cashAccount; - this.CurrencyID = currencyID; - this.DocType = docType; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.PaymentAmount = paymentAmount; - this.PaymentMethod = paymentMethod; - this.PaymentRef = paymentRef; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TransferredtoInvoice = transferredtoInvoice; - } - - /// - /// Gets or Sets AppliedToOrder - /// - [DataMember(Name="AppliedToOrder", EmitDefaultValue=false)] - public DecimalValue AppliedToOrder { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets PaymentAmount - /// - [DataMember(Name="PaymentAmount", EmitDefaultValue=false)] - public DecimalValue PaymentAmount { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TransferredtoInvoice - /// - [DataMember(Name="TransferredtoInvoice", EmitDefaultValue=false)] - public DecimalValue TransferredtoInvoice { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Payments {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AppliedToOrder: ").Append(AppliedToOrder).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" PaymentAmount: ").Append(PaymentAmount).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TransferredtoInvoice: ").Append(TransferredtoInvoice).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Payments); - } - - /// - /// Returns true if Payments instances are equal - /// - /// Instance of Payments to be compared - /// Boolean - public bool Equals(Payments input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AppliedToOrder == input.AppliedToOrder || - (this.AppliedToOrder != null && - this.AppliedToOrder.Equals(input.AppliedToOrder)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.PaymentAmount == input.PaymentAmount || - (this.PaymentAmount != null && - this.PaymentAmount.Equals(input.PaymentAmount)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TransferredtoInvoice == input.TransferredtoInvoice || - (this.TransferredtoInvoice != null && - this.TransferredtoInvoice.Equals(input.TransferredtoInvoice)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AppliedToOrder != null) - hashCode = hashCode * 59 + this.AppliedToOrder.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.PaymentAmount != null) - hashCode = hashCode * 59 + this.PaymentAmount.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TransferredtoInvoice != null) - hashCode = hashCode * 59 + this.TransferredtoInvoice.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PhysicalInventoryCount.cs b/Default.18.200.001/Model/PhysicalInventoryCount.cs deleted file mode 100644 index b4b2ff80..00000000 --- a/Default.18.200.001/Model/PhysicalInventoryCount.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PhysicalInventoryCount - /// - [DataContract] - public partial class PhysicalInventoryCount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// details. - /// inventoryID. - /// location. - /// lotSerialNbr. - /// referenceNbr. - /// subitem. - public PhysicalInventoryCount(IEnumerable details = default(IEnumerable), StringValue inventoryID = default(StringValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue subitem = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Details = details; - this.InventoryID = inventoryID; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.ReferenceNbr = referenceNbr; - this.Subitem = subitem; - } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PhysicalInventoryCount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PhysicalInventoryCount); - } - - /// - /// Returns true if PhysicalInventoryCount instances are equal - /// - /// Instance of PhysicalInventoryCount to be compared - /// Boolean - public bool Equals(PhysicalInventoryCount input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PhysicalInventoryCountDetail.cs b/Default.18.200.001/Model/PhysicalInventoryCountDetail.cs deleted file mode 100644 index f1eb3343..00000000 --- a/Default.18.200.001/Model/PhysicalInventoryCountDetail.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PhysicalInventoryCountDetail - /// - [DataContract] - public partial class PhysicalInventoryCountDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// bookQty. - /// description. - /// inventoryID. - /// lineNbr. - /// location. - /// lotSerialNbr. - /// physicalQty. - /// referenceNbr. - /// subitem. - public PhysicalInventoryCountDetail(DecimalValue bookQty = default(DecimalValue), StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue physicalQty = default(DecimalValue), StringValue referenceNbr = default(StringValue), StringValue subitem = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BookQty = bookQty; - this.Description = description; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.PhysicalQty = physicalQty; - this.ReferenceNbr = referenceNbr; - this.Subitem = subitem; - } - - /// - /// Gets or Sets BookQty - /// - [DataMember(Name="BookQty", EmitDefaultValue=false)] - public DecimalValue BookQty { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets PhysicalQty - /// - [DataMember(Name="PhysicalQty", EmitDefaultValue=false)] - public DecimalValue PhysicalQty { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PhysicalInventoryCountDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BookQty: ").Append(BookQty).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" PhysicalQty: ").Append(PhysicalQty).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PhysicalInventoryCountDetail); - } - - /// - /// Returns true if PhysicalInventoryCountDetail instances are equal - /// - /// Instance of PhysicalInventoryCountDetail to be compared - /// Boolean - public bool Equals(PhysicalInventoryCountDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BookQty == input.BookQty || - (this.BookQty != null && - this.BookQty.Equals(input.BookQty)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.PhysicalQty == input.PhysicalQty || - (this.PhysicalQty != null && - this.PhysicalQty.Equals(input.PhysicalQty)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BookQty != null) - hashCode = hashCode * 59 + this.BookQty.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.PhysicalQty != null) - hashCode = hashCode * 59 + this.PhysicalQty.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PhysicalInventoryReview.cs b/Default.18.200.001/Model/PhysicalInventoryReview.cs deleted file mode 100644 index ed5fd9f6..00000000 --- a/Default.18.200.001/Model/PhysicalInventoryReview.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PhysicalInventoryReview - /// - [DataContract] - public partial class PhysicalInventoryReview : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// description. - /// details. - /// freezeDate. - /// referenceNbr. - /// status. - /// totalPhysicalQty. - /// totalVarianceCost. - /// totalVarianceQty. - /// typeID. - /// warehouseID. - public PhysicalInventoryReview(DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), DateTimeValue freezeDate = default(DateTimeValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalPhysicalQty = default(DecimalValue), DecimalValue totalVarianceCost = default(DecimalValue), DecimalValue totalVarianceQty = default(DecimalValue), StringValue typeID = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.Details = details; - this.FreezeDate = freezeDate; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TotalPhysicalQty = totalPhysicalQty; - this.TotalVarianceCost = totalVarianceCost; - this.TotalVarianceQty = totalVarianceQty; - this.TypeID = typeID; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets FreezeDate - /// - [DataMember(Name="FreezeDate", EmitDefaultValue=false)] - public DateTimeValue FreezeDate { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TotalPhysicalQty - /// - [DataMember(Name="TotalPhysicalQty", EmitDefaultValue=false)] - public DecimalValue TotalPhysicalQty { get; set; } - - /// - /// Gets or Sets TotalVarianceCost - /// - [DataMember(Name="TotalVarianceCost", EmitDefaultValue=false)] - public DecimalValue TotalVarianceCost { get; set; } - - /// - /// Gets or Sets TotalVarianceQty - /// - [DataMember(Name="TotalVarianceQty", EmitDefaultValue=false)] - public DecimalValue TotalVarianceQty { get; set; } - - /// - /// Gets or Sets TypeID - /// - [DataMember(Name="TypeID", EmitDefaultValue=false)] - public StringValue TypeID { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PhysicalInventoryReview {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" FreezeDate: ").Append(FreezeDate).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalPhysicalQty: ").Append(TotalPhysicalQty).Append("\n"); - sb.Append(" TotalVarianceCost: ").Append(TotalVarianceCost).Append("\n"); - sb.Append(" TotalVarianceQty: ").Append(TotalVarianceQty).Append("\n"); - sb.Append(" TypeID: ").Append(TypeID).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PhysicalInventoryReview); - } - - /// - /// Returns true if PhysicalInventoryReview instances are equal - /// - /// Instance of PhysicalInventoryReview to be compared - /// Boolean - public bool Equals(PhysicalInventoryReview input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.FreezeDate == input.FreezeDate || - (this.FreezeDate != null && - this.FreezeDate.Equals(input.FreezeDate)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalPhysicalQty == input.TotalPhysicalQty || - (this.TotalPhysicalQty != null && - this.TotalPhysicalQty.Equals(input.TotalPhysicalQty)) - ) && base.Equals(input) && - ( - this.TotalVarianceCost == input.TotalVarianceCost || - (this.TotalVarianceCost != null && - this.TotalVarianceCost.Equals(input.TotalVarianceCost)) - ) && base.Equals(input) && - ( - this.TotalVarianceQty == input.TotalVarianceQty || - (this.TotalVarianceQty != null && - this.TotalVarianceQty.Equals(input.TotalVarianceQty)) - ) && base.Equals(input) && - ( - this.TypeID == input.TypeID || - (this.TypeID != null && - this.TypeID.Equals(input.TypeID)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.FreezeDate != null) - hashCode = hashCode * 59 + this.FreezeDate.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalPhysicalQty != null) - hashCode = hashCode * 59 + this.TotalPhysicalQty.GetHashCode(); - if (this.TotalVarianceCost != null) - hashCode = hashCode * 59 + this.TotalVarianceCost.GetHashCode(); - if (this.TotalVarianceQty != null) - hashCode = hashCode * 59 + this.TotalVarianceQty.GetHashCode(); - if (this.TypeID != null) - hashCode = hashCode * 59 + this.TypeID.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PhysicalInventoryReviewDetail.cs b/Default.18.200.001/Model/PhysicalInventoryReviewDetail.cs deleted file mode 100644 index e55bd0c9..00000000 --- a/Default.18.200.001/Model/PhysicalInventoryReviewDetail.cs +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PhysicalInventoryReviewDetail - /// - [DataContract] - public partial class PhysicalInventoryReviewDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// bookQty. - /// description. - /// expirationDate. - /// extendedVarianceCost. - /// inventoryID. - /// lineNbr. - /// locationID. - /// lotSerialNbr. - /// physicalQty. - /// reasonCode. - /// status. - /// subitem. - /// tagNbr. - /// unitCost. - /// varianceQty. - public PhysicalInventoryReviewDetail(DecimalValue bookQty = default(DecimalValue), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), DecimalValue extendedVarianceCost = default(DecimalValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue physicalQty = default(DecimalValue), StringValue reasonCode = default(StringValue), StringValue status = default(StringValue), StringValue subitem = default(StringValue), IntValue tagNbr = default(IntValue), DecimalValue unitCost = default(DecimalValue), DecimalValue varianceQty = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BookQty = bookQty; - this.Description = description; - this.ExpirationDate = expirationDate; - this.ExtendedVarianceCost = extendedVarianceCost; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.PhysicalQty = physicalQty; - this.ReasonCode = reasonCode; - this.Status = status; - this.Subitem = subitem; - this.TagNbr = tagNbr; - this.UnitCost = unitCost; - this.VarianceQty = varianceQty; - } - - /// - /// Gets or Sets BookQty - /// - [DataMember(Name="BookQty", EmitDefaultValue=false)] - public DecimalValue BookQty { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets ExtendedVarianceCost - /// - [DataMember(Name="ExtendedVarianceCost", EmitDefaultValue=false)] - public DecimalValue ExtendedVarianceCost { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets PhysicalQty - /// - [DataMember(Name="PhysicalQty", EmitDefaultValue=false)] - public DecimalValue PhysicalQty { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets TagNbr - /// - [DataMember(Name="TagNbr", EmitDefaultValue=false)] - public IntValue TagNbr { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets VarianceQty - /// - [DataMember(Name="VarianceQty", EmitDefaultValue=false)] - public DecimalValue VarianceQty { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PhysicalInventoryReviewDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BookQty: ").Append(BookQty).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" ExtendedVarianceCost: ").Append(ExtendedVarianceCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" PhysicalQty: ").Append(PhysicalQty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TagNbr: ").Append(TagNbr).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" VarianceQty: ").Append(VarianceQty).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PhysicalInventoryReviewDetail); - } - - /// - /// Returns true if PhysicalInventoryReviewDetail instances are equal - /// - /// Instance of PhysicalInventoryReviewDetail to be compared - /// Boolean - public bool Equals(PhysicalInventoryReviewDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BookQty == input.BookQty || - (this.BookQty != null && - this.BookQty.Equals(input.BookQty)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.ExtendedVarianceCost == input.ExtendedVarianceCost || - (this.ExtendedVarianceCost != null && - this.ExtendedVarianceCost.Equals(input.ExtendedVarianceCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.PhysicalQty == input.PhysicalQty || - (this.PhysicalQty != null && - this.PhysicalQty.Equals(input.PhysicalQty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TagNbr == input.TagNbr || - (this.TagNbr != null && - this.TagNbr.Equals(input.TagNbr)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.VarianceQty == input.VarianceQty || - (this.VarianceQty != null && - this.VarianceQty.Equals(input.VarianceQty)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BookQty != null) - hashCode = hashCode * 59 + this.BookQty.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.ExtendedVarianceCost != null) - hashCode = hashCode * 59 + this.ExtendedVarianceCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.PhysicalQty != null) - hashCode = hashCode * 59 + this.PhysicalQty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TagNbr != null) - hashCode = hashCode * 59 + this.TagNbr.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.VarianceQty != null) - hashCode = hashCode * 59 + this.VarianceQty.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProFormaFinancialDetails.cs b/Default.18.200.001/Model/ProFormaFinancialDetails.cs deleted file mode 100644 index 7b86a262..00000000 --- a/Default.18.200.001/Model/ProFormaFinancialDetails.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProFormaFinancialDetails - /// - [DataContract] - public partial class ProFormaFinancialDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aRDocType. - /// aRRefNbr. - /// branch. - /// cashDiscountDate. - /// customerTaxZone. - /// customerUsageType. - /// dueDate. - /// terms. - public ProFormaFinancialDetails(StringValue aRDocType = default(StringValue), StringValue aRRefNbr = default(StringValue), StringValue branch = default(StringValue), DateTimeValue cashDiscountDate = default(DateTimeValue), StringValue customerTaxZone = default(StringValue), StringValue customerUsageType = default(StringValue), DateTimeValue dueDate = default(DateTimeValue), StringValue terms = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ARDocType = aRDocType; - this.ARRefNbr = aRRefNbr; - this.Branch = branch; - this.CashDiscountDate = cashDiscountDate; - this.CustomerTaxZone = customerTaxZone; - this.CustomerUsageType = customerUsageType; - this.DueDate = dueDate; - this.Terms = terms; - } - - /// - /// Gets or Sets ARDocType - /// - [DataMember(Name="ARDocType", EmitDefaultValue=false)] - public StringValue ARDocType { get; set; } - - /// - /// Gets or Sets ARRefNbr - /// - [DataMember(Name="ARRefNbr", EmitDefaultValue=false)] - public StringValue ARRefNbr { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CashDiscountDate - /// - [DataMember(Name="CashDiscountDate", EmitDefaultValue=false)] - public DateTimeValue CashDiscountDate { get; set; } - - /// - /// Gets or Sets CustomerTaxZone - /// - [DataMember(Name="CustomerTaxZone", EmitDefaultValue=false)] - public StringValue CustomerTaxZone { get; set; } - - /// - /// Gets or Sets CustomerUsageType - /// - [DataMember(Name="CustomerUsageType", EmitDefaultValue=false)] - public StringValue CustomerUsageType { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProFormaFinancialDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ARDocType: ").Append(ARDocType).Append("\n"); - sb.Append(" ARRefNbr: ").Append(ARRefNbr).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CashDiscountDate: ").Append(CashDiscountDate).Append("\n"); - sb.Append(" CustomerTaxZone: ").Append(CustomerTaxZone).Append("\n"); - sb.Append(" CustomerUsageType: ").Append(CustomerUsageType).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProFormaFinancialDetails); - } - - /// - /// Returns true if ProFormaFinancialDetails instances are equal - /// - /// Instance of ProFormaFinancialDetails to be compared - /// Boolean - public bool Equals(ProFormaFinancialDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ARDocType == input.ARDocType || - (this.ARDocType != null && - this.ARDocType.Equals(input.ARDocType)) - ) && base.Equals(input) && - ( - this.ARRefNbr == input.ARRefNbr || - (this.ARRefNbr != null && - this.ARRefNbr.Equals(input.ARRefNbr)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CashDiscountDate == input.CashDiscountDate || - (this.CashDiscountDate != null && - this.CashDiscountDate.Equals(input.CashDiscountDate)) - ) && base.Equals(input) && - ( - this.CustomerTaxZone == input.CustomerTaxZone || - (this.CustomerTaxZone != null && - this.CustomerTaxZone.Equals(input.CustomerTaxZone)) - ) && base.Equals(input) && - ( - this.CustomerUsageType == input.CustomerUsageType || - (this.CustomerUsageType != null && - this.CustomerUsageType.Equals(input.CustomerUsageType)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ARDocType != null) - hashCode = hashCode * 59 + this.ARDocType.GetHashCode(); - if (this.ARRefNbr != null) - hashCode = hashCode * 59 + this.ARRefNbr.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CashDiscountDate != null) - hashCode = hashCode * 59 + this.CashDiscountDate.GetHashCode(); - if (this.CustomerTaxZone != null) - hashCode = hashCode * 59 + this.CustomerTaxZone.GetHashCode(); - if (this.CustomerUsageType != null) - hashCode = hashCode * 59 + this.CustomerUsageType.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProFormaInvoice.cs b/Default.18.200.001/Model/ProFormaInvoice.cs deleted file mode 100644 index 40b3692c..00000000 --- a/Default.18.200.001/Model/ProFormaInvoice.cs +++ /dev/null @@ -1,510 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProFormaInvoice - /// - [DataContract] - public partial class ProFormaInvoice : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountDue. - /// approvalDetails. - /// billingSettings. - /// currencyID. - /// customerID. - /// description. - /// effectiveDate. - /// externalRefNbr. - /// financialDetails. - /// hold. - /// invoiceDate. - /// invoiceTotal. - /// lastModifiedDateTime. - /// location. - /// postPeriod. - /// progressBilling. - /// progressBillingTotal. - /// projectID. - /// refNbr. - /// retainageTotal. - /// status. - /// taxDetails. - /// taxTotal. - /// timeAndMaterial. - /// timeAndMaterialTotal. - public ProFormaInvoice(DecimalValue amountDue = default(DecimalValue), IEnumerable approvalDetails = default(IEnumerable), BillToSettings billingSettings = default(BillToSettings), StringValue currencyID = default(StringValue), StringValue customerID = default(StringValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), StringValue externalRefNbr = default(StringValue), ProFormaFinancialDetails financialDetails = default(ProFormaFinancialDetails), BooleanValue hold = default(BooleanValue), DateTimeValue invoiceDate = default(DateTimeValue), DecimalValue invoiceTotal = default(DecimalValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue location = default(StringValue), StringValue postPeriod = default(StringValue), IEnumerable progressBilling = default(IEnumerable), DecimalValue progressBillingTotal = default(DecimalValue), StringValue projectID = default(StringValue), StringValue refNbr = default(StringValue), DecimalValue retainageTotal = default(DecimalValue), StringValue status = default(StringValue), IEnumerable taxDetails = default(IEnumerable), DecimalValue taxTotal = default(DecimalValue), IEnumerable timeAndMaterial = default(IEnumerable), DecimalValue timeAndMaterialTotal = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountDue = amountDue; - this.ApprovalDetails = approvalDetails; - this.BillingSettings = billingSettings; - this.CurrencyID = currencyID; - this.CustomerID = customerID; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExternalRefNbr = externalRefNbr; - this.FinancialDetails = financialDetails; - this.Hold = hold; - this.InvoiceDate = invoiceDate; - this.InvoiceTotal = invoiceTotal; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Location = location; - this.PostPeriod = postPeriod; - this.ProgressBilling = progressBilling; - this.ProgressBillingTotal = progressBillingTotal; - this.ProjectID = projectID; - this.RefNbr = refNbr; - this.RetainageTotal = retainageTotal; - this.Status = status; - this.TaxDetails = taxDetails; - this.TaxTotal = taxTotal; - this.TimeAndMaterial = timeAndMaterial; - this.TimeAndMaterialTotal = timeAndMaterialTotal; - } - - /// - /// Gets or Sets AmountDue - /// - [DataMember(Name="AmountDue", EmitDefaultValue=false)] - public DecimalValue AmountDue { get; set; } - - /// - /// Gets or Sets ApprovalDetails - /// - [DataMember(Name="ApprovalDetails", EmitDefaultValue=false)] - public IEnumerable ApprovalDetails { get; set; } - - /// - /// Gets or Sets BillingSettings - /// - [DataMember(Name="BillingSettings", EmitDefaultValue=false)] - public BillToSettings BillingSettings { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExternalRefNbr - /// - [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] - public StringValue ExternalRefNbr { get; set; } - - /// - /// Gets or Sets FinancialDetails - /// - [DataMember(Name="FinancialDetails", EmitDefaultValue=false)] - public ProFormaFinancialDetails FinancialDetails { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets InvoiceDate - /// - [DataMember(Name="InvoiceDate", EmitDefaultValue=false)] - public DateTimeValue InvoiceDate { get; set; } - - /// - /// Gets or Sets InvoiceTotal - /// - [DataMember(Name="InvoiceTotal", EmitDefaultValue=false)] - public DecimalValue InvoiceTotal { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets ProgressBilling - /// - [DataMember(Name="ProgressBilling", EmitDefaultValue=false)] - public IEnumerable ProgressBilling { get; set; } - - /// - /// Gets or Sets ProgressBillingTotal - /// - [DataMember(Name="ProgressBillingTotal", EmitDefaultValue=false)] - public DecimalValue ProgressBillingTotal { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets RefNbr - /// - [DataMember(Name="RefNbr", EmitDefaultValue=false)] - public StringValue RefNbr { get; set; } - - /// - /// Gets or Sets RetainageTotal - /// - [DataMember(Name="RetainageTotal", EmitDefaultValue=false)] - public DecimalValue RetainageTotal { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public IEnumerable TaxDetails { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Gets or Sets TimeAndMaterial - /// - [DataMember(Name="TimeAndMaterial", EmitDefaultValue=false)] - public IEnumerable TimeAndMaterial { get; set; } - - /// - /// Gets or Sets TimeAndMaterialTotal - /// - [DataMember(Name="TimeAndMaterialTotal", EmitDefaultValue=false)] - public DecimalValue TimeAndMaterialTotal { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProFormaInvoice {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountDue: ").Append(AmountDue).Append("\n"); - sb.Append(" ApprovalDetails: ").Append(ApprovalDetails).Append("\n"); - sb.Append(" BillingSettings: ").Append(BillingSettings).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExternalRefNbr: ").Append(ExternalRefNbr).Append("\n"); - sb.Append(" FinancialDetails: ").Append(FinancialDetails).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" InvoiceDate: ").Append(InvoiceDate).Append("\n"); - sb.Append(" InvoiceTotal: ").Append(InvoiceTotal).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ProgressBilling: ").Append(ProgressBilling).Append("\n"); - sb.Append(" ProgressBillingTotal: ").Append(ProgressBillingTotal).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" RefNbr: ").Append(RefNbr).Append("\n"); - sb.Append(" RetainageTotal: ").Append(RetainageTotal).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" TimeAndMaterial: ").Append(TimeAndMaterial).Append("\n"); - sb.Append(" TimeAndMaterialTotal: ").Append(TimeAndMaterialTotal).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProFormaInvoice); - } - - /// - /// Returns true if ProFormaInvoice instances are equal - /// - /// Instance of ProFormaInvoice to be compared - /// Boolean - public bool Equals(ProFormaInvoice input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AmountDue == input.AmountDue || - (this.AmountDue != null && - this.AmountDue.Equals(input.AmountDue)) - ) && base.Equals(input) && - ( - this.ApprovalDetails == input.ApprovalDetails || - this.ApprovalDetails != null && - this.ApprovalDetails.SequenceEqual(input.ApprovalDetails) - ) && base.Equals(input) && - ( - this.BillingSettings == input.BillingSettings || - (this.BillingSettings != null && - this.BillingSettings.Equals(input.BillingSettings)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExternalRefNbr == input.ExternalRefNbr || - (this.ExternalRefNbr != null && - this.ExternalRefNbr.Equals(input.ExternalRefNbr)) - ) && base.Equals(input) && - ( - this.FinancialDetails == input.FinancialDetails || - (this.FinancialDetails != null && - this.FinancialDetails.Equals(input.FinancialDetails)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.InvoiceDate == input.InvoiceDate || - (this.InvoiceDate != null && - this.InvoiceDate.Equals(input.InvoiceDate)) - ) && base.Equals(input) && - ( - this.InvoiceTotal == input.InvoiceTotal || - (this.InvoiceTotal != null && - this.InvoiceTotal.Equals(input.InvoiceTotal)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ProgressBilling == input.ProgressBilling || - this.ProgressBilling != null && - this.ProgressBilling.SequenceEqual(input.ProgressBilling) - ) && base.Equals(input) && - ( - this.ProgressBillingTotal == input.ProgressBillingTotal || - (this.ProgressBillingTotal != null && - this.ProgressBillingTotal.Equals(input.ProgressBillingTotal)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.RefNbr == input.RefNbr || - (this.RefNbr != null && - this.RefNbr.Equals(input.RefNbr)) - ) && base.Equals(input) && - ( - this.RetainageTotal == input.RetainageTotal || - (this.RetainageTotal != null && - this.RetainageTotal.Equals(input.RetainageTotal)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.TimeAndMaterial == input.TimeAndMaterial || - this.TimeAndMaterial != null && - this.TimeAndMaterial.SequenceEqual(input.TimeAndMaterial) - ) && base.Equals(input) && - ( - this.TimeAndMaterialTotal == input.TimeAndMaterialTotal || - (this.TimeAndMaterialTotal != null && - this.TimeAndMaterialTotal.Equals(input.TimeAndMaterialTotal)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountDue != null) - hashCode = hashCode * 59 + this.AmountDue.GetHashCode(); - if (this.ApprovalDetails != null) - hashCode = hashCode * 59 + this.ApprovalDetails.GetHashCode(); - if (this.BillingSettings != null) - hashCode = hashCode * 59 + this.BillingSettings.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExternalRefNbr != null) - hashCode = hashCode * 59 + this.ExternalRefNbr.GetHashCode(); - if (this.FinancialDetails != null) - hashCode = hashCode * 59 + this.FinancialDetails.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.InvoiceDate != null) - hashCode = hashCode * 59 + this.InvoiceDate.GetHashCode(); - if (this.InvoiceTotal != null) - hashCode = hashCode * 59 + this.InvoiceTotal.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ProgressBilling != null) - hashCode = hashCode * 59 + this.ProgressBilling.GetHashCode(); - if (this.ProgressBillingTotal != null) - hashCode = hashCode * 59 + this.ProgressBillingTotal.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.RefNbr != null) - hashCode = hashCode * 59 + this.RefNbr.GetHashCode(); - if (this.RetainageTotal != null) - hashCode = hashCode * 59 + this.RetainageTotal.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.TimeAndMaterial != null) - hashCode = hashCode * 59 + this.TimeAndMaterial.GetHashCode(); - if (this.TimeAndMaterialTotal != null) - hashCode = hashCode * 59 + this.TimeAndMaterialTotal.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProFormaTaxDetail.cs b/Default.18.200.001/Model/ProFormaTaxDetail.cs deleted file mode 100644 index f1b2d1a4..00000000 --- a/Default.18.200.001/Model/ProFormaTaxDetail.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProFormaTaxDetail - /// - [DataContract] - public partial class ProFormaTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// retainedTax. - /// retainedTaxable. - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - public ProFormaTaxDetail(DecimalValue retainedTax = default(DecimalValue), DecimalValue retainedTaxable = default(DecimalValue), DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.RetainedTax = retainedTax; - this.RetainedTaxable = retainedTaxable; - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - } - - /// - /// Gets or Sets RetainedTax - /// - [DataMember(Name="RetainedTax", EmitDefaultValue=false)] - public DecimalValue RetainedTax { get; set; } - - /// - /// Gets or Sets RetainedTaxable - /// - [DataMember(Name="RetainedTaxable", EmitDefaultValue=false)] - public DecimalValue RetainedTaxable { get; set; } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProFormaTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" RetainedTax: ").Append(RetainedTax).Append("\n"); - sb.Append(" RetainedTaxable: ").Append(RetainedTaxable).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProFormaTaxDetail); - } - - /// - /// Returns true if ProFormaTaxDetail instances are equal - /// - /// Instance of ProFormaTaxDetail to be compared - /// Boolean - public bool Equals(ProFormaTaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.RetainedTax == input.RetainedTax || - (this.RetainedTax != null && - this.RetainedTax.Equals(input.RetainedTax)) - ) && base.Equals(input) && - ( - this.RetainedTaxable == input.RetainedTaxable || - (this.RetainedTaxable != null && - this.RetainedTaxable.Equals(input.RetainedTaxable)) - ) && base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.RetainedTax != null) - hashCode = hashCode * 59 + this.RetainedTax.GetHashCode(); - if (this.RetainedTaxable != null) - hashCode = hashCode * 59 + this.RetainedTaxable.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProgressBilling.cs b/Default.18.200.001/Model/ProgressBilling.cs deleted file mode 100644 index 328595f8..00000000 --- a/Default.18.200.001/Model/ProgressBilling.cs +++ /dev/null @@ -1,430 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProgressBilling - /// - [DataContract] - public partial class ProgressBilling : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// actualAmount. - /// amount. - /// amountToInvoice. - /// branch. - /// costCode. - /// currentInvoiced. - /// deferralCode. - /// description. - /// draftInvoicesAmount. - /// inventoryID. - /// previouslyInvoiced. - /// projectTaskID. - /// retainage. - /// retainageAmount. - /// revisedBudgetedAmount. - /// salesAccount. - /// salesSubaccount. - /// storedMaterial. - /// taxCategory. - /// totalCompleted. - public ProgressBilling(DecimalValue actualAmount = default(DecimalValue), DecimalValue amount = default(DecimalValue), DecimalValue amountToInvoice = default(DecimalValue), StringValue branch = default(StringValue), StringValue costCode = default(StringValue), DecimalValue currentInvoiced = default(DecimalValue), StringValue deferralCode = default(StringValue), StringValue description = default(StringValue), DecimalValue draftInvoicesAmount = default(DecimalValue), StringValue inventoryID = default(StringValue), DecimalValue previouslyInvoiced = default(DecimalValue), StringValue projectTaskID = default(StringValue), DecimalValue retainage = default(DecimalValue), DecimalValue retainageAmount = default(DecimalValue), DecimalValue revisedBudgetedAmount = default(DecimalValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), DecimalValue storedMaterial = default(DecimalValue), StringValue taxCategory = default(StringValue), DecimalValue totalCompleted = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ActualAmount = actualAmount; - this.Amount = amount; - this.AmountToInvoice = amountToInvoice; - this.Branch = branch; - this.CostCode = costCode; - this.CurrentInvoiced = currentInvoiced; - this.DeferralCode = deferralCode; - this.Description = description; - this.DraftInvoicesAmount = draftInvoicesAmount; - this.InventoryID = inventoryID; - this.PreviouslyInvoiced = previouslyInvoiced; - this.ProjectTaskID = projectTaskID; - this.Retainage = retainage; - this.RetainageAmount = retainageAmount; - this.RevisedBudgetedAmount = revisedBudgetedAmount; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.StoredMaterial = storedMaterial; - this.TaxCategory = taxCategory; - this.TotalCompleted = totalCompleted; - } - - /// - /// Gets or Sets ActualAmount - /// - [DataMember(Name="ActualAmount", EmitDefaultValue=false)] - public DecimalValue ActualAmount { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets AmountToInvoice - /// - [DataMember(Name="AmountToInvoice", EmitDefaultValue=false)] - public DecimalValue AmountToInvoice { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets CurrentInvoiced - /// - [DataMember(Name="CurrentInvoiced", EmitDefaultValue=false)] - public DecimalValue CurrentInvoiced { get; set; } - - /// - /// Gets or Sets DeferralCode - /// - [DataMember(Name="DeferralCode", EmitDefaultValue=false)] - public StringValue DeferralCode { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DraftInvoicesAmount - /// - [DataMember(Name="DraftInvoicesAmount", EmitDefaultValue=false)] - public DecimalValue DraftInvoicesAmount { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets PreviouslyInvoiced - /// - [DataMember(Name="PreviouslyInvoiced", EmitDefaultValue=false)] - public DecimalValue PreviouslyInvoiced { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets Retainage - /// - [DataMember(Name="Retainage", EmitDefaultValue=false)] - public DecimalValue Retainage { get; set; } - - /// - /// Gets or Sets RetainageAmount - /// - [DataMember(Name="RetainageAmount", EmitDefaultValue=false)] - public DecimalValue RetainageAmount { get; set; } - - /// - /// Gets or Sets RevisedBudgetedAmount - /// - [DataMember(Name="RevisedBudgetedAmount", EmitDefaultValue=false)] - public DecimalValue RevisedBudgetedAmount { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets StoredMaterial - /// - [DataMember(Name="StoredMaterial", EmitDefaultValue=false)] - public DecimalValue StoredMaterial { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TotalCompleted - /// - [DataMember(Name="TotalCompleted", EmitDefaultValue=false)] - public DecimalValue TotalCompleted { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProgressBilling {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ActualAmount: ").Append(ActualAmount).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" AmountToInvoice: ").Append(AmountToInvoice).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" CurrentInvoiced: ").Append(CurrentInvoiced).Append("\n"); - sb.Append(" DeferralCode: ").Append(DeferralCode).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DraftInvoicesAmount: ").Append(DraftInvoicesAmount).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" PreviouslyInvoiced: ").Append(PreviouslyInvoiced).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" Retainage: ").Append(Retainage).Append("\n"); - sb.Append(" RetainageAmount: ").Append(RetainageAmount).Append("\n"); - sb.Append(" RevisedBudgetedAmount: ").Append(RevisedBudgetedAmount).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" StoredMaterial: ").Append(StoredMaterial).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TotalCompleted: ").Append(TotalCompleted).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProgressBilling); - } - - /// - /// Returns true if ProgressBilling instances are equal - /// - /// Instance of ProgressBilling to be compared - /// Boolean - public bool Equals(ProgressBilling input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ActualAmount == input.ActualAmount || - (this.ActualAmount != null && - this.ActualAmount.Equals(input.ActualAmount)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.AmountToInvoice == input.AmountToInvoice || - (this.AmountToInvoice != null && - this.AmountToInvoice.Equals(input.AmountToInvoice)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.CurrentInvoiced == input.CurrentInvoiced || - (this.CurrentInvoiced != null && - this.CurrentInvoiced.Equals(input.CurrentInvoiced)) - ) && base.Equals(input) && - ( - this.DeferralCode == input.DeferralCode || - (this.DeferralCode != null && - this.DeferralCode.Equals(input.DeferralCode)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DraftInvoicesAmount == input.DraftInvoicesAmount || - (this.DraftInvoicesAmount != null && - this.DraftInvoicesAmount.Equals(input.DraftInvoicesAmount)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.PreviouslyInvoiced == input.PreviouslyInvoiced || - (this.PreviouslyInvoiced != null && - this.PreviouslyInvoiced.Equals(input.PreviouslyInvoiced)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.Retainage == input.Retainage || - (this.Retainage != null && - this.Retainage.Equals(input.Retainage)) - ) && base.Equals(input) && - ( - this.RetainageAmount == input.RetainageAmount || - (this.RetainageAmount != null && - this.RetainageAmount.Equals(input.RetainageAmount)) - ) && base.Equals(input) && - ( - this.RevisedBudgetedAmount == input.RevisedBudgetedAmount || - (this.RevisedBudgetedAmount != null && - this.RevisedBudgetedAmount.Equals(input.RevisedBudgetedAmount)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.StoredMaterial == input.StoredMaterial || - (this.StoredMaterial != null && - this.StoredMaterial.Equals(input.StoredMaterial)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TotalCompleted == input.TotalCompleted || - (this.TotalCompleted != null && - this.TotalCompleted.Equals(input.TotalCompleted)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ActualAmount != null) - hashCode = hashCode * 59 + this.ActualAmount.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.AmountToInvoice != null) - hashCode = hashCode * 59 + this.AmountToInvoice.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.CurrentInvoiced != null) - hashCode = hashCode * 59 + this.CurrentInvoiced.GetHashCode(); - if (this.DeferralCode != null) - hashCode = hashCode * 59 + this.DeferralCode.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DraftInvoicesAmount != null) - hashCode = hashCode * 59 + this.DraftInvoicesAmount.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.PreviouslyInvoiced != null) - hashCode = hashCode * 59 + this.PreviouslyInvoiced.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.Retainage != null) - hashCode = hashCode * 59 + this.Retainage.GetHashCode(); - if (this.RetainageAmount != null) - hashCode = hashCode * 59 + this.RetainageAmount.GetHashCode(); - if (this.RevisedBudgetedAmount != null) - hashCode = hashCode * 59 + this.RevisedBudgetedAmount.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.StoredMaterial != null) - hashCode = hashCode * 59 + this.StoredMaterial.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TotalCompleted != null) - hashCode = hashCode * 59 + this.TotalCompleted.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Project.cs b/Default.18.200.001/Model/Project.cs deleted file mode 100644 index 7adba35a..00000000 --- a/Default.18.200.001/Model/Project.cs +++ /dev/null @@ -1,510 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Project - /// - [DataContract] - public partial class Project : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// activityHistory. - /// approvalDetails. - /// assets. - /// attributes. - /// balances. - /// billingAndAllocationSettings. - /// billToSettings. - /// customer. - /// description. - /// employees. - /// equipments. - /// expenses. - /// externalRefNbr. - /// gLAccounts. - /// hold. - /// income. - /// invoices. - /// lastModifiedDateTime. - /// liabilities. - /// projectID. - /// projectProperties. - /// projectTemplateID. - /// status. - /// unionLocals. - /// visibilitySettings. - public Project(IEnumerable activityHistory = default(IEnumerable), IEnumerable approvalDetails = default(IEnumerable), DecimalValue assets = default(DecimalValue), IEnumerable attributes = default(IEnumerable), IEnumerable balances = default(IEnumerable), ProjectBillingAndAllocationSettings billingAndAllocationSettings = default(ProjectBillingAndAllocationSettings), BillToSettings billToSettings = default(BillToSettings), StringValue customer = default(StringValue), StringValue description = default(StringValue), IEnumerable employees = default(IEnumerable), IEnumerable equipments = default(IEnumerable), DecimalValue expenses = default(DecimalValue), StringValue externalRefNbr = default(StringValue), ProjectGLAccount gLAccounts = default(ProjectGLAccount), BooleanValue hold = default(BooleanValue), DecimalValue income = default(DecimalValue), IEnumerable invoices = default(IEnumerable), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue liabilities = default(DecimalValue), StringValue projectID = default(StringValue), ProjectProperties projectProperties = default(ProjectProperties), StringValue projectTemplateID = default(StringValue), StringValue status = default(StringValue), IEnumerable unionLocals = default(IEnumerable), VisibilitySettings visibilitySettings = default(VisibilitySettings), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ActivityHistory = activityHistory; - this.ApprovalDetails = approvalDetails; - this.Assets = assets; - this.Attributes = attributes; - this.Balances = balances; - this.BillingAndAllocationSettings = billingAndAllocationSettings; - this.BillToSettings = billToSettings; - this.Customer = customer; - this.Description = description; - this.Employees = employees; - this.Equipments = equipments; - this.Expenses = expenses; - this.ExternalRefNbr = externalRefNbr; - this.GLAccounts = gLAccounts; - this.Hold = hold; - this.Income = income; - this.Invoices = invoices; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Liabilities = liabilities; - this.ProjectID = projectID; - this.ProjectProperties = projectProperties; - this.ProjectTemplateID = projectTemplateID; - this.Status = status; - this.UnionLocals = unionLocals; - this.VisibilitySettings = visibilitySettings; - } - - /// - /// Gets or Sets ActivityHistory - /// - [DataMember(Name="ActivityHistory", EmitDefaultValue=false)] - public IEnumerable ActivityHistory { get; set; } - - /// - /// Gets or Sets ApprovalDetails - /// - [DataMember(Name="ApprovalDetails", EmitDefaultValue=false)] - public IEnumerable ApprovalDetails { get; set; } - - /// - /// Gets or Sets Assets - /// - [DataMember(Name="Assets", EmitDefaultValue=false)] - public DecimalValue Assets { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets Balances - /// - [DataMember(Name="Balances", EmitDefaultValue=false)] - public IEnumerable Balances { get; set; } - - /// - /// Gets or Sets BillingAndAllocationSettings - /// - [DataMember(Name="BillingAndAllocationSettings", EmitDefaultValue=false)] - public ProjectBillingAndAllocationSettings BillingAndAllocationSettings { get; set; } - - /// - /// Gets or Sets BillToSettings - /// - [DataMember(Name="BillToSettings", EmitDefaultValue=false)] - public BillToSettings BillToSettings { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Employees - /// - [DataMember(Name="Employees", EmitDefaultValue=false)] - public IEnumerable Employees { get; set; } - - /// - /// Gets or Sets Equipments - /// - [DataMember(Name="Equipments", EmitDefaultValue=false)] - public IEnumerable Equipments { get; set; } - - /// - /// Gets or Sets Expenses - /// - [DataMember(Name="Expenses", EmitDefaultValue=false)] - public DecimalValue Expenses { get; set; } - - /// - /// Gets or Sets ExternalRefNbr - /// - [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] - public StringValue ExternalRefNbr { get; set; } - - /// - /// Gets or Sets GLAccounts - /// - [DataMember(Name="GLAccounts", EmitDefaultValue=false)] - public ProjectGLAccount GLAccounts { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets Income - /// - [DataMember(Name="Income", EmitDefaultValue=false)] - public DecimalValue Income { get; set; } - - /// - /// Gets or Sets Invoices - /// - [DataMember(Name="Invoices", EmitDefaultValue=false)] - public IEnumerable Invoices { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Liabilities - /// - [DataMember(Name="Liabilities", EmitDefaultValue=false)] - public DecimalValue Liabilities { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets ProjectProperties - /// - [DataMember(Name="ProjectProperties", EmitDefaultValue=false)] - public ProjectProperties ProjectProperties { get; set; } - - /// - /// Gets or Sets ProjectTemplateID - /// - [DataMember(Name="ProjectTemplateID", EmitDefaultValue=false)] - public StringValue ProjectTemplateID { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets UnionLocals - /// - [DataMember(Name="UnionLocals", EmitDefaultValue=false)] - public IEnumerable UnionLocals { get; set; } - - /// - /// Gets or Sets VisibilitySettings - /// - [DataMember(Name="VisibilitySettings", EmitDefaultValue=false)] - public VisibilitySettings VisibilitySettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Project {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ActivityHistory: ").Append(ActivityHistory).Append("\n"); - sb.Append(" ApprovalDetails: ").Append(ApprovalDetails).Append("\n"); - sb.Append(" Assets: ").Append(Assets).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" Balances: ").Append(Balances).Append("\n"); - sb.Append(" BillingAndAllocationSettings: ").Append(BillingAndAllocationSettings).Append("\n"); - sb.Append(" BillToSettings: ").Append(BillToSettings).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Employees: ").Append(Employees).Append("\n"); - sb.Append(" Equipments: ").Append(Equipments).Append("\n"); - sb.Append(" Expenses: ").Append(Expenses).Append("\n"); - sb.Append(" ExternalRefNbr: ").Append(ExternalRefNbr).Append("\n"); - sb.Append(" GLAccounts: ").Append(GLAccounts).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" Income: ").Append(Income).Append("\n"); - sb.Append(" Invoices: ").Append(Invoices).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Liabilities: ").Append(Liabilities).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" ProjectProperties: ").Append(ProjectProperties).Append("\n"); - sb.Append(" ProjectTemplateID: ").Append(ProjectTemplateID).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" UnionLocals: ").Append(UnionLocals).Append("\n"); - sb.Append(" VisibilitySettings: ").Append(VisibilitySettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Project); - } - - /// - /// Returns true if Project instances are equal - /// - /// Instance of Project to be compared - /// Boolean - public bool Equals(Project input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ActivityHistory == input.ActivityHistory || - this.ActivityHistory != null && - this.ActivityHistory.SequenceEqual(input.ActivityHistory) - ) && base.Equals(input) && - ( - this.ApprovalDetails == input.ApprovalDetails || - this.ApprovalDetails != null && - this.ApprovalDetails.SequenceEqual(input.ApprovalDetails) - ) && base.Equals(input) && - ( - this.Assets == input.Assets || - (this.Assets != null && - this.Assets.Equals(input.Assets)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.Balances == input.Balances || - this.Balances != null && - this.Balances.SequenceEqual(input.Balances) - ) && base.Equals(input) && - ( - this.BillingAndAllocationSettings == input.BillingAndAllocationSettings || - (this.BillingAndAllocationSettings != null && - this.BillingAndAllocationSettings.Equals(input.BillingAndAllocationSettings)) - ) && base.Equals(input) && - ( - this.BillToSettings == input.BillToSettings || - (this.BillToSettings != null && - this.BillToSettings.Equals(input.BillToSettings)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Employees == input.Employees || - this.Employees != null && - this.Employees.SequenceEqual(input.Employees) - ) && base.Equals(input) && - ( - this.Equipments == input.Equipments || - this.Equipments != null && - this.Equipments.SequenceEqual(input.Equipments) - ) && base.Equals(input) && - ( - this.Expenses == input.Expenses || - (this.Expenses != null && - this.Expenses.Equals(input.Expenses)) - ) && base.Equals(input) && - ( - this.ExternalRefNbr == input.ExternalRefNbr || - (this.ExternalRefNbr != null && - this.ExternalRefNbr.Equals(input.ExternalRefNbr)) - ) && base.Equals(input) && - ( - this.GLAccounts == input.GLAccounts || - (this.GLAccounts != null && - this.GLAccounts.Equals(input.GLAccounts)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.Income == input.Income || - (this.Income != null && - this.Income.Equals(input.Income)) - ) && base.Equals(input) && - ( - this.Invoices == input.Invoices || - this.Invoices != null && - this.Invoices.SequenceEqual(input.Invoices) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Liabilities == input.Liabilities || - (this.Liabilities != null && - this.Liabilities.Equals(input.Liabilities)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.ProjectProperties == input.ProjectProperties || - (this.ProjectProperties != null && - this.ProjectProperties.Equals(input.ProjectProperties)) - ) && base.Equals(input) && - ( - this.ProjectTemplateID == input.ProjectTemplateID || - (this.ProjectTemplateID != null && - this.ProjectTemplateID.Equals(input.ProjectTemplateID)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.UnionLocals == input.UnionLocals || - this.UnionLocals != null && - this.UnionLocals.SequenceEqual(input.UnionLocals) - ) && base.Equals(input) && - ( - this.VisibilitySettings == input.VisibilitySettings || - (this.VisibilitySettings != null && - this.VisibilitySettings.Equals(input.VisibilitySettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ActivityHistory != null) - hashCode = hashCode * 59 + this.ActivityHistory.GetHashCode(); - if (this.ApprovalDetails != null) - hashCode = hashCode * 59 + this.ApprovalDetails.GetHashCode(); - if (this.Assets != null) - hashCode = hashCode * 59 + this.Assets.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.Balances != null) - hashCode = hashCode * 59 + this.Balances.GetHashCode(); - if (this.BillingAndAllocationSettings != null) - hashCode = hashCode * 59 + this.BillingAndAllocationSettings.GetHashCode(); - if (this.BillToSettings != null) - hashCode = hashCode * 59 + this.BillToSettings.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Employees != null) - hashCode = hashCode * 59 + this.Employees.GetHashCode(); - if (this.Equipments != null) - hashCode = hashCode * 59 + this.Equipments.GetHashCode(); - if (this.Expenses != null) - hashCode = hashCode * 59 + this.Expenses.GetHashCode(); - if (this.ExternalRefNbr != null) - hashCode = hashCode * 59 + this.ExternalRefNbr.GetHashCode(); - if (this.GLAccounts != null) - hashCode = hashCode * 59 + this.GLAccounts.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.Income != null) - hashCode = hashCode * 59 + this.Income.GetHashCode(); - if (this.Invoices != null) - hashCode = hashCode * 59 + this.Invoices.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Liabilities != null) - hashCode = hashCode * 59 + this.Liabilities.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.ProjectProperties != null) - hashCode = hashCode * 59 + this.ProjectProperties.GetHashCode(); - if (this.ProjectTemplateID != null) - hashCode = hashCode * 59 + this.ProjectTemplateID.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.UnionLocals != null) - hashCode = hashCode * 59 + this.UnionLocals.GetHashCode(); - if (this.VisibilitySettings != null) - hashCode = hashCode * 59 + this.VisibilitySettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectActivity.cs b/Default.18.200.001/Model/ProjectActivity.cs deleted file mode 100644 index a885cddb..00000000 --- a/Default.18.200.001/Model/ProjectActivity.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectActivity - /// - [DataContract] - public partial class ProjectActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billable. - /// billableOvertime. - /// billableTime. - /// category. - /// overtime. - /// owner. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - /// workgroup. - public ProjectActivity(BooleanValue billable = default(BooleanValue), StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue category = default(StringValue), StringValue overtime = default(StringValue), StringValue owner = default(StringValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.Category = category; - this.Overtime = overtime; - this.Owner = owner; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets Category - /// - [DataMember(Name="Category", EmitDefaultValue=false)] - public StringValue Category { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectActivity); - } - - /// - /// Returns true if ProjectActivity instances are equal - /// - /// Instance of ProjectActivity to be compared - /// Boolean - public bool Equals(ProjectActivity input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectBalance.cs b/Default.18.200.001/Model/ProjectBalance.cs deleted file mode 100644 index 74ccaeea..00000000 --- a/Default.18.200.001/Model/ProjectBalance.cs +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectBalance - /// - [DataContract] - public partial class ProjectBalance : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountGroup. - /// actualAmount. - /// actualOpenCommittedAmount. - /// budgetedCOAmount. - /// committedCOAmount. - /// committedInvoicedAmount. - /// committedOpenAmount. - /// description. - /// originalBudgetedAmount. - /// originalCommittedAmount. - /// performance. - /// revisedBudgetedAmount. - /// revisedCommittedAmount. - /// varianceAmount. - public ProjectBalance(StringValue accountGroup = default(StringValue), DecimalValue actualAmount = default(DecimalValue), DecimalValue actualOpenCommittedAmount = default(DecimalValue), DecimalValue budgetedCOAmount = default(DecimalValue), DecimalValue committedCOAmount = default(DecimalValue), DecimalValue committedInvoicedAmount = default(DecimalValue), DecimalValue committedOpenAmount = default(DecimalValue), StringValue description = default(StringValue), DecimalValue originalBudgetedAmount = default(DecimalValue), DecimalValue originalCommittedAmount = default(DecimalValue), DecimalValue performance = default(DecimalValue), DecimalValue revisedBudgetedAmount = default(DecimalValue), DecimalValue revisedCommittedAmount = default(DecimalValue), DecimalValue varianceAmount = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountGroup = accountGroup; - this.ActualAmount = actualAmount; - this.ActualOpenCommittedAmount = actualOpenCommittedAmount; - this.BudgetedCOAmount = budgetedCOAmount; - this.CommittedCOAmount = committedCOAmount; - this.CommittedInvoicedAmount = committedInvoicedAmount; - this.CommittedOpenAmount = committedOpenAmount; - this.Description = description; - this.OriginalBudgetedAmount = originalBudgetedAmount; - this.OriginalCommittedAmount = originalCommittedAmount; - this.Performance = performance; - this.RevisedBudgetedAmount = revisedBudgetedAmount; - this.RevisedCommittedAmount = revisedCommittedAmount; - this.VarianceAmount = varianceAmount; - } - - /// - /// Gets or Sets AccountGroup - /// - [DataMember(Name="AccountGroup", EmitDefaultValue=false)] - public StringValue AccountGroup { get; set; } - - /// - /// Gets or Sets ActualAmount - /// - [DataMember(Name="ActualAmount", EmitDefaultValue=false)] - public DecimalValue ActualAmount { get; set; } - - /// - /// Gets or Sets ActualOpenCommittedAmount - /// - [DataMember(Name="ActualOpenCommittedAmount", EmitDefaultValue=false)] - public DecimalValue ActualOpenCommittedAmount { get; set; } - - /// - /// Gets or Sets BudgetedCOAmount - /// - [DataMember(Name="BudgetedCOAmount", EmitDefaultValue=false)] - public DecimalValue BudgetedCOAmount { get; set; } - - /// - /// Gets or Sets CommittedCOAmount - /// - [DataMember(Name="CommittedCOAmount", EmitDefaultValue=false)] - public DecimalValue CommittedCOAmount { get; set; } - - /// - /// Gets or Sets CommittedInvoicedAmount - /// - [DataMember(Name="CommittedInvoicedAmount", EmitDefaultValue=false)] - public DecimalValue CommittedInvoicedAmount { get; set; } - - /// - /// Gets or Sets CommittedOpenAmount - /// - [DataMember(Name="CommittedOpenAmount", EmitDefaultValue=false)] - public DecimalValue CommittedOpenAmount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets OriginalBudgetedAmount - /// - [DataMember(Name="OriginalBudgetedAmount", EmitDefaultValue=false)] - public DecimalValue OriginalBudgetedAmount { get; set; } - - /// - /// Gets or Sets OriginalCommittedAmount - /// - [DataMember(Name="OriginalCommittedAmount", EmitDefaultValue=false)] - public DecimalValue OriginalCommittedAmount { get; set; } - - /// - /// Gets or Sets Performance - /// - [DataMember(Name="Performance", EmitDefaultValue=false)] - public DecimalValue Performance { get; set; } - - /// - /// Gets or Sets RevisedBudgetedAmount - /// - [DataMember(Name="RevisedBudgetedAmount", EmitDefaultValue=false)] - public DecimalValue RevisedBudgetedAmount { get; set; } - - /// - /// Gets or Sets RevisedCommittedAmount - /// - [DataMember(Name="RevisedCommittedAmount", EmitDefaultValue=false)] - public DecimalValue RevisedCommittedAmount { get; set; } - - /// - /// Gets or Sets VarianceAmount - /// - [DataMember(Name="VarianceAmount", EmitDefaultValue=false)] - public DecimalValue VarianceAmount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectBalance {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountGroup: ").Append(AccountGroup).Append("\n"); - sb.Append(" ActualAmount: ").Append(ActualAmount).Append("\n"); - sb.Append(" ActualOpenCommittedAmount: ").Append(ActualOpenCommittedAmount).Append("\n"); - sb.Append(" BudgetedCOAmount: ").Append(BudgetedCOAmount).Append("\n"); - sb.Append(" CommittedCOAmount: ").Append(CommittedCOAmount).Append("\n"); - sb.Append(" CommittedInvoicedAmount: ").Append(CommittedInvoicedAmount).Append("\n"); - sb.Append(" CommittedOpenAmount: ").Append(CommittedOpenAmount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" OriginalBudgetedAmount: ").Append(OriginalBudgetedAmount).Append("\n"); - sb.Append(" OriginalCommittedAmount: ").Append(OriginalCommittedAmount).Append("\n"); - sb.Append(" Performance: ").Append(Performance).Append("\n"); - sb.Append(" RevisedBudgetedAmount: ").Append(RevisedBudgetedAmount).Append("\n"); - sb.Append(" RevisedCommittedAmount: ").Append(RevisedCommittedAmount).Append("\n"); - sb.Append(" VarianceAmount: ").Append(VarianceAmount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectBalance); - } - - /// - /// Returns true if ProjectBalance instances are equal - /// - /// Instance of ProjectBalance to be compared - /// Boolean - public bool Equals(ProjectBalance input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountGroup == input.AccountGroup || - (this.AccountGroup != null && - this.AccountGroup.Equals(input.AccountGroup)) - ) && base.Equals(input) && - ( - this.ActualAmount == input.ActualAmount || - (this.ActualAmount != null && - this.ActualAmount.Equals(input.ActualAmount)) - ) && base.Equals(input) && - ( - this.ActualOpenCommittedAmount == input.ActualOpenCommittedAmount || - (this.ActualOpenCommittedAmount != null && - this.ActualOpenCommittedAmount.Equals(input.ActualOpenCommittedAmount)) - ) && base.Equals(input) && - ( - this.BudgetedCOAmount == input.BudgetedCOAmount || - (this.BudgetedCOAmount != null && - this.BudgetedCOAmount.Equals(input.BudgetedCOAmount)) - ) && base.Equals(input) && - ( - this.CommittedCOAmount == input.CommittedCOAmount || - (this.CommittedCOAmount != null && - this.CommittedCOAmount.Equals(input.CommittedCOAmount)) - ) && base.Equals(input) && - ( - this.CommittedInvoicedAmount == input.CommittedInvoicedAmount || - (this.CommittedInvoicedAmount != null && - this.CommittedInvoicedAmount.Equals(input.CommittedInvoicedAmount)) - ) && base.Equals(input) && - ( - this.CommittedOpenAmount == input.CommittedOpenAmount || - (this.CommittedOpenAmount != null && - this.CommittedOpenAmount.Equals(input.CommittedOpenAmount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.OriginalBudgetedAmount == input.OriginalBudgetedAmount || - (this.OriginalBudgetedAmount != null && - this.OriginalBudgetedAmount.Equals(input.OriginalBudgetedAmount)) - ) && base.Equals(input) && - ( - this.OriginalCommittedAmount == input.OriginalCommittedAmount || - (this.OriginalCommittedAmount != null && - this.OriginalCommittedAmount.Equals(input.OriginalCommittedAmount)) - ) && base.Equals(input) && - ( - this.Performance == input.Performance || - (this.Performance != null && - this.Performance.Equals(input.Performance)) - ) && base.Equals(input) && - ( - this.RevisedBudgetedAmount == input.RevisedBudgetedAmount || - (this.RevisedBudgetedAmount != null && - this.RevisedBudgetedAmount.Equals(input.RevisedBudgetedAmount)) - ) && base.Equals(input) && - ( - this.RevisedCommittedAmount == input.RevisedCommittedAmount || - (this.RevisedCommittedAmount != null && - this.RevisedCommittedAmount.Equals(input.RevisedCommittedAmount)) - ) && base.Equals(input) && - ( - this.VarianceAmount == input.VarianceAmount || - (this.VarianceAmount != null && - this.VarianceAmount.Equals(input.VarianceAmount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountGroup != null) - hashCode = hashCode * 59 + this.AccountGroup.GetHashCode(); - if (this.ActualAmount != null) - hashCode = hashCode * 59 + this.ActualAmount.GetHashCode(); - if (this.ActualOpenCommittedAmount != null) - hashCode = hashCode * 59 + this.ActualOpenCommittedAmount.GetHashCode(); - if (this.BudgetedCOAmount != null) - hashCode = hashCode * 59 + this.BudgetedCOAmount.GetHashCode(); - if (this.CommittedCOAmount != null) - hashCode = hashCode * 59 + this.CommittedCOAmount.GetHashCode(); - if (this.CommittedInvoicedAmount != null) - hashCode = hashCode * 59 + this.CommittedInvoicedAmount.GetHashCode(); - if (this.CommittedOpenAmount != null) - hashCode = hashCode * 59 + this.CommittedOpenAmount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.OriginalBudgetedAmount != null) - hashCode = hashCode * 59 + this.OriginalBudgetedAmount.GetHashCode(); - if (this.OriginalCommittedAmount != null) - hashCode = hashCode * 59 + this.OriginalCommittedAmount.GetHashCode(); - if (this.Performance != null) - hashCode = hashCode * 59 + this.Performance.GetHashCode(); - if (this.RevisedBudgetedAmount != null) - hashCode = hashCode * 59 + this.RevisedBudgetedAmount.GetHashCode(); - if (this.RevisedCommittedAmount != null) - hashCode = hashCode * 59 + this.RevisedCommittedAmount.GetHashCode(); - if (this.VarianceAmount != null) - hashCode = hashCode * 59 + this.VarianceAmount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectBilling.cs b/Default.18.200.001/Model/ProjectBilling.cs deleted file mode 100644 index beed48f4..00000000 --- a/Default.18.200.001/Model/ProjectBilling.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectBilling - /// - [DataContract] - public partial class ProjectBilling : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// customer. - /// customerClass. - /// details. - /// invoiceDate. - /// postPeriod. - /// projectTemplate. - /// statementCycle. - public ProjectBilling(StringValue customer = default(StringValue), StringValue customerClass = default(StringValue), IEnumerable details = default(IEnumerable), DateTimeValue invoiceDate = default(DateTimeValue), StringValue postPeriod = default(StringValue), StringValue projectTemplate = default(StringValue), StringValue statementCycle = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Customer = customer; - this.CustomerClass = customerClass; - this.Details = details; - this.InvoiceDate = invoiceDate; - this.PostPeriod = postPeriod; - this.ProjectTemplate = projectTemplate; - this.StatementCycle = statementCycle; - } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets CustomerClass - /// - [DataMember(Name="CustomerClass", EmitDefaultValue=false)] - public StringValue CustomerClass { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets InvoiceDate - /// - [DataMember(Name="InvoiceDate", EmitDefaultValue=false)] - public DateTimeValue InvoiceDate { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets ProjectTemplate - /// - [DataMember(Name="ProjectTemplate", EmitDefaultValue=false)] - public StringValue ProjectTemplate { get; set; } - - /// - /// Gets or Sets StatementCycle - /// - [DataMember(Name="StatementCycle", EmitDefaultValue=false)] - public StringValue StatementCycle { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectBilling {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" CustomerClass: ").Append(CustomerClass).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" InvoiceDate: ").Append(InvoiceDate).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ProjectTemplate: ").Append(ProjectTemplate).Append("\n"); - sb.Append(" StatementCycle: ").Append(StatementCycle).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectBilling); - } - - /// - /// Returns true if ProjectBilling instances are equal - /// - /// Instance of ProjectBilling to be compared - /// Boolean - public bool Equals(ProjectBilling input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.CustomerClass == input.CustomerClass || - (this.CustomerClass != null && - this.CustomerClass.Equals(input.CustomerClass)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.InvoiceDate == input.InvoiceDate || - (this.InvoiceDate != null && - this.InvoiceDate.Equals(input.InvoiceDate)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ProjectTemplate == input.ProjectTemplate || - (this.ProjectTemplate != null && - this.ProjectTemplate.Equals(input.ProjectTemplate)) - ) && base.Equals(input) && - ( - this.StatementCycle == input.StatementCycle || - (this.StatementCycle != null && - this.StatementCycle.Equals(input.StatementCycle)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.CustomerClass != null) - hashCode = hashCode * 59 + this.CustomerClass.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.InvoiceDate != null) - hashCode = hashCode * 59 + this.InvoiceDate.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ProjectTemplate != null) - hashCode = hashCode * 59 + this.ProjectTemplate.GetHashCode(); - if (this.StatementCycle != null) - hashCode = hashCode * 59 + this.StatementCycle.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectBillingAndAllocationSettings.cs b/Default.18.200.001/Model/ProjectBillingAndAllocationSettings.cs deleted file mode 100644 index 1a031005..00000000 --- a/Default.18.200.001/Model/ProjectBillingAndAllocationSettings.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectBillingAndAllocationSettings - /// - [DataContract] - public partial class ProjectBillingAndAllocationSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocationRule. - /// automaticallyReleaseARDocuments. - /// billingPeriod. - /// billingRule. - /// branch. - /// createProFormaOnBilling. - /// lastBillingDate. - /// nextBillingDate. - /// rateTable. - /// retainage. - /// runAllocationOnReleaseOfProjectTransactions. - /// terms. - /// useTMRevenueBudgetLimits. - public ProjectBillingAndAllocationSettings(StringValue allocationRule = default(StringValue), BooleanValue automaticallyReleaseARDocuments = default(BooleanValue), StringValue billingPeriod = default(StringValue), StringValue billingRule = default(StringValue), StringValue branch = default(StringValue), BooleanValue createProFormaOnBilling = default(BooleanValue), DateTimeValue lastBillingDate = default(DateTimeValue), DateTimeValue nextBillingDate = default(DateTimeValue), StringValue rateTable = default(StringValue), DecimalValue retainage = default(DecimalValue), BooleanValue runAllocationOnReleaseOfProjectTransactions = default(BooleanValue), StringValue terms = default(StringValue), BooleanValue useTMRevenueBudgetLimits = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllocationRule = allocationRule; - this.AutomaticallyReleaseARDocuments = automaticallyReleaseARDocuments; - this.BillingPeriod = billingPeriod; - this.BillingRule = billingRule; - this.Branch = branch; - this.CreateProFormaOnBilling = createProFormaOnBilling; - this.LastBillingDate = lastBillingDate; - this.NextBillingDate = nextBillingDate; - this.RateTable = rateTable; - this.Retainage = retainage; - this.RunAllocationOnReleaseOfProjectTransactions = runAllocationOnReleaseOfProjectTransactions; - this.Terms = terms; - this.UseTMRevenueBudgetLimits = useTMRevenueBudgetLimits; - } - - /// - /// Gets or Sets AllocationRule - /// - [DataMember(Name="AllocationRule", EmitDefaultValue=false)] - public StringValue AllocationRule { get; set; } - - /// - /// Gets or Sets AutomaticallyReleaseARDocuments - /// - [DataMember(Name="AutomaticallyReleaseARDocuments", EmitDefaultValue=false)] - public BooleanValue AutomaticallyReleaseARDocuments { get; set; } - - /// - /// Gets or Sets BillingPeriod - /// - [DataMember(Name="BillingPeriod", EmitDefaultValue=false)] - public StringValue BillingPeriod { get; set; } - - /// - /// Gets or Sets BillingRule - /// - [DataMember(Name="BillingRule", EmitDefaultValue=false)] - public StringValue BillingRule { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CreateProFormaOnBilling - /// - [DataMember(Name="CreateProFormaOnBilling", EmitDefaultValue=false)] - public BooleanValue CreateProFormaOnBilling { get; set; } - - /// - /// Gets or Sets LastBillingDate - /// - [DataMember(Name="LastBillingDate", EmitDefaultValue=false)] - public DateTimeValue LastBillingDate { get; set; } - - /// - /// Gets or Sets NextBillingDate - /// - [DataMember(Name="NextBillingDate", EmitDefaultValue=false)] - public DateTimeValue NextBillingDate { get; set; } - - /// - /// Gets or Sets RateTable - /// - [DataMember(Name="RateTable", EmitDefaultValue=false)] - public StringValue RateTable { get; set; } - - /// - /// Gets or Sets Retainage - /// - [DataMember(Name="Retainage", EmitDefaultValue=false)] - public DecimalValue Retainage { get; set; } - - /// - /// Gets or Sets RunAllocationOnReleaseOfProjectTransactions - /// - [DataMember(Name="RunAllocationOnReleaseOfProjectTransactions", EmitDefaultValue=false)] - public BooleanValue RunAllocationOnReleaseOfProjectTransactions { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets UseTMRevenueBudgetLimits - /// - [DataMember(Name="UseTMRevenueBudgetLimits", EmitDefaultValue=false)] - public BooleanValue UseTMRevenueBudgetLimits { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectBillingAndAllocationSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllocationRule: ").Append(AllocationRule).Append("\n"); - sb.Append(" AutomaticallyReleaseARDocuments: ").Append(AutomaticallyReleaseARDocuments).Append("\n"); - sb.Append(" BillingPeriod: ").Append(BillingPeriod).Append("\n"); - sb.Append(" BillingRule: ").Append(BillingRule).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CreateProFormaOnBilling: ").Append(CreateProFormaOnBilling).Append("\n"); - sb.Append(" LastBillingDate: ").Append(LastBillingDate).Append("\n"); - sb.Append(" NextBillingDate: ").Append(NextBillingDate).Append("\n"); - sb.Append(" RateTable: ").Append(RateTable).Append("\n"); - sb.Append(" Retainage: ").Append(Retainage).Append("\n"); - sb.Append(" RunAllocationOnReleaseOfProjectTransactions: ").Append(RunAllocationOnReleaseOfProjectTransactions).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" UseTMRevenueBudgetLimits: ").Append(UseTMRevenueBudgetLimits).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectBillingAndAllocationSettings); - } - - /// - /// Returns true if ProjectBillingAndAllocationSettings instances are equal - /// - /// Instance of ProjectBillingAndAllocationSettings to be compared - /// Boolean - public bool Equals(ProjectBillingAndAllocationSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AllocationRule == input.AllocationRule || - (this.AllocationRule != null && - this.AllocationRule.Equals(input.AllocationRule)) - ) && base.Equals(input) && - ( - this.AutomaticallyReleaseARDocuments == input.AutomaticallyReleaseARDocuments || - (this.AutomaticallyReleaseARDocuments != null && - this.AutomaticallyReleaseARDocuments.Equals(input.AutomaticallyReleaseARDocuments)) - ) && base.Equals(input) && - ( - this.BillingPeriod == input.BillingPeriod || - (this.BillingPeriod != null && - this.BillingPeriod.Equals(input.BillingPeriod)) - ) && base.Equals(input) && - ( - this.BillingRule == input.BillingRule || - (this.BillingRule != null && - this.BillingRule.Equals(input.BillingRule)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CreateProFormaOnBilling == input.CreateProFormaOnBilling || - (this.CreateProFormaOnBilling != null && - this.CreateProFormaOnBilling.Equals(input.CreateProFormaOnBilling)) - ) && base.Equals(input) && - ( - this.LastBillingDate == input.LastBillingDate || - (this.LastBillingDate != null && - this.LastBillingDate.Equals(input.LastBillingDate)) - ) && base.Equals(input) && - ( - this.NextBillingDate == input.NextBillingDate || - (this.NextBillingDate != null && - this.NextBillingDate.Equals(input.NextBillingDate)) - ) && base.Equals(input) && - ( - this.RateTable == input.RateTable || - (this.RateTable != null && - this.RateTable.Equals(input.RateTable)) - ) && base.Equals(input) && - ( - this.Retainage == input.Retainage || - (this.Retainage != null && - this.Retainage.Equals(input.Retainage)) - ) && base.Equals(input) && - ( - this.RunAllocationOnReleaseOfProjectTransactions == input.RunAllocationOnReleaseOfProjectTransactions || - (this.RunAllocationOnReleaseOfProjectTransactions != null && - this.RunAllocationOnReleaseOfProjectTransactions.Equals(input.RunAllocationOnReleaseOfProjectTransactions)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.UseTMRevenueBudgetLimits == input.UseTMRevenueBudgetLimits || - (this.UseTMRevenueBudgetLimits != null && - this.UseTMRevenueBudgetLimits.Equals(input.UseTMRevenueBudgetLimits)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllocationRule != null) - hashCode = hashCode * 59 + this.AllocationRule.GetHashCode(); - if (this.AutomaticallyReleaseARDocuments != null) - hashCode = hashCode * 59 + this.AutomaticallyReleaseARDocuments.GetHashCode(); - if (this.BillingPeriod != null) - hashCode = hashCode * 59 + this.BillingPeriod.GetHashCode(); - if (this.BillingRule != null) - hashCode = hashCode * 59 + this.BillingRule.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CreateProFormaOnBilling != null) - hashCode = hashCode * 59 + this.CreateProFormaOnBilling.GetHashCode(); - if (this.LastBillingDate != null) - hashCode = hashCode * 59 + this.LastBillingDate.GetHashCode(); - if (this.NextBillingDate != null) - hashCode = hashCode * 59 + this.NextBillingDate.GetHashCode(); - if (this.RateTable != null) - hashCode = hashCode * 59 + this.RateTable.GetHashCode(); - if (this.Retainage != null) - hashCode = hashCode * 59 + this.Retainage.GetHashCode(); - if (this.RunAllocationOnReleaseOfProjectTransactions != null) - hashCode = hashCode * 59 + this.RunAllocationOnReleaseOfProjectTransactions.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.UseTMRevenueBudgetLimits != null) - hashCode = hashCode * 59 + this.UseTMRevenueBudgetLimits.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectBillingDetails.cs b/Default.18.200.001/Model/ProjectBillingDetails.cs deleted file mode 100644 index 17c9b8b5..00000000 --- a/Default.18.200.001/Model/ProjectBillingDetails.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectBillingDetails - /// - [DataContract] - public partial class ProjectBillingDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// customerID. - /// customerName. - /// description. - /// from. - /// lastBillingDate. - /// projectID. - /// selected. - /// to. - public ProjectBillingDetails(StringValue customerID = default(StringValue), StringValue customerName = default(StringValue), StringValue description = default(StringValue), DateTimeValue from = default(DateTimeValue), DateTimeValue lastBillingDate = default(DateTimeValue), StringValue projectID = default(StringValue), BooleanValue selected = default(BooleanValue), DateTimeValue to = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CustomerID = customerID; - this.CustomerName = customerName; - this.Description = description; - this.From = from; - this.LastBillingDate = lastBillingDate; - this.ProjectID = projectID; - this.Selected = selected; - this.To = to; - } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerName - /// - [DataMember(Name="CustomerName", EmitDefaultValue=false)] - public StringValue CustomerName { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets From - /// - [DataMember(Name="From", EmitDefaultValue=false)] - public DateTimeValue From { get; set; } - - /// - /// Gets or Sets LastBillingDate - /// - [DataMember(Name="LastBillingDate", EmitDefaultValue=false)] - public DateTimeValue LastBillingDate { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } - - /// - /// Gets or Sets To - /// - [DataMember(Name="To", EmitDefaultValue=false)] - public DateTimeValue To { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectBillingDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" LastBillingDate: ").Append(LastBillingDate).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectBillingDetails); - } - - /// - /// Returns true if ProjectBillingDetails instances are equal - /// - /// Instance of ProjectBillingDetails to be compared - /// Boolean - public bool Equals(ProjectBillingDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerName == input.CustomerName || - (this.CustomerName != null && - this.CustomerName.Equals(input.CustomerName)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && base.Equals(input) && - ( - this.LastBillingDate == input.LastBillingDate || - (this.LastBillingDate != null && - this.LastBillingDate.Equals(input.LastBillingDate)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.To == input.To || - (this.To != null && - this.To.Equals(input.To)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerName != null) - hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.From != null) - hashCode = hashCode * 59 + this.From.GetHashCode(); - if (this.LastBillingDate != null) - hashCode = hashCode * 59 + this.LastBillingDate.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.To != null) - hashCode = hashCode * 59 + this.To.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectBillingRules.cs b/Default.18.200.001/Model/ProjectBillingRules.cs deleted file mode 100644 index 981d8d85..00000000 --- a/Default.18.200.001/Model/ProjectBillingRules.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectBillingRules - /// - [DataContract] - public partial class ProjectBillingRules : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// billingRuleID. - /// description. - public ProjectBillingRules(BooleanValue active = default(BooleanValue), StringValue billingRuleID = default(StringValue), StringValue description = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.BillingRuleID = billingRuleID; - this.Description = description; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets BillingRuleID - /// - [DataMember(Name="BillingRuleID", EmitDefaultValue=false)] - public StringValue BillingRuleID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectBillingRules {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" BillingRuleID: ").Append(BillingRuleID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectBillingRules); - } - - /// - /// Returns true if ProjectBillingRules instances are equal - /// - /// Instance of ProjectBillingRules to be compared - /// Boolean - public bool Equals(ProjectBillingRules input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.BillingRuleID == input.BillingRuleID || - (this.BillingRuleID != null && - this.BillingRuleID.Equals(input.BillingRuleID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.BillingRuleID != null) - hashCode = hashCode * 59 + this.BillingRuleID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectBudget.cs b/Default.18.200.001/Model/ProjectBudget.cs deleted file mode 100644 index 9ac830a3..00000000 --- a/Default.18.200.001/Model/ProjectBudget.cs +++ /dev/null @@ -1,830 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectBudget - /// - [DataContract] - public partial class ProjectBudget : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountGroup. - /// actualAmount. - /// actualPlusOpenCommittedAmount. - /// actualQty. - /// autoCompleted. - /// budgetedCOAmount. - /// budgetedCOQty. - /// committedCOAmount. - /// committedCOQty. - /// committedInvoicedAmount. - /// committedInvoicedQty. - /// committedOpenAmount. - /// committedOpenQty. - /// committedReceivedQty. - /// completed. - /// costAtCompletion. - /// costCode. - /// costToComplete. - /// description. - /// draftInvoicesAmount. - /// inventoryID. - /// lastCostAtCompletion. - /// lastCostToComplete. - /// lastModifiedDateTime. - /// lastPercentageOfCompletion. - /// originalBudgetedAmount. - /// originalBudgetedQty. - /// originalCommittedAmount. - /// originalCommittedQty. - /// pendingInvoiceAmount. - /// percentageOfCompletion. - /// performance. - /// projectID. - /// projectTaskID. - /// retainage. - /// revenueTask. - /// revisedBudgetedAmount. - /// revisedBudgetedQty. - /// revisedCommittedAmount. - /// revisedCommittedQty. - /// taxCategory. - /// type. - /// unitRate. - /// uOM. - /// varianceAmount. - public ProjectBudget(StringValue accountGroup = default(StringValue), DecimalValue actualAmount = default(DecimalValue), DecimalValue actualPlusOpenCommittedAmount = default(DecimalValue), DecimalValue actualQty = default(DecimalValue), BooleanValue autoCompleted = default(BooleanValue), DecimalValue budgetedCOAmount = default(DecimalValue), DecimalValue budgetedCOQty = default(DecimalValue), DecimalValue committedCOAmount = default(DecimalValue), DecimalValue committedCOQty = default(DecimalValue), DecimalValue committedInvoicedAmount = default(DecimalValue), DecimalValue committedInvoicedQty = default(DecimalValue), DecimalValue committedOpenAmount = default(DecimalValue), DecimalValue committedOpenQty = default(DecimalValue), DecimalValue committedReceivedQty = default(DecimalValue), DecimalValue completed = default(DecimalValue), DecimalValue costAtCompletion = default(DecimalValue), StringValue costCode = default(StringValue), DecimalValue costToComplete = default(DecimalValue), StringValue description = default(StringValue), DecimalValue draftInvoicesAmount = default(DecimalValue), StringValue inventoryID = default(StringValue), DecimalValue lastCostAtCompletion = default(DecimalValue), DecimalValue lastCostToComplete = default(DecimalValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue lastPercentageOfCompletion = default(DecimalValue), DecimalValue originalBudgetedAmount = default(DecimalValue), DecimalValue originalBudgetedQty = default(DecimalValue), DecimalValue originalCommittedAmount = default(DecimalValue), DecimalValue originalCommittedQty = default(DecimalValue), DecimalValue pendingInvoiceAmount = default(DecimalValue), DecimalValue percentageOfCompletion = default(DecimalValue), DecimalValue performance = default(DecimalValue), StringValue projectID = default(StringValue), StringValue projectTaskID = default(StringValue), DecimalValue retainage = default(DecimalValue), IntValue revenueTask = default(IntValue), DecimalValue revisedBudgetedAmount = default(DecimalValue), DecimalValue revisedBudgetedQty = default(DecimalValue), DecimalValue revisedCommittedAmount = default(DecimalValue), DecimalValue revisedCommittedQty = default(DecimalValue), StringValue taxCategory = default(StringValue), StringValue type = default(StringValue), DecimalValue unitRate = default(DecimalValue), StringValue uOM = default(StringValue), DecimalValue varianceAmount = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountGroup = accountGroup; - this.ActualAmount = actualAmount; - this.ActualPlusOpenCommittedAmount = actualPlusOpenCommittedAmount; - this.ActualQty = actualQty; - this.AutoCompleted = autoCompleted; - this.BudgetedCOAmount = budgetedCOAmount; - this.BudgetedCOQty = budgetedCOQty; - this.CommittedCOAmount = committedCOAmount; - this.CommittedCOQty = committedCOQty; - this.CommittedInvoicedAmount = committedInvoicedAmount; - this.CommittedInvoicedQty = committedInvoicedQty; - this.CommittedOpenAmount = committedOpenAmount; - this.CommittedOpenQty = committedOpenQty; - this.CommittedReceivedQty = committedReceivedQty; - this.Completed = completed; - this.CostAtCompletion = costAtCompletion; - this.CostCode = costCode; - this.CostToComplete = costToComplete; - this.Description = description; - this.DraftInvoicesAmount = draftInvoicesAmount; - this.InventoryID = inventoryID; - this.LastCostAtCompletion = lastCostAtCompletion; - this.LastCostToComplete = lastCostToComplete; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LastPercentageOfCompletion = lastPercentageOfCompletion; - this.OriginalBudgetedAmount = originalBudgetedAmount; - this.OriginalBudgetedQty = originalBudgetedQty; - this.OriginalCommittedAmount = originalCommittedAmount; - this.OriginalCommittedQty = originalCommittedQty; - this.PendingInvoiceAmount = pendingInvoiceAmount; - this.PercentageOfCompletion = percentageOfCompletion; - this.Performance = performance; - this.ProjectID = projectID; - this.ProjectTaskID = projectTaskID; - this.Retainage = retainage; - this.RevenueTask = revenueTask; - this.RevisedBudgetedAmount = revisedBudgetedAmount; - this.RevisedBudgetedQty = revisedBudgetedQty; - this.RevisedCommittedAmount = revisedCommittedAmount; - this.RevisedCommittedQty = revisedCommittedQty; - this.TaxCategory = taxCategory; - this.Type = type; - this.UnitRate = unitRate; - this.UOM = uOM; - this.VarianceAmount = varianceAmount; - } - - /// - /// Gets or Sets AccountGroup - /// - [DataMember(Name="AccountGroup", EmitDefaultValue=false)] - public StringValue AccountGroup { get; set; } - - /// - /// Gets or Sets ActualAmount - /// - [DataMember(Name="ActualAmount", EmitDefaultValue=false)] - public DecimalValue ActualAmount { get; set; } - - /// - /// Gets or Sets ActualPlusOpenCommittedAmount - /// - [DataMember(Name="ActualPlusOpenCommittedAmount", EmitDefaultValue=false)] - public DecimalValue ActualPlusOpenCommittedAmount { get; set; } - - /// - /// Gets or Sets ActualQty - /// - [DataMember(Name="ActualQty", EmitDefaultValue=false)] - public DecimalValue ActualQty { get; set; } - - /// - /// Gets or Sets AutoCompleted - /// - [DataMember(Name="AutoCompleted", EmitDefaultValue=false)] - public BooleanValue AutoCompleted { get; set; } - - /// - /// Gets or Sets BudgetedCOAmount - /// - [DataMember(Name="BudgetedCOAmount", EmitDefaultValue=false)] - public DecimalValue BudgetedCOAmount { get; set; } - - /// - /// Gets or Sets BudgetedCOQty - /// - [DataMember(Name="BudgetedCOQty", EmitDefaultValue=false)] - public DecimalValue BudgetedCOQty { get; set; } - - /// - /// Gets or Sets CommittedCOAmount - /// - [DataMember(Name="CommittedCOAmount", EmitDefaultValue=false)] - public DecimalValue CommittedCOAmount { get; set; } - - /// - /// Gets or Sets CommittedCOQty - /// - [DataMember(Name="CommittedCOQty", EmitDefaultValue=false)] - public DecimalValue CommittedCOQty { get; set; } - - /// - /// Gets or Sets CommittedInvoicedAmount - /// - [DataMember(Name="CommittedInvoicedAmount", EmitDefaultValue=false)] - public DecimalValue CommittedInvoicedAmount { get; set; } - - /// - /// Gets or Sets CommittedInvoicedQty - /// - [DataMember(Name="CommittedInvoicedQty", EmitDefaultValue=false)] - public DecimalValue CommittedInvoicedQty { get; set; } - - /// - /// Gets or Sets CommittedOpenAmount - /// - [DataMember(Name="CommittedOpenAmount", EmitDefaultValue=false)] - public DecimalValue CommittedOpenAmount { get; set; } - - /// - /// Gets or Sets CommittedOpenQty - /// - [DataMember(Name="CommittedOpenQty", EmitDefaultValue=false)] - public DecimalValue CommittedOpenQty { get; set; } - - /// - /// Gets or Sets CommittedReceivedQty - /// - [DataMember(Name="CommittedReceivedQty", EmitDefaultValue=false)] - public DecimalValue CommittedReceivedQty { get; set; } - - /// - /// Gets or Sets Completed - /// - [DataMember(Name="Completed", EmitDefaultValue=false)] - public DecimalValue Completed { get; set; } - - /// - /// Gets or Sets CostAtCompletion - /// - [DataMember(Name="CostAtCompletion", EmitDefaultValue=false)] - public DecimalValue CostAtCompletion { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets CostToComplete - /// - [DataMember(Name="CostToComplete", EmitDefaultValue=false)] - public DecimalValue CostToComplete { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DraftInvoicesAmount - /// - [DataMember(Name="DraftInvoicesAmount", EmitDefaultValue=false)] - public DecimalValue DraftInvoicesAmount { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LastCostAtCompletion - /// - [DataMember(Name="LastCostAtCompletion", EmitDefaultValue=false)] - public DecimalValue LastCostAtCompletion { get; set; } - - /// - /// Gets or Sets LastCostToComplete - /// - [DataMember(Name="LastCostToComplete", EmitDefaultValue=false)] - public DecimalValue LastCostToComplete { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LastPercentageOfCompletion - /// - [DataMember(Name="LastPercentageOfCompletion", EmitDefaultValue=false)] - public DecimalValue LastPercentageOfCompletion { get; set; } - - /// - /// Gets or Sets OriginalBudgetedAmount - /// - [DataMember(Name="OriginalBudgetedAmount", EmitDefaultValue=false)] - public DecimalValue OriginalBudgetedAmount { get; set; } - - /// - /// Gets or Sets OriginalBudgetedQty - /// - [DataMember(Name="OriginalBudgetedQty", EmitDefaultValue=false)] - public DecimalValue OriginalBudgetedQty { get; set; } - - /// - /// Gets or Sets OriginalCommittedAmount - /// - [DataMember(Name="OriginalCommittedAmount", EmitDefaultValue=false)] - public DecimalValue OriginalCommittedAmount { get; set; } - - /// - /// Gets or Sets OriginalCommittedQty - /// - [DataMember(Name="OriginalCommittedQty", EmitDefaultValue=false)] - public DecimalValue OriginalCommittedQty { get; set; } - - /// - /// Gets or Sets PendingInvoiceAmount - /// - [DataMember(Name="PendingInvoiceAmount", EmitDefaultValue=false)] - public DecimalValue PendingInvoiceAmount { get; set; } - - /// - /// Gets or Sets PercentageOfCompletion - /// - [DataMember(Name="PercentageOfCompletion", EmitDefaultValue=false)] - public DecimalValue PercentageOfCompletion { get; set; } - - /// - /// Gets or Sets Performance - /// - [DataMember(Name="Performance", EmitDefaultValue=false)] - public DecimalValue Performance { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets Retainage - /// - [DataMember(Name="Retainage", EmitDefaultValue=false)] - public DecimalValue Retainage { get; set; } - - /// - /// Gets or Sets RevenueTask - /// - [DataMember(Name="RevenueTask", EmitDefaultValue=false)] - public IntValue RevenueTask { get; set; } - - /// - /// Gets or Sets RevisedBudgetedAmount - /// - [DataMember(Name="RevisedBudgetedAmount", EmitDefaultValue=false)] - public DecimalValue RevisedBudgetedAmount { get; set; } - - /// - /// Gets or Sets RevisedBudgetedQty - /// - [DataMember(Name="RevisedBudgetedQty", EmitDefaultValue=false)] - public DecimalValue RevisedBudgetedQty { get; set; } - - /// - /// Gets or Sets RevisedCommittedAmount - /// - [DataMember(Name="RevisedCommittedAmount", EmitDefaultValue=false)] - public DecimalValue RevisedCommittedAmount { get; set; } - - /// - /// Gets or Sets RevisedCommittedQty - /// - [DataMember(Name="RevisedCommittedQty", EmitDefaultValue=false)] - public DecimalValue RevisedCommittedQty { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UnitRate - /// - [DataMember(Name="UnitRate", EmitDefaultValue=false)] - public DecimalValue UnitRate { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets VarianceAmount - /// - [DataMember(Name="VarianceAmount", EmitDefaultValue=false)] - public DecimalValue VarianceAmount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectBudget {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountGroup: ").Append(AccountGroup).Append("\n"); - sb.Append(" ActualAmount: ").Append(ActualAmount).Append("\n"); - sb.Append(" ActualPlusOpenCommittedAmount: ").Append(ActualPlusOpenCommittedAmount).Append("\n"); - sb.Append(" ActualQty: ").Append(ActualQty).Append("\n"); - sb.Append(" AutoCompleted: ").Append(AutoCompleted).Append("\n"); - sb.Append(" BudgetedCOAmount: ").Append(BudgetedCOAmount).Append("\n"); - sb.Append(" BudgetedCOQty: ").Append(BudgetedCOQty).Append("\n"); - sb.Append(" CommittedCOAmount: ").Append(CommittedCOAmount).Append("\n"); - sb.Append(" CommittedCOQty: ").Append(CommittedCOQty).Append("\n"); - sb.Append(" CommittedInvoicedAmount: ").Append(CommittedInvoicedAmount).Append("\n"); - sb.Append(" CommittedInvoicedQty: ").Append(CommittedInvoicedQty).Append("\n"); - sb.Append(" CommittedOpenAmount: ").Append(CommittedOpenAmount).Append("\n"); - sb.Append(" CommittedOpenQty: ").Append(CommittedOpenQty).Append("\n"); - sb.Append(" CommittedReceivedQty: ").Append(CommittedReceivedQty).Append("\n"); - sb.Append(" Completed: ").Append(Completed).Append("\n"); - sb.Append(" CostAtCompletion: ").Append(CostAtCompletion).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" CostToComplete: ").Append(CostToComplete).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DraftInvoicesAmount: ").Append(DraftInvoicesAmount).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LastCostAtCompletion: ").Append(LastCostAtCompletion).Append("\n"); - sb.Append(" LastCostToComplete: ").Append(LastCostToComplete).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LastPercentageOfCompletion: ").Append(LastPercentageOfCompletion).Append("\n"); - sb.Append(" OriginalBudgetedAmount: ").Append(OriginalBudgetedAmount).Append("\n"); - sb.Append(" OriginalBudgetedQty: ").Append(OriginalBudgetedQty).Append("\n"); - sb.Append(" OriginalCommittedAmount: ").Append(OriginalCommittedAmount).Append("\n"); - sb.Append(" OriginalCommittedQty: ").Append(OriginalCommittedQty).Append("\n"); - sb.Append(" PendingInvoiceAmount: ").Append(PendingInvoiceAmount).Append("\n"); - sb.Append(" PercentageOfCompletion: ").Append(PercentageOfCompletion).Append("\n"); - sb.Append(" Performance: ").Append(Performance).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" Retainage: ").Append(Retainage).Append("\n"); - sb.Append(" RevenueTask: ").Append(RevenueTask).Append("\n"); - sb.Append(" RevisedBudgetedAmount: ").Append(RevisedBudgetedAmount).Append("\n"); - sb.Append(" RevisedBudgetedQty: ").Append(RevisedBudgetedQty).Append("\n"); - sb.Append(" RevisedCommittedAmount: ").Append(RevisedCommittedAmount).Append("\n"); - sb.Append(" RevisedCommittedQty: ").Append(RevisedCommittedQty).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UnitRate: ").Append(UnitRate).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" VarianceAmount: ").Append(VarianceAmount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectBudget); - } - - /// - /// Returns true if ProjectBudget instances are equal - /// - /// Instance of ProjectBudget to be compared - /// Boolean - public bool Equals(ProjectBudget input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountGroup == input.AccountGroup || - (this.AccountGroup != null && - this.AccountGroup.Equals(input.AccountGroup)) - ) && base.Equals(input) && - ( - this.ActualAmount == input.ActualAmount || - (this.ActualAmount != null && - this.ActualAmount.Equals(input.ActualAmount)) - ) && base.Equals(input) && - ( - this.ActualPlusOpenCommittedAmount == input.ActualPlusOpenCommittedAmount || - (this.ActualPlusOpenCommittedAmount != null && - this.ActualPlusOpenCommittedAmount.Equals(input.ActualPlusOpenCommittedAmount)) - ) && base.Equals(input) && - ( - this.ActualQty == input.ActualQty || - (this.ActualQty != null && - this.ActualQty.Equals(input.ActualQty)) - ) && base.Equals(input) && - ( - this.AutoCompleted == input.AutoCompleted || - (this.AutoCompleted != null && - this.AutoCompleted.Equals(input.AutoCompleted)) - ) && base.Equals(input) && - ( - this.BudgetedCOAmount == input.BudgetedCOAmount || - (this.BudgetedCOAmount != null && - this.BudgetedCOAmount.Equals(input.BudgetedCOAmount)) - ) && base.Equals(input) && - ( - this.BudgetedCOQty == input.BudgetedCOQty || - (this.BudgetedCOQty != null && - this.BudgetedCOQty.Equals(input.BudgetedCOQty)) - ) && base.Equals(input) && - ( - this.CommittedCOAmount == input.CommittedCOAmount || - (this.CommittedCOAmount != null && - this.CommittedCOAmount.Equals(input.CommittedCOAmount)) - ) && base.Equals(input) && - ( - this.CommittedCOQty == input.CommittedCOQty || - (this.CommittedCOQty != null && - this.CommittedCOQty.Equals(input.CommittedCOQty)) - ) && base.Equals(input) && - ( - this.CommittedInvoicedAmount == input.CommittedInvoicedAmount || - (this.CommittedInvoicedAmount != null && - this.CommittedInvoicedAmount.Equals(input.CommittedInvoicedAmount)) - ) && base.Equals(input) && - ( - this.CommittedInvoicedQty == input.CommittedInvoicedQty || - (this.CommittedInvoicedQty != null && - this.CommittedInvoicedQty.Equals(input.CommittedInvoicedQty)) - ) && base.Equals(input) && - ( - this.CommittedOpenAmount == input.CommittedOpenAmount || - (this.CommittedOpenAmount != null && - this.CommittedOpenAmount.Equals(input.CommittedOpenAmount)) - ) && base.Equals(input) && - ( - this.CommittedOpenQty == input.CommittedOpenQty || - (this.CommittedOpenQty != null && - this.CommittedOpenQty.Equals(input.CommittedOpenQty)) - ) && base.Equals(input) && - ( - this.CommittedReceivedQty == input.CommittedReceivedQty || - (this.CommittedReceivedQty != null && - this.CommittedReceivedQty.Equals(input.CommittedReceivedQty)) - ) && base.Equals(input) && - ( - this.Completed == input.Completed || - (this.Completed != null && - this.Completed.Equals(input.Completed)) - ) && base.Equals(input) && - ( - this.CostAtCompletion == input.CostAtCompletion || - (this.CostAtCompletion != null && - this.CostAtCompletion.Equals(input.CostAtCompletion)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.CostToComplete == input.CostToComplete || - (this.CostToComplete != null && - this.CostToComplete.Equals(input.CostToComplete)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DraftInvoicesAmount == input.DraftInvoicesAmount || - (this.DraftInvoicesAmount != null && - this.DraftInvoicesAmount.Equals(input.DraftInvoicesAmount)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LastCostAtCompletion == input.LastCostAtCompletion || - (this.LastCostAtCompletion != null && - this.LastCostAtCompletion.Equals(input.LastCostAtCompletion)) - ) && base.Equals(input) && - ( - this.LastCostToComplete == input.LastCostToComplete || - (this.LastCostToComplete != null && - this.LastCostToComplete.Equals(input.LastCostToComplete)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LastPercentageOfCompletion == input.LastPercentageOfCompletion || - (this.LastPercentageOfCompletion != null && - this.LastPercentageOfCompletion.Equals(input.LastPercentageOfCompletion)) - ) && base.Equals(input) && - ( - this.OriginalBudgetedAmount == input.OriginalBudgetedAmount || - (this.OriginalBudgetedAmount != null && - this.OriginalBudgetedAmount.Equals(input.OriginalBudgetedAmount)) - ) && base.Equals(input) && - ( - this.OriginalBudgetedQty == input.OriginalBudgetedQty || - (this.OriginalBudgetedQty != null && - this.OriginalBudgetedQty.Equals(input.OriginalBudgetedQty)) - ) && base.Equals(input) && - ( - this.OriginalCommittedAmount == input.OriginalCommittedAmount || - (this.OriginalCommittedAmount != null && - this.OriginalCommittedAmount.Equals(input.OriginalCommittedAmount)) - ) && base.Equals(input) && - ( - this.OriginalCommittedQty == input.OriginalCommittedQty || - (this.OriginalCommittedQty != null && - this.OriginalCommittedQty.Equals(input.OriginalCommittedQty)) - ) && base.Equals(input) && - ( - this.PendingInvoiceAmount == input.PendingInvoiceAmount || - (this.PendingInvoiceAmount != null && - this.PendingInvoiceAmount.Equals(input.PendingInvoiceAmount)) - ) && base.Equals(input) && - ( - this.PercentageOfCompletion == input.PercentageOfCompletion || - (this.PercentageOfCompletion != null && - this.PercentageOfCompletion.Equals(input.PercentageOfCompletion)) - ) && base.Equals(input) && - ( - this.Performance == input.Performance || - (this.Performance != null && - this.Performance.Equals(input.Performance)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.Retainage == input.Retainage || - (this.Retainage != null && - this.Retainage.Equals(input.Retainage)) - ) && base.Equals(input) && - ( - this.RevenueTask == input.RevenueTask || - (this.RevenueTask != null && - this.RevenueTask.Equals(input.RevenueTask)) - ) && base.Equals(input) && - ( - this.RevisedBudgetedAmount == input.RevisedBudgetedAmount || - (this.RevisedBudgetedAmount != null && - this.RevisedBudgetedAmount.Equals(input.RevisedBudgetedAmount)) - ) && base.Equals(input) && - ( - this.RevisedBudgetedQty == input.RevisedBudgetedQty || - (this.RevisedBudgetedQty != null && - this.RevisedBudgetedQty.Equals(input.RevisedBudgetedQty)) - ) && base.Equals(input) && - ( - this.RevisedCommittedAmount == input.RevisedCommittedAmount || - (this.RevisedCommittedAmount != null && - this.RevisedCommittedAmount.Equals(input.RevisedCommittedAmount)) - ) && base.Equals(input) && - ( - this.RevisedCommittedQty == input.RevisedCommittedQty || - (this.RevisedCommittedQty != null && - this.RevisedCommittedQty.Equals(input.RevisedCommittedQty)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UnitRate == input.UnitRate || - (this.UnitRate != null && - this.UnitRate.Equals(input.UnitRate)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.VarianceAmount == input.VarianceAmount || - (this.VarianceAmount != null && - this.VarianceAmount.Equals(input.VarianceAmount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountGroup != null) - hashCode = hashCode * 59 + this.AccountGroup.GetHashCode(); - if (this.ActualAmount != null) - hashCode = hashCode * 59 + this.ActualAmount.GetHashCode(); - if (this.ActualPlusOpenCommittedAmount != null) - hashCode = hashCode * 59 + this.ActualPlusOpenCommittedAmount.GetHashCode(); - if (this.ActualQty != null) - hashCode = hashCode * 59 + this.ActualQty.GetHashCode(); - if (this.AutoCompleted != null) - hashCode = hashCode * 59 + this.AutoCompleted.GetHashCode(); - if (this.BudgetedCOAmount != null) - hashCode = hashCode * 59 + this.BudgetedCOAmount.GetHashCode(); - if (this.BudgetedCOQty != null) - hashCode = hashCode * 59 + this.BudgetedCOQty.GetHashCode(); - if (this.CommittedCOAmount != null) - hashCode = hashCode * 59 + this.CommittedCOAmount.GetHashCode(); - if (this.CommittedCOQty != null) - hashCode = hashCode * 59 + this.CommittedCOQty.GetHashCode(); - if (this.CommittedInvoicedAmount != null) - hashCode = hashCode * 59 + this.CommittedInvoicedAmount.GetHashCode(); - if (this.CommittedInvoicedQty != null) - hashCode = hashCode * 59 + this.CommittedInvoicedQty.GetHashCode(); - if (this.CommittedOpenAmount != null) - hashCode = hashCode * 59 + this.CommittedOpenAmount.GetHashCode(); - if (this.CommittedOpenQty != null) - hashCode = hashCode * 59 + this.CommittedOpenQty.GetHashCode(); - if (this.CommittedReceivedQty != null) - hashCode = hashCode * 59 + this.CommittedReceivedQty.GetHashCode(); - if (this.Completed != null) - hashCode = hashCode * 59 + this.Completed.GetHashCode(); - if (this.CostAtCompletion != null) - hashCode = hashCode * 59 + this.CostAtCompletion.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.CostToComplete != null) - hashCode = hashCode * 59 + this.CostToComplete.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DraftInvoicesAmount != null) - hashCode = hashCode * 59 + this.DraftInvoicesAmount.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LastCostAtCompletion != null) - hashCode = hashCode * 59 + this.LastCostAtCompletion.GetHashCode(); - if (this.LastCostToComplete != null) - hashCode = hashCode * 59 + this.LastCostToComplete.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LastPercentageOfCompletion != null) - hashCode = hashCode * 59 + this.LastPercentageOfCompletion.GetHashCode(); - if (this.OriginalBudgetedAmount != null) - hashCode = hashCode * 59 + this.OriginalBudgetedAmount.GetHashCode(); - if (this.OriginalBudgetedQty != null) - hashCode = hashCode * 59 + this.OriginalBudgetedQty.GetHashCode(); - if (this.OriginalCommittedAmount != null) - hashCode = hashCode * 59 + this.OriginalCommittedAmount.GetHashCode(); - if (this.OriginalCommittedQty != null) - hashCode = hashCode * 59 + this.OriginalCommittedQty.GetHashCode(); - if (this.PendingInvoiceAmount != null) - hashCode = hashCode * 59 + this.PendingInvoiceAmount.GetHashCode(); - if (this.PercentageOfCompletion != null) - hashCode = hashCode * 59 + this.PercentageOfCompletion.GetHashCode(); - if (this.Performance != null) - hashCode = hashCode * 59 + this.Performance.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.Retainage != null) - hashCode = hashCode * 59 + this.Retainage.GetHashCode(); - if (this.RevenueTask != null) - hashCode = hashCode * 59 + this.RevenueTask.GetHashCode(); - if (this.RevisedBudgetedAmount != null) - hashCode = hashCode * 59 + this.RevisedBudgetedAmount.GetHashCode(); - if (this.RevisedBudgetedQty != null) - hashCode = hashCode * 59 + this.RevisedBudgetedQty.GetHashCode(); - if (this.RevisedCommittedAmount != null) - hashCode = hashCode * 59 + this.RevisedCommittedAmount.GetHashCode(); - if (this.RevisedCommittedQty != null) - hashCode = hashCode * 59 + this.RevisedCommittedQty.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UnitRate != null) - hashCode = hashCode * 59 + this.UnitRate.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.VarianceAmount != null) - hashCode = hashCode * 59 + this.VarianceAmount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectEmployee.cs b/Default.18.200.001/Model/ProjectEmployee.cs deleted file mode 100644 index cea7b51c..00000000 --- a/Default.18.200.001/Model/ProjectEmployee.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectEmployee - /// - [DataContract] - public partial class ProjectEmployee : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// department. - /// employeeID. - /// employeeName. - public ProjectEmployee(StringValue department = default(StringValue), StringValue employeeID = default(StringValue), StringValue employeeName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Department = department; - this.EmployeeID = employeeID; - this.EmployeeName = employeeName; - } - - /// - /// Gets or Sets Department - /// - [DataMember(Name="Department", EmitDefaultValue=false)] - public StringValue Department { get; set; } - - /// - /// Gets or Sets EmployeeID - /// - [DataMember(Name="EmployeeID", EmitDefaultValue=false)] - public StringValue EmployeeID { get; set; } - - /// - /// Gets or Sets EmployeeName - /// - [DataMember(Name="EmployeeName", EmitDefaultValue=false)] - public StringValue EmployeeName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectEmployee {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Department: ").Append(Department).Append("\n"); - sb.Append(" EmployeeID: ").Append(EmployeeID).Append("\n"); - sb.Append(" EmployeeName: ").Append(EmployeeName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectEmployee); - } - - /// - /// Returns true if ProjectEmployee instances are equal - /// - /// Instance of ProjectEmployee to be compared - /// Boolean - public bool Equals(ProjectEmployee input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Department == input.Department || - (this.Department != null && - this.Department.Equals(input.Department)) - ) && base.Equals(input) && - ( - this.EmployeeID == input.EmployeeID || - (this.EmployeeID != null && - this.EmployeeID.Equals(input.EmployeeID)) - ) && base.Equals(input) && - ( - this.EmployeeName == input.EmployeeName || - (this.EmployeeName != null && - this.EmployeeName.Equals(input.EmployeeName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Department != null) - hashCode = hashCode * 59 + this.Department.GetHashCode(); - if (this.EmployeeID != null) - hashCode = hashCode * 59 + this.EmployeeID.GetHashCode(); - if (this.EmployeeName != null) - hashCode = hashCode * 59 + this.EmployeeName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectEquipment.cs b/Default.18.200.001/Model/ProjectEquipment.cs deleted file mode 100644 index 898f1ed2..00000000 --- a/Default.18.200.001/Model/ProjectEquipment.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectEquipment - /// - [DataContract] - public partial class ProjectEquipment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// description. - /// equipmentID. - /// runRate. - /// runRateItem. - /// setupRate. - /// setupRateItem. - /// suspendRate. - /// suspendRateItem. - public ProjectEquipment(BooleanValue active = default(BooleanValue), StringValue description = default(StringValue), StringValue equipmentID = default(StringValue), DecimalValue runRate = default(DecimalValue), StringValue runRateItem = default(StringValue), DecimalValue setupRate = default(DecimalValue), StringValue setupRateItem = default(StringValue), DecimalValue suspendRate = default(DecimalValue), StringValue suspendRateItem = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Description = description; - this.EquipmentID = equipmentID; - this.RunRate = runRate; - this.RunRateItem = runRateItem; - this.SetupRate = setupRate; - this.SetupRateItem = setupRateItem; - this.SuspendRate = suspendRate; - this.SuspendRateItem = suspendRateItem; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EquipmentID - /// - [DataMember(Name="EquipmentID", EmitDefaultValue=false)] - public StringValue EquipmentID { get; set; } - - /// - /// Gets or Sets RunRate - /// - [DataMember(Name="RunRate", EmitDefaultValue=false)] - public DecimalValue RunRate { get; set; } - - /// - /// Gets or Sets RunRateItem - /// - [DataMember(Name="RunRateItem", EmitDefaultValue=false)] - public StringValue RunRateItem { get; set; } - - /// - /// Gets or Sets SetupRate - /// - [DataMember(Name="SetupRate", EmitDefaultValue=false)] - public DecimalValue SetupRate { get; set; } - - /// - /// Gets or Sets SetupRateItem - /// - [DataMember(Name="SetupRateItem", EmitDefaultValue=false)] - public StringValue SetupRateItem { get; set; } - - /// - /// Gets or Sets SuspendRate - /// - [DataMember(Name="SuspendRate", EmitDefaultValue=false)] - public DecimalValue SuspendRate { get; set; } - - /// - /// Gets or Sets SuspendRateItem - /// - [DataMember(Name="SuspendRateItem", EmitDefaultValue=false)] - public StringValue SuspendRateItem { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectEquipment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EquipmentID: ").Append(EquipmentID).Append("\n"); - sb.Append(" RunRate: ").Append(RunRate).Append("\n"); - sb.Append(" RunRateItem: ").Append(RunRateItem).Append("\n"); - sb.Append(" SetupRate: ").Append(SetupRate).Append("\n"); - sb.Append(" SetupRateItem: ").Append(SetupRateItem).Append("\n"); - sb.Append(" SuspendRate: ").Append(SuspendRate).Append("\n"); - sb.Append(" SuspendRateItem: ").Append(SuspendRateItem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectEquipment); - } - - /// - /// Returns true if ProjectEquipment instances are equal - /// - /// Instance of ProjectEquipment to be compared - /// Boolean - public bool Equals(ProjectEquipment input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EquipmentID == input.EquipmentID || - (this.EquipmentID != null && - this.EquipmentID.Equals(input.EquipmentID)) - ) && base.Equals(input) && - ( - this.RunRate == input.RunRate || - (this.RunRate != null && - this.RunRate.Equals(input.RunRate)) - ) && base.Equals(input) && - ( - this.RunRateItem == input.RunRateItem || - (this.RunRateItem != null && - this.RunRateItem.Equals(input.RunRateItem)) - ) && base.Equals(input) && - ( - this.SetupRate == input.SetupRate || - (this.SetupRate != null && - this.SetupRate.Equals(input.SetupRate)) - ) && base.Equals(input) && - ( - this.SetupRateItem == input.SetupRateItem || - (this.SetupRateItem != null && - this.SetupRateItem.Equals(input.SetupRateItem)) - ) && base.Equals(input) && - ( - this.SuspendRate == input.SuspendRate || - (this.SuspendRate != null && - this.SuspendRate.Equals(input.SuspendRate)) - ) && base.Equals(input) && - ( - this.SuspendRateItem == input.SuspendRateItem || - (this.SuspendRateItem != null && - this.SuspendRateItem.Equals(input.SuspendRateItem)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EquipmentID != null) - hashCode = hashCode * 59 + this.EquipmentID.GetHashCode(); - if (this.RunRate != null) - hashCode = hashCode * 59 + this.RunRate.GetHashCode(); - if (this.RunRateItem != null) - hashCode = hashCode * 59 + this.RunRateItem.GetHashCode(); - if (this.SetupRate != null) - hashCode = hashCode * 59 + this.SetupRate.GetHashCode(); - if (this.SetupRateItem != null) - hashCode = hashCode * 59 + this.SetupRateItem.GetHashCode(); - if (this.SuspendRate != null) - hashCode = hashCode * 59 + this.SuspendRate.GetHashCode(); - if (this.SuspendRateItem != null) - hashCode = hashCode * 59 + this.SuspendRateItem.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectGLAccount.cs b/Default.18.200.001/Model/ProjectGLAccount.cs deleted file mode 100644 index 3d59f696..00000000 --- a/Default.18.200.001/Model/ProjectGLAccount.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectGLAccount - /// - [DataContract] - public partial class ProjectGLAccount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accrualAccount. - /// accrualSubaccount. - /// defaultAccount. - /// defaultSubaccount. - /// defaultTaskForGLAccounts. - public ProjectGLAccount(StringValue accrualAccount = default(StringValue), StringValue accrualSubaccount = default(StringValue), StringValue defaultAccount = default(StringValue), StringValue defaultSubaccount = default(StringValue), IEnumerable defaultTaskForGLAccounts = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccrualAccount = accrualAccount; - this.AccrualSubaccount = accrualSubaccount; - this.DefaultAccount = defaultAccount; - this.DefaultSubaccount = defaultSubaccount; - this.DefaultTaskForGLAccounts = defaultTaskForGLAccounts; - } - - /// - /// Gets or Sets AccrualAccount - /// - [DataMember(Name="AccrualAccount", EmitDefaultValue=false)] - public StringValue AccrualAccount { get; set; } - - /// - /// Gets or Sets AccrualSubaccount - /// - [DataMember(Name="AccrualSubaccount", EmitDefaultValue=false)] - public StringValue AccrualSubaccount { get; set; } - - /// - /// Gets or Sets DefaultAccount - /// - [DataMember(Name="DefaultAccount", EmitDefaultValue=false)] - public StringValue DefaultAccount { get; set; } - - /// - /// Gets or Sets DefaultSubaccount - /// - [DataMember(Name="DefaultSubaccount", EmitDefaultValue=false)] - public StringValue DefaultSubaccount { get; set; } - - /// - /// Gets or Sets DefaultTaskForGLAccounts - /// - [DataMember(Name="DefaultTaskForGLAccounts", EmitDefaultValue=false)] - public IEnumerable DefaultTaskForGLAccounts { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectGLAccount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccrualAccount: ").Append(AccrualAccount).Append("\n"); - sb.Append(" AccrualSubaccount: ").Append(AccrualSubaccount).Append("\n"); - sb.Append(" DefaultAccount: ").Append(DefaultAccount).Append("\n"); - sb.Append(" DefaultSubaccount: ").Append(DefaultSubaccount).Append("\n"); - sb.Append(" DefaultTaskForGLAccounts: ").Append(DefaultTaskForGLAccounts).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectGLAccount); - } - - /// - /// Returns true if ProjectGLAccount instances are equal - /// - /// Instance of ProjectGLAccount to be compared - /// Boolean - public bool Equals(ProjectGLAccount input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccrualAccount == input.AccrualAccount || - (this.AccrualAccount != null && - this.AccrualAccount.Equals(input.AccrualAccount)) - ) && base.Equals(input) && - ( - this.AccrualSubaccount == input.AccrualSubaccount || - (this.AccrualSubaccount != null && - this.AccrualSubaccount.Equals(input.AccrualSubaccount)) - ) && base.Equals(input) && - ( - this.DefaultAccount == input.DefaultAccount || - (this.DefaultAccount != null && - this.DefaultAccount.Equals(input.DefaultAccount)) - ) && base.Equals(input) && - ( - this.DefaultSubaccount == input.DefaultSubaccount || - (this.DefaultSubaccount != null && - this.DefaultSubaccount.Equals(input.DefaultSubaccount)) - ) && base.Equals(input) && - ( - this.DefaultTaskForGLAccounts == input.DefaultTaskForGLAccounts || - this.DefaultTaskForGLAccounts != null && - this.DefaultTaskForGLAccounts.SequenceEqual(input.DefaultTaskForGLAccounts) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccrualAccount != null) - hashCode = hashCode * 59 + this.AccrualAccount.GetHashCode(); - if (this.AccrualSubaccount != null) - hashCode = hashCode * 59 + this.AccrualSubaccount.GetHashCode(); - if (this.DefaultAccount != null) - hashCode = hashCode * 59 + this.DefaultAccount.GetHashCode(); - if (this.DefaultSubaccount != null) - hashCode = hashCode * 59 + this.DefaultSubaccount.GetHashCode(); - if (this.DefaultTaskForGLAccounts != null) - hashCode = hashCode * 59 + this.DefaultTaskForGLAccounts.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectProFormaDetails.cs b/Default.18.200.001/Model/ProjectProFormaDetails.cs deleted file mode 100644 index b6b8c709..00000000 --- a/Default.18.200.001/Model/ProjectProFormaDetails.cs +++ /dev/null @@ -1,430 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectProFormaDetails - /// - [DataContract] - public partial class ProjectProFormaDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aRDocDate. - /// aRDocDescription. - /// aRDocOriginalAmount. - /// aRDocStatus. - /// aRDocType. - /// aRReferenceNbr. - /// billingNbr. - /// description. - /// invoiceTotal. - /// openARBalance. - /// originalRefNbr. - /// originalRetainage. - /// paidRetainage. - /// proFormaDate. - /// proFormaReferenceNbr. - /// retainageInvoice. - /// status. - /// totalAmount. - /// unpaidRetainage. - /// unreleasedRetainage. - public ProjectProFormaDetails(DateTimeValue aRDocDate = default(DateTimeValue), StringValue aRDocDescription = default(StringValue), DecimalValue aRDocOriginalAmount = default(DecimalValue), StringValue aRDocStatus = default(StringValue), StringValue aRDocType = default(StringValue), StringValue aRReferenceNbr = default(StringValue), IntValue billingNbr = default(IntValue), StringValue description = default(StringValue), DecimalValue invoiceTotal = default(DecimalValue), DecimalValue openARBalance = default(DecimalValue), StringValue originalRefNbr = default(StringValue), DecimalValue originalRetainage = default(DecimalValue), DecimalValue paidRetainage = default(DecimalValue), DateTimeValue proFormaDate = default(DateTimeValue), StringValue proFormaReferenceNbr = default(StringValue), BooleanValue retainageInvoice = default(BooleanValue), StringValue status = default(StringValue), DecimalValue totalAmount = default(DecimalValue), DecimalValue unpaidRetainage = default(DecimalValue), DecimalValue unreleasedRetainage = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ARDocDate = aRDocDate; - this.ARDocDescription = aRDocDescription; - this.ARDocOriginalAmount = aRDocOriginalAmount; - this.ARDocStatus = aRDocStatus; - this.ARDocType = aRDocType; - this.ARReferenceNbr = aRReferenceNbr; - this.BillingNbr = billingNbr; - this.Description = description; - this.InvoiceTotal = invoiceTotal; - this.OpenARBalance = openARBalance; - this.OriginalRefNbr = originalRefNbr; - this.OriginalRetainage = originalRetainage; - this.PaidRetainage = paidRetainage; - this.ProFormaDate = proFormaDate; - this.ProFormaReferenceNbr = proFormaReferenceNbr; - this.RetainageInvoice = retainageInvoice; - this.Status = status; - this.TotalAmount = totalAmount; - this.UnpaidRetainage = unpaidRetainage; - this.UnreleasedRetainage = unreleasedRetainage; - } - - /// - /// Gets or Sets ARDocDate - /// - [DataMember(Name="ARDocDate", EmitDefaultValue=false)] - public DateTimeValue ARDocDate { get; set; } - - /// - /// Gets or Sets ARDocDescription - /// - [DataMember(Name="ARDocDescription", EmitDefaultValue=false)] - public StringValue ARDocDescription { get; set; } - - /// - /// Gets or Sets ARDocOriginalAmount - /// - [DataMember(Name="ARDocOriginalAmount", EmitDefaultValue=false)] - public DecimalValue ARDocOriginalAmount { get; set; } - - /// - /// Gets or Sets ARDocStatus - /// - [DataMember(Name="ARDocStatus", EmitDefaultValue=false)] - public StringValue ARDocStatus { get; set; } - - /// - /// Gets or Sets ARDocType - /// - [DataMember(Name="ARDocType", EmitDefaultValue=false)] - public StringValue ARDocType { get; set; } - - /// - /// Gets or Sets ARReferenceNbr - /// - [DataMember(Name="ARReferenceNbr", EmitDefaultValue=false)] - public StringValue ARReferenceNbr { get; set; } - - /// - /// Gets or Sets BillingNbr - /// - [DataMember(Name="BillingNbr", EmitDefaultValue=false)] - public IntValue BillingNbr { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InvoiceTotal - /// - [DataMember(Name="InvoiceTotal", EmitDefaultValue=false)] - public DecimalValue InvoiceTotal { get; set; } - - /// - /// Gets or Sets OpenARBalance - /// - [DataMember(Name="OpenARBalance", EmitDefaultValue=false)] - public DecimalValue OpenARBalance { get; set; } - - /// - /// Gets or Sets OriginalRefNbr - /// - [DataMember(Name="OriginalRefNbr", EmitDefaultValue=false)] - public StringValue OriginalRefNbr { get; set; } - - /// - /// Gets or Sets OriginalRetainage - /// - [DataMember(Name="OriginalRetainage", EmitDefaultValue=false)] - public DecimalValue OriginalRetainage { get; set; } - - /// - /// Gets or Sets PaidRetainage - /// - [DataMember(Name="PaidRetainage", EmitDefaultValue=false)] - public DecimalValue PaidRetainage { get; set; } - - /// - /// Gets or Sets ProFormaDate - /// - [DataMember(Name="ProFormaDate", EmitDefaultValue=false)] - public DateTimeValue ProFormaDate { get; set; } - - /// - /// Gets or Sets ProFormaReferenceNbr - /// - [DataMember(Name="ProFormaReferenceNbr", EmitDefaultValue=false)] - public StringValue ProFormaReferenceNbr { get; set; } - - /// - /// Gets or Sets RetainageInvoice - /// - [DataMember(Name="RetainageInvoice", EmitDefaultValue=false)] - public BooleanValue RetainageInvoice { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TotalAmount - /// - [DataMember(Name="TotalAmount", EmitDefaultValue=false)] - public DecimalValue TotalAmount { get; set; } - - /// - /// Gets or Sets UnpaidRetainage - /// - [DataMember(Name="UnpaidRetainage", EmitDefaultValue=false)] - public DecimalValue UnpaidRetainage { get; set; } - - /// - /// Gets or Sets UnreleasedRetainage - /// - [DataMember(Name="UnreleasedRetainage", EmitDefaultValue=false)] - public DecimalValue UnreleasedRetainage { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectProFormaDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ARDocDate: ").Append(ARDocDate).Append("\n"); - sb.Append(" ARDocDescription: ").Append(ARDocDescription).Append("\n"); - sb.Append(" ARDocOriginalAmount: ").Append(ARDocOriginalAmount).Append("\n"); - sb.Append(" ARDocStatus: ").Append(ARDocStatus).Append("\n"); - sb.Append(" ARDocType: ").Append(ARDocType).Append("\n"); - sb.Append(" ARReferenceNbr: ").Append(ARReferenceNbr).Append("\n"); - sb.Append(" BillingNbr: ").Append(BillingNbr).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InvoiceTotal: ").Append(InvoiceTotal).Append("\n"); - sb.Append(" OpenARBalance: ").Append(OpenARBalance).Append("\n"); - sb.Append(" OriginalRefNbr: ").Append(OriginalRefNbr).Append("\n"); - sb.Append(" OriginalRetainage: ").Append(OriginalRetainage).Append("\n"); - sb.Append(" PaidRetainage: ").Append(PaidRetainage).Append("\n"); - sb.Append(" ProFormaDate: ").Append(ProFormaDate).Append("\n"); - sb.Append(" ProFormaReferenceNbr: ").Append(ProFormaReferenceNbr).Append("\n"); - sb.Append(" RetainageInvoice: ").Append(RetainageInvoice).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); - sb.Append(" UnpaidRetainage: ").Append(UnpaidRetainage).Append("\n"); - sb.Append(" UnreleasedRetainage: ").Append(UnreleasedRetainage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectProFormaDetails); - } - - /// - /// Returns true if ProjectProFormaDetails instances are equal - /// - /// Instance of ProjectProFormaDetails to be compared - /// Boolean - public bool Equals(ProjectProFormaDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ARDocDate == input.ARDocDate || - (this.ARDocDate != null && - this.ARDocDate.Equals(input.ARDocDate)) - ) && base.Equals(input) && - ( - this.ARDocDescription == input.ARDocDescription || - (this.ARDocDescription != null && - this.ARDocDescription.Equals(input.ARDocDescription)) - ) && base.Equals(input) && - ( - this.ARDocOriginalAmount == input.ARDocOriginalAmount || - (this.ARDocOriginalAmount != null && - this.ARDocOriginalAmount.Equals(input.ARDocOriginalAmount)) - ) && base.Equals(input) && - ( - this.ARDocStatus == input.ARDocStatus || - (this.ARDocStatus != null && - this.ARDocStatus.Equals(input.ARDocStatus)) - ) && base.Equals(input) && - ( - this.ARDocType == input.ARDocType || - (this.ARDocType != null && - this.ARDocType.Equals(input.ARDocType)) - ) && base.Equals(input) && - ( - this.ARReferenceNbr == input.ARReferenceNbr || - (this.ARReferenceNbr != null && - this.ARReferenceNbr.Equals(input.ARReferenceNbr)) - ) && base.Equals(input) && - ( - this.BillingNbr == input.BillingNbr || - (this.BillingNbr != null && - this.BillingNbr.Equals(input.BillingNbr)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InvoiceTotal == input.InvoiceTotal || - (this.InvoiceTotal != null && - this.InvoiceTotal.Equals(input.InvoiceTotal)) - ) && base.Equals(input) && - ( - this.OpenARBalance == input.OpenARBalance || - (this.OpenARBalance != null && - this.OpenARBalance.Equals(input.OpenARBalance)) - ) && base.Equals(input) && - ( - this.OriginalRefNbr == input.OriginalRefNbr || - (this.OriginalRefNbr != null && - this.OriginalRefNbr.Equals(input.OriginalRefNbr)) - ) && base.Equals(input) && - ( - this.OriginalRetainage == input.OriginalRetainage || - (this.OriginalRetainage != null && - this.OriginalRetainage.Equals(input.OriginalRetainage)) - ) && base.Equals(input) && - ( - this.PaidRetainage == input.PaidRetainage || - (this.PaidRetainage != null && - this.PaidRetainage.Equals(input.PaidRetainage)) - ) && base.Equals(input) && - ( - this.ProFormaDate == input.ProFormaDate || - (this.ProFormaDate != null && - this.ProFormaDate.Equals(input.ProFormaDate)) - ) && base.Equals(input) && - ( - this.ProFormaReferenceNbr == input.ProFormaReferenceNbr || - (this.ProFormaReferenceNbr != null && - this.ProFormaReferenceNbr.Equals(input.ProFormaReferenceNbr)) - ) && base.Equals(input) && - ( - this.RetainageInvoice == input.RetainageInvoice || - (this.RetainageInvoice != null && - this.RetainageInvoice.Equals(input.RetainageInvoice)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalAmount == input.TotalAmount || - (this.TotalAmount != null && - this.TotalAmount.Equals(input.TotalAmount)) - ) && base.Equals(input) && - ( - this.UnpaidRetainage == input.UnpaidRetainage || - (this.UnpaidRetainage != null && - this.UnpaidRetainage.Equals(input.UnpaidRetainage)) - ) && base.Equals(input) && - ( - this.UnreleasedRetainage == input.UnreleasedRetainage || - (this.UnreleasedRetainage != null && - this.UnreleasedRetainage.Equals(input.UnreleasedRetainage)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ARDocDate != null) - hashCode = hashCode * 59 + this.ARDocDate.GetHashCode(); - if (this.ARDocDescription != null) - hashCode = hashCode * 59 + this.ARDocDescription.GetHashCode(); - if (this.ARDocOriginalAmount != null) - hashCode = hashCode * 59 + this.ARDocOriginalAmount.GetHashCode(); - if (this.ARDocStatus != null) - hashCode = hashCode * 59 + this.ARDocStatus.GetHashCode(); - if (this.ARDocType != null) - hashCode = hashCode * 59 + this.ARDocType.GetHashCode(); - if (this.ARReferenceNbr != null) - hashCode = hashCode * 59 + this.ARReferenceNbr.GetHashCode(); - if (this.BillingNbr != null) - hashCode = hashCode * 59 + this.BillingNbr.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InvoiceTotal != null) - hashCode = hashCode * 59 + this.InvoiceTotal.GetHashCode(); - if (this.OpenARBalance != null) - hashCode = hashCode * 59 + this.OpenARBalance.GetHashCode(); - if (this.OriginalRefNbr != null) - hashCode = hashCode * 59 + this.OriginalRefNbr.GetHashCode(); - if (this.OriginalRetainage != null) - hashCode = hashCode * 59 + this.OriginalRetainage.GetHashCode(); - if (this.PaidRetainage != null) - hashCode = hashCode * 59 + this.PaidRetainage.GetHashCode(); - if (this.ProFormaDate != null) - hashCode = hashCode * 59 + this.ProFormaDate.GetHashCode(); - if (this.ProFormaReferenceNbr != null) - hashCode = hashCode * 59 + this.ProFormaReferenceNbr.GetHashCode(); - if (this.RetainageInvoice != null) - hashCode = hashCode * 59 + this.RetainageInvoice.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalAmount != null) - hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); - if (this.UnpaidRetainage != null) - hashCode = hashCode * 59 + this.UnpaidRetainage.GetHashCode(); - if (this.UnreleasedRetainage != null) - hashCode = hashCode * 59 + this.UnreleasedRetainage.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectProperties.cs b/Default.18.200.001/Model/ProjectProperties.cs deleted file mode 100644 index 4fc9f0f4..00000000 --- a/Default.18.200.001/Model/ProjectProperties.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectProperties - /// - [DataContract] - public partial class ProjectProperties : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// certifiedJob. - /// changeOrderWorkflow. - /// endDate. - /// lastRevenueChangeNbr. - /// projectManager. - /// restrictEmployees. - /// restrictEquipment. - /// revenueBudgetLevel. - /// startDate. - /// trackProductionData. - public ProjectProperties(BooleanValue certifiedJob = default(BooleanValue), BooleanValue changeOrderWorkflow = default(BooleanValue), DateTimeValue endDate = default(DateTimeValue), StringValue lastRevenueChangeNbr = default(StringValue), StringValue projectManager = default(StringValue), BooleanValue restrictEmployees = default(BooleanValue), BooleanValue restrictEquipment = default(BooleanValue), StringValue revenueBudgetLevel = default(StringValue), DateTimeValue startDate = default(DateTimeValue), BooleanValue trackProductionData = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CertifiedJob = certifiedJob; - this.ChangeOrderWorkflow = changeOrderWorkflow; - this.EndDate = endDate; - this.LastRevenueChangeNbr = lastRevenueChangeNbr; - this.ProjectManager = projectManager; - this.RestrictEmployees = restrictEmployees; - this.RestrictEquipment = restrictEquipment; - this.RevenueBudgetLevel = revenueBudgetLevel; - this.StartDate = startDate; - this.TrackProductionData = trackProductionData; - } - - /// - /// Gets or Sets CertifiedJob - /// - [DataMember(Name="CertifiedJob", EmitDefaultValue=false)] - public BooleanValue CertifiedJob { get; set; } - - /// - /// Gets or Sets ChangeOrderWorkflow - /// - [DataMember(Name="ChangeOrderWorkflow", EmitDefaultValue=false)] - public BooleanValue ChangeOrderWorkflow { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets LastRevenueChangeNbr - /// - [DataMember(Name="LastRevenueChangeNbr", EmitDefaultValue=false)] - public StringValue LastRevenueChangeNbr { get; set; } - - /// - /// Gets or Sets ProjectManager - /// - [DataMember(Name="ProjectManager", EmitDefaultValue=false)] - public StringValue ProjectManager { get; set; } - - /// - /// Gets or Sets RestrictEmployees - /// - [DataMember(Name="RestrictEmployees", EmitDefaultValue=false)] - public BooleanValue RestrictEmployees { get; set; } - - /// - /// Gets or Sets RestrictEquipment - /// - [DataMember(Name="RestrictEquipment", EmitDefaultValue=false)] - public BooleanValue RestrictEquipment { get; set; } - - /// - /// Gets or Sets RevenueBudgetLevel - /// - [DataMember(Name="RevenueBudgetLevel", EmitDefaultValue=false)] - public StringValue RevenueBudgetLevel { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets TrackProductionData - /// - [DataMember(Name="TrackProductionData", EmitDefaultValue=false)] - public BooleanValue TrackProductionData { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectProperties {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CertifiedJob: ").Append(CertifiedJob).Append("\n"); - sb.Append(" ChangeOrderWorkflow: ").Append(ChangeOrderWorkflow).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" LastRevenueChangeNbr: ").Append(LastRevenueChangeNbr).Append("\n"); - sb.Append(" ProjectManager: ").Append(ProjectManager).Append("\n"); - sb.Append(" RestrictEmployees: ").Append(RestrictEmployees).Append("\n"); - sb.Append(" RestrictEquipment: ").Append(RestrictEquipment).Append("\n"); - sb.Append(" RevenueBudgetLevel: ").Append(RevenueBudgetLevel).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" TrackProductionData: ").Append(TrackProductionData).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectProperties); - } - - /// - /// Returns true if ProjectProperties instances are equal - /// - /// Instance of ProjectProperties to be compared - /// Boolean - public bool Equals(ProjectProperties input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CertifiedJob == input.CertifiedJob || - (this.CertifiedJob != null && - this.CertifiedJob.Equals(input.CertifiedJob)) - ) && base.Equals(input) && - ( - this.ChangeOrderWorkflow == input.ChangeOrderWorkflow || - (this.ChangeOrderWorkflow != null && - this.ChangeOrderWorkflow.Equals(input.ChangeOrderWorkflow)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.LastRevenueChangeNbr == input.LastRevenueChangeNbr || - (this.LastRevenueChangeNbr != null && - this.LastRevenueChangeNbr.Equals(input.LastRevenueChangeNbr)) - ) && base.Equals(input) && - ( - this.ProjectManager == input.ProjectManager || - (this.ProjectManager != null && - this.ProjectManager.Equals(input.ProjectManager)) - ) && base.Equals(input) && - ( - this.RestrictEmployees == input.RestrictEmployees || - (this.RestrictEmployees != null && - this.RestrictEmployees.Equals(input.RestrictEmployees)) - ) && base.Equals(input) && - ( - this.RestrictEquipment == input.RestrictEquipment || - (this.RestrictEquipment != null && - this.RestrictEquipment.Equals(input.RestrictEquipment)) - ) && base.Equals(input) && - ( - this.RevenueBudgetLevel == input.RevenueBudgetLevel || - (this.RevenueBudgetLevel != null && - this.RevenueBudgetLevel.Equals(input.RevenueBudgetLevel)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.TrackProductionData == input.TrackProductionData || - (this.TrackProductionData != null && - this.TrackProductionData.Equals(input.TrackProductionData)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CertifiedJob != null) - hashCode = hashCode * 59 + this.CertifiedJob.GetHashCode(); - if (this.ChangeOrderWorkflow != null) - hashCode = hashCode * 59 + this.ChangeOrderWorkflow.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.LastRevenueChangeNbr != null) - hashCode = hashCode * 59 + this.LastRevenueChangeNbr.GetHashCode(); - if (this.ProjectManager != null) - hashCode = hashCode * 59 + this.ProjectManager.GetHashCode(); - if (this.RestrictEmployees != null) - hashCode = hashCode * 59 + this.RestrictEmployees.GetHashCode(); - if (this.RestrictEquipment != null) - hashCode = hashCode * 59 + this.RestrictEquipment.GetHashCode(); - if (this.RevenueBudgetLevel != null) - hashCode = hashCode * 59 + this.RevenueBudgetLevel.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.TrackProductionData != null) - hashCode = hashCode * 59 + this.TrackProductionData.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectTask.cs b/Default.18.200.001/Model/ProjectTask.cs deleted file mode 100644 index c0035e13..00000000 --- a/Default.18.200.001/Model/ProjectTask.cs +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectTask - /// - [DataContract] - public partial class ProjectTask : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// activityHistory. - /// attribute. - /// billingAndAllocationSettings. - /// cRMLink. - /// _default. - /// defaultValues. - /// description. - /// externalRefNbr. - /// lastModifiedDateTime. - /// projectID. - /// projectTaskID. - /// properties. - /// status. - /// visibilitySettings. - public ProjectTask(IEnumerable activityHistory = default(IEnumerable), IEnumerable attribute = default(IEnumerable), ProjectTaskBillingAndAllocationSettings billingAndAllocationSettings = default(ProjectTaskBillingAndAllocationSettings), ProjectTaskToCRMLink cRMLink = default(ProjectTaskToCRMLink), BooleanValue _default = default(BooleanValue), ProjectTaskDefaultValues defaultValues = default(ProjectTaskDefaultValues), StringValue description = default(StringValue), StringValue externalRefNbr = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue projectID = default(StringValue), StringValue projectTaskID = default(StringValue), ProjectTaskProperties properties = default(ProjectTaskProperties), StringValue status = default(StringValue), VisibilitySettings visibilitySettings = default(VisibilitySettings), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ActivityHistory = activityHistory; - this.Attribute = attribute; - this.BillingAndAllocationSettings = billingAndAllocationSettings; - this.CRMLink = cRMLink; - this.Default = _default; - this.DefaultValues = defaultValues; - this.Description = description; - this.ExternalRefNbr = externalRefNbr; - this.LastModifiedDateTime = lastModifiedDateTime; - this.ProjectID = projectID; - this.ProjectTaskID = projectTaskID; - this.Properties = properties; - this.Status = status; - this.VisibilitySettings = visibilitySettings; - } - - /// - /// Gets or Sets ActivityHistory - /// - [DataMember(Name="ActivityHistory", EmitDefaultValue=false)] - public IEnumerable ActivityHistory { get; set; } - - /// - /// Gets or Sets Attribute - /// - [DataMember(Name="Attribute", EmitDefaultValue=false)] - public IEnumerable Attribute { get; set; } - - /// - /// Gets or Sets BillingAndAllocationSettings - /// - [DataMember(Name="BillingAndAllocationSettings", EmitDefaultValue=false)] - public ProjectTaskBillingAndAllocationSettings BillingAndAllocationSettings { get; set; } - - /// - /// Gets or Sets CRMLink - /// - [DataMember(Name="CRMLink", EmitDefaultValue=false)] - public ProjectTaskToCRMLink CRMLink { get; set; } - - /// - /// Gets or Sets Default - /// - [DataMember(Name="Default", EmitDefaultValue=false)] - public BooleanValue Default { get; set; } - - /// - /// Gets or Sets DefaultValues - /// - [DataMember(Name="DefaultValues", EmitDefaultValue=false)] - public ProjectTaskDefaultValues DefaultValues { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExternalRefNbr - /// - [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] - public StringValue ExternalRefNbr { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets Properties - /// - [DataMember(Name="Properties", EmitDefaultValue=false)] - public ProjectTaskProperties Properties { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets VisibilitySettings - /// - [DataMember(Name="VisibilitySettings", EmitDefaultValue=false)] - public VisibilitySettings VisibilitySettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTask {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ActivityHistory: ").Append(ActivityHistory).Append("\n"); - sb.Append(" Attribute: ").Append(Attribute).Append("\n"); - sb.Append(" BillingAndAllocationSettings: ").Append(BillingAndAllocationSettings).Append("\n"); - sb.Append(" CRMLink: ").Append(CRMLink).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append(" DefaultValues: ").Append(DefaultValues).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExternalRefNbr: ").Append(ExternalRefNbr).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" Properties: ").Append(Properties).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" VisibilitySettings: ").Append(VisibilitySettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTask); - } - - /// - /// Returns true if ProjectTask instances are equal - /// - /// Instance of ProjectTask to be compared - /// Boolean - public bool Equals(ProjectTask input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ActivityHistory == input.ActivityHistory || - this.ActivityHistory != null && - this.ActivityHistory.SequenceEqual(input.ActivityHistory) - ) && base.Equals(input) && - ( - this.Attribute == input.Attribute || - this.Attribute != null && - this.Attribute.SequenceEqual(input.Attribute) - ) && base.Equals(input) && - ( - this.BillingAndAllocationSettings == input.BillingAndAllocationSettings || - (this.BillingAndAllocationSettings != null && - this.BillingAndAllocationSettings.Equals(input.BillingAndAllocationSettings)) - ) && base.Equals(input) && - ( - this.CRMLink == input.CRMLink || - (this.CRMLink != null && - this.CRMLink.Equals(input.CRMLink)) - ) && base.Equals(input) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ) && base.Equals(input) && - ( - this.DefaultValues == input.DefaultValues || - (this.DefaultValues != null && - this.DefaultValues.Equals(input.DefaultValues)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExternalRefNbr == input.ExternalRefNbr || - (this.ExternalRefNbr != null && - this.ExternalRefNbr.Equals(input.ExternalRefNbr)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.Properties == input.Properties || - (this.Properties != null && - this.Properties.Equals(input.Properties)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.VisibilitySettings == input.VisibilitySettings || - (this.VisibilitySettings != null && - this.VisibilitySettings.Equals(input.VisibilitySettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ActivityHistory != null) - hashCode = hashCode * 59 + this.ActivityHistory.GetHashCode(); - if (this.Attribute != null) - hashCode = hashCode * 59 + this.Attribute.GetHashCode(); - if (this.BillingAndAllocationSettings != null) - hashCode = hashCode * 59 + this.BillingAndAllocationSettings.GetHashCode(); - if (this.CRMLink != null) - hashCode = hashCode * 59 + this.CRMLink.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - if (this.DefaultValues != null) - hashCode = hashCode * 59 + this.DefaultValues.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExternalRefNbr != null) - hashCode = hashCode * 59 + this.ExternalRefNbr.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.Properties != null) - hashCode = hashCode * 59 + this.Properties.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.VisibilitySettings != null) - hashCode = hashCode * 59 + this.VisibilitySettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectTaskBillingAndAllocationSettings.cs b/Default.18.200.001/Model/ProjectTaskBillingAndAllocationSettings.cs deleted file mode 100644 index 5a66f9fe..00000000 --- a/Default.18.200.001/Model/ProjectTaskBillingAndAllocationSettings.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectTaskBillingAndAllocationSettings - /// - [DataContract] - public partial class ProjectTaskBillingAndAllocationSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocationRule. - /// billingOption. - /// billingRule. - /// billSeparately. - /// branch. - /// customer. - /// location. - /// rateTable. - /// wIPAccountGroup. - public ProjectTaskBillingAndAllocationSettings(StringValue allocationRule = default(StringValue), StringValue billingOption = default(StringValue), StringValue billingRule = default(StringValue), BooleanValue billSeparately = default(BooleanValue), StringValue branch = default(StringValue), StringValue customer = default(StringValue), StringValue location = default(StringValue), StringValue rateTable = default(StringValue), StringValue wIPAccountGroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AllocationRule = allocationRule; - this.BillingOption = billingOption; - this.BillingRule = billingRule; - this.BillSeparately = billSeparately; - this.Branch = branch; - this.Customer = customer; - this.Location = location; - this.RateTable = rateTable; - this.WIPAccountGroup = wIPAccountGroup; - } - - /// - /// Gets or Sets AllocationRule - /// - [DataMember(Name="AllocationRule", EmitDefaultValue=false)] - public StringValue AllocationRule { get; set; } - - /// - /// Gets or Sets BillingOption - /// - [DataMember(Name="BillingOption", EmitDefaultValue=false)] - public StringValue BillingOption { get; set; } - - /// - /// Gets or Sets BillingRule - /// - [DataMember(Name="BillingRule", EmitDefaultValue=false)] - public StringValue BillingRule { get; set; } - - /// - /// Gets or Sets BillSeparately - /// - [DataMember(Name="BillSeparately", EmitDefaultValue=false)] - public BooleanValue BillSeparately { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets RateTable - /// - [DataMember(Name="RateTable", EmitDefaultValue=false)] - public StringValue RateTable { get; set; } - - /// - /// Gets or Sets WIPAccountGroup - /// - [DataMember(Name="WIPAccountGroup", EmitDefaultValue=false)] - public StringValue WIPAccountGroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTaskBillingAndAllocationSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AllocationRule: ").Append(AllocationRule).Append("\n"); - sb.Append(" BillingOption: ").Append(BillingOption).Append("\n"); - sb.Append(" BillingRule: ").Append(BillingRule).Append("\n"); - sb.Append(" BillSeparately: ").Append(BillSeparately).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" RateTable: ").Append(RateTable).Append("\n"); - sb.Append(" WIPAccountGroup: ").Append(WIPAccountGroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTaskBillingAndAllocationSettings); - } - - /// - /// Returns true if ProjectTaskBillingAndAllocationSettings instances are equal - /// - /// Instance of ProjectTaskBillingAndAllocationSettings to be compared - /// Boolean - public bool Equals(ProjectTaskBillingAndAllocationSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AllocationRule == input.AllocationRule || - (this.AllocationRule != null && - this.AllocationRule.Equals(input.AllocationRule)) - ) && base.Equals(input) && - ( - this.BillingOption == input.BillingOption || - (this.BillingOption != null && - this.BillingOption.Equals(input.BillingOption)) - ) && base.Equals(input) && - ( - this.BillingRule == input.BillingRule || - (this.BillingRule != null && - this.BillingRule.Equals(input.BillingRule)) - ) && base.Equals(input) && - ( - this.BillSeparately == input.BillSeparately || - (this.BillSeparately != null && - this.BillSeparately.Equals(input.BillSeparately)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.RateTable == input.RateTable || - (this.RateTable != null && - this.RateTable.Equals(input.RateTable)) - ) && base.Equals(input) && - ( - this.WIPAccountGroup == input.WIPAccountGroup || - (this.WIPAccountGroup != null && - this.WIPAccountGroup.Equals(input.WIPAccountGroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AllocationRule != null) - hashCode = hashCode * 59 + this.AllocationRule.GetHashCode(); - if (this.BillingOption != null) - hashCode = hashCode * 59 + this.BillingOption.GetHashCode(); - if (this.BillingRule != null) - hashCode = hashCode * 59 + this.BillingRule.GetHashCode(); - if (this.BillSeparately != null) - hashCode = hashCode * 59 + this.BillSeparately.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.RateTable != null) - hashCode = hashCode * 59 + this.RateTable.GetHashCode(); - if (this.WIPAccountGroup != null) - hashCode = hashCode * 59 + this.WIPAccountGroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectTaskDefaultValues.cs b/Default.18.200.001/Model/ProjectTaskDefaultValues.cs deleted file mode 100644 index e1ef5d70..00000000 --- a/Default.18.200.001/Model/ProjectTaskDefaultValues.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectTaskDefaultValues - /// - [DataContract] - public partial class ProjectTaskDefaultValues : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accrualAccount. - /// accrualSubaccount. - /// defaultAccount. - /// defaultSubaccount. - /// taxCategory. - public ProjectTaskDefaultValues(StringValue accrualAccount = default(StringValue), StringValue accrualSubaccount = default(StringValue), StringValue defaultAccount = default(StringValue), StringValue defaultSubaccount = default(StringValue), StringValue taxCategory = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccrualAccount = accrualAccount; - this.AccrualSubaccount = accrualSubaccount; - this.DefaultAccount = defaultAccount; - this.DefaultSubaccount = defaultSubaccount; - this.TaxCategory = taxCategory; - } - - /// - /// Gets or Sets AccrualAccount - /// - [DataMember(Name="AccrualAccount", EmitDefaultValue=false)] - public StringValue AccrualAccount { get; set; } - - /// - /// Gets or Sets AccrualSubaccount - /// - [DataMember(Name="AccrualSubaccount", EmitDefaultValue=false)] - public StringValue AccrualSubaccount { get; set; } - - /// - /// Gets or Sets DefaultAccount - /// - [DataMember(Name="DefaultAccount", EmitDefaultValue=false)] - public StringValue DefaultAccount { get; set; } - - /// - /// Gets or Sets DefaultSubaccount - /// - [DataMember(Name="DefaultSubaccount", EmitDefaultValue=false)] - public StringValue DefaultSubaccount { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTaskDefaultValues {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccrualAccount: ").Append(AccrualAccount).Append("\n"); - sb.Append(" AccrualSubaccount: ").Append(AccrualSubaccount).Append("\n"); - sb.Append(" DefaultAccount: ").Append(DefaultAccount).Append("\n"); - sb.Append(" DefaultSubaccount: ").Append(DefaultSubaccount).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTaskDefaultValues); - } - - /// - /// Returns true if ProjectTaskDefaultValues instances are equal - /// - /// Instance of ProjectTaskDefaultValues to be compared - /// Boolean - public bool Equals(ProjectTaskDefaultValues input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccrualAccount == input.AccrualAccount || - (this.AccrualAccount != null && - this.AccrualAccount.Equals(input.AccrualAccount)) - ) && base.Equals(input) && - ( - this.AccrualSubaccount == input.AccrualSubaccount || - (this.AccrualSubaccount != null && - this.AccrualSubaccount.Equals(input.AccrualSubaccount)) - ) && base.Equals(input) && - ( - this.DefaultAccount == input.DefaultAccount || - (this.DefaultAccount != null && - this.DefaultAccount.Equals(input.DefaultAccount)) - ) && base.Equals(input) && - ( - this.DefaultSubaccount == input.DefaultSubaccount || - (this.DefaultSubaccount != null && - this.DefaultSubaccount.Equals(input.DefaultSubaccount)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccrualAccount != null) - hashCode = hashCode * 59 + this.AccrualAccount.GetHashCode(); - if (this.AccrualSubaccount != null) - hashCode = hashCode * 59 + this.AccrualSubaccount.GetHashCode(); - if (this.DefaultAccount != null) - hashCode = hashCode * 59 + this.DefaultAccount.GetHashCode(); - if (this.DefaultSubaccount != null) - hashCode = hashCode * 59 + this.DefaultSubaccount.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectTaskProperties.cs b/Default.18.200.001/Model/ProjectTaskProperties.cs deleted file mode 100644 index 9354137b..00000000 --- a/Default.18.200.001/Model/ProjectTaskProperties.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectTaskProperties - /// - [DataContract] - public partial class ProjectTaskProperties : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// approver. - /// completed. - /// completionMethod. - /// endDate. - /// plannedEndDate. - /// plannedStartDate. - /// startDate. - public ProjectTaskProperties(StringValue approver = default(StringValue), DecimalValue completed = default(DecimalValue), StringValue completionMethod = default(StringValue), DateTimeValue endDate = default(DateTimeValue), DateTimeValue plannedEndDate = default(DateTimeValue), DateTimeValue plannedStartDate = default(DateTimeValue), DateTimeValue startDate = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Approver = approver; - this.Completed = completed; - this.CompletionMethod = completionMethod; - this.EndDate = endDate; - this.PlannedEndDate = plannedEndDate; - this.PlannedStartDate = plannedStartDate; - this.StartDate = startDate; - } - - /// - /// Gets or Sets Approver - /// - [DataMember(Name="Approver", EmitDefaultValue=false)] - public StringValue Approver { get; set; } - - /// - /// Gets or Sets Completed - /// - [DataMember(Name="Completed", EmitDefaultValue=false)] - public DecimalValue Completed { get; set; } - - /// - /// Gets or Sets CompletionMethod - /// - [DataMember(Name="CompletionMethod", EmitDefaultValue=false)] - public StringValue CompletionMethod { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets PlannedEndDate - /// - [DataMember(Name="PlannedEndDate", EmitDefaultValue=false)] - public DateTimeValue PlannedEndDate { get; set; } - - /// - /// Gets or Sets PlannedStartDate - /// - [DataMember(Name="PlannedStartDate", EmitDefaultValue=false)] - public DateTimeValue PlannedStartDate { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTaskProperties {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Approver: ").Append(Approver).Append("\n"); - sb.Append(" Completed: ").Append(Completed).Append("\n"); - sb.Append(" CompletionMethod: ").Append(CompletionMethod).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" PlannedEndDate: ").Append(PlannedEndDate).Append("\n"); - sb.Append(" PlannedStartDate: ").Append(PlannedStartDate).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTaskProperties); - } - - /// - /// Returns true if ProjectTaskProperties instances are equal - /// - /// Instance of ProjectTaskProperties to be compared - /// Boolean - public bool Equals(ProjectTaskProperties input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Approver == input.Approver || - (this.Approver != null && - this.Approver.Equals(input.Approver)) - ) && base.Equals(input) && - ( - this.Completed == input.Completed || - (this.Completed != null && - this.Completed.Equals(input.Completed)) - ) && base.Equals(input) && - ( - this.CompletionMethod == input.CompletionMethod || - (this.CompletionMethod != null && - this.CompletionMethod.Equals(input.CompletionMethod)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.PlannedEndDate == input.PlannedEndDate || - (this.PlannedEndDate != null && - this.PlannedEndDate.Equals(input.PlannedEndDate)) - ) && base.Equals(input) && - ( - this.PlannedStartDate == input.PlannedStartDate || - (this.PlannedStartDate != null && - this.PlannedStartDate.Equals(input.PlannedStartDate)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Approver != null) - hashCode = hashCode * 59 + this.Approver.GetHashCode(); - if (this.Completed != null) - hashCode = hashCode * 59 + this.Completed.GetHashCode(); - if (this.CompletionMethod != null) - hashCode = hashCode * 59 + this.CompletionMethod.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.PlannedEndDate != null) - hashCode = hashCode * 59 + this.PlannedEndDate.GetHashCode(); - if (this.PlannedStartDate != null) - hashCode = hashCode * 59 + this.PlannedStartDate.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectTaskToCRMLink.cs b/Default.18.200.001/Model/ProjectTaskToCRMLink.cs deleted file mode 100644 index 1b2d31b7..00000000 --- a/Default.18.200.001/Model/ProjectTaskToCRMLink.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectTaskToCRMLink - /// - [DataContract] - public partial class ProjectTaskToCRMLink : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountedCampaign. - public ProjectTaskToCRMLink(StringValue accountedCampaign = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountedCampaign = accountedCampaign; - } - - /// - /// Gets or Sets AccountedCampaign - /// - [DataMember(Name="AccountedCampaign", EmitDefaultValue=false)] - public StringValue AccountedCampaign { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTaskToCRMLink {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountedCampaign: ").Append(AccountedCampaign).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTaskToCRMLink); - } - - /// - /// Returns true if ProjectTaskToCRMLink instances are equal - /// - /// Instance of ProjectTaskToCRMLink to be compared - /// Boolean - public bool Equals(ProjectTaskToCRMLink input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountedCampaign == input.AccountedCampaign || - (this.AccountedCampaign != null && - this.AccountedCampaign.Equals(input.AccountedCampaign)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountedCampaign != null) - hashCode = hashCode * 59 + this.AccountedCampaign.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectTemplate.cs b/Default.18.200.001/Model/ProjectTemplate.cs deleted file mode 100644 index eb2313aa..00000000 --- a/Default.18.200.001/Model/ProjectTemplate.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectTemplate - /// - [DataContract] - public partial class ProjectTemplate : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributes. - /// billingAndAllocationSettings. - /// description. - /// employees. - /// equipments. - /// gLAccounts. - /// lastModifiedDateTime. - /// projectProperties. - /// projectTemplateID. - /// status. - /// visibilitySettings. - public ProjectTemplate(IEnumerable attributes = default(IEnumerable), ProjectBillingAndAllocationSettings billingAndAllocationSettings = default(ProjectBillingAndAllocationSettings), StringValue description = default(StringValue), IEnumerable employees = default(IEnumerable), IEnumerable equipments = default(IEnumerable), ProjectGLAccount gLAccounts = default(ProjectGLAccount), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ProjectProperties projectProperties = default(ProjectProperties), StringValue projectTemplateID = default(StringValue), StringValue status = default(StringValue), VisibilitySettings visibilitySettings = default(VisibilitySettings), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attributes = attributes; - this.BillingAndAllocationSettings = billingAndAllocationSettings; - this.Description = description; - this.Employees = employees; - this.Equipments = equipments; - this.GLAccounts = gLAccounts; - this.LastModifiedDateTime = lastModifiedDateTime; - this.ProjectProperties = projectProperties; - this.ProjectTemplateID = projectTemplateID; - this.Status = status; - this.VisibilitySettings = visibilitySettings; - } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets BillingAndAllocationSettings - /// - [DataMember(Name="BillingAndAllocationSettings", EmitDefaultValue=false)] - public ProjectBillingAndAllocationSettings BillingAndAllocationSettings { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Employees - /// - [DataMember(Name="Employees", EmitDefaultValue=false)] - public IEnumerable Employees { get; set; } - - /// - /// Gets or Sets Equipments - /// - [DataMember(Name="Equipments", EmitDefaultValue=false)] - public IEnumerable Equipments { get; set; } - - /// - /// Gets or Sets GLAccounts - /// - [DataMember(Name="GLAccounts", EmitDefaultValue=false)] - public ProjectGLAccount GLAccounts { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets ProjectProperties - /// - [DataMember(Name="ProjectProperties", EmitDefaultValue=false)] - public ProjectProperties ProjectProperties { get; set; } - - /// - /// Gets or Sets ProjectTemplateID - /// - [DataMember(Name="ProjectTemplateID", EmitDefaultValue=false)] - public StringValue ProjectTemplateID { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets VisibilitySettings - /// - [DataMember(Name="VisibilitySettings", EmitDefaultValue=false)] - public VisibilitySettings VisibilitySettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTemplate {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BillingAndAllocationSettings: ").Append(BillingAndAllocationSettings).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Employees: ").Append(Employees).Append("\n"); - sb.Append(" Equipments: ").Append(Equipments).Append("\n"); - sb.Append(" GLAccounts: ").Append(GLAccounts).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" ProjectProperties: ").Append(ProjectProperties).Append("\n"); - sb.Append(" ProjectTemplateID: ").Append(ProjectTemplateID).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" VisibilitySettings: ").Append(VisibilitySettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTemplate); - } - - /// - /// Returns true if ProjectTemplate instances are equal - /// - /// Instance of ProjectTemplate to be compared - /// Boolean - public bool Equals(ProjectTemplate input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BillingAndAllocationSettings == input.BillingAndAllocationSettings || - (this.BillingAndAllocationSettings != null && - this.BillingAndAllocationSettings.Equals(input.BillingAndAllocationSettings)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Employees == input.Employees || - this.Employees != null && - this.Employees.SequenceEqual(input.Employees) - ) && base.Equals(input) && - ( - this.Equipments == input.Equipments || - this.Equipments != null && - this.Equipments.SequenceEqual(input.Equipments) - ) && base.Equals(input) && - ( - this.GLAccounts == input.GLAccounts || - (this.GLAccounts != null && - this.GLAccounts.Equals(input.GLAccounts)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.ProjectProperties == input.ProjectProperties || - (this.ProjectProperties != null && - this.ProjectProperties.Equals(input.ProjectProperties)) - ) && base.Equals(input) && - ( - this.ProjectTemplateID == input.ProjectTemplateID || - (this.ProjectTemplateID != null && - this.ProjectTemplateID.Equals(input.ProjectTemplateID)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.VisibilitySettings == input.VisibilitySettings || - (this.VisibilitySettings != null && - this.VisibilitySettings.Equals(input.VisibilitySettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BillingAndAllocationSettings != null) - hashCode = hashCode * 59 + this.BillingAndAllocationSettings.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Employees != null) - hashCode = hashCode * 59 + this.Employees.GetHashCode(); - if (this.Equipments != null) - hashCode = hashCode * 59 + this.Equipments.GetHashCode(); - if (this.GLAccounts != null) - hashCode = hashCode * 59 + this.GLAccounts.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.ProjectProperties != null) - hashCode = hashCode * 59 + this.ProjectProperties.GetHashCode(); - if (this.ProjectTemplateID != null) - hashCode = hashCode * 59 + this.ProjectTemplateID.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.VisibilitySettings != null) - hashCode = hashCode * 59 + this.VisibilitySettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectTemplateTask.cs b/Default.18.200.001/Model/ProjectTemplateTask.cs deleted file mode 100644 index fca5bd7b..00000000 --- a/Default.18.200.001/Model/ProjectTemplateTask.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectTemplateTask - /// - [DataContract] - public partial class ProjectTemplateTask : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributes. - /// billingAndAllocationSettings. - /// defaultValues. - /// description. - /// lastModifiedDateTime. - /// projectTemplateID. - /// projectTemplateTaskID. - /// properties. - /// visibilitySettings. - public ProjectTemplateTask(IEnumerable attributes = default(IEnumerable), ProjectTaskBillingAndAllocationSettings billingAndAllocationSettings = default(ProjectTaskBillingAndAllocationSettings), ProjectTaskDefaultValues defaultValues = default(ProjectTaskDefaultValues), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue projectTemplateID = default(StringValue), StringValue projectTemplateTaskID = default(StringValue), ProjectTemplateTaskProperties properties = default(ProjectTemplateTaskProperties), VisibilitySettings visibilitySettings = default(VisibilitySettings), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attributes = attributes; - this.BillingAndAllocationSettings = billingAndAllocationSettings; - this.DefaultValues = defaultValues; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.ProjectTemplateID = projectTemplateID; - this.ProjectTemplateTaskID = projectTemplateTaskID; - this.Properties = properties; - this.VisibilitySettings = visibilitySettings; - } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets BillingAndAllocationSettings - /// - [DataMember(Name="BillingAndAllocationSettings", EmitDefaultValue=false)] - public ProjectTaskBillingAndAllocationSettings BillingAndAllocationSettings { get; set; } - - /// - /// Gets or Sets DefaultValues - /// - [DataMember(Name="DefaultValues", EmitDefaultValue=false)] - public ProjectTaskDefaultValues DefaultValues { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets ProjectTemplateID - /// - [DataMember(Name="ProjectTemplateID", EmitDefaultValue=false)] - public StringValue ProjectTemplateID { get; set; } - - /// - /// Gets or Sets ProjectTemplateTaskID - /// - [DataMember(Name="ProjectTemplateTaskID", EmitDefaultValue=false)] - public StringValue ProjectTemplateTaskID { get; set; } - - /// - /// Gets or Sets Properties - /// - [DataMember(Name="Properties", EmitDefaultValue=false)] - public ProjectTemplateTaskProperties Properties { get; set; } - - /// - /// Gets or Sets VisibilitySettings - /// - [DataMember(Name="VisibilitySettings", EmitDefaultValue=false)] - public VisibilitySettings VisibilitySettings { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTemplateTask {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" BillingAndAllocationSettings: ").Append(BillingAndAllocationSettings).Append("\n"); - sb.Append(" DefaultValues: ").Append(DefaultValues).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" ProjectTemplateID: ").Append(ProjectTemplateID).Append("\n"); - sb.Append(" ProjectTemplateTaskID: ").Append(ProjectTemplateTaskID).Append("\n"); - sb.Append(" Properties: ").Append(Properties).Append("\n"); - sb.Append(" VisibilitySettings: ").Append(VisibilitySettings).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTemplateTask); - } - - /// - /// Returns true if ProjectTemplateTask instances are equal - /// - /// Instance of ProjectTemplateTask to be compared - /// Boolean - public bool Equals(ProjectTemplateTask input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.BillingAndAllocationSettings == input.BillingAndAllocationSettings || - (this.BillingAndAllocationSettings != null && - this.BillingAndAllocationSettings.Equals(input.BillingAndAllocationSettings)) - ) && base.Equals(input) && - ( - this.DefaultValues == input.DefaultValues || - (this.DefaultValues != null && - this.DefaultValues.Equals(input.DefaultValues)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.ProjectTemplateID == input.ProjectTemplateID || - (this.ProjectTemplateID != null && - this.ProjectTemplateID.Equals(input.ProjectTemplateID)) - ) && base.Equals(input) && - ( - this.ProjectTemplateTaskID == input.ProjectTemplateTaskID || - (this.ProjectTemplateTaskID != null && - this.ProjectTemplateTaskID.Equals(input.ProjectTemplateTaskID)) - ) && base.Equals(input) && - ( - this.Properties == input.Properties || - (this.Properties != null && - this.Properties.Equals(input.Properties)) - ) && base.Equals(input) && - ( - this.VisibilitySettings == input.VisibilitySettings || - (this.VisibilitySettings != null && - this.VisibilitySettings.Equals(input.VisibilitySettings)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.BillingAndAllocationSettings != null) - hashCode = hashCode * 59 + this.BillingAndAllocationSettings.GetHashCode(); - if (this.DefaultValues != null) - hashCode = hashCode * 59 + this.DefaultValues.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.ProjectTemplateID != null) - hashCode = hashCode * 59 + this.ProjectTemplateID.GetHashCode(); - if (this.ProjectTemplateTaskID != null) - hashCode = hashCode * 59 + this.ProjectTemplateTaskID.GetHashCode(); - if (this.Properties != null) - hashCode = hashCode * 59 + this.Properties.GetHashCode(); - if (this.VisibilitySettings != null) - hashCode = hashCode * 59 + this.VisibilitySettings.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectTemplateTaskProperties.cs b/Default.18.200.001/Model/ProjectTemplateTaskProperties.cs deleted file mode 100644 index cf7a07e5..00000000 --- a/Default.18.200.001/Model/ProjectTemplateTaskProperties.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectTemplateTaskProperties - /// - [DataContract] - public partial class ProjectTemplateTaskProperties : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// approver. - /// automaticallyIncludeInProject. - /// completionMethod. - /// _default. - public ProjectTemplateTaskProperties(StringValue approver = default(StringValue), BooleanValue automaticallyIncludeInProject = default(BooleanValue), StringValue completionMethod = default(StringValue), BooleanValue _default = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Approver = approver; - this.AutomaticallyIncludeInProject = automaticallyIncludeInProject; - this.CompletionMethod = completionMethod; - this.Default = _default; - } - - /// - /// Gets or Sets Approver - /// - [DataMember(Name="Approver", EmitDefaultValue=false)] - public StringValue Approver { get; set; } - - /// - /// Gets or Sets AutomaticallyIncludeInProject - /// - [DataMember(Name="AutomaticallyIncludeInProject", EmitDefaultValue=false)] - public BooleanValue AutomaticallyIncludeInProject { get; set; } - - /// - /// Gets or Sets CompletionMethod - /// - [DataMember(Name="CompletionMethod", EmitDefaultValue=false)] - public StringValue CompletionMethod { get; set; } - - /// - /// Gets or Sets Default - /// - [DataMember(Name="Default", EmitDefaultValue=false)] - public BooleanValue Default { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTemplateTaskProperties {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Approver: ").Append(Approver).Append("\n"); - sb.Append(" AutomaticallyIncludeInProject: ").Append(AutomaticallyIncludeInProject).Append("\n"); - sb.Append(" CompletionMethod: ").Append(CompletionMethod).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTemplateTaskProperties); - } - - /// - /// Returns true if ProjectTemplateTaskProperties instances are equal - /// - /// Instance of ProjectTemplateTaskProperties to be compared - /// Boolean - public bool Equals(ProjectTemplateTaskProperties input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Approver == input.Approver || - (this.Approver != null && - this.Approver.Equals(input.Approver)) - ) && base.Equals(input) && - ( - this.AutomaticallyIncludeInProject == input.AutomaticallyIncludeInProject || - (this.AutomaticallyIncludeInProject != null && - this.AutomaticallyIncludeInProject.Equals(input.AutomaticallyIncludeInProject)) - ) && base.Equals(input) && - ( - this.CompletionMethod == input.CompletionMethod || - (this.CompletionMethod != null && - this.CompletionMethod.Equals(input.CompletionMethod)) - ) && base.Equals(input) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Approver != null) - hashCode = hashCode * 59 + this.Approver.GetHashCode(); - if (this.AutomaticallyIncludeInProject != null) - hashCode = hashCode * 59 + this.AutomaticallyIncludeInProject.GetHashCode(); - if (this.CompletionMethod != null) - hashCode = hashCode * 59 + this.CompletionMethod.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectTransaction.cs b/Default.18.200.001/Model/ProjectTransaction.cs deleted file mode 100644 index 4b5ea015..00000000 --- a/Default.18.200.001/Model/ProjectTransaction.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectTransaction - /// - [DataContract] - public partial class ProjectTransaction : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// description. - /// details. - /// lastModifiedDateTime. - /// module. - /// originalDocNbr. - /// originalDocType. - /// referenceNbr. - /// status. - /// totalAmount. - /// totalBillableQty. - /// totalQty. - public ProjectTransaction(DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue module = default(StringValue), StringValue originalDocNbr = default(StringValue), StringValue originalDocType = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalAmount = default(DecimalValue), DecimalValue totalBillableQty = default(DecimalValue), DecimalValue totalQty = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.Details = details; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Module = module; - this.OriginalDocNbr = originalDocNbr; - this.OriginalDocType = originalDocType; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TotalAmount = totalAmount; - this.TotalBillableQty = totalBillableQty; - this.TotalQty = totalQty; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } - - /// - /// Gets or Sets OriginalDocNbr - /// - [DataMember(Name="OriginalDocNbr", EmitDefaultValue=false)] - public StringValue OriginalDocNbr { get; set; } - - /// - /// Gets or Sets OriginalDocType - /// - [DataMember(Name="OriginalDocType", EmitDefaultValue=false)] - public StringValue OriginalDocType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TotalAmount - /// - [DataMember(Name="TotalAmount", EmitDefaultValue=false)] - public DecimalValue TotalAmount { get; set; } - - /// - /// Gets or Sets TotalBillableQty - /// - [DataMember(Name="TotalBillableQty", EmitDefaultValue=false)] - public DecimalValue TotalBillableQty { get; set; } - - /// - /// Gets or Sets TotalQty - /// - [DataMember(Name="TotalQty", EmitDefaultValue=false)] - public DecimalValue TotalQty { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTransaction {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" OriginalDocNbr: ").Append(OriginalDocNbr).Append("\n"); - sb.Append(" OriginalDocType: ").Append(OriginalDocType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); - sb.Append(" TotalBillableQty: ").Append(TotalBillableQty).Append("\n"); - sb.Append(" TotalQty: ").Append(TotalQty).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTransaction); - } - - /// - /// Returns true if ProjectTransaction instances are equal - /// - /// Instance of ProjectTransaction to be compared - /// Boolean - public bool Equals(ProjectTransaction input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.OriginalDocNbr == input.OriginalDocNbr || - (this.OriginalDocNbr != null && - this.OriginalDocNbr.Equals(input.OriginalDocNbr)) - ) && base.Equals(input) && - ( - this.OriginalDocType == input.OriginalDocType || - (this.OriginalDocType != null && - this.OriginalDocType.Equals(input.OriginalDocType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalAmount == input.TotalAmount || - (this.TotalAmount != null && - this.TotalAmount.Equals(input.TotalAmount)) - ) && base.Equals(input) && - ( - this.TotalBillableQty == input.TotalBillableQty || - (this.TotalBillableQty != null && - this.TotalBillableQty.Equals(input.TotalBillableQty)) - ) && base.Equals(input) && - ( - this.TotalQty == input.TotalQty || - (this.TotalQty != null && - this.TotalQty.Equals(input.TotalQty)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.OriginalDocNbr != null) - hashCode = hashCode * 59 + this.OriginalDocNbr.GetHashCode(); - if (this.OriginalDocType != null) - hashCode = hashCode * 59 + this.OriginalDocType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalAmount != null) - hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); - if (this.TotalBillableQty != null) - hashCode = hashCode * 59 + this.TotalBillableQty.GetHashCode(); - if (this.TotalQty != null) - hashCode = hashCode * 59 + this.TotalQty.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectTransactionDetail.cs b/Default.18.200.001/Model/ProjectTransactionDetail.cs deleted file mode 100644 index d574f610..00000000 --- a/Default.18.200.001/Model/ProjectTransactionDetail.cs +++ /dev/null @@ -1,654 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectTransactionDetail - /// - [DataContract] - public partial class ProjectTransactionDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountGroup. - /// accountGroupDescription. - /// allocated. - /// amount. - /// batchNbr. - /// billable. - /// billableQty. - /// billed. - /// branch. - /// costCode. - /// creditAccount. - /// creditSubaccount. - /// date. - /// debitAccount. - /// debitSubaccount. - /// description. - /// earningType. - /// employee. - /// endDate. - /// externalRefNbr. - /// finPeriod. - /// inventoryID. - /// location. - /// multiplier. - /// project. - /// projectTask. - /// qty. - /// released. - /// startDate. - /// transactionID. - /// unitRate. - /// uOM. - /// useBillableQtyInAmountFormula. - /// vendorOrCustomer. - public ProjectTransactionDetail(StringValue accountGroup = default(StringValue), StringValue accountGroupDescription = default(StringValue), BooleanValue allocated = default(BooleanValue), DecimalValue amount = default(DecimalValue), StringValue batchNbr = default(StringValue), BooleanValue billable = default(BooleanValue), DecimalValue billableQty = default(DecimalValue), BooleanValue billed = default(BooleanValue), StringValue branch = default(StringValue), StringValue costCode = default(StringValue), StringValue creditAccount = default(StringValue), StringValue creditSubaccount = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue debitAccount = default(StringValue), StringValue debitSubaccount = default(StringValue), StringValue description = default(StringValue), StringValue earningType = default(StringValue), StringValue employee = default(StringValue), DateTimeValue endDate = default(DateTimeValue), StringValue externalRefNbr = default(StringValue), StringValue finPeriod = default(StringValue), StringValue inventoryID = default(StringValue), StringValue location = default(StringValue), DecimalValue multiplier = default(DecimalValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), BooleanValue released = default(BooleanValue), DateTimeValue startDate = default(DateTimeValue), LongValue transactionID = default(LongValue), DecimalValue unitRate = default(DecimalValue), StringValue uOM = default(StringValue), BooleanValue useBillableQtyInAmountFormula = default(BooleanValue), StringValue vendorOrCustomer = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountGroup = accountGroup; - this.AccountGroupDescription = accountGroupDescription; - this.Allocated = allocated; - this.Amount = amount; - this.BatchNbr = batchNbr; - this.Billable = billable; - this.BillableQty = billableQty; - this.Billed = billed; - this.Branch = branch; - this.CostCode = costCode; - this.CreditAccount = creditAccount; - this.CreditSubaccount = creditSubaccount; - this.Date = date; - this.DebitAccount = debitAccount; - this.DebitSubaccount = debitSubaccount; - this.Description = description; - this.EarningType = earningType; - this.Employee = employee; - this.EndDate = endDate; - this.ExternalRefNbr = externalRefNbr; - this.FinPeriod = finPeriod; - this.InventoryID = inventoryID; - this.Location = location; - this.Multiplier = multiplier; - this.Project = project; - this.ProjectTask = projectTask; - this.Qty = qty; - this.Released = released; - this.StartDate = startDate; - this.TransactionID = transactionID; - this.UnitRate = unitRate; - this.UOM = uOM; - this.UseBillableQtyInAmountFormula = useBillableQtyInAmountFormula; - this.VendorOrCustomer = vendorOrCustomer; - } - - /// - /// Gets or Sets AccountGroup - /// - [DataMember(Name="AccountGroup", EmitDefaultValue=false)] - public StringValue AccountGroup { get; set; } - - /// - /// Gets or Sets AccountGroupDescription - /// - [DataMember(Name="AccountGroupDescription", EmitDefaultValue=false)] - public StringValue AccountGroupDescription { get; set; } - - /// - /// Gets or Sets Allocated - /// - [DataMember(Name="Allocated", EmitDefaultValue=false)] - public BooleanValue Allocated { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableQty - /// - [DataMember(Name="BillableQty", EmitDefaultValue=false)] - public DecimalValue BillableQty { get; set; } - - /// - /// Gets or Sets Billed - /// - [DataMember(Name="Billed", EmitDefaultValue=false)] - public BooleanValue Billed { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets CreditAccount - /// - [DataMember(Name="CreditAccount", EmitDefaultValue=false)] - public StringValue CreditAccount { get; set; } - - /// - /// Gets or Sets CreditSubaccount - /// - [DataMember(Name="CreditSubaccount", EmitDefaultValue=false)] - public StringValue CreditSubaccount { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets DebitAccount - /// - [DataMember(Name="DebitAccount", EmitDefaultValue=false)] - public StringValue DebitAccount { get; set; } - - /// - /// Gets or Sets DebitSubaccount - /// - [DataMember(Name="DebitSubaccount", EmitDefaultValue=false)] - public StringValue DebitSubaccount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EarningType - /// - [DataMember(Name="EarningType", EmitDefaultValue=false)] - public StringValue EarningType { get; set; } - - /// - /// Gets or Sets Employee - /// - [DataMember(Name="Employee", EmitDefaultValue=false)] - public StringValue Employee { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name="EndDate", EmitDefaultValue=false)] - public DateTimeValue EndDate { get; set; } - - /// - /// Gets or Sets ExternalRefNbr - /// - [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] - public StringValue ExternalRefNbr { get; set; } - - /// - /// Gets or Sets FinPeriod - /// - [DataMember(Name="FinPeriod", EmitDefaultValue=false)] - public StringValue FinPeriod { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets Multiplier - /// - [DataMember(Name="Multiplier", EmitDefaultValue=false)] - public DecimalValue Multiplier { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets TransactionID - /// - [DataMember(Name="TransactionID", EmitDefaultValue=false)] - public LongValue TransactionID { get; set; } - - /// - /// Gets or Sets UnitRate - /// - [DataMember(Name="UnitRate", EmitDefaultValue=false)] - public DecimalValue UnitRate { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets UseBillableQtyInAmountFormula - /// - [DataMember(Name="UseBillableQtyInAmountFormula", EmitDefaultValue=false)] - public BooleanValue UseBillableQtyInAmountFormula { get; set; } - - /// - /// Gets or Sets VendorOrCustomer - /// - [DataMember(Name="VendorOrCustomer", EmitDefaultValue=false)] - public StringValue VendorOrCustomer { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectTransactionDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountGroup: ").Append(AccountGroup).Append("\n"); - sb.Append(" AccountGroupDescription: ").Append(AccountGroupDescription).Append("\n"); - sb.Append(" Allocated: ").Append(Allocated).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableQty: ").Append(BillableQty).Append("\n"); - sb.Append(" Billed: ").Append(Billed).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" CreditAccount: ").Append(CreditAccount).Append("\n"); - sb.Append(" CreditSubaccount: ").Append(CreditSubaccount).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" DebitAccount: ").Append(DebitAccount).Append("\n"); - sb.Append(" DebitSubaccount: ").Append(DebitSubaccount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EarningType: ").Append(EarningType).Append("\n"); - sb.Append(" Employee: ").Append(Employee).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" ExternalRefNbr: ").Append(ExternalRefNbr).Append("\n"); - sb.Append(" FinPeriod: ").Append(FinPeriod).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" Multiplier: ").Append(Multiplier).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" TransactionID: ").Append(TransactionID).Append("\n"); - sb.Append(" UnitRate: ").Append(UnitRate).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" UseBillableQtyInAmountFormula: ").Append(UseBillableQtyInAmountFormula).Append("\n"); - sb.Append(" VendorOrCustomer: ").Append(VendorOrCustomer).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectTransactionDetail); - } - - /// - /// Returns true if ProjectTransactionDetail instances are equal - /// - /// Instance of ProjectTransactionDetail to be compared - /// Boolean - public bool Equals(ProjectTransactionDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountGroup == input.AccountGroup || - (this.AccountGroup != null && - this.AccountGroup.Equals(input.AccountGroup)) - ) && base.Equals(input) && - ( - this.AccountGroupDescription == input.AccountGroupDescription || - (this.AccountGroupDescription != null && - this.AccountGroupDescription.Equals(input.AccountGroupDescription)) - ) && base.Equals(input) && - ( - this.Allocated == input.Allocated || - (this.Allocated != null && - this.Allocated.Equals(input.Allocated)) - ) && base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableQty == input.BillableQty || - (this.BillableQty != null && - this.BillableQty.Equals(input.BillableQty)) - ) && base.Equals(input) && - ( - this.Billed == input.Billed || - (this.Billed != null && - this.Billed.Equals(input.Billed)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.CreditAccount == input.CreditAccount || - (this.CreditAccount != null && - this.CreditAccount.Equals(input.CreditAccount)) - ) && base.Equals(input) && - ( - this.CreditSubaccount == input.CreditSubaccount || - (this.CreditSubaccount != null && - this.CreditSubaccount.Equals(input.CreditSubaccount)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.DebitAccount == input.DebitAccount || - (this.DebitAccount != null && - this.DebitAccount.Equals(input.DebitAccount)) - ) && base.Equals(input) && - ( - this.DebitSubaccount == input.DebitSubaccount || - (this.DebitSubaccount != null && - this.DebitSubaccount.Equals(input.DebitSubaccount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EarningType == input.EarningType || - (this.EarningType != null && - this.EarningType.Equals(input.EarningType)) - ) && base.Equals(input) && - ( - this.Employee == input.Employee || - (this.Employee != null && - this.Employee.Equals(input.Employee)) - ) && base.Equals(input) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) - ) && base.Equals(input) && - ( - this.ExternalRefNbr == input.ExternalRefNbr || - (this.ExternalRefNbr != null && - this.ExternalRefNbr.Equals(input.ExternalRefNbr)) - ) && base.Equals(input) && - ( - this.FinPeriod == input.FinPeriod || - (this.FinPeriod != null && - this.FinPeriod.Equals(input.FinPeriod)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.Multiplier == input.Multiplier || - (this.Multiplier != null && - this.Multiplier.Equals(input.Multiplier)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.TransactionID == input.TransactionID || - (this.TransactionID != null && - this.TransactionID.Equals(input.TransactionID)) - ) && base.Equals(input) && - ( - this.UnitRate == input.UnitRate || - (this.UnitRate != null && - this.UnitRate.Equals(input.UnitRate)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.UseBillableQtyInAmountFormula == input.UseBillableQtyInAmountFormula || - (this.UseBillableQtyInAmountFormula != null && - this.UseBillableQtyInAmountFormula.Equals(input.UseBillableQtyInAmountFormula)) - ) && base.Equals(input) && - ( - this.VendorOrCustomer == input.VendorOrCustomer || - (this.VendorOrCustomer != null && - this.VendorOrCustomer.Equals(input.VendorOrCustomer)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountGroup != null) - hashCode = hashCode * 59 + this.AccountGroup.GetHashCode(); - if (this.AccountGroupDescription != null) - hashCode = hashCode * 59 + this.AccountGroupDescription.GetHashCode(); - if (this.Allocated != null) - hashCode = hashCode * 59 + this.Allocated.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableQty != null) - hashCode = hashCode * 59 + this.BillableQty.GetHashCode(); - if (this.Billed != null) - hashCode = hashCode * 59 + this.Billed.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.CreditAccount != null) - hashCode = hashCode * 59 + this.CreditAccount.GetHashCode(); - if (this.CreditSubaccount != null) - hashCode = hashCode * 59 + this.CreditSubaccount.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.DebitAccount != null) - hashCode = hashCode * 59 + this.DebitAccount.GetHashCode(); - if (this.DebitSubaccount != null) - hashCode = hashCode * 59 + this.DebitSubaccount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EarningType != null) - hashCode = hashCode * 59 + this.EarningType.GetHashCode(); - if (this.Employee != null) - hashCode = hashCode * 59 + this.Employee.GetHashCode(); - if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); - if (this.ExternalRefNbr != null) - hashCode = hashCode * 59 + this.ExternalRefNbr.GetHashCode(); - if (this.FinPeriod != null) - hashCode = hashCode * 59 + this.FinPeriod.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.Multiplier != null) - hashCode = hashCode * 59 + this.Multiplier.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.TransactionID != null) - hashCode = hashCode * 59 + this.TransactionID.GetHashCode(); - if (this.UnitRate != null) - hashCode = hashCode * 59 + this.UnitRate.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.UseBillableQtyInAmountFormula != null) - hashCode = hashCode * 59 + this.UseBillableQtyInAmountFormula.GetHashCode(); - if (this.VendorOrCustomer != null) - hashCode = hashCode * 59 + this.VendorOrCustomer.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ProjectUnionLocal.cs b/Default.18.200.001/Model/ProjectUnionLocal.cs deleted file mode 100644 index 0693c574..00000000 --- a/Default.18.200.001/Model/ProjectUnionLocal.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ProjectUnionLocal - /// - [DataContract] - public partial class ProjectUnionLocal : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// unionLocalID. - public ProjectUnionLocal(StringValue description = default(StringValue), StringValue unionLocalID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.UnionLocalID = unionLocalID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets UnionLocalID - /// - [DataMember(Name="UnionLocalID", EmitDefaultValue=false)] - public StringValue UnionLocalID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ProjectUnionLocal {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" UnionLocalID: ").Append(UnionLocalID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ProjectUnionLocal); - } - - /// - /// Returns true if ProjectUnionLocal instances are equal - /// - /// Instance of ProjectUnionLocal to be compared - /// Boolean - public bool Equals(ProjectUnionLocal input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.UnionLocalID == input.UnionLocalID || - (this.UnionLocalID != null && - this.UnionLocalID.Equals(input.UnionLocalID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.UnionLocalID != null) - hashCode = hashCode * 59 + this.UnionLocalID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PurchaseOrder.cs b/Default.18.200.001/Model/PurchaseOrder.cs deleted file mode 100644 index 87ba88eb..00000000 --- a/Default.18.200.001/Model/PurchaseOrder.cs +++ /dev/null @@ -1,494 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PurchaseOrder - /// - [DataContract] - public partial class PurchaseOrder : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// branch. - /// controlTotal. - /// currencyID. - /// date. - /// description. - /// details. - /// hold. - /// lastModifiedDateTime. - /// lineTotal. - /// location. - /// orderNbr. - /// orderTotal. - /// owner. - /// project. - /// promisedOn. - /// shippingInstructions. - /// status. - /// taxDetails. - /// taxTotal. - /// terms. - /// type. - /// vendorID. - /// vendorRef. - /// vendorTaxZone. - public PurchaseOrder(StringValue branch = default(StringValue), DecimalValue controlTotal = default(DecimalValue), StringValue currencyID = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue lineTotal = default(DecimalValue), StringValue location = default(StringValue), StringValue orderNbr = default(StringValue), DecimalValue orderTotal = default(DecimalValue), StringValue owner = default(StringValue), StringValue project = default(StringValue), DateTimeValue promisedOn = default(DateTimeValue), ShippingInstructions shippingInstructions = default(ShippingInstructions), StringValue status = default(StringValue), IEnumerable taxDetails = default(IEnumerable), DecimalValue taxTotal = default(DecimalValue), StringValue terms = default(StringValue), StringValue type = default(StringValue), StringValue vendorID = default(StringValue), StringValue vendorRef = default(StringValue), StringValue vendorTaxZone = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Branch = branch; - this.ControlTotal = controlTotal; - this.CurrencyID = currencyID; - this.Date = date; - this.Description = description; - this.Details = details; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LineTotal = lineTotal; - this.Location = location; - this.OrderNbr = orderNbr; - this.OrderTotal = orderTotal; - this.Owner = owner; - this.Project = project; - this.PromisedOn = promisedOn; - this.ShippingInstructions = shippingInstructions; - this.Status = status; - this.TaxDetails = taxDetails; - this.TaxTotal = taxTotal; - this.Terms = terms; - this.Type = type; - this.VendorID = vendorID; - this.VendorRef = vendorRef; - this.VendorTaxZone = vendorTaxZone; - } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ControlTotal - /// - [DataMember(Name="ControlTotal", EmitDefaultValue=false)] - public DecimalValue ControlTotal { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LineTotal - /// - [DataMember(Name="LineTotal", EmitDefaultValue=false)] - public DecimalValue LineTotal { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderTotal - /// - [DataMember(Name="OrderTotal", EmitDefaultValue=false)] - public DecimalValue OrderTotal { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets PromisedOn - /// - [DataMember(Name="PromisedOn", EmitDefaultValue=false)] - public DateTimeValue PromisedOn { get; set; } - - /// - /// Gets or Sets ShippingInstructions - /// - [DataMember(Name="ShippingInstructions", EmitDefaultValue=false)] - public ShippingInstructions ShippingInstructions { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public IEnumerable TaxDetails { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } - - /// - /// Gets or Sets VendorRef - /// - [DataMember(Name="VendorRef", EmitDefaultValue=false)] - public StringValue VendorRef { get; set; } - - /// - /// Gets or Sets VendorTaxZone - /// - [DataMember(Name="VendorTaxZone", EmitDefaultValue=false)] - public StringValue VendorTaxZone { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseOrder {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ControlTotal: ").Append(ControlTotal).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LineTotal: ").Append(LineTotal).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderTotal: ").Append(OrderTotal).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" PromisedOn: ").Append(PromisedOn).Append("\n"); - sb.Append(" ShippingInstructions: ").Append(ShippingInstructions).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append(" VendorRef: ").Append(VendorRef).Append("\n"); - sb.Append(" VendorTaxZone: ").Append(VendorTaxZone).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseOrder); - } - - /// - /// Returns true if PurchaseOrder instances are equal - /// - /// Instance of PurchaseOrder to be compared - /// Boolean - public bool Equals(PurchaseOrder input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ControlTotal == input.ControlTotal || - (this.ControlTotal != null && - this.ControlTotal.Equals(input.ControlTotal)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LineTotal == input.LineTotal || - (this.LineTotal != null && - this.LineTotal.Equals(input.LineTotal)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderTotal == input.OrderTotal || - (this.OrderTotal != null && - this.OrderTotal.Equals(input.OrderTotal)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.PromisedOn == input.PromisedOn || - (this.PromisedOn != null && - this.PromisedOn.Equals(input.PromisedOn)) - ) && base.Equals(input) && - ( - this.ShippingInstructions == input.ShippingInstructions || - (this.ShippingInstructions != null && - this.ShippingInstructions.Equals(input.ShippingInstructions)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ) && base.Equals(input) && - ( - this.VendorRef == input.VendorRef || - (this.VendorRef != null && - this.VendorRef.Equals(input.VendorRef)) - ) && base.Equals(input) && - ( - this.VendorTaxZone == input.VendorTaxZone || - (this.VendorTaxZone != null && - this.VendorTaxZone.Equals(input.VendorTaxZone)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ControlTotal != null) - hashCode = hashCode * 59 + this.ControlTotal.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LineTotal != null) - hashCode = hashCode * 59 + this.LineTotal.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderTotal != null) - hashCode = hashCode * 59 + this.OrderTotal.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.PromisedOn != null) - hashCode = hashCode * 59 + this.PromisedOn.GetHashCode(); - if (this.ShippingInstructions != null) - hashCode = hashCode * 59 + this.ShippingInstructions.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - if (this.VendorRef != null) - hashCode = hashCode * 59 + this.VendorRef.GetHashCode(); - if (this.VendorTaxZone != null) - hashCode = hashCode * 59 + this.VendorTaxZone.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PurchaseOrderDetail.cs b/Default.18.200.001/Model/PurchaseOrderDetail.cs deleted file mode 100644 index 133798c6..00000000 --- a/Default.18.200.001/Model/PurchaseOrderDetail.cs +++ /dev/null @@ -1,654 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PurchaseOrderDetail - /// - [DataContract] - public partial class PurchaseOrderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// alternateID. - /// branchID. - /// calculateDiscountsOnImport. - /// cancelled. - /// completed. - /// completeOn. - /// costCode. - /// description. - /// extendedCost. - /// inventoryID. - /// lineDescription. - /// lineNbr. - /// lineType. - /// maxReceiptPercent. - /// minReceiptPercent. - /// orderNbr. - /// orderQty. - /// orderType. - /// origPONbr. - /// origPOType. - /// project. - /// projectTask. - /// promised. - /// qtyOnReceipts. - /// receiptAction. - /// receivedAmount. - /// requested. - /// subaccount. - /// subitem. - /// taxCategory. - /// unitCost. - /// uOM. - /// warehouseID. - public PurchaseOrderDetail(StringValue account = default(StringValue), StringValue alternateID = default(StringValue), StringValue branchID = default(StringValue), BooleanValue calculateDiscountsOnImport = default(BooleanValue), BooleanValue cancelled = default(BooleanValue), BooleanValue completed = default(BooleanValue), DecimalValue completeOn = default(DecimalValue), StringValue costCode = default(StringValue), StringValue description = default(StringValue), DecimalValue extendedCost = default(DecimalValue), StringValue inventoryID = default(StringValue), StringValue lineDescription = default(StringValue), IntValue lineNbr = default(IntValue), StringValue lineType = default(StringValue), DecimalValue maxReceiptPercent = default(DecimalValue), DecimalValue minReceiptPercent = default(DecimalValue), StringValue orderNbr = default(StringValue), DecimalValue orderQty = default(DecimalValue), StringValue orderType = default(StringValue), StringValue origPONbr = default(StringValue), StringValue origPOType = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), DateTimeValue promised = default(DateTimeValue), DecimalValue qtyOnReceipts = default(DecimalValue), StringValue receiptAction = default(StringValue), DecimalValue receivedAmount = default(DecimalValue), DateTimeValue requested = default(DateTimeValue), StringValue subaccount = default(StringValue), StringValue subitem = default(StringValue), StringValue taxCategory = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.AlternateID = alternateID; - this.BranchID = branchID; - this.CalculateDiscountsOnImport = calculateDiscountsOnImport; - this.Cancelled = cancelled; - this.Completed = completed; - this.CompleteOn = completeOn; - this.CostCode = costCode; - this.Description = description; - this.ExtendedCost = extendedCost; - this.InventoryID = inventoryID; - this.LineDescription = lineDescription; - this.LineNbr = lineNbr; - this.LineType = lineType; - this.MaxReceiptPercent = maxReceiptPercent; - this.MinReceiptPercent = minReceiptPercent; - this.OrderNbr = orderNbr; - this.OrderQty = orderQty; - this.OrderType = orderType; - this.OrigPONbr = origPONbr; - this.OrigPOType = origPOType; - this.Project = project; - this.ProjectTask = projectTask; - this.Promised = promised; - this.QtyOnReceipts = qtyOnReceipts; - this.ReceiptAction = receiptAction; - this.ReceivedAmount = receivedAmount; - this.Requested = requested; - this.Subaccount = subaccount; - this.Subitem = subitem; - this.TaxCategory = taxCategory; - this.UnitCost = unitCost; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets AlternateID - /// - [DataMember(Name="AlternateID", EmitDefaultValue=false)] - public StringValue AlternateID { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets CalculateDiscountsOnImport - /// - [DataMember(Name="CalculateDiscountsOnImport", EmitDefaultValue=false)] - public BooleanValue CalculateDiscountsOnImport { get; set; } - - /// - /// Gets or Sets Cancelled - /// - [DataMember(Name="Cancelled", EmitDefaultValue=false)] - public BooleanValue Cancelled { get; set; } - - /// - /// Gets or Sets Completed - /// - [DataMember(Name="Completed", EmitDefaultValue=false)] - public BooleanValue Completed { get; set; } - - /// - /// Gets or Sets CompleteOn - /// - [DataMember(Name="CompleteOn", EmitDefaultValue=false)] - public DecimalValue CompleteOn { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExtendedCost - /// - [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] - public DecimalValue ExtendedCost { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineDescription - /// - [DataMember(Name="LineDescription", EmitDefaultValue=false)] - public StringValue LineDescription { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LineType - /// - [DataMember(Name="LineType", EmitDefaultValue=false)] - public StringValue LineType { get; set; } - - /// - /// Gets or Sets MaxReceiptPercent - /// - [DataMember(Name="MaxReceiptPercent", EmitDefaultValue=false)] - public DecimalValue MaxReceiptPercent { get; set; } - - /// - /// Gets or Sets MinReceiptPercent - /// - [DataMember(Name="MinReceiptPercent", EmitDefaultValue=false)] - public DecimalValue MinReceiptPercent { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderQty - /// - [DataMember(Name="OrderQty", EmitDefaultValue=false)] - public DecimalValue OrderQty { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets OrigPONbr - /// - [DataMember(Name="OrigPONbr", EmitDefaultValue=false)] - public StringValue OrigPONbr { get; set; } - - /// - /// Gets or Sets OrigPOType - /// - [DataMember(Name="OrigPOType", EmitDefaultValue=false)] - public StringValue OrigPOType { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets Promised - /// - [DataMember(Name="Promised", EmitDefaultValue=false)] - public DateTimeValue Promised { get; set; } - - /// - /// Gets or Sets QtyOnReceipts - /// - [DataMember(Name="QtyOnReceipts", EmitDefaultValue=false)] - public DecimalValue QtyOnReceipts { get; set; } - - /// - /// Gets or Sets ReceiptAction - /// - [DataMember(Name="ReceiptAction", EmitDefaultValue=false)] - public StringValue ReceiptAction { get; set; } - - /// - /// Gets or Sets ReceivedAmount - /// - [DataMember(Name="ReceivedAmount", EmitDefaultValue=false)] - public DecimalValue ReceivedAmount { get; set; } - - /// - /// Gets or Sets Requested - /// - [DataMember(Name="Requested", EmitDefaultValue=false)] - public DateTimeValue Requested { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseOrderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" AlternateID: ").Append(AlternateID).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" CalculateDiscountsOnImport: ").Append(CalculateDiscountsOnImport).Append("\n"); - sb.Append(" Cancelled: ").Append(Cancelled).Append("\n"); - sb.Append(" Completed: ").Append(Completed).Append("\n"); - sb.Append(" CompleteOn: ").Append(CompleteOn).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExtendedCost: ").Append(ExtendedCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineDescription: ").Append(LineDescription).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LineType: ").Append(LineType).Append("\n"); - sb.Append(" MaxReceiptPercent: ").Append(MaxReceiptPercent).Append("\n"); - sb.Append(" MinReceiptPercent: ").Append(MinReceiptPercent).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderQty: ").Append(OrderQty).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" OrigPONbr: ").Append(OrigPONbr).Append("\n"); - sb.Append(" OrigPOType: ").Append(OrigPOType).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Promised: ").Append(Promised).Append("\n"); - sb.Append(" QtyOnReceipts: ").Append(QtyOnReceipts).Append("\n"); - sb.Append(" ReceiptAction: ").Append(ReceiptAction).Append("\n"); - sb.Append(" ReceivedAmount: ").Append(ReceivedAmount).Append("\n"); - sb.Append(" Requested: ").Append(Requested).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseOrderDetail); - } - - /// - /// Returns true if PurchaseOrderDetail instances are equal - /// - /// Instance of PurchaseOrderDetail to be compared - /// Boolean - public bool Equals(PurchaseOrderDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.AlternateID == input.AlternateID || - (this.AlternateID != null && - this.AlternateID.Equals(input.AlternateID)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.CalculateDiscountsOnImport == input.CalculateDiscountsOnImport || - (this.CalculateDiscountsOnImport != null && - this.CalculateDiscountsOnImport.Equals(input.CalculateDiscountsOnImport)) - ) && base.Equals(input) && - ( - this.Cancelled == input.Cancelled || - (this.Cancelled != null && - this.Cancelled.Equals(input.Cancelled)) - ) && base.Equals(input) && - ( - this.Completed == input.Completed || - (this.Completed != null && - this.Completed.Equals(input.Completed)) - ) && base.Equals(input) && - ( - this.CompleteOn == input.CompleteOn || - (this.CompleteOn != null && - this.CompleteOn.Equals(input.CompleteOn)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExtendedCost == input.ExtendedCost || - (this.ExtendedCost != null && - this.ExtendedCost.Equals(input.ExtendedCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineDescription == input.LineDescription || - (this.LineDescription != null && - this.LineDescription.Equals(input.LineDescription)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LineType == input.LineType || - (this.LineType != null && - this.LineType.Equals(input.LineType)) - ) && base.Equals(input) && - ( - this.MaxReceiptPercent == input.MaxReceiptPercent || - (this.MaxReceiptPercent != null && - this.MaxReceiptPercent.Equals(input.MaxReceiptPercent)) - ) && base.Equals(input) && - ( - this.MinReceiptPercent == input.MinReceiptPercent || - (this.MinReceiptPercent != null && - this.MinReceiptPercent.Equals(input.MinReceiptPercent)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderQty == input.OrderQty || - (this.OrderQty != null && - this.OrderQty.Equals(input.OrderQty)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.OrigPONbr == input.OrigPONbr || - (this.OrigPONbr != null && - this.OrigPONbr.Equals(input.OrigPONbr)) - ) && base.Equals(input) && - ( - this.OrigPOType == input.OrigPOType || - (this.OrigPOType != null && - this.OrigPOType.Equals(input.OrigPOType)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Promised == input.Promised || - (this.Promised != null && - this.Promised.Equals(input.Promised)) - ) && base.Equals(input) && - ( - this.QtyOnReceipts == input.QtyOnReceipts || - (this.QtyOnReceipts != null && - this.QtyOnReceipts.Equals(input.QtyOnReceipts)) - ) && base.Equals(input) && - ( - this.ReceiptAction == input.ReceiptAction || - (this.ReceiptAction != null && - this.ReceiptAction.Equals(input.ReceiptAction)) - ) && base.Equals(input) && - ( - this.ReceivedAmount == input.ReceivedAmount || - (this.ReceivedAmount != null && - this.ReceivedAmount.Equals(input.ReceivedAmount)) - ) && base.Equals(input) && - ( - this.Requested == input.Requested || - (this.Requested != null && - this.Requested.Equals(input.Requested)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.AlternateID != null) - hashCode = hashCode * 59 + this.AlternateID.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.CalculateDiscountsOnImport != null) - hashCode = hashCode * 59 + this.CalculateDiscountsOnImport.GetHashCode(); - if (this.Cancelled != null) - hashCode = hashCode * 59 + this.Cancelled.GetHashCode(); - if (this.Completed != null) - hashCode = hashCode * 59 + this.Completed.GetHashCode(); - if (this.CompleteOn != null) - hashCode = hashCode * 59 + this.CompleteOn.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExtendedCost != null) - hashCode = hashCode * 59 + this.ExtendedCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineDescription != null) - hashCode = hashCode * 59 + this.LineDescription.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LineType != null) - hashCode = hashCode * 59 + this.LineType.GetHashCode(); - if (this.MaxReceiptPercent != null) - hashCode = hashCode * 59 + this.MaxReceiptPercent.GetHashCode(); - if (this.MinReceiptPercent != null) - hashCode = hashCode * 59 + this.MinReceiptPercent.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderQty != null) - hashCode = hashCode * 59 + this.OrderQty.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.OrigPONbr != null) - hashCode = hashCode * 59 + this.OrigPONbr.GetHashCode(); - if (this.OrigPOType != null) - hashCode = hashCode * 59 + this.OrigPOType.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Promised != null) - hashCode = hashCode * 59 + this.Promised.GetHashCode(); - if (this.QtyOnReceipts != null) - hashCode = hashCode * 59 + this.QtyOnReceipts.GetHashCode(); - if (this.ReceiptAction != null) - hashCode = hashCode * 59 + this.ReceiptAction.GetHashCode(); - if (this.ReceivedAmount != null) - hashCode = hashCode * 59 + this.ReceivedAmount.GetHashCode(); - if (this.Requested != null) - hashCode = hashCode * 59 + this.Requested.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PurchaseOrderTaxDetail.cs b/Default.18.200.001/Model/PurchaseOrderTaxDetail.cs deleted file mode 100644 index 3570d94e..00000000 --- a/Default.18.200.001/Model/PurchaseOrderTaxDetail.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PurchaseOrderTaxDetail - /// - [DataContract] - public partial class PurchaseOrderTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// retainedTaxableAmount. - /// retainedTaxAmount. - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - public PurchaseOrderTaxDetail(DecimalValue retainedTaxableAmount = default(DecimalValue), DecimalValue retainedTaxAmount = default(DecimalValue), DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.RetainedTaxableAmount = retainedTaxableAmount; - this.RetainedTaxAmount = retainedTaxAmount; - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - } - - /// - /// Gets or Sets RetainedTaxableAmount - /// - [DataMember(Name="RetainedTaxableAmount", EmitDefaultValue=false)] - public DecimalValue RetainedTaxableAmount { get; set; } - - /// - /// Gets or Sets RetainedTaxAmount - /// - [DataMember(Name="RetainedTaxAmount", EmitDefaultValue=false)] - public DecimalValue RetainedTaxAmount { get; set; } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseOrderTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" RetainedTaxableAmount: ").Append(RetainedTaxableAmount).Append("\n"); - sb.Append(" RetainedTaxAmount: ").Append(RetainedTaxAmount).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseOrderTaxDetail); - } - - /// - /// Returns true if PurchaseOrderTaxDetail instances are equal - /// - /// Instance of PurchaseOrderTaxDetail to be compared - /// Boolean - public bool Equals(PurchaseOrderTaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.RetainedTaxableAmount == input.RetainedTaxableAmount || - (this.RetainedTaxableAmount != null && - this.RetainedTaxableAmount.Equals(input.RetainedTaxableAmount)) - ) && base.Equals(input) && - ( - this.RetainedTaxAmount == input.RetainedTaxAmount || - (this.RetainedTaxAmount != null && - this.RetainedTaxAmount.Equals(input.RetainedTaxAmount)) - ) && base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.RetainedTaxableAmount != null) - hashCode = hashCode * 59 + this.RetainedTaxableAmount.GetHashCode(); - if (this.RetainedTaxAmount != null) - hashCode = hashCode * 59 + this.RetainedTaxAmount.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PurchaseReceipt.cs b/Default.18.200.001/Model/PurchaseReceipt.cs deleted file mode 100644 index 45f7f948..00000000 --- a/Default.18.200.001/Model/PurchaseReceipt.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PurchaseReceipt - /// - [DataContract] - public partial class PurchaseReceipt : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billDate. - /// branch. - /// controlAmount. - /// controlQty. - /// createBill. - /// currencyID. - /// date. - /// details. - /// hold. - /// postPeriod. - /// receiptNbr. - /// status. - /// totalAmount. - /// totalQty. - /// type. - /// unbilledQuantity. - /// vendorID. - /// vendorRef. - /// warehouse. - public PurchaseReceipt(DateTimeValue billDate = default(DateTimeValue), StringValue branch = default(StringValue), DecimalValue controlAmount = default(DecimalValue), DecimalValue controlQty = default(DecimalValue), BooleanValue createBill = default(BooleanValue), StringValue currencyID = default(StringValue), DateTimeValue date = default(DateTimeValue), IEnumerable details = default(IEnumerable), BooleanValue hold = default(BooleanValue), StringValue postPeriod = default(StringValue), StringValue receiptNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalAmount = default(DecimalValue), DecimalValue totalQty = default(DecimalValue), StringValue type = default(StringValue), DecimalValue unbilledQuantity = default(DecimalValue), StringValue vendorID = default(StringValue), StringValue vendorRef = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillDate = billDate; - this.Branch = branch; - this.ControlAmount = controlAmount; - this.ControlQty = controlQty; - this.CreateBill = createBill; - this.CurrencyID = currencyID; - this.Date = date; - this.Details = details; - this.Hold = hold; - this.PostPeriod = postPeriod; - this.ReceiptNbr = receiptNbr; - this.Status = status; - this.TotalAmount = totalAmount; - this.TotalQty = totalQty; - this.Type = type; - this.UnbilledQuantity = unbilledQuantity; - this.VendorID = vendorID; - this.VendorRef = vendorRef; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets BillDate - /// - [DataMember(Name="BillDate", EmitDefaultValue=false)] - public DateTimeValue BillDate { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ControlAmount - /// - [DataMember(Name="ControlAmount", EmitDefaultValue=false)] - public DecimalValue ControlAmount { get; set; } - - /// - /// Gets or Sets ControlQty - /// - [DataMember(Name="ControlQty", EmitDefaultValue=false)] - public DecimalValue ControlQty { get; set; } - - /// - /// Gets or Sets CreateBill - /// - [DataMember(Name="CreateBill", EmitDefaultValue=false)] - public BooleanValue CreateBill { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets ReceiptNbr - /// - [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] - public StringValue ReceiptNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TotalAmount - /// - [DataMember(Name="TotalAmount", EmitDefaultValue=false)] - public DecimalValue TotalAmount { get; set; } - - /// - /// Gets or Sets TotalQty - /// - [DataMember(Name="TotalQty", EmitDefaultValue=false)] - public DecimalValue TotalQty { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UnbilledQuantity - /// - [DataMember(Name="UnbilledQuantity", EmitDefaultValue=false)] - public DecimalValue UnbilledQuantity { get; set; } - - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } - - /// - /// Gets or Sets VendorRef - /// - [DataMember(Name="VendorRef", EmitDefaultValue=false)] - public StringValue VendorRef { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseReceipt {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillDate: ").Append(BillDate).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ControlAmount: ").Append(ControlAmount).Append("\n"); - sb.Append(" ControlQty: ").Append(ControlQty).Append("\n"); - sb.Append(" CreateBill: ").Append(CreateBill).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReceiptNbr: ").Append(ReceiptNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); - sb.Append(" TotalQty: ").Append(TotalQty).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UnbilledQuantity: ").Append(UnbilledQuantity).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append(" VendorRef: ").Append(VendorRef).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseReceipt); - } - - /// - /// Returns true if PurchaseReceipt instances are equal - /// - /// Instance of PurchaseReceipt to be compared - /// Boolean - public bool Equals(PurchaseReceipt input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BillDate == input.BillDate || - (this.BillDate != null && - this.BillDate.Equals(input.BillDate)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ControlAmount == input.ControlAmount || - (this.ControlAmount != null && - this.ControlAmount.Equals(input.ControlAmount)) - ) && base.Equals(input) && - ( - this.ControlQty == input.ControlQty || - (this.ControlQty != null && - this.ControlQty.Equals(input.ControlQty)) - ) && base.Equals(input) && - ( - this.CreateBill == input.CreateBill || - (this.CreateBill != null && - this.CreateBill.Equals(input.CreateBill)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReceiptNbr == input.ReceiptNbr || - (this.ReceiptNbr != null && - this.ReceiptNbr.Equals(input.ReceiptNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalAmount == input.TotalAmount || - (this.TotalAmount != null && - this.TotalAmount.Equals(input.TotalAmount)) - ) && base.Equals(input) && - ( - this.TotalQty == input.TotalQty || - (this.TotalQty != null && - this.TotalQty.Equals(input.TotalQty)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UnbilledQuantity == input.UnbilledQuantity || - (this.UnbilledQuantity != null && - this.UnbilledQuantity.Equals(input.UnbilledQuantity)) - ) && base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ) && base.Equals(input) && - ( - this.VendorRef == input.VendorRef || - (this.VendorRef != null && - this.VendorRef.Equals(input.VendorRef)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillDate != null) - hashCode = hashCode * 59 + this.BillDate.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ControlAmount != null) - hashCode = hashCode * 59 + this.ControlAmount.GetHashCode(); - if (this.ControlQty != null) - hashCode = hashCode * 59 + this.ControlQty.GetHashCode(); - if (this.CreateBill != null) - hashCode = hashCode * 59 + this.CreateBill.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReceiptNbr != null) - hashCode = hashCode * 59 + this.ReceiptNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalAmount != null) - hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); - if (this.TotalQty != null) - hashCode = hashCode * 59 + this.TotalQty.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UnbilledQuantity != null) - hashCode = hashCode * 59 + this.UnbilledQuantity.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - if (this.VendorRef != null) - hashCode = hashCode * 59 + this.VendorRef.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PurchaseReceiptDetail.cs b/Default.18.200.001/Model/PurchaseReceiptDetail.cs deleted file mode 100644 index 46e6b4ff..00000000 --- a/Default.18.200.001/Model/PurchaseReceiptDetail.cs +++ /dev/null @@ -1,558 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PurchaseReceiptDetail - /// - [DataContract] - public partial class PurchaseReceiptDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// accrualAccount. - /// accrualSubaccount. - /// allocations. - /// branch. - /// description. - /// expirationDate. - /// extendedCost. - /// inventoryID. - /// lineNbr. - /// lineType. - /// location. - /// lotSerialNbr. - /// openQty. - /// orderedQty. - /// pOLineNbr. - /// pOOrderNbr. - /// pOOrderType. - /// receiptQty. - /// subaccount. - /// subitem. - /// transactionDescription. - /// transferOrderNbr. - /// transferOrderType. - /// transferShipmentNbr. - /// unitCost. - /// uOM. - /// warehouse. - public PurchaseReceiptDetail(StringValue account = default(StringValue), StringValue accrualAccount = default(StringValue), StringValue accrualSubaccount = default(StringValue), IEnumerable allocations = default(IEnumerable), StringValue branch = default(StringValue), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), DecimalValue extendedCost = default(DecimalValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue lineType = default(StringValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue openQty = default(DecimalValue), DecimalValue orderedQty = default(DecimalValue), IntValue pOLineNbr = default(IntValue), StringValue pOOrderNbr = default(StringValue), StringValue pOOrderType = default(StringValue), DecimalValue receiptQty = default(DecimalValue), StringValue subaccount = default(StringValue), StringValue subitem = default(StringValue), StringValue transactionDescription = default(StringValue), StringValue transferOrderNbr = default(StringValue), StringValue transferOrderType = default(StringValue), StringValue transferShipmentNbr = default(StringValue), DecimalValue unitCost = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.AccrualAccount = accrualAccount; - this.AccrualSubaccount = accrualSubaccount; - this.Allocations = allocations; - this.Branch = branch; - this.Description = description; - this.ExpirationDate = expirationDate; - this.ExtendedCost = extendedCost; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LineType = lineType; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.OpenQty = openQty; - this.OrderedQty = orderedQty; - this.POLineNbr = pOLineNbr; - this.POOrderNbr = pOOrderNbr; - this.POOrderType = pOOrderType; - this.ReceiptQty = receiptQty; - this.Subaccount = subaccount; - this.Subitem = subitem; - this.TransactionDescription = transactionDescription; - this.TransferOrderNbr = transferOrderNbr; - this.TransferOrderType = transferOrderType; - this.TransferShipmentNbr = transferShipmentNbr; - this.UnitCost = unitCost; - this.UOM = uOM; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets AccrualAccount - /// - [DataMember(Name="AccrualAccount", EmitDefaultValue=false)] - public StringValue AccrualAccount { get; set; } - - /// - /// Gets or Sets AccrualSubaccount - /// - [DataMember(Name="AccrualSubaccount", EmitDefaultValue=false)] - public StringValue AccrualSubaccount { get; set; } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public IEnumerable Allocations { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets ExtendedCost - /// - [DataMember(Name="ExtendedCost", EmitDefaultValue=false)] - public DecimalValue ExtendedCost { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LineType - /// - [DataMember(Name="LineType", EmitDefaultValue=false)] - public StringValue LineType { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets OpenQty - /// - [DataMember(Name="OpenQty", EmitDefaultValue=false)] - public DecimalValue OpenQty { get; set; } - - /// - /// Gets or Sets OrderedQty - /// - [DataMember(Name="OrderedQty", EmitDefaultValue=false)] - public DecimalValue OrderedQty { get; set; } - - /// - /// Gets or Sets POLineNbr - /// - [DataMember(Name="POLineNbr", EmitDefaultValue=false)] - public IntValue POLineNbr { get; set; } - - /// - /// Gets or Sets POOrderNbr - /// - [DataMember(Name="POOrderNbr", EmitDefaultValue=false)] - public StringValue POOrderNbr { get; set; } - - /// - /// Gets or Sets POOrderType - /// - [DataMember(Name="POOrderType", EmitDefaultValue=false)] - public StringValue POOrderType { get; set; } - - /// - /// Gets or Sets ReceiptQty - /// - [DataMember(Name="ReceiptQty", EmitDefaultValue=false)] - public DecimalValue ReceiptQty { get; set; } - - /// - /// Gets or Sets Subaccount - /// - [DataMember(Name="Subaccount", EmitDefaultValue=false)] - public StringValue Subaccount { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets TransactionDescription - /// - [DataMember(Name="TransactionDescription", EmitDefaultValue=false)] - public StringValue TransactionDescription { get; set; } - - /// - /// Gets or Sets TransferOrderNbr - /// - [DataMember(Name="TransferOrderNbr", EmitDefaultValue=false)] - public StringValue TransferOrderNbr { get; set; } - - /// - /// Gets or Sets TransferOrderType - /// - [DataMember(Name="TransferOrderType", EmitDefaultValue=false)] - public StringValue TransferOrderType { get; set; } - - /// - /// Gets or Sets TransferShipmentNbr - /// - [DataMember(Name="TransferShipmentNbr", EmitDefaultValue=false)] - public StringValue TransferShipmentNbr { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseReceiptDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" AccrualAccount: ").Append(AccrualAccount).Append("\n"); - sb.Append(" AccrualSubaccount: ").Append(AccrualSubaccount).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" ExtendedCost: ").Append(ExtendedCost).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LineType: ").Append(LineType).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" OpenQty: ").Append(OpenQty).Append("\n"); - sb.Append(" OrderedQty: ").Append(OrderedQty).Append("\n"); - sb.Append(" POLineNbr: ").Append(POLineNbr).Append("\n"); - sb.Append(" POOrderNbr: ").Append(POOrderNbr).Append("\n"); - sb.Append(" POOrderType: ").Append(POOrderType).Append("\n"); - sb.Append(" ReceiptQty: ").Append(ReceiptQty).Append("\n"); - sb.Append(" Subaccount: ").Append(Subaccount).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n"); - sb.Append(" TransferOrderNbr: ").Append(TransferOrderNbr).Append("\n"); - sb.Append(" TransferOrderType: ").Append(TransferOrderType).Append("\n"); - sb.Append(" TransferShipmentNbr: ").Append(TransferShipmentNbr).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseReceiptDetail); - } - - /// - /// Returns true if PurchaseReceiptDetail instances are equal - /// - /// Instance of PurchaseReceiptDetail to be compared - /// Boolean - public bool Equals(PurchaseReceiptDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.AccrualAccount == input.AccrualAccount || - (this.AccrualAccount != null && - this.AccrualAccount.Equals(input.AccrualAccount)) - ) && base.Equals(input) && - ( - this.AccrualSubaccount == input.AccrualSubaccount || - (this.AccrualSubaccount != null && - this.AccrualSubaccount.Equals(input.AccrualSubaccount)) - ) && base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.ExtendedCost == input.ExtendedCost || - (this.ExtendedCost != null && - this.ExtendedCost.Equals(input.ExtendedCost)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LineType == input.LineType || - (this.LineType != null && - this.LineType.Equals(input.LineType)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.OpenQty == input.OpenQty || - (this.OpenQty != null && - this.OpenQty.Equals(input.OpenQty)) - ) && base.Equals(input) && - ( - this.OrderedQty == input.OrderedQty || - (this.OrderedQty != null && - this.OrderedQty.Equals(input.OrderedQty)) - ) && base.Equals(input) && - ( - this.POLineNbr == input.POLineNbr || - (this.POLineNbr != null && - this.POLineNbr.Equals(input.POLineNbr)) - ) && base.Equals(input) && - ( - this.POOrderNbr == input.POOrderNbr || - (this.POOrderNbr != null && - this.POOrderNbr.Equals(input.POOrderNbr)) - ) && base.Equals(input) && - ( - this.POOrderType == input.POOrderType || - (this.POOrderType != null && - this.POOrderType.Equals(input.POOrderType)) - ) && base.Equals(input) && - ( - this.ReceiptQty == input.ReceiptQty || - (this.ReceiptQty != null && - this.ReceiptQty.Equals(input.ReceiptQty)) - ) && base.Equals(input) && - ( - this.Subaccount == input.Subaccount || - (this.Subaccount != null && - this.Subaccount.Equals(input.Subaccount)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TransactionDescription == input.TransactionDescription || - (this.TransactionDescription != null && - this.TransactionDescription.Equals(input.TransactionDescription)) - ) && base.Equals(input) && - ( - this.TransferOrderNbr == input.TransferOrderNbr || - (this.TransferOrderNbr != null && - this.TransferOrderNbr.Equals(input.TransferOrderNbr)) - ) && base.Equals(input) && - ( - this.TransferOrderType == input.TransferOrderType || - (this.TransferOrderType != null && - this.TransferOrderType.Equals(input.TransferOrderType)) - ) && base.Equals(input) && - ( - this.TransferShipmentNbr == input.TransferShipmentNbr || - (this.TransferShipmentNbr != null && - this.TransferShipmentNbr.Equals(input.TransferShipmentNbr)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.AccrualAccount != null) - hashCode = hashCode * 59 + this.AccrualAccount.GetHashCode(); - if (this.AccrualSubaccount != null) - hashCode = hashCode * 59 + this.AccrualSubaccount.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.ExtendedCost != null) - hashCode = hashCode * 59 + this.ExtendedCost.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LineType != null) - hashCode = hashCode * 59 + this.LineType.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.OpenQty != null) - hashCode = hashCode * 59 + this.OpenQty.GetHashCode(); - if (this.OrderedQty != null) - hashCode = hashCode * 59 + this.OrderedQty.GetHashCode(); - if (this.POLineNbr != null) - hashCode = hashCode * 59 + this.POLineNbr.GetHashCode(); - if (this.POOrderNbr != null) - hashCode = hashCode * 59 + this.POOrderNbr.GetHashCode(); - if (this.POOrderType != null) - hashCode = hashCode * 59 + this.POOrderType.GetHashCode(); - if (this.ReceiptQty != null) - hashCode = hashCode * 59 + this.ReceiptQty.GetHashCode(); - if (this.Subaccount != null) - hashCode = hashCode * 59 + this.Subaccount.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TransactionDescription != null) - hashCode = hashCode * 59 + this.TransactionDescription.GetHashCode(); - if (this.TransferOrderNbr != null) - hashCode = hashCode * 59 + this.TransferOrderNbr.GetHashCode(); - if (this.TransferOrderType != null) - hashCode = hashCode * 59 + this.TransferOrderType.GetHashCode(); - if (this.TransferShipmentNbr != null) - hashCode = hashCode * 59 + this.TransferShipmentNbr.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PurchaseReceiptDetailAllocation.cs b/Default.18.200.001/Model/PurchaseReceiptDetailAllocation.cs deleted file mode 100644 index 0db2b0be..00000000 --- a/Default.18.200.001/Model/PurchaseReceiptDetailAllocation.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PurchaseReceiptDetailAllocation - /// - [DataContract] - public partial class PurchaseReceiptDetailAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// lineNbr. - /// location. - /// lotSerialNbr. - /// qty. - /// receiptNbr. - /// splitLineNbr. - public PurchaseReceiptDetailAllocation(IntValue lineNbr = default(IntValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue receiptNbr = default(StringValue), IntValue splitLineNbr = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.LineNbr = lineNbr; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.ReceiptNbr = receiptNbr; - this.SplitLineNbr = splitLineNbr; - } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReceiptNbr - /// - [DataMember(Name="ReceiptNbr", EmitDefaultValue=false)] - public StringValue ReceiptNbr { get; set; } - - /// - /// Gets or Sets SplitLineNbr - /// - [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] - public IntValue SplitLineNbr { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseReceiptDetailAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReceiptNbr: ").Append(ReceiptNbr).Append("\n"); - sb.Append(" SplitLineNbr: ").Append(SplitLineNbr).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseReceiptDetailAllocation); - } - - /// - /// Returns true if PurchaseReceiptDetailAllocation instances are equal - /// - /// Instance of PurchaseReceiptDetailAllocation to be compared - /// Boolean - public bool Equals(PurchaseReceiptDetailAllocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReceiptNbr == input.ReceiptNbr || - (this.ReceiptNbr != null && - this.ReceiptNbr.Equals(input.ReceiptNbr)) - ) && base.Equals(input) && - ( - this.SplitLineNbr == input.SplitLineNbr || - (this.SplitLineNbr != null && - this.SplitLineNbr.Equals(input.SplitLineNbr)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReceiptNbr != null) - hashCode = hashCode * 59 + this.ReceiptNbr.GetHashCode(); - if (this.SplitLineNbr != null) - hashCode = hashCode * 59 + this.SplitLineNbr.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/PurchaseSettings.cs b/Default.18.200.001/Model/PurchaseSettings.cs deleted file mode 100644 index 949e65d1..00000000 --- a/Default.18.200.001/Model/PurchaseSettings.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// PurchaseSettings - /// - [DataContract] - public partial class PurchaseSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// pOSiteID. - /// pOSource. - /// vendorID. - public PurchaseSettings(StringValue pOSiteID = default(StringValue), StringValue pOSource = default(StringValue), StringValue vendorID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.POSiteID = pOSiteID; - this.POSource = pOSource; - this.VendorID = vendorID; - } - - /// - /// Gets or Sets POSiteID - /// - [DataMember(Name="POSiteID", EmitDefaultValue=false)] - public StringValue POSiteID { get; set; } - - /// - /// Gets or Sets POSource - /// - [DataMember(Name="POSource", EmitDefaultValue=false)] - public StringValue POSource { get; set; } - - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class PurchaseSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" POSiteID: ").Append(POSiteID).Append("\n"); - sb.Append(" POSource: ").Append(POSource).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as PurchaseSettings); - } - - /// - /// Returns true if PurchaseSettings instances are equal - /// - /// Instance of PurchaseSettings to be compared - /// Boolean - public bool Equals(PurchaseSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.POSiteID == input.POSiteID || - (this.POSiteID != null && - this.POSiteID.Equals(input.POSiteID)) - ) && base.Equals(input) && - ( - this.POSource == input.POSource || - (this.POSource != null && - this.POSource.Equals(input.POSource)) - ) && base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.POSiteID != null) - hashCode = hashCode * 59 + this.POSiteID.GetHashCode(); - if (this.POSource != null) - hashCode = hashCode * 59 + this.POSource.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/RelationDetail.cs b/Default.18.200.001/Model/RelationDetail.cs deleted file mode 100644 index 01f038b1..00000000 --- a/Default.18.200.001/Model/RelationDetail.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// RelationDetail - /// - [DataContract] - public partial class RelationDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// addToCc. - /// contactDisplayName. - /// contactID. - /// document. - /// documentTargetNoteIDDescription. - /// email. - /// name. - /// primary. - /// relationID. - /// role. - /// type. - public RelationDetail(StringValue account = default(StringValue), BooleanValue addToCc = default(BooleanValue), StringValue contactDisplayName = default(StringValue), IntValue contactID = default(IntValue), GuidValue document = default(GuidValue), StringValue documentTargetNoteIDDescription = default(StringValue), StringValue email = default(StringValue), StringValue name = default(StringValue), BooleanValue primary = default(BooleanValue), IntValue relationID = default(IntValue), StringValue role = default(StringValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.AddToCc = addToCc; - this.ContactDisplayName = contactDisplayName; - this.ContactID = contactID; - this.Document = document; - this.DocumentTargetNoteIDDescription = documentTargetNoteIDDescription; - this.Email = email; - this.Name = name; - this.Primary = primary; - this.RelationID = relationID; - this.Role = role; - this.Type = type; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets AddToCc - /// - [DataMember(Name="AddToCc", EmitDefaultValue=false)] - public BooleanValue AddToCc { get; set; } - - /// - /// Gets or Sets ContactDisplayName - /// - [DataMember(Name="ContactDisplayName", EmitDefaultValue=false)] - public StringValue ContactDisplayName { get; set; } - - /// - /// Gets or Sets ContactID - /// - [DataMember(Name="ContactID", EmitDefaultValue=false)] - public IntValue ContactID { get; set; } - - /// - /// Gets or Sets Document - /// - [DataMember(Name="Document", EmitDefaultValue=false)] - public GuidValue Document { get; set; } - - /// - /// Gets or Sets DocumentTargetNoteIDDescription - /// - [DataMember(Name="DocumentTargetNoteIDDescription", EmitDefaultValue=false)] - public StringValue DocumentTargetNoteIDDescription { get; set; } - - /// - /// Gets or Sets Email - /// - [DataMember(Name="Email", EmitDefaultValue=false)] - public StringValue Email { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Gets or Sets Primary - /// - [DataMember(Name="Primary", EmitDefaultValue=false)] - public BooleanValue Primary { get; set; } - - /// - /// Gets or Sets RelationID - /// - [DataMember(Name="RelationID", EmitDefaultValue=false)] - public IntValue RelationID { get; set; } - - /// - /// Gets or Sets Role - /// - [DataMember(Name="Role", EmitDefaultValue=false)] - public StringValue Role { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RelationDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" AddToCc: ").Append(AddToCc).Append("\n"); - sb.Append(" ContactDisplayName: ").Append(ContactDisplayName).Append("\n"); - sb.Append(" ContactID: ").Append(ContactID).Append("\n"); - sb.Append(" Document: ").Append(Document).Append("\n"); - sb.Append(" DocumentTargetNoteIDDescription: ").Append(DocumentTargetNoteIDDescription).Append("\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Primary: ").Append(Primary).Append("\n"); - sb.Append(" RelationID: ").Append(RelationID).Append("\n"); - sb.Append(" Role: ").Append(Role).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as RelationDetail); - } - - /// - /// Returns true if RelationDetail instances are equal - /// - /// Instance of RelationDetail to be compared - /// Boolean - public bool Equals(RelationDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.AddToCc == input.AddToCc || - (this.AddToCc != null && - this.AddToCc.Equals(input.AddToCc)) - ) && base.Equals(input) && - ( - this.ContactDisplayName == input.ContactDisplayName || - (this.ContactDisplayName != null && - this.ContactDisplayName.Equals(input.ContactDisplayName)) - ) && base.Equals(input) && - ( - this.ContactID == input.ContactID || - (this.ContactID != null && - this.ContactID.Equals(input.ContactID)) - ) && base.Equals(input) && - ( - this.Document == input.Document || - (this.Document != null && - this.Document.Equals(input.Document)) - ) && base.Equals(input) && - ( - this.DocumentTargetNoteIDDescription == input.DocumentTargetNoteIDDescription || - (this.DocumentTargetNoteIDDescription != null && - this.DocumentTargetNoteIDDescription.Equals(input.DocumentTargetNoteIDDescription)) - ) && base.Equals(input) && - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.Primary == input.Primary || - (this.Primary != null && - this.Primary.Equals(input.Primary)) - ) && base.Equals(input) && - ( - this.RelationID == input.RelationID || - (this.RelationID != null && - this.RelationID.Equals(input.RelationID)) - ) && base.Equals(input) && - ( - this.Role == input.Role || - (this.Role != null && - this.Role.Equals(input.Role)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.AddToCc != null) - hashCode = hashCode * 59 + this.AddToCc.GetHashCode(); - if (this.ContactDisplayName != null) - hashCode = hashCode * 59 + this.ContactDisplayName.GetHashCode(); - if (this.ContactID != null) - hashCode = hashCode * 59 + this.ContactID.GetHashCode(); - if (this.Document != null) - hashCode = hashCode * 59 + this.Document.GetHashCode(); - if (this.DocumentTargetNoteIDDescription != null) - hashCode = hashCode * 59 + this.DocumentTargetNoteIDDescription.GetHashCode(); - if (this.Email != null) - hashCode = hashCode * 59 + this.Email.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Primary != null) - hashCode = hashCode * 59 + this.Primary.GetHashCode(); - if (this.RelationID != null) - hashCode = hashCode * 59 + this.RelationID.GetHashCode(); - if (this.Role != null) - hashCode = hashCode * 59 + this.Role.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ReminderDetail.cs b/Default.18.200.001/Model/ReminderDetail.cs deleted file mode 100644 index 063122f3..00000000 --- a/Default.18.200.001/Model/ReminderDetail.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ReminderDetail - /// - [DataContract] - public partial class ReminderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// isActive. - /// remindAtDate. - /// remindAtTime. - public ReminderDetail(BooleanValue isActive = default(BooleanValue), DateTimeValue remindAtDate = default(DateTimeValue), DateTimeValue remindAtTime = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.IsActive = isActive; - this.RemindAtDate = remindAtDate; - this.RemindAtTime = remindAtTime; - } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="IsActive", EmitDefaultValue=false)] - public BooleanValue IsActive { get; set; } - - /// - /// Gets or Sets RemindAtDate - /// - [DataMember(Name="RemindAtDate", EmitDefaultValue=false)] - public DateTimeValue RemindAtDate { get; set; } - - /// - /// Gets or Sets RemindAtTime - /// - [DataMember(Name="RemindAtTime", EmitDefaultValue=false)] - public DateTimeValue RemindAtTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReminderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" RemindAtDate: ").Append(RemindAtDate).Append("\n"); - sb.Append(" RemindAtTime: ").Append(RemindAtTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReminderDetail); - } - - /// - /// Returns true if ReminderDetail instances are equal - /// - /// Instance of ReminderDetail to be compared - /// Boolean - public bool Equals(ReminderDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && base.Equals(input) && - ( - this.RemindAtDate == input.RemindAtDate || - (this.RemindAtDate != null && - this.RemindAtDate.Equals(input.RemindAtDate)) - ) && base.Equals(input) && - ( - this.RemindAtTime == input.RemindAtTime || - (this.RemindAtTime != null && - this.RemindAtTime.Equals(input.RemindAtTime)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.RemindAtDate != null) - hashCode = hashCode * 59 + this.RemindAtDate.GetHashCode(); - if (this.RemindAtTime != null) - hashCode = hashCode * 59 + this.RemindAtTime.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ReplenishmentParameterStockItem.cs b/Default.18.200.001/Model/ReplenishmentParameterStockItem.cs deleted file mode 100644 index 43d809d9..00000000 --- a/Default.18.200.001/Model/ReplenishmentParameterStockItem.cs +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ReplenishmentParameterStockItem - /// - [DataContract] - public partial class ReplenishmentParameterStockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// demandForecastModel. - /// forecastPeriodType. - /// launchDate. - /// maxQty. - /// maxShelfLifeInDays. - /// method. - /// periodsToAnalyze. - /// reorderPoint. - /// replenishmentClass. - /// replenishmentWarehouse. - /// safetyStock. - /// seasonality. - /// serviceLevel. - /// source. - /// terminationDate. - /// transferERQ. - public ReplenishmentParameterStockItem(StringValue demandForecastModel = default(StringValue), StringValue forecastPeriodType = default(StringValue), DateTimeValue launchDate = default(DateTimeValue), DecimalValue maxQty = default(DecimalValue), IntValue maxShelfLifeInDays = default(IntValue), StringValue method = default(StringValue), IntValue periodsToAnalyze = default(IntValue), DecimalValue reorderPoint = default(DecimalValue), StringValue replenishmentClass = default(StringValue), StringValue replenishmentWarehouse = default(StringValue), DecimalValue safetyStock = default(DecimalValue), StringValue seasonality = default(StringValue), DecimalValue serviceLevel = default(DecimalValue), StringValue source = default(StringValue), DateTimeValue terminationDate = default(DateTimeValue), DecimalValue transferERQ = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DemandForecastModel = demandForecastModel; - this.ForecastPeriodType = forecastPeriodType; - this.LaunchDate = launchDate; - this.MaxQty = maxQty; - this.MaxShelfLifeInDays = maxShelfLifeInDays; - this.Method = method; - this.PeriodsToAnalyze = periodsToAnalyze; - this.ReorderPoint = reorderPoint; - this.ReplenishmentClass = replenishmentClass; - this.ReplenishmentWarehouse = replenishmentWarehouse; - this.SafetyStock = safetyStock; - this.Seasonality = seasonality; - this.ServiceLevel = serviceLevel; - this.Source = source; - this.TerminationDate = terminationDate; - this.TransferERQ = transferERQ; - } - - /// - /// Gets or Sets DemandForecastModel - /// - [DataMember(Name="DemandForecastModel", EmitDefaultValue=false)] - public StringValue DemandForecastModel { get; set; } - - /// - /// Gets or Sets ForecastPeriodType - /// - [DataMember(Name="ForecastPeriodType", EmitDefaultValue=false)] - public StringValue ForecastPeriodType { get; set; } - - /// - /// Gets or Sets LaunchDate - /// - [DataMember(Name="LaunchDate", EmitDefaultValue=false)] - public DateTimeValue LaunchDate { get; set; } - - /// - /// Gets or Sets MaxQty - /// - [DataMember(Name="MaxQty", EmitDefaultValue=false)] - public DecimalValue MaxQty { get; set; } - - /// - /// Gets or Sets MaxShelfLifeInDays - /// - [DataMember(Name="MaxShelfLifeInDays", EmitDefaultValue=false)] - public IntValue MaxShelfLifeInDays { get; set; } - - /// - /// Gets or Sets Method - /// - [DataMember(Name="Method", EmitDefaultValue=false)] - public StringValue Method { get; set; } - - /// - /// Gets or Sets PeriodsToAnalyze - /// - [DataMember(Name="PeriodsToAnalyze", EmitDefaultValue=false)] - public IntValue PeriodsToAnalyze { get; set; } - - /// - /// Gets or Sets ReorderPoint - /// - [DataMember(Name="ReorderPoint", EmitDefaultValue=false)] - public DecimalValue ReorderPoint { get; set; } - - /// - /// Gets or Sets ReplenishmentClass - /// - [DataMember(Name="ReplenishmentClass", EmitDefaultValue=false)] - public StringValue ReplenishmentClass { get; set; } - - /// - /// Gets or Sets ReplenishmentWarehouse - /// - [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] - public StringValue ReplenishmentWarehouse { get; set; } - - /// - /// Gets or Sets SafetyStock - /// - [DataMember(Name="SafetyStock", EmitDefaultValue=false)] - public DecimalValue SafetyStock { get; set; } - - /// - /// Gets or Sets Seasonality - /// - [DataMember(Name="Seasonality", EmitDefaultValue=false)] - public StringValue Seasonality { get; set; } - - /// - /// Gets or Sets ServiceLevel - /// - [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] - public DecimalValue ServiceLevel { get; set; } - - /// - /// Gets or Sets Source - /// - [DataMember(Name="Source", EmitDefaultValue=false)] - public StringValue Source { get; set; } - - /// - /// Gets or Sets TerminationDate - /// - [DataMember(Name="TerminationDate", EmitDefaultValue=false)] - public DateTimeValue TerminationDate { get; set; } - - /// - /// Gets or Sets TransferERQ - /// - [DataMember(Name="TransferERQ", EmitDefaultValue=false)] - public DecimalValue TransferERQ { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReplenishmentParameterStockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DemandForecastModel: ").Append(DemandForecastModel).Append("\n"); - sb.Append(" ForecastPeriodType: ").Append(ForecastPeriodType).Append("\n"); - sb.Append(" LaunchDate: ").Append(LaunchDate).Append("\n"); - sb.Append(" MaxQty: ").Append(MaxQty).Append("\n"); - sb.Append(" MaxShelfLifeInDays: ").Append(MaxShelfLifeInDays).Append("\n"); - sb.Append(" Method: ").Append(Method).Append("\n"); - sb.Append(" PeriodsToAnalyze: ").Append(PeriodsToAnalyze).Append("\n"); - sb.Append(" ReorderPoint: ").Append(ReorderPoint).Append("\n"); - sb.Append(" ReplenishmentClass: ").Append(ReplenishmentClass).Append("\n"); - sb.Append(" ReplenishmentWarehouse: ").Append(ReplenishmentWarehouse).Append("\n"); - sb.Append(" SafetyStock: ").Append(SafetyStock).Append("\n"); - sb.Append(" Seasonality: ").Append(Seasonality).Append("\n"); - sb.Append(" ServiceLevel: ").Append(ServiceLevel).Append("\n"); - sb.Append(" Source: ").Append(Source).Append("\n"); - sb.Append(" TerminationDate: ").Append(TerminationDate).Append("\n"); - sb.Append(" TransferERQ: ").Append(TransferERQ).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReplenishmentParameterStockItem); - } - - /// - /// Returns true if ReplenishmentParameterStockItem instances are equal - /// - /// Instance of ReplenishmentParameterStockItem to be compared - /// Boolean - public bool Equals(ReplenishmentParameterStockItem input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DemandForecastModel == input.DemandForecastModel || - (this.DemandForecastModel != null && - this.DemandForecastModel.Equals(input.DemandForecastModel)) - ) && base.Equals(input) && - ( - this.ForecastPeriodType == input.ForecastPeriodType || - (this.ForecastPeriodType != null && - this.ForecastPeriodType.Equals(input.ForecastPeriodType)) - ) && base.Equals(input) && - ( - this.LaunchDate == input.LaunchDate || - (this.LaunchDate != null && - this.LaunchDate.Equals(input.LaunchDate)) - ) && base.Equals(input) && - ( - this.MaxQty == input.MaxQty || - (this.MaxQty != null && - this.MaxQty.Equals(input.MaxQty)) - ) && base.Equals(input) && - ( - this.MaxShelfLifeInDays == input.MaxShelfLifeInDays || - (this.MaxShelfLifeInDays != null && - this.MaxShelfLifeInDays.Equals(input.MaxShelfLifeInDays)) - ) && base.Equals(input) && - ( - this.Method == input.Method || - (this.Method != null && - this.Method.Equals(input.Method)) - ) && base.Equals(input) && - ( - this.PeriodsToAnalyze == input.PeriodsToAnalyze || - (this.PeriodsToAnalyze != null && - this.PeriodsToAnalyze.Equals(input.PeriodsToAnalyze)) - ) && base.Equals(input) && - ( - this.ReorderPoint == input.ReorderPoint || - (this.ReorderPoint != null && - this.ReorderPoint.Equals(input.ReorderPoint)) - ) && base.Equals(input) && - ( - this.ReplenishmentClass == input.ReplenishmentClass || - (this.ReplenishmentClass != null && - this.ReplenishmentClass.Equals(input.ReplenishmentClass)) - ) && base.Equals(input) && - ( - this.ReplenishmentWarehouse == input.ReplenishmentWarehouse || - (this.ReplenishmentWarehouse != null && - this.ReplenishmentWarehouse.Equals(input.ReplenishmentWarehouse)) - ) && base.Equals(input) && - ( - this.SafetyStock == input.SafetyStock || - (this.SafetyStock != null && - this.SafetyStock.Equals(input.SafetyStock)) - ) && base.Equals(input) && - ( - this.Seasonality == input.Seasonality || - (this.Seasonality != null && - this.Seasonality.Equals(input.Seasonality)) - ) && base.Equals(input) && - ( - this.ServiceLevel == input.ServiceLevel || - (this.ServiceLevel != null && - this.ServiceLevel.Equals(input.ServiceLevel)) - ) && base.Equals(input) && - ( - this.Source == input.Source || - (this.Source != null && - this.Source.Equals(input.Source)) - ) && base.Equals(input) && - ( - this.TerminationDate == input.TerminationDate || - (this.TerminationDate != null && - this.TerminationDate.Equals(input.TerminationDate)) - ) && base.Equals(input) && - ( - this.TransferERQ == input.TransferERQ || - (this.TransferERQ != null && - this.TransferERQ.Equals(input.TransferERQ)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DemandForecastModel != null) - hashCode = hashCode * 59 + this.DemandForecastModel.GetHashCode(); - if (this.ForecastPeriodType != null) - hashCode = hashCode * 59 + this.ForecastPeriodType.GetHashCode(); - if (this.LaunchDate != null) - hashCode = hashCode * 59 + this.LaunchDate.GetHashCode(); - if (this.MaxQty != null) - hashCode = hashCode * 59 + this.MaxQty.GetHashCode(); - if (this.MaxShelfLifeInDays != null) - hashCode = hashCode * 59 + this.MaxShelfLifeInDays.GetHashCode(); - if (this.Method != null) - hashCode = hashCode * 59 + this.Method.GetHashCode(); - if (this.PeriodsToAnalyze != null) - hashCode = hashCode * 59 + this.PeriodsToAnalyze.GetHashCode(); - if (this.ReorderPoint != null) - hashCode = hashCode * 59 + this.ReorderPoint.GetHashCode(); - if (this.ReplenishmentClass != null) - hashCode = hashCode * 59 + this.ReplenishmentClass.GetHashCode(); - if (this.ReplenishmentWarehouse != null) - hashCode = hashCode * 59 + this.ReplenishmentWarehouse.GetHashCode(); - if (this.SafetyStock != null) - hashCode = hashCode * 59 + this.SafetyStock.GetHashCode(); - if (this.Seasonality != null) - hashCode = hashCode * 59 + this.Seasonality.GetHashCode(); - if (this.ServiceLevel != null) - hashCode = hashCode * 59 + this.ServiceLevel.GetHashCode(); - if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); - if (this.TerminationDate != null) - hashCode = hashCode * 59 + this.TerminationDate.GetHashCode(); - if (this.TransferERQ != null) - hashCode = hashCode * 59 + this.TransferERQ.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ReportingGroup.cs b/Default.18.200.001/Model/ReportingGroup.cs deleted file mode 100644 index 94ca7f2a..00000000 --- a/Default.18.200.001/Model/ReportingGroup.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ReportingGroup - /// - [DataContract] - public partial class ReportingGroup : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// groupType. - /// lastModifiedDateTime. - /// name. - public ReportingGroup(StringValue groupType = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue name = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.GroupType = groupType; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Name = name; - } - - /// - /// Gets or Sets GroupType - /// - [DataMember(Name="GroupType", EmitDefaultValue=false)] - public StringValue GroupType { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportingGroup {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" GroupType: ").Append(GroupType).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportingGroup); - } - - /// - /// Returns true if ReportingGroup instances are equal - /// - /// Instance of ReportingGroup to be compared - /// Boolean - public bool Equals(ReportingGroup input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.GroupType == input.GroupType || - (this.GroupType != null && - this.GroupType.Equals(input.GroupType)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.GroupType != null) - hashCode = hashCode * 59 + this.GroupType.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ReportingSettings.cs b/Default.18.200.001/Model/ReportingSettings.cs deleted file mode 100644 index b4238ea5..00000000 --- a/Default.18.200.001/Model/ReportingSettings.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ReportingSettings - /// - [DataContract] - public partial class ReportingSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// reportingGroups. - /// taxAgency. - public ReportingSettings(IEnumerable reportingGroups = default(IEnumerable), StringValue taxAgency = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ReportingGroups = reportingGroups; - this.TaxAgency = taxAgency; - } - - /// - /// Gets or Sets ReportingGroups - /// - [DataMember(Name="ReportingGroups", EmitDefaultValue=false)] - public IEnumerable ReportingGroups { get; set; } - - /// - /// Gets or Sets TaxAgency - /// - [DataMember(Name="TaxAgency", EmitDefaultValue=false)] - public StringValue TaxAgency { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ReportingSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ReportingGroups: ").Append(ReportingGroups).Append("\n"); - sb.Append(" TaxAgency: ").Append(TaxAgency).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ReportingSettings); - } - - /// - /// Returns true if ReportingSettings instances are equal - /// - /// Instance of ReportingSettings to be compared - /// Boolean - public bool Equals(ReportingSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ReportingGroups == input.ReportingGroups || - this.ReportingGroups != null && - this.ReportingGroups.SequenceEqual(input.ReportingGroups) - ) && base.Equals(input) && - ( - this.TaxAgency == input.TaxAgency || - (this.TaxAgency != null && - this.TaxAgency.Equals(input.TaxAgency)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ReportingGroups != null) - hashCode = hashCode * 59 + this.ReportingGroups.GetHashCode(); - if (this.TaxAgency != null) - hashCode = hashCode * 59 + this.TaxAgency.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoice.cs b/Default.18.200.001/Model/SalesInvoice.cs deleted file mode 100644 index 8f485e53..00000000 --- a/Default.18.200.001/Model/SalesInvoice.cs +++ /dev/null @@ -1,542 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoice - /// - [DataContract] - public partial class SalesInvoice : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// applicationsCreditMemo. - /// applicationsInvoice. - /// balance. - /// billingSettings. - /// cashDiscount. - /// commissions. - /// creditHold. - /// currency. - /// customerID. - /// customerOrder. - /// date. - /// description. - /// details. - /// discountDetails. - /// dueDate. - /// financialDetails. - /// freightDetails. - /// hold. - /// project. - /// referenceNbr. - /// status. - /// taxDetails. - /// totals. - /// type. - /// vATExemptTotal. - /// vATTaxableTotal. - public SalesInvoice(DecimalValue amount = default(DecimalValue), IEnumerable applicationsCreditMemo = default(IEnumerable), IEnumerable applicationsInvoice = default(IEnumerable), DecimalValue balance = default(DecimalValue), BillToSettings billingSettings = default(BillToSettings), DecimalValue cashDiscount = default(DecimalValue), SalesInvoiceCommissions commissions = default(SalesInvoiceCommissions), BooleanValue creditHold = default(BooleanValue), StringValue currency = default(StringValue), StringValue customerID = default(StringValue), StringValue customerOrder = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), IEnumerable discountDetails = default(IEnumerable), DateTimeValue dueDate = default(DateTimeValue), SalesInvoiceFinancialDetails financialDetails = default(SalesInvoiceFinancialDetails), IEnumerable freightDetails = default(IEnumerable), BooleanValue hold = default(BooleanValue), StringValue project = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), IEnumerable taxDetails = default(IEnumerable), SalesInvoiceTotals totals = default(SalesInvoiceTotals), StringValue type = default(StringValue), DecimalValue vATExemptTotal = default(DecimalValue), DecimalValue vATTaxableTotal = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.ApplicationsCreditMemo = applicationsCreditMemo; - this.ApplicationsInvoice = applicationsInvoice; - this.Balance = balance; - this.BillingSettings = billingSettings; - this.CashDiscount = cashDiscount; - this.Commissions = commissions; - this.CreditHold = creditHold; - this.Currency = currency; - this.CustomerID = customerID; - this.CustomerOrder = customerOrder; - this.Date = date; - this.Description = description; - this.Details = details; - this.DiscountDetails = discountDetails; - this.DueDate = dueDate; - this.FinancialDetails = financialDetails; - this.FreightDetails = freightDetails; - this.Hold = hold; - this.Project = project; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TaxDetails = taxDetails; - this.Totals = totals; - this.Type = type; - this.VATExemptTotal = vATExemptTotal; - this.VATTaxableTotal = vATTaxableTotal; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets ApplicationsCreditMemo - /// - [DataMember(Name="ApplicationsCreditMemo", EmitDefaultValue=false)] - public IEnumerable ApplicationsCreditMemo { get; set; } - - /// - /// Gets or Sets ApplicationsInvoice - /// - [DataMember(Name="ApplicationsInvoice", EmitDefaultValue=false)] - public IEnumerable ApplicationsInvoice { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets BillingSettings - /// - [DataMember(Name="BillingSettings", EmitDefaultValue=false)] - public BillToSettings BillingSettings { get; set; } - - /// - /// Gets or Sets CashDiscount - /// - [DataMember(Name="CashDiscount", EmitDefaultValue=false)] - public DecimalValue CashDiscount { get; set; } - - /// - /// Gets or Sets Commissions - /// - [DataMember(Name="Commissions", EmitDefaultValue=false)] - public SalesInvoiceCommissions Commissions { get; set; } - - /// - /// Gets or Sets CreditHold - /// - [DataMember(Name="CreditHold", EmitDefaultValue=false)] - public BooleanValue CreditHold { get; set; } - - /// - /// Gets or Sets Currency - /// - [DataMember(Name="Currency", EmitDefaultValue=false)] - public StringValue Currency { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets DiscountDetails - /// - [DataMember(Name="DiscountDetails", EmitDefaultValue=false)] - public IEnumerable DiscountDetails { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets FinancialDetails - /// - [DataMember(Name="FinancialDetails", EmitDefaultValue=false)] - public SalesInvoiceFinancialDetails FinancialDetails { get; set; } - - /// - /// Gets or Sets FreightDetails - /// - [DataMember(Name="FreightDetails", EmitDefaultValue=false)] - public IEnumerable FreightDetails { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public IEnumerable TaxDetails { get; set; } - - /// - /// Gets or Sets Totals - /// - [DataMember(Name="Totals", EmitDefaultValue=false)] - public SalesInvoiceTotals Totals { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets VATExemptTotal - /// - [DataMember(Name="VATExemptTotal", EmitDefaultValue=false)] - public DecimalValue VATExemptTotal { get; set; } - - /// - /// Gets or Sets VATTaxableTotal - /// - [DataMember(Name="VATTaxableTotal", EmitDefaultValue=false)] - public DecimalValue VATTaxableTotal { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoice {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" ApplicationsCreditMemo: ").Append(ApplicationsCreditMemo).Append("\n"); - sb.Append(" ApplicationsInvoice: ").Append(ApplicationsInvoice).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" BillingSettings: ").Append(BillingSettings).Append("\n"); - sb.Append(" CashDiscount: ").Append(CashDiscount).Append("\n"); - sb.Append(" Commissions: ").Append(Commissions).Append("\n"); - sb.Append(" CreditHold: ").Append(CreditHold).Append("\n"); - sb.Append(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" DiscountDetails: ").Append(DiscountDetails).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" FinancialDetails: ").Append(FinancialDetails).Append("\n"); - sb.Append(" FreightDetails: ").Append(FreightDetails).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" Totals: ").Append(Totals).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" VATExemptTotal: ").Append(VATExemptTotal).Append("\n"); - sb.Append(" VATTaxableTotal: ").Append(VATTaxableTotal).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoice); - } - - /// - /// Returns true if SalesInvoice instances are equal - /// - /// Instance of SalesInvoice to be compared - /// Boolean - public bool Equals(SalesInvoice input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.ApplicationsCreditMemo == input.ApplicationsCreditMemo || - this.ApplicationsCreditMemo != null && - this.ApplicationsCreditMemo.SequenceEqual(input.ApplicationsCreditMemo) - ) && base.Equals(input) && - ( - this.ApplicationsInvoice == input.ApplicationsInvoice || - this.ApplicationsInvoice != null && - this.ApplicationsInvoice.SequenceEqual(input.ApplicationsInvoice) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.BillingSettings == input.BillingSettings || - (this.BillingSettings != null && - this.BillingSettings.Equals(input.BillingSettings)) - ) && base.Equals(input) && - ( - this.CashDiscount == input.CashDiscount || - (this.CashDiscount != null && - this.CashDiscount.Equals(input.CashDiscount)) - ) && base.Equals(input) && - ( - this.Commissions == input.Commissions || - (this.Commissions != null && - this.Commissions.Equals(input.Commissions)) - ) && base.Equals(input) && - ( - this.CreditHold == input.CreditHold || - (this.CreditHold != null && - this.CreditHold.Equals(input.CreditHold)) - ) && base.Equals(input) && - ( - this.Currency == input.Currency || - (this.Currency != null && - this.Currency.Equals(input.Currency)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.DiscountDetails == input.DiscountDetails || - this.DiscountDetails != null && - this.DiscountDetails.SequenceEqual(input.DiscountDetails) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.FinancialDetails == input.FinancialDetails || - (this.FinancialDetails != null && - this.FinancialDetails.Equals(input.FinancialDetails)) - ) && base.Equals(input) && - ( - this.FreightDetails == input.FreightDetails || - this.FreightDetails != null && - this.FreightDetails.SequenceEqual(input.FreightDetails) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.Totals == input.Totals || - (this.Totals != null && - this.Totals.Equals(input.Totals)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.VATExemptTotal == input.VATExemptTotal || - (this.VATExemptTotal != null && - this.VATExemptTotal.Equals(input.VATExemptTotal)) - ) && base.Equals(input) && - ( - this.VATTaxableTotal == input.VATTaxableTotal || - (this.VATTaxableTotal != null && - this.VATTaxableTotal.Equals(input.VATTaxableTotal)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.ApplicationsCreditMemo != null) - hashCode = hashCode * 59 + this.ApplicationsCreditMemo.GetHashCode(); - if (this.ApplicationsInvoice != null) - hashCode = hashCode * 59 + this.ApplicationsInvoice.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.BillingSettings != null) - hashCode = hashCode * 59 + this.BillingSettings.GetHashCode(); - if (this.CashDiscount != null) - hashCode = hashCode * 59 + this.CashDiscount.GetHashCode(); - if (this.Commissions != null) - hashCode = hashCode * 59 + this.Commissions.GetHashCode(); - if (this.CreditHold != null) - hashCode = hashCode * 59 + this.CreditHold.GetHashCode(); - if (this.Currency != null) - hashCode = hashCode * 59 + this.Currency.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.DiscountDetails != null) - hashCode = hashCode * 59 + this.DiscountDetails.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.FinancialDetails != null) - hashCode = hashCode * 59 + this.FinancialDetails.GetHashCode(); - if (this.FreightDetails != null) - hashCode = hashCode * 59 + this.FreightDetails.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.Totals != null) - hashCode = hashCode * 59 + this.Totals.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.VATExemptTotal != null) - hashCode = hashCode * 59 + this.VATExemptTotal.GetHashCode(); - if (this.VATTaxableTotal != null) - hashCode = hashCode * 59 + this.VATTaxableTotal.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoiceApplicationCreditMemo.cs b/Default.18.200.001/Model/SalesInvoiceApplicationCreditMemo.cs deleted file mode 100644 index d1b92a08..00000000 --- a/Default.18.200.001/Model/SalesInvoiceApplicationCreditMemo.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoiceApplicationCreditMemo - /// - [DataContract] - public partial class SalesInvoiceApplicationCreditMemo : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountPaid. - /// balance. - /// currency. - /// customer. - /// customerOrder. - /// date. - /// description. - /// docType. - /// postPeriod. - /// referenceNbr. - /// status. - public SalesInvoiceApplicationCreditMemo(DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), StringValue currency = default(StringValue), StringValue customer = default(StringValue), StringValue customerOrder = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), StringValue docType = default(StringValue), StringValue postPeriod = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountPaid = amountPaid; - this.Balance = balance; - this.Currency = currency; - this.Customer = customer; - this.CustomerOrder = customerOrder; - this.Date = date; - this.Description = description; - this.DocType = docType; - this.PostPeriod = postPeriod; - this.ReferenceNbr = referenceNbr; - this.Status = status; - } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets Currency - /// - [DataMember(Name="Currency", EmitDefaultValue=false)] - public StringValue Currency { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceApplicationCreditMemo {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceApplicationCreditMemo); - } - - /// - /// Returns true if SalesInvoiceApplicationCreditMemo instances are equal - /// - /// Instance of SalesInvoiceApplicationCreditMemo to be compared - /// Boolean - public bool Equals(SalesInvoiceApplicationCreditMemo input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.Currency == input.Currency || - (this.Currency != null && - this.Currency.Equals(input.Currency)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.Currency != null) - hashCode = hashCode * 59 + this.Currency.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoiceApplicationInvoice.cs b/Default.18.200.001/Model/SalesInvoiceApplicationInvoice.cs deleted file mode 100644 index 38e38b75..00000000 --- a/Default.18.200.001/Model/SalesInvoiceApplicationInvoice.cs +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoiceApplicationInvoice - /// - [DataContract] - public partial class SalesInvoiceApplicationInvoice : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// adjustedDocReferenceNbr. - /// adjustingDocReferenceNbr. - /// adjustmentNbr. - /// amountPaid. - /// balance. - /// cashDiscountTaken. - /// currency. - /// customer. - /// description. - /// docType. - /// documentType. - /// paymentDate. - /// paymentPeriod. - /// paymentRef. - /// status. - public SalesInvoiceApplicationInvoice(StringValue adjustedDocReferenceNbr = default(StringValue), StringValue adjustingDocReferenceNbr = default(StringValue), IntValue adjustmentNbr = default(IntValue), DecimalValue amountPaid = default(DecimalValue), DecimalValue balance = default(DecimalValue), DecimalValue cashDiscountTaken = default(DecimalValue), StringValue currency = default(StringValue), StringValue customer = default(StringValue), StringValue description = default(StringValue), StringValue docType = default(StringValue), StringValue documentType = default(StringValue), DateTimeValue paymentDate = default(DateTimeValue), StringValue paymentPeriod = default(StringValue), StringValue paymentRef = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AdjustedDocReferenceNbr = adjustedDocReferenceNbr; - this.AdjustingDocReferenceNbr = adjustingDocReferenceNbr; - this.AdjustmentNbr = adjustmentNbr; - this.AmountPaid = amountPaid; - this.Balance = balance; - this.CashDiscountTaken = cashDiscountTaken; - this.Currency = currency; - this.Customer = customer; - this.Description = description; - this.DocType = docType; - this.DocumentType = documentType; - this.PaymentDate = paymentDate; - this.PaymentPeriod = paymentPeriod; - this.PaymentRef = paymentRef; - this.Status = status; - } - - /// - /// Gets or Sets AdjustedDocReferenceNbr - /// - [DataMember(Name="AdjustedDocReferenceNbr", EmitDefaultValue=false)] - public StringValue AdjustedDocReferenceNbr { get; set; } - - /// - /// Gets or Sets AdjustingDocReferenceNbr - /// - [DataMember(Name="AdjustingDocReferenceNbr", EmitDefaultValue=false)] - public StringValue AdjustingDocReferenceNbr { get; set; } - - /// - /// Gets or Sets AdjustmentNbr - /// - [DataMember(Name="AdjustmentNbr", EmitDefaultValue=false)] - public IntValue AdjustmentNbr { get; set; } - - /// - /// Gets or Sets AmountPaid - /// - [DataMember(Name="AmountPaid", EmitDefaultValue=false)] - public DecimalValue AmountPaid { get; set; } - - /// - /// Gets or Sets Balance - /// - [DataMember(Name="Balance", EmitDefaultValue=false)] - public DecimalValue Balance { get; set; } - - /// - /// Gets or Sets CashDiscountTaken - /// - [DataMember(Name="CashDiscountTaken", EmitDefaultValue=false)] - public DecimalValue CashDiscountTaken { get; set; } - - /// - /// Gets or Sets Currency - /// - [DataMember(Name="Currency", EmitDefaultValue=false)] - public StringValue Currency { get; set; } - - /// - /// Gets or Sets Customer - /// - [DataMember(Name="Customer", EmitDefaultValue=false)] - public StringValue Customer { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DocType - /// - [DataMember(Name="DocType", EmitDefaultValue=false)] - public StringValue DocType { get; set; } - - /// - /// Gets or Sets DocumentType - /// - [DataMember(Name="DocumentType", EmitDefaultValue=false)] - public StringValue DocumentType { get; set; } - - /// - /// Gets or Sets PaymentDate - /// - [DataMember(Name="PaymentDate", EmitDefaultValue=false)] - public DateTimeValue PaymentDate { get; set; } - - /// - /// Gets or Sets PaymentPeriod - /// - [DataMember(Name="PaymentPeriod", EmitDefaultValue=false)] - public StringValue PaymentPeriod { get; set; } - - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceApplicationInvoice {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AdjustedDocReferenceNbr: ").Append(AdjustedDocReferenceNbr).Append("\n"); - sb.Append(" AdjustingDocReferenceNbr: ").Append(AdjustingDocReferenceNbr).Append("\n"); - sb.Append(" AdjustmentNbr: ").Append(AdjustmentNbr).Append("\n"); - sb.Append(" AmountPaid: ").Append(AmountPaid).Append("\n"); - sb.Append(" Balance: ").Append(Balance).Append("\n"); - sb.Append(" CashDiscountTaken: ").Append(CashDiscountTaken).Append("\n"); - sb.Append(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" Customer: ").Append(Customer).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DocType: ").Append(DocType).Append("\n"); - sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); - sb.Append(" PaymentDate: ").Append(PaymentDate).Append("\n"); - sb.Append(" PaymentPeriod: ").Append(PaymentPeriod).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceApplicationInvoice); - } - - /// - /// Returns true if SalesInvoiceApplicationInvoice instances are equal - /// - /// Instance of SalesInvoiceApplicationInvoice to be compared - /// Boolean - public bool Equals(SalesInvoiceApplicationInvoice input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AdjustedDocReferenceNbr == input.AdjustedDocReferenceNbr || - (this.AdjustedDocReferenceNbr != null && - this.AdjustedDocReferenceNbr.Equals(input.AdjustedDocReferenceNbr)) - ) && base.Equals(input) && - ( - this.AdjustingDocReferenceNbr == input.AdjustingDocReferenceNbr || - (this.AdjustingDocReferenceNbr != null && - this.AdjustingDocReferenceNbr.Equals(input.AdjustingDocReferenceNbr)) - ) && base.Equals(input) && - ( - this.AdjustmentNbr == input.AdjustmentNbr || - (this.AdjustmentNbr != null && - this.AdjustmentNbr.Equals(input.AdjustmentNbr)) - ) && base.Equals(input) && - ( - this.AmountPaid == input.AmountPaid || - (this.AmountPaid != null && - this.AmountPaid.Equals(input.AmountPaid)) - ) && base.Equals(input) && - ( - this.Balance == input.Balance || - (this.Balance != null && - this.Balance.Equals(input.Balance)) - ) && base.Equals(input) && - ( - this.CashDiscountTaken == input.CashDiscountTaken || - (this.CashDiscountTaken != null && - this.CashDiscountTaken.Equals(input.CashDiscountTaken)) - ) && base.Equals(input) && - ( - this.Currency == input.Currency || - (this.Currency != null && - this.Currency.Equals(input.Currency)) - ) && base.Equals(input) && - ( - this.Customer == input.Customer || - (this.Customer != null && - this.Customer.Equals(input.Customer)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DocType == input.DocType || - (this.DocType != null && - this.DocType.Equals(input.DocType)) - ) && base.Equals(input) && - ( - this.DocumentType == input.DocumentType || - (this.DocumentType != null && - this.DocumentType.Equals(input.DocumentType)) - ) && base.Equals(input) && - ( - this.PaymentDate == input.PaymentDate || - (this.PaymentDate != null && - this.PaymentDate.Equals(input.PaymentDate)) - ) && base.Equals(input) && - ( - this.PaymentPeriod == input.PaymentPeriod || - (this.PaymentPeriod != null && - this.PaymentPeriod.Equals(input.PaymentPeriod)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AdjustedDocReferenceNbr != null) - hashCode = hashCode * 59 + this.AdjustedDocReferenceNbr.GetHashCode(); - if (this.AdjustingDocReferenceNbr != null) - hashCode = hashCode * 59 + this.AdjustingDocReferenceNbr.GetHashCode(); - if (this.AdjustmentNbr != null) - hashCode = hashCode * 59 + this.AdjustmentNbr.GetHashCode(); - if (this.AmountPaid != null) - hashCode = hashCode * 59 + this.AmountPaid.GetHashCode(); - if (this.Balance != null) - hashCode = hashCode * 59 + this.Balance.GetHashCode(); - if (this.CashDiscountTaken != null) - hashCode = hashCode * 59 + this.CashDiscountTaken.GetHashCode(); - if (this.Currency != null) - hashCode = hashCode * 59 + this.Currency.GetHashCode(); - if (this.Customer != null) - hashCode = hashCode * 59 + this.Customer.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DocType != null) - hashCode = hashCode * 59 + this.DocType.GetHashCode(); - if (this.DocumentType != null) - hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); - if (this.PaymentDate != null) - hashCode = hashCode * 59 + this.PaymentDate.GetHashCode(); - if (this.PaymentPeriod != null) - hashCode = hashCode * 59 + this.PaymentPeriod.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoiceCommissions.cs b/Default.18.200.001/Model/SalesInvoiceCommissions.cs deleted file mode 100644 index 3b5be209..00000000 --- a/Default.18.200.001/Model/SalesInvoiceCommissions.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoiceCommissions - /// - [DataContract] - public partial class SalesInvoiceCommissions : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// commissionAmount. - /// salesPersons. - /// totalCommissionableAmount. - public SalesInvoiceCommissions(DecimalValue commissionAmount = default(DecimalValue), IEnumerable salesPersons = default(IEnumerable), DecimalValue totalCommissionableAmount = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CommissionAmount = commissionAmount; - this.SalesPersons = salesPersons; - this.TotalCommissionableAmount = totalCommissionableAmount; - } - - /// - /// Gets or Sets CommissionAmount - /// - [DataMember(Name="CommissionAmount", EmitDefaultValue=false)] - public DecimalValue CommissionAmount { get; set; } - - /// - /// Gets or Sets SalesPersons - /// - [DataMember(Name="SalesPersons", EmitDefaultValue=false)] - public IEnumerable SalesPersons { get; set; } - - /// - /// Gets or Sets TotalCommissionableAmount - /// - [DataMember(Name="TotalCommissionableAmount", EmitDefaultValue=false)] - public DecimalValue TotalCommissionableAmount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceCommissions {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CommissionAmount: ").Append(CommissionAmount).Append("\n"); - sb.Append(" SalesPersons: ").Append(SalesPersons).Append("\n"); - sb.Append(" TotalCommissionableAmount: ").Append(TotalCommissionableAmount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceCommissions); - } - - /// - /// Returns true if SalesInvoiceCommissions instances are equal - /// - /// Instance of SalesInvoiceCommissions to be compared - /// Boolean - public bool Equals(SalesInvoiceCommissions input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CommissionAmount == input.CommissionAmount || - (this.CommissionAmount != null && - this.CommissionAmount.Equals(input.CommissionAmount)) - ) && base.Equals(input) && - ( - this.SalesPersons == input.SalesPersons || - this.SalesPersons != null && - this.SalesPersons.SequenceEqual(input.SalesPersons) - ) && base.Equals(input) && - ( - this.TotalCommissionableAmount == input.TotalCommissionableAmount || - (this.TotalCommissionableAmount != null && - this.TotalCommissionableAmount.Equals(input.TotalCommissionableAmount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CommissionAmount != null) - hashCode = hashCode * 59 + this.CommissionAmount.GetHashCode(); - if (this.SalesPersons != null) - hashCode = hashCode * 59 + this.SalesPersons.GetHashCode(); - if (this.TotalCommissionableAmount != null) - hashCode = hashCode * 59 + this.TotalCommissionableAmount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoiceDetail.cs b/Default.18.200.001/Model/SalesInvoiceDetail.cs deleted file mode 100644 index f9f97242..00000000 --- a/Default.18.200.001/Model/SalesInvoiceDetail.cs +++ /dev/null @@ -1,590 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoiceDetail - /// - [DataContract] - public partial class SalesInvoiceDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// branchID. - /// calculateDiscountsOnImport. - /// costCode. - /// description. - /// discountAmount. - /// discountPercent. - /// expirationDate. - /// inventoryDocType. - /// inventoryID. - /// inventoryRefNbr. - /// lineNbr. - /// location. - /// lotSerialNbr. - /// manualDiscount. - /// orderLineNbr. - /// orderNbr. - /// orderType. - /// origInvLineNbr. - /// origInvNbr. - /// origInvType. - /// projectTask. - /// qty. - /// shipmentNbr. - /// subitem. - /// taxCategory. - /// transactionDescr. - /// unitPrice. - /// uOM. - /// warehouseID. - public SalesInvoiceDetail(DecimalValue amount = default(DecimalValue), StringValue branchID = default(StringValue), BooleanValue calculateDiscountsOnImport = default(BooleanValue), StringValue costCode = default(StringValue), StringValue description = default(StringValue), DecimalValue discountAmount = default(DecimalValue), DecimalValue discountPercent = default(DecimalValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryDocType = default(StringValue), StringValue inventoryID = default(StringValue), StringValue inventoryRefNbr = default(StringValue), IntValue lineNbr = default(IntValue), StringValue location = default(StringValue), StringValue lotSerialNbr = default(StringValue), BooleanValue manualDiscount = default(BooleanValue), IntValue orderLineNbr = default(IntValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), IntValue origInvLineNbr = default(IntValue), StringValue origInvNbr = default(StringValue), StringValue origInvType = default(StringValue), StringValue projectTask = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue shipmentNbr = default(StringValue), StringValue subitem = default(StringValue), StringValue taxCategory = default(StringValue), StringValue transactionDescr = default(StringValue), DecimalValue unitPrice = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Amount = amount; - this.BranchID = branchID; - this.CalculateDiscountsOnImport = calculateDiscountsOnImport; - this.CostCode = costCode; - this.Description = description; - this.DiscountAmount = discountAmount; - this.DiscountPercent = discountPercent; - this.ExpirationDate = expirationDate; - this.InventoryDocType = inventoryDocType; - this.InventoryID = inventoryID; - this.InventoryRefNbr = inventoryRefNbr; - this.LineNbr = lineNbr; - this.Location = location; - this.LotSerialNbr = lotSerialNbr; - this.ManualDiscount = manualDiscount; - this.OrderLineNbr = orderLineNbr; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.OrigInvLineNbr = origInvLineNbr; - this.OrigInvNbr = origInvNbr; - this.OrigInvType = origInvType; - this.ProjectTask = projectTask; - this.Qty = qty; - this.ShipmentNbr = shipmentNbr; - this.Subitem = subitem; - this.TaxCategory = taxCategory; - this.TransactionDescr = transactionDescr; - this.UnitPrice = unitPrice; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name="Amount", EmitDefaultValue=false)] - public DecimalValue Amount { get; set; } - - /// - /// Gets or Sets BranchID - /// - [DataMember(Name="BranchID", EmitDefaultValue=false)] - public StringValue BranchID { get; set; } - - /// - /// Gets or Sets CalculateDiscountsOnImport - /// - [DataMember(Name="CalculateDiscountsOnImport", EmitDefaultValue=false)] - public BooleanValue CalculateDiscountsOnImport { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryDocType - /// - [DataMember(Name="InventoryDocType", EmitDefaultValue=false)] - public StringValue InventoryDocType { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets InventoryRefNbr - /// - [DataMember(Name="InventoryRefNbr", EmitDefaultValue=false)] - public StringValue InventoryRefNbr { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } - - /// - /// Gets or Sets OrderLineNbr - /// - [DataMember(Name="OrderLineNbr", EmitDefaultValue=false)] - public IntValue OrderLineNbr { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets OrigInvLineNbr - /// - [DataMember(Name="OrigInvLineNbr", EmitDefaultValue=false)] - public IntValue OrigInvLineNbr { get; set; } - - /// - /// Gets or Sets OrigInvNbr - /// - [DataMember(Name="OrigInvNbr", EmitDefaultValue=false)] - public StringValue OrigInvNbr { get; set; } - - /// - /// Gets or Sets OrigInvType - /// - [DataMember(Name="OrigInvType", EmitDefaultValue=false)] - public StringValue OrigInvType { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ShipmentNbr - /// - [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] - public StringValue ShipmentNbr { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TransactionDescr - /// - [DataMember(Name="TransactionDescr", EmitDefaultValue=false)] - public StringValue TransactionDescr { get; set; } - - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" BranchID: ").Append(BranchID).Append("\n"); - sb.Append(" CalculateDiscountsOnImport: ").Append(CalculateDiscountsOnImport).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryDocType: ").Append(InventoryDocType).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" InventoryRefNbr: ").Append(InventoryRefNbr).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" OrderLineNbr: ").Append(OrderLineNbr).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" OrigInvLineNbr: ").Append(OrigInvLineNbr).Append("\n"); - sb.Append(" OrigInvNbr: ").Append(OrigInvNbr).Append("\n"); - sb.Append(" OrigInvType: ").Append(OrigInvType).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ShipmentNbr: ").Append(ShipmentNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TransactionDescr: ").Append(TransactionDescr).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceDetail); - } - - /// - /// Returns true if SalesInvoiceDetail instances are equal - /// - /// Instance of SalesInvoiceDetail to be compared - /// Boolean - public bool Equals(SalesInvoiceDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Amount == input.Amount || - (this.Amount != null && - this.Amount.Equals(input.Amount)) - ) && base.Equals(input) && - ( - this.BranchID == input.BranchID || - (this.BranchID != null && - this.BranchID.Equals(input.BranchID)) - ) && base.Equals(input) && - ( - this.CalculateDiscountsOnImport == input.CalculateDiscountsOnImport || - (this.CalculateDiscountsOnImport != null && - this.CalculateDiscountsOnImport.Equals(input.CalculateDiscountsOnImport)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryDocType == input.InventoryDocType || - (this.InventoryDocType != null && - this.InventoryDocType.Equals(input.InventoryDocType)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.InventoryRefNbr == input.InventoryRefNbr || - (this.InventoryRefNbr != null && - this.InventoryRefNbr.Equals(input.InventoryRefNbr)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.OrderLineNbr == input.OrderLineNbr || - (this.OrderLineNbr != null && - this.OrderLineNbr.Equals(input.OrderLineNbr)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.OrigInvLineNbr == input.OrigInvLineNbr || - (this.OrigInvLineNbr != null && - this.OrigInvLineNbr.Equals(input.OrigInvLineNbr)) - ) && base.Equals(input) && - ( - this.OrigInvNbr == input.OrigInvNbr || - (this.OrigInvNbr != null && - this.OrigInvNbr.Equals(input.OrigInvNbr)) - ) && base.Equals(input) && - ( - this.OrigInvType == input.OrigInvType || - (this.OrigInvType != null && - this.OrigInvType.Equals(input.OrigInvType)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ShipmentNbr == input.ShipmentNbr || - (this.ShipmentNbr != null && - this.ShipmentNbr.Equals(input.ShipmentNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TransactionDescr == input.TransactionDescr || - (this.TransactionDescr != null && - this.TransactionDescr.Equals(input.TransactionDescr)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Amount != null) - hashCode = hashCode * 59 + this.Amount.GetHashCode(); - if (this.BranchID != null) - hashCode = hashCode * 59 + this.BranchID.GetHashCode(); - if (this.CalculateDiscountsOnImport != null) - hashCode = hashCode * 59 + this.CalculateDiscountsOnImport.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryDocType != null) - hashCode = hashCode * 59 + this.InventoryDocType.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.InventoryRefNbr != null) - hashCode = hashCode * 59 + this.InventoryRefNbr.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.OrderLineNbr != null) - hashCode = hashCode * 59 + this.OrderLineNbr.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.OrigInvLineNbr != null) - hashCode = hashCode * 59 + this.OrigInvLineNbr.GetHashCode(); - if (this.OrigInvNbr != null) - hashCode = hashCode * 59 + this.OrigInvNbr.GetHashCode(); - if (this.OrigInvType != null) - hashCode = hashCode * 59 + this.OrigInvType.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ShipmentNbr != null) - hashCode = hashCode * 59 + this.ShipmentNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TransactionDescr != null) - hashCode = hashCode * 59 + this.TransactionDescr.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoiceDiscountDetails.cs b/Default.18.200.001/Model/SalesInvoiceDiscountDetails.cs deleted file mode 100644 index 99696d9a..00000000 --- a/Default.18.200.001/Model/SalesInvoiceDiscountDetails.cs +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoiceDiscountDetails - /// - [DataContract] - public partial class SalesInvoiceDiscountDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// discountableAmount. - /// discountableQty. - /// discountAmount. - /// discountCode. - /// discountPercent. - /// externalDiscountCode. - /// freeItem. - /// freeItemQty. - /// manualDiscount. - /// orderNbr. - /// orderType. - /// sequenceID. - /// skipDiscount. - /// type. - public SalesInvoiceDiscountDetails(StringValue description = default(StringValue), DecimalValue discountableAmount = default(DecimalValue), DecimalValue discountableQty = default(DecimalValue), DecimalValue discountAmount = default(DecimalValue), StringValue discountCode = default(StringValue), DecimalValue discountPercent = default(DecimalValue), StringValue externalDiscountCode = default(StringValue), StringValue freeItem = default(StringValue), DecimalValue freeItemQty = default(DecimalValue), BooleanValue manualDiscount = default(BooleanValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), StringValue sequenceID = default(StringValue), BooleanValue skipDiscount = default(BooleanValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.DiscountableAmount = discountableAmount; - this.DiscountableQty = discountableQty; - this.DiscountAmount = discountAmount; - this.DiscountCode = discountCode; - this.DiscountPercent = discountPercent; - this.ExternalDiscountCode = externalDiscountCode; - this.FreeItem = freeItem; - this.FreeItemQty = freeItemQty; - this.ManualDiscount = manualDiscount; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.SequenceID = sequenceID; - this.SkipDiscount = skipDiscount; - this.Type = type; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DiscountableAmount - /// - [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] - public DecimalValue DiscountableAmount { get; set; } - - /// - /// Gets or Sets DiscountableQty - /// - [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] - public DecimalValue DiscountableQty { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets ExternalDiscountCode - /// - [DataMember(Name="ExternalDiscountCode", EmitDefaultValue=false)] - public StringValue ExternalDiscountCode { get; set; } - - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public StringValue FreeItem { get; set; } - - /// - /// Gets or Sets FreeItemQty - /// - [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] - public DecimalValue FreeItemQty { get; set; } - - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets SequenceID - /// - [DataMember(Name="SequenceID", EmitDefaultValue=false)] - public StringValue SequenceID { get; set; } - - /// - /// Gets or Sets SkipDiscount - /// - [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] - public BooleanValue SkipDiscount { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceDiscountDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountableAmount: ").Append(DiscountableAmount).Append("\n"); - sb.Append(" DiscountableQty: ").Append(DiscountableQty).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" ExternalDiscountCode: ").Append(ExternalDiscountCode).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" FreeItemQty: ").Append(FreeItemQty).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" SequenceID: ").Append(SequenceID).Append("\n"); - sb.Append(" SkipDiscount: ").Append(SkipDiscount).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceDiscountDetails); - } - - /// - /// Returns true if SalesInvoiceDiscountDetails instances are equal - /// - /// Instance of SalesInvoiceDiscountDetails to be compared - /// Boolean - public bool Equals(SalesInvoiceDiscountDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountableAmount == input.DiscountableAmount || - (this.DiscountableAmount != null && - this.DiscountableAmount.Equals(input.DiscountableAmount)) - ) && base.Equals(input) && - ( - this.DiscountableQty == input.DiscountableQty || - (this.DiscountableQty != null && - this.DiscountableQty.Equals(input.DiscountableQty)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.ExternalDiscountCode == input.ExternalDiscountCode || - (this.ExternalDiscountCode != null && - this.ExternalDiscountCode.Equals(input.ExternalDiscountCode)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.FreeItemQty == input.FreeItemQty || - (this.FreeItemQty != null && - this.FreeItemQty.Equals(input.FreeItemQty)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.SequenceID == input.SequenceID || - (this.SequenceID != null && - this.SequenceID.Equals(input.SequenceID)) - ) && base.Equals(input) && - ( - this.SkipDiscount == input.SkipDiscount || - (this.SkipDiscount != null && - this.SkipDiscount.Equals(input.SkipDiscount)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountableAmount != null) - hashCode = hashCode * 59 + this.DiscountableAmount.GetHashCode(); - if (this.DiscountableQty != null) - hashCode = hashCode * 59 + this.DiscountableQty.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.ExternalDiscountCode != null) - hashCode = hashCode * 59 + this.ExternalDiscountCode.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.FreeItemQty != null) - hashCode = hashCode * 59 + this.FreeItemQty.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.SequenceID != null) - hashCode = hashCode * 59 + this.SequenceID.GetHashCode(); - if (this.SkipDiscount != null) - hashCode = hashCode * 59 + this.SkipDiscount.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoiceFinancialDetails.cs b/Default.18.200.001/Model/SalesInvoiceFinancialDetails.cs deleted file mode 100644 index 47dd5641..00000000 --- a/Default.18.200.001/Model/SalesInvoiceFinancialDetails.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoiceFinancialDetails - /// - [DataContract] - public partial class SalesInvoiceFinancialDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// batchNbr. - /// branch. - /// customerTaxZone. - public SalesInvoiceFinancialDetails(StringValue batchNbr = default(StringValue), StringValue branch = default(StringValue), StringValue customerTaxZone = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BatchNbr = batchNbr; - this.Branch = branch; - this.CustomerTaxZone = customerTaxZone; - } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CustomerTaxZone - /// - [DataMember(Name="CustomerTaxZone", EmitDefaultValue=false)] - public StringValue CustomerTaxZone { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceFinancialDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CustomerTaxZone: ").Append(CustomerTaxZone).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceFinancialDetails); - } - - /// - /// Returns true if SalesInvoiceFinancialDetails instances are equal - /// - /// Instance of SalesInvoiceFinancialDetails to be compared - /// Boolean - public bool Equals(SalesInvoiceFinancialDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CustomerTaxZone == input.CustomerTaxZone || - (this.CustomerTaxZone != null && - this.CustomerTaxZone.Equals(input.CustomerTaxZone)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CustomerTaxZone != null) - hashCode = hashCode * 59 + this.CustomerTaxZone.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoiceFreightDetail.cs b/Default.18.200.001/Model/SalesInvoiceFreightDetail.cs deleted file mode 100644 index 00608931..00000000 --- a/Default.18.200.001/Model/SalesInvoiceFreightDetail.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoiceFreightDetail - /// - [DataContract] - public partial class SalesInvoiceFreightDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// freightAmount. - /// freightCost. - /// lineTotal. - /// premiumFreightAmount. - /// shipmentNbr. - /// shipmentType. - /// totalFreightAmount. - /// volume. - /// weight. - public SalesInvoiceFreightDetail(StringValue description = default(StringValue), DecimalValue freightAmount = default(DecimalValue), DecimalValue freightCost = default(DecimalValue), DecimalValue lineTotal = default(DecimalValue), DecimalValue premiumFreightAmount = default(DecimalValue), StringValue shipmentNbr = default(StringValue), StringValue shipmentType = default(StringValue), DecimalValue totalFreightAmount = default(DecimalValue), DecimalValue volume = default(DecimalValue), DecimalValue weight = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.FreightAmount = freightAmount; - this.FreightCost = freightCost; - this.LineTotal = lineTotal; - this.PremiumFreightAmount = premiumFreightAmount; - this.ShipmentNbr = shipmentNbr; - this.ShipmentType = shipmentType; - this.TotalFreightAmount = totalFreightAmount; - this.Volume = volume; - this.Weight = weight; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets FreightAmount - /// - [DataMember(Name="FreightAmount", EmitDefaultValue=false)] - public DecimalValue FreightAmount { get; set; } - - /// - /// Gets or Sets FreightCost - /// - [DataMember(Name="FreightCost", EmitDefaultValue=false)] - public DecimalValue FreightCost { get; set; } - - /// - /// Gets or Sets LineTotal - /// - [DataMember(Name="LineTotal", EmitDefaultValue=false)] - public DecimalValue LineTotal { get; set; } - - /// - /// Gets or Sets PremiumFreightAmount - /// - [DataMember(Name="PremiumFreightAmount", EmitDefaultValue=false)] - public DecimalValue PremiumFreightAmount { get; set; } - - /// - /// Gets or Sets ShipmentNbr - /// - [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] - public StringValue ShipmentNbr { get; set; } - - /// - /// Gets or Sets ShipmentType - /// - [DataMember(Name="ShipmentType", EmitDefaultValue=false)] - public StringValue ShipmentType { get; set; } - - /// - /// Gets or Sets TotalFreightAmount - /// - [DataMember(Name="TotalFreightAmount", EmitDefaultValue=false)] - public DecimalValue TotalFreightAmount { get; set; } - - /// - /// Gets or Sets Volume - /// - [DataMember(Name="Volume", EmitDefaultValue=false)] - public DecimalValue Volume { get; set; } - - /// - /// Gets or Sets Weight - /// - [DataMember(Name="Weight", EmitDefaultValue=false)] - public DecimalValue Weight { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceFreightDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" FreightAmount: ").Append(FreightAmount).Append("\n"); - sb.Append(" FreightCost: ").Append(FreightCost).Append("\n"); - sb.Append(" LineTotal: ").Append(LineTotal).Append("\n"); - sb.Append(" PremiumFreightAmount: ").Append(PremiumFreightAmount).Append("\n"); - sb.Append(" ShipmentNbr: ").Append(ShipmentNbr).Append("\n"); - sb.Append(" ShipmentType: ").Append(ShipmentType).Append("\n"); - sb.Append(" TotalFreightAmount: ").Append(TotalFreightAmount).Append("\n"); - sb.Append(" Volume: ").Append(Volume).Append("\n"); - sb.Append(" Weight: ").Append(Weight).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceFreightDetail); - } - - /// - /// Returns true if SalesInvoiceFreightDetail instances are equal - /// - /// Instance of SalesInvoiceFreightDetail to be compared - /// Boolean - public bool Equals(SalesInvoiceFreightDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.FreightAmount == input.FreightAmount || - (this.FreightAmount != null && - this.FreightAmount.Equals(input.FreightAmount)) - ) && base.Equals(input) && - ( - this.FreightCost == input.FreightCost || - (this.FreightCost != null && - this.FreightCost.Equals(input.FreightCost)) - ) && base.Equals(input) && - ( - this.LineTotal == input.LineTotal || - (this.LineTotal != null && - this.LineTotal.Equals(input.LineTotal)) - ) && base.Equals(input) && - ( - this.PremiumFreightAmount == input.PremiumFreightAmount || - (this.PremiumFreightAmount != null && - this.PremiumFreightAmount.Equals(input.PremiumFreightAmount)) - ) && base.Equals(input) && - ( - this.ShipmentNbr == input.ShipmentNbr || - (this.ShipmentNbr != null && - this.ShipmentNbr.Equals(input.ShipmentNbr)) - ) && base.Equals(input) && - ( - this.ShipmentType == input.ShipmentType || - (this.ShipmentType != null && - this.ShipmentType.Equals(input.ShipmentType)) - ) && base.Equals(input) && - ( - this.TotalFreightAmount == input.TotalFreightAmount || - (this.TotalFreightAmount != null && - this.TotalFreightAmount.Equals(input.TotalFreightAmount)) - ) && base.Equals(input) && - ( - this.Volume == input.Volume || - (this.Volume != null && - this.Volume.Equals(input.Volume)) - ) && base.Equals(input) && - ( - this.Weight == input.Weight || - (this.Weight != null && - this.Weight.Equals(input.Weight)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.FreightAmount != null) - hashCode = hashCode * 59 + this.FreightAmount.GetHashCode(); - if (this.FreightCost != null) - hashCode = hashCode * 59 + this.FreightCost.GetHashCode(); - if (this.LineTotal != null) - hashCode = hashCode * 59 + this.LineTotal.GetHashCode(); - if (this.PremiumFreightAmount != null) - hashCode = hashCode * 59 + this.PremiumFreightAmount.GetHashCode(); - if (this.ShipmentNbr != null) - hashCode = hashCode * 59 + this.ShipmentNbr.GetHashCode(); - if (this.ShipmentType != null) - hashCode = hashCode * 59 + this.ShipmentType.GetHashCode(); - if (this.TotalFreightAmount != null) - hashCode = hashCode * 59 + this.TotalFreightAmount.GetHashCode(); - if (this.Volume != null) - hashCode = hashCode * 59 + this.Volume.GetHashCode(); - if (this.Weight != null) - hashCode = hashCode * 59 + this.Weight.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoiceSalesPersonDetail.cs b/Default.18.200.001/Model/SalesInvoiceSalesPersonDetail.cs deleted file mode 100644 index 58dcb9f0..00000000 --- a/Default.18.200.001/Model/SalesInvoiceSalesPersonDetail.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoiceSalesPersonDetail - /// - [DataContract] - public partial class SalesInvoiceSalesPersonDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// commissionableAmount. - /// commissionAmount. - /// commissionPercent. - /// salespersonID. - public SalesInvoiceSalesPersonDetail(DecimalValue commissionableAmount = default(DecimalValue), DecimalValue commissionAmount = default(DecimalValue), DecimalValue commissionPercent = default(DecimalValue), StringValue salespersonID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CommissionableAmount = commissionableAmount; - this.CommissionAmount = commissionAmount; - this.CommissionPercent = commissionPercent; - this.SalespersonID = salespersonID; - } - - /// - /// Gets or Sets CommissionableAmount - /// - [DataMember(Name="CommissionableAmount", EmitDefaultValue=false)] - public DecimalValue CommissionableAmount { get; set; } - - /// - /// Gets or Sets CommissionAmount - /// - [DataMember(Name="CommissionAmount", EmitDefaultValue=false)] - public DecimalValue CommissionAmount { get; set; } - - /// - /// Gets or Sets CommissionPercent - /// - [DataMember(Name="CommissionPercent", EmitDefaultValue=false)] - public DecimalValue CommissionPercent { get; set; } - - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceSalesPersonDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CommissionableAmount: ").Append(CommissionableAmount).Append("\n"); - sb.Append(" CommissionAmount: ").Append(CommissionAmount).Append("\n"); - sb.Append(" CommissionPercent: ").Append(CommissionPercent).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceSalesPersonDetail); - } - - /// - /// Returns true if SalesInvoiceSalesPersonDetail instances are equal - /// - /// Instance of SalesInvoiceSalesPersonDetail to be compared - /// Boolean - public bool Equals(SalesInvoiceSalesPersonDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CommissionableAmount == input.CommissionableAmount || - (this.CommissionableAmount != null && - this.CommissionableAmount.Equals(input.CommissionableAmount)) - ) && base.Equals(input) && - ( - this.CommissionAmount == input.CommissionAmount || - (this.CommissionAmount != null && - this.CommissionAmount.Equals(input.CommissionAmount)) - ) && base.Equals(input) && - ( - this.CommissionPercent == input.CommissionPercent || - (this.CommissionPercent != null && - this.CommissionPercent.Equals(input.CommissionPercent)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CommissionableAmount != null) - hashCode = hashCode * 59 + this.CommissionableAmount.GetHashCode(); - if (this.CommissionAmount != null) - hashCode = hashCode * 59 + this.CommissionAmount.GetHashCode(); - if (this.CommissionPercent != null) - hashCode = hashCode * 59 + this.CommissionPercent.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoiceTaxDetail.cs b/Default.18.200.001/Model/SalesInvoiceTaxDetail.cs deleted file mode 100644 index 0a3b8924..00000000 --- a/Default.18.200.001/Model/SalesInvoiceTaxDetail.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoiceTaxDetail - /// - [DataContract] - public partial class SalesInvoiceTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// taxableAmount. - /// taxAmount. - /// taxID. - public SalesInvoiceTaxDetail(DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceTaxDetail); - } - - /// - /// Returns true if SalesInvoiceTaxDetail instances are equal - /// - /// Instance of SalesInvoiceTaxDetail to be compared - /// Boolean - public bool Equals(SalesInvoiceTaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesInvoiceTotals.cs b/Default.18.200.001/Model/SalesInvoiceTotals.cs deleted file mode 100644 index 2bd1a5ee..00000000 --- a/Default.18.200.001/Model/SalesInvoiceTotals.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesInvoiceTotals - /// - [DataContract] - public partial class SalesInvoiceTotals : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// discountTotal. - /// freight. - /// lineTotal. - /// miscTotal. - /// paymentTotal. - /// taxTotal. - public SalesInvoiceTotals(DecimalValue discountTotal = default(DecimalValue), DecimalValue freight = default(DecimalValue), DecimalValue lineTotal = default(DecimalValue), DecimalValue miscTotal = default(DecimalValue), DecimalValue paymentTotal = default(DecimalValue), DecimalValue taxTotal = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DiscountTotal = discountTotal; - this.Freight = freight; - this.LineTotal = lineTotal; - this.MiscTotal = miscTotal; - this.PaymentTotal = paymentTotal; - this.TaxTotal = taxTotal; - } - - /// - /// Gets or Sets DiscountTotal - /// - [DataMember(Name="DiscountTotal", EmitDefaultValue=false)] - public DecimalValue DiscountTotal { get; set; } - - /// - /// Gets or Sets Freight - /// - [DataMember(Name="Freight", EmitDefaultValue=false)] - public DecimalValue Freight { get; set; } - - /// - /// Gets or Sets LineTotal - /// - [DataMember(Name="LineTotal", EmitDefaultValue=false)] - public DecimalValue LineTotal { get; set; } - - /// - /// Gets or Sets MiscTotal - /// - [DataMember(Name="MiscTotal", EmitDefaultValue=false)] - public DecimalValue MiscTotal { get; set; } - - /// - /// Gets or Sets PaymentTotal - /// - [DataMember(Name="PaymentTotal", EmitDefaultValue=false)] - public DecimalValue PaymentTotal { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesInvoiceTotals {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DiscountTotal: ").Append(DiscountTotal).Append("\n"); - sb.Append(" Freight: ").Append(Freight).Append("\n"); - sb.Append(" LineTotal: ").Append(LineTotal).Append("\n"); - sb.Append(" MiscTotal: ").Append(MiscTotal).Append("\n"); - sb.Append(" PaymentTotal: ").Append(PaymentTotal).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesInvoiceTotals); - } - - /// - /// Returns true if SalesInvoiceTotals instances are equal - /// - /// Instance of SalesInvoiceTotals to be compared - /// Boolean - public bool Equals(SalesInvoiceTotals input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DiscountTotal == input.DiscountTotal || - (this.DiscountTotal != null && - this.DiscountTotal.Equals(input.DiscountTotal)) - ) && base.Equals(input) && - ( - this.Freight == input.Freight || - (this.Freight != null && - this.Freight.Equals(input.Freight)) - ) && base.Equals(input) && - ( - this.LineTotal == input.LineTotal || - (this.LineTotal != null && - this.LineTotal.Equals(input.LineTotal)) - ) && base.Equals(input) && - ( - this.MiscTotal == input.MiscTotal || - (this.MiscTotal != null && - this.MiscTotal.Equals(input.MiscTotal)) - ) && base.Equals(input) && - ( - this.PaymentTotal == input.PaymentTotal || - (this.PaymentTotal != null && - this.PaymentTotal.Equals(input.PaymentTotal)) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DiscountTotal != null) - hashCode = hashCode * 59 + this.DiscountTotal.GetHashCode(); - if (this.Freight != null) - hashCode = hashCode * 59 + this.Freight.GetHashCode(); - if (this.LineTotal != null) - hashCode = hashCode * 59 + this.LineTotal.GetHashCode(); - if (this.MiscTotal != null) - hashCode = hashCode * 59 + this.MiscTotal.GetHashCode(); - if (this.PaymentTotal != null) - hashCode = hashCode * 59 + this.PaymentTotal.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesOrder.cs b/Default.18.200.001/Model/SalesOrder.cs deleted file mode 100644 index 5dc0fb2b..00000000 --- a/Default.18.200.001/Model/SalesOrder.cs +++ /dev/null @@ -1,1054 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesOrder - /// - [DataContract] - public partial class SalesOrder : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// approved. - /// baseCurrencyID. - /// billToAddress. - /// billToAddressOverride. - /// billToAddressValidated. - /// billToContact. - /// billToContactOverride. - /// cashAccount. - /// commissions. - /// controlTotal. - /// creditHold. - /// currencyID. - /// currencyRate. - /// currencyRateTypeID. - /// customerID. - /// customerOrder. - /// date. - /// description. - /// destinationWarehouseID. - /// details. - /// disableAutomaticDiscountUpdate. - /// discountDetails. - /// effectiveDate. - /// externalRef. - /// financialSettings. - /// hold. - /// isTaxValid. - /// lastModified. - /// locationID. - /// newCard. - /// orderedQty. - /// orderNbr. - /// orderTotal. - /// orderType. - /// paymentCardIdentifier. - /// paymentMethod. - /// paymentProfileID. - /// paymentRef. - /// payments. - /// preAuthorizationNbr. - /// preAuthorizedAmount. - /// preferredWarehouseID. - /// project. - /// reciprocalRate. - /// requestedOn. - /// shipments. - /// shippingSettings. - /// shipToAddress. - /// shipToAddressOverride. - /// shipToAddressValidated. - /// shipToContact. - /// shipToContactOverride. - /// shipVia. - /// status. - /// taxDetails. - /// taxTotal. - /// totals. - /// vATExemptTotal. - /// vATTaxableTotal. - public SalesOrder(BooleanValue approved = default(BooleanValue), StringValue baseCurrencyID = default(StringValue), Address billToAddress = default(Address), BooleanValue billToAddressOverride = default(BooleanValue), BooleanValue billToAddressValidated = default(BooleanValue), DocContact billToContact = default(DocContact), BooleanValue billToContactOverride = default(BooleanValue), StringValue cashAccount = default(StringValue), Commissions commissions = default(Commissions), DecimalValue controlTotal = default(DecimalValue), BooleanValue creditHold = default(BooleanValue), StringValue currencyID = default(StringValue), DecimalValue currencyRate = default(DecimalValue), StringValue currencyRateTypeID = default(StringValue), StringValue customerID = default(StringValue), StringValue customerOrder = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), StringValue destinationWarehouseID = default(StringValue), IEnumerable details = default(IEnumerable), BooleanValue disableAutomaticDiscountUpdate = default(BooleanValue), IEnumerable discountDetails = default(IEnumerable), DateTimeValue effectiveDate = default(DateTimeValue), StringValue externalRef = default(StringValue), FinancialSettings financialSettings = default(FinancialSettings), BooleanValue hold = default(BooleanValue), BooleanValue isTaxValid = default(BooleanValue), DateTimeValue lastModified = default(DateTimeValue), StringValue locationID = default(StringValue), BooleanValue newCard = default(BooleanValue), DecimalValue orderedQty = default(DecimalValue), StringValue orderNbr = default(StringValue), DecimalValue orderTotal = default(DecimalValue), StringValue orderType = default(StringValue), StringValue paymentCardIdentifier = default(StringValue), StringValue paymentMethod = default(StringValue), StringValue paymentProfileID = default(StringValue), StringValue paymentRef = default(StringValue), IEnumerable payments = default(IEnumerable), StringValue preAuthorizationNbr = default(StringValue), DecimalValue preAuthorizedAmount = default(DecimalValue), StringValue preferredWarehouseID = default(StringValue), StringValue project = default(StringValue), DecimalValue reciprocalRate = default(DecimalValue), DateTimeValue requestedOn = default(DateTimeValue), IEnumerable shipments = default(IEnumerable), ShippingSettings shippingSettings = default(ShippingSettings), Address shipToAddress = default(Address), BooleanValue shipToAddressOverride = default(BooleanValue), BooleanValue shipToAddressValidated = default(BooleanValue), DocContact shipToContact = default(DocContact), BooleanValue shipToContactOverride = default(BooleanValue), StringValue shipVia = default(StringValue), StringValue status = default(StringValue), IEnumerable taxDetails = default(IEnumerable), DecimalValue taxTotal = default(DecimalValue), Totals totals = default(Totals), DecimalValue vATExemptTotal = default(DecimalValue), DecimalValue vATTaxableTotal = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Approved = approved; - this.BaseCurrencyID = baseCurrencyID; - this.BillToAddress = billToAddress; - this.BillToAddressOverride = billToAddressOverride; - this.BillToAddressValidated = billToAddressValidated; - this.BillToContact = billToContact; - this.BillToContactOverride = billToContactOverride; - this.CashAccount = cashAccount; - this.Commissions = commissions; - this.ControlTotal = controlTotal; - this.CreditHold = creditHold; - this.CurrencyID = currencyID; - this.CurrencyRate = currencyRate; - this.CurrencyRateTypeID = currencyRateTypeID; - this.CustomerID = customerID; - this.CustomerOrder = customerOrder; - this.Date = date; - this.Description = description; - this.DestinationWarehouseID = destinationWarehouseID; - this.Details = details; - this.DisableAutomaticDiscountUpdate = disableAutomaticDiscountUpdate; - this.DiscountDetails = discountDetails; - this.EffectiveDate = effectiveDate; - this.ExternalRef = externalRef; - this.FinancialSettings = financialSettings; - this.Hold = hold; - this.IsTaxValid = isTaxValid; - this.LastModified = lastModified; - this.LocationID = locationID; - this.NewCard = newCard; - this.OrderedQty = orderedQty; - this.OrderNbr = orderNbr; - this.OrderTotal = orderTotal; - this.OrderType = orderType; - this.PaymentCardIdentifier = paymentCardIdentifier; - this.PaymentMethod = paymentMethod; - this.PaymentProfileID = paymentProfileID; - this.PaymentRef = paymentRef; - this.Payments = payments; - this.PreAuthorizationNbr = preAuthorizationNbr; - this.PreAuthorizedAmount = preAuthorizedAmount; - this.PreferredWarehouseID = preferredWarehouseID; - this.Project = project; - this.ReciprocalRate = reciprocalRate; - this.RequestedOn = requestedOn; - this.Shipments = shipments; - this.ShippingSettings = shippingSettings; - this.ShipToAddress = shipToAddress; - this.ShipToAddressOverride = shipToAddressOverride; - this.ShipToAddressValidated = shipToAddressValidated; - this.ShipToContact = shipToContact; - this.ShipToContactOverride = shipToContactOverride; - this.ShipVia = shipVia; - this.Status = status; - this.TaxDetails = taxDetails; - this.TaxTotal = taxTotal; - this.Totals = totals; - this.VATExemptTotal = vATExemptTotal; - this.VATTaxableTotal = vATTaxableTotal; - } - - /// - /// Gets or Sets Approved - /// - [DataMember(Name="Approved", EmitDefaultValue=false)] - public BooleanValue Approved { get; set; } - - /// - /// Gets or Sets BaseCurrencyID - /// - [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] - public StringValue BaseCurrencyID { get; set; } - - /// - /// Gets or Sets BillToAddress - /// - [DataMember(Name="BillToAddress", EmitDefaultValue=false)] - public Address BillToAddress { get; set; } - - /// - /// Gets or Sets BillToAddressOverride - /// - [DataMember(Name="BillToAddressOverride", EmitDefaultValue=false)] - public BooleanValue BillToAddressOverride { get; set; } - - /// - /// Gets or Sets BillToAddressValidated - /// - [DataMember(Name="BillToAddressValidated", EmitDefaultValue=false)] - public BooleanValue BillToAddressValidated { get; set; } - - /// - /// Gets or Sets BillToContact - /// - [DataMember(Name="BillToContact", EmitDefaultValue=false)] - public DocContact BillToContact { get; set; } - - /// - /// Gets or Sets BillToContactOverride - /// - [DataMember(Name="BillToContactOverride", EmitDefaultValue=false)] - public BooleanValue BillToContactOverride { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets Commissions - /// - [DataMember(Name="Commissions", EmitDefaultValue=false)] - public Commissions Commissions { get; set; } - - /// - /// Gets or Sets ControlTotal - /// - [DataMember(Name="ControlTotal", EmitDefaultValue=false)] - public DecimalValue ControlTotal { get; set; } - - /// - /// Gets or Sets CreditHold - /// - [DataMember(Name="CreditHold", EmitDefaultValue=false)] - public BooleanValue CreditHold { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRate - /// - [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] - public DecimalValue CurrencyRate { get; set; } - - /// - /// Gets or Sets CurrencyRateTypeID - /// - [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] - public StringValue CurrencyRateTypeID { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets CustomerOrder - /// - [DataMember(Name="CustomerOrder", EmitDefaultValue=false)] - public StringValue CustomerOrder { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DestinationWarehouseID - /// - [DataMember(Name="DestinationWarehouseID", EmitDefaultValue=false)] - public StringValue DestinationWarehouseID { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets DisableAutomaticDiscountUpdate - /// - [DataMember(Name="DisableAutomaticDiscountUpdate", EmitDefaultValue=false)] - public BooleanValue DisableAutomaticDiscountUpdate { get; set; } - - /// - /// Gets or Sets DiscountDetails - /// - [DataMember(Name="DiscountDetails", EmitDefaultValue=false)] - public IEnumerable DiscountDetails { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExternalRef - /// - [DataMember(Name="ExternalRef", EmitDefaultValue=false)] - public StringValue ExternalRef { get; set; } - - /// - /// Gets or Sets FinancialSettings - /// - [DataMember(Name="FinancialSettings", EmitDefaultValue=false)] - public FinancialSettings FinancialSettings { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets IsTaxValid - /// - [DataMember(Name="IsTaxValid", EmitDefaultValue=false)] - public BooleanValue IsTaxValid { get; set; } - - /// - /// Gets or Sets LastModified - /// - [DataMember(Name="LastModified", EmitDefaultValue=false)] - public DateTimeValue LastModified { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets NewCard - /// - [DataMember(Name="NewCard", EmitDefaultValue=false)] - public BooleanValue NewCard { get; set; } - - /// - /// Gets or Sets OrderedQty - /// - [DataMember(Name="OrderedQty", EmitDefaultValue=false)] - public DecimalValue OrderedQty { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderTotal - /// - [DataMember(Name="OrderTotal", EmitDefaultValue=false)] - public DecimalValue OrderTotal { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets PaymentCardIdentifier - /// - [DataMember(Name="PaymentCardIdentifier", EmitDefaultValue=false)] - public StringValue PaymentCardIdentifier { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets PaymentProfileID - /// - [DataMember(Name="PaymentProfileID", EmitDefaultValue=false)] - public StringValue PaymentProfileID { get; set; } - - /// - /// Gets or Sets PaymentRef - /// - [DataMember(Name="PaymentRef", EmitDefaultValue=false)] - public StringValue PaymentRef { get; set; } - - /// - /// Gets or Sets Payments - /// - [DataMember(Name="Payments", EmitDefaultValue=false)] - public IEnumerable Payments { get; set; } - - /// - /// Gets or Sets PreAuthorizationNbr - /// - [DataMember(Name="PreAuthorizationNbr", EmitDefaultValue=false)] - public StringValue PreAuthorizationNbr { get; set; } - - /// - /// Gets or Sets PreAuthorizedAmount - /// - [DataMember(Name="PreAuthorizedAmount", EmitDefaultValue=false)] - public DecimalValue PreAuthorizedAmount { get; set; } - - /// - /// Gets or Sets PreferredWarehouseID - /// - [DataMember(Name="PreferredWarehouseID", EmitDefaultValue=false)] - public StringValue PreferredWarehouseID { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ReciprocalRate - /// - [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] - public DecimalValue ReciprocalRate { get; set; } - - /// - /// Gets or Sets RequestedOn - /// - [DataMember(Name="RequestedOn", EmitDefaultValue=false)] - public DateTimeValue RequestedOn { get; set; } - - /// - /// Gets or Sets Shipments - /// - [DataMember(Name="Shipments", EmitDefaultValue=false)] - public IEnumerable Shipments { get; set; } - - /// - /// Gets or Sets ShippingSettings - /// - [DataMember(Name="ShippingSettings", EmitDefaultValue=false)] - public ShippingSettings ShippingSettings { get; set; } - - /// - /// Gets or Sets ShipToAddress - /// - [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] - public Address ShipToAddress { get; set; } - - /// - /// Gets or Sets ShipToAddressOverride - /// - [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] - public BooleanValue ShipToAddressOverride { get; set; } - - /// - /// Gets or Sets ShipToAddressValidated - /// - [DataMember(Name="ShipToAddressValidated", EmitDefaultValue=false)] - public BooleanValue ShipToAddressValidated { get; set; } - - /// - /// Gets or Sets ShipToContact - /// - [DataMember(Name="ShipToContact", EmitDefaultValue=false)] - public DocContact ShipToContact { get; set; } - - /// - /// Gets or Sets ShipToContactOverride - /// - [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] - public BooleanValue ShipToContactOverride { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxDetails - /// - [DataMember(Name="TaxDetails", EmitDefaultValue=false)] - public IEnumerable TaxDetails { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Gets or Sets Totals - /// - [DataMember(Name="Totals", EmitDefaultValue=false)] - public Totals Totals { get; set; } - - /// - /// Gets or Sets VATExemptTotal - /// - [DataMember(Name="VATExemptTotal", EmitDefaultValue=false)] - public DecimalValue VATExemptTotal { get; set; } - - /// - /// Gets or Sets VATTaxableTotal - /// - [DataMember(Name="VATTaxableTotal", EmitDefaultValue=false)] - public DecimalValue VATTaxableTotal { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesOrder {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Approved: ").Append(Approved).Append("\n"); - sb.Append(" BaseCurrencyID: ").Append(BaseCurrencyID).Append("\n"); - sb.Append(" BillToAddress: ").Append(BillToAddress).Append("\n"); - sb.Append(" BillToAddressOverride: ").Append(BillToAddressOverride).Append("\n"); - sb.Append(" BillToAddressValidated: ").Append(BillToAddressValidated).Append("\n"); - sb.Append(" BillToContact: ").Append(BillToContact).Append("\n"); - sb.Append(" BillToContactOverride: ").Append(BillToContactOverride).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" Commissions: ").Append(Commissions).Append("\n"); - sb.Append(" ControlTotal: ").Append(ControlTotal).Append("\n"); - sb.Append(" CreditHold: ").Append(CreditHold).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n"); - sb.Append(" CurrencyRateTypeID: ").Append(CurrencyRateTypeID).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" CustomerOrder: ").Append(CustomerOrder).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DestinationWarehouseID: ").Append(DestinationWarehouseID).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" DisableAutomaticDiscountUpdate: ").Append(DisableAutomaticDiscountUpdate).Append("\n"); - sb.Append(" DiscountDetails: ").Append(DiscountDetails).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExternalRef: ").Append(ExternalRef).Append("\n"); - sb.Append(" FinancialSettings: ").Append(FinancialSettings).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" IsTaxValid: ").Append(IsTaxValid).Append("\n"); - sb.Append(" LastModified: ").Append(LastModified).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" NewCard: ").Append(NewCard).Append("\n"); - sb.Append(" OrderedQty: ").Append(OrderedQty).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderTotal: ").Append(OrderTotal).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" PaymentCardIdentifier: ").Append(PaymentCardIdentifier).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaymentProfileID: ").Append(PaymentProfileID).Append("\n"); - sb.Append(" PaymentRef: ").Append(PaymentRef).Append("\n"); - sb.Append(" Payments: ").Append(Payments).Append("\n"); - sb.Append(" PreAuthorizationNbr: ").Append(PreAuthorizationNbr).Append("\n"); - sb.Append(" PreAuthorizedAmount: ").Append(PreAuthorizedAmount).Append("\n"); - sb.Append(" PreferredWarehouseID: ").Append(PreferredWarehouseID).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ReciprocalRate: ").Append(ReciprocalRate).Append("\n"); - sb.Append(" RequestedOn: ").Append(RequestedOn).Append("\n"); - sb.Append(" Shipments: ").Append(Shipments).Append("\n"); - sb.Append(" ShippingSettings: ").Append(ShippingSettings).Append("\n"); - sb.Append(" ShipToAddress: ").Append(ShipToAddress).Append("\n"); - sb.Append(" ShipToAddressOverride: ").Append(ShipToAddressOverride).Append("\n"); - sb.Append(" ShipToAddressValidated: ").Append(ShipToAddressValidated).Append("\n"); - sb.Append(" ShipToContact: ").Append(ShipToContact).Append("\n"); - sb.Append(" ShipToContactOverride: ").Append(ShipToContactOverride).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" Totals: ").Append(Totals).Append("\n"); - sb.Append(" VATExemptTotal: ").Append(VATExemptTotal).Append("\n"); - sb.Append(" VATTaxableTotal: ").Append(VATTaxableTotal).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesOrder); - } - - /// - /// Returns true if SalesOrder instances are equal - /// - /// Instance of SalesOrder to be compared - /// Boolean - public bool Equals(SalesOrder input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Approved == input.Approved || - (this.Approved != null && - this.Approved.Equals(input.Approved)) - ) && base.Equals(input) && - ( - this.BaseCurrencyID == input.BaseCurrencyID || - (this.BaseCurrencyID != null && - this.BaseCurrencyID.Equals(input.BaseCurrencyID)) - ) && base.Equals(input) && - ( - this.BillToAddress == input.BillToAddress || - (this.BillToAddress != null && - this.BillToAddress.Equals(input.BillToAddress)) - ) && base.Equals(input) && - ( - this.BillToAddressOverride == input.BillToAddressOverride || - (this.BillToAddressOverride != null && - this.BillToAddressOverride.Equals(input.BillToAddressOverride)) - ) && base.Equals(input) && - ( - this.BillToAddressValidated == input.BillToAddressValidated || - (this.BillToAddressValidated != null && - this.BillToAddressValidated.Equals(input.BillToAddressValidated)) - ) && base.Equals(input) && - ( - this.BillToContact == input.BillToContact || - (this.BillToContact != null && - this.BillToContact.Equals(input.BillToContact)) - ) && base.Equals(input) && - ( - this.BillToContactOverride == input.BillToContactOverride || - (this.BillToContactOverride != null && - this.BillToContactOverride.Equals(input.BillToContactOverride)) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.Commissions == input.Commissions || - (this.Commissions != null && - this.Commissions.Equals(input.Commissions)) - ) && base.Equals(input) && - ( - this.ControlTotal == input.ControlTotal || - (this.ControlTotal != null && - this.ControlTotal.Equals(input.ControlTotal)) - ) && base.Equals(input) && - ( - this.CreditHold == input.CreditHold || - (this.CreditHold != null && - this.CreditHold.Equals(input.CreditHold)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRate == input.CurrencyRate || - (this.CurrencyRate != null && - this.CurrencyRate.Equals(input.CurrencyRate)) - ) && base.Equals(input) && - ( - this.CurrencyRateTypeID == input.CurrencyRateTypeID || - (this.CurrencyRateTypeID != null && - this.CurrencyRateTypeID.Equals(input.CurrencyRateTypeID)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.CustomerOrder == input.CustomerOrder || - (this.CustomerOrder != null && - this.CustomerOrder.Equals(input.CustomerOrder)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DestinationWarehouseID == input.DestinationWarehouseID || - (this.DestinationWarehouseID != null && - this.DestinationWarehouseID.Equals(input.DestinationWarehouseID)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.DisableAutomaticDiscountUpdate == input.DisableAutomaticDiscountUpdate || - (this.DisableAutomaticDiscountUpdate != null && - this.DisableAutomaticDiscountUpdate.Equals(input.DisableAutomaticDiscountUpdate)) - ) && base.Equals(input) && - ( - this.DiscountDetails == input.DiscountDetails || - this.DiscountDetails != null && - this.DiscountDetails.SequenceEqual(input.DiscountDetails) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExternalRef == input.ExternalRef || - (this.ExternalRef != null && - this.ExternalRef.Equals(input.ExternalRef)) - ) && base.Equals(input) && - ( - this.FinancialSettings == input.FinancialSettings || - (this.FinancialSettings != null && - this.FinancialSettings.Equals(input.FinancialSettings)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.IsTaxValid == input.IsTaxValid || - (this.IsTaxValid != null && - this.IsTaxValid.Equals(input.IsTaxValid)) - ) && base.Equals(input) && - ( - this.LastModified == input.LastModified || - (this.LastModified != null && - this.LastModified.Equals(input.LastModified)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.NewCard == input.NewCard || - (this.NewCard != null && - this.NewCard.Equals(input.NewCard)) - ) && base.Equals(input) && - ( - this.OrderedQty == input.OrderedQty || - (this.OrderedQty != null && - this.OrderedQty.Equals(input.OrderedQty)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderTotal == input.OrderTotal || - (this.OrderTotal != null && - this.OrderTotal.Equals(input.OrderTotal)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.PaymentCardIdentifier == input.PaymentCardIdentifier || - (this.PaymentCardIdentifier != null && - this.PaymentCardIdentifier.Equals(input.PaymentCardIdentifier)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaymentProfileID == input.PaymentProfileID || - (this.PaymentProfileID != null && - this.PaymentProfileID.Equals(input.PaymentProfileID)) - ) && base.Equals(input) && - ( - this.PaymentRef == input.PaymentRef || - (this.PaymentRef != null && - this.PaymentRef.Equals(input.PaymentRef)) - ) && base.Equals(input) && - ( - this.Payments == input.Payments || - this.Payments != null && - this.Payments.SequenceEqual(input.Payments) - ) && base.Equals(input) && - ( - this.PreAuthorizationNbr == input.PreAuthorizationNbr || - (this.PreAuthorizationNbr != null && - this.PreAuthorizationNbr.Equals(input.PreAuthorizationNbr)) - ) && base.Equals(input) && - ( - this.PreAuthorizedAmount == input.PreAuthorizedAmount || - (this.PreAuthorizedAmount != null && - this.PreAuthorizedAmount.Equals(input.PreAuthorizedAmount)) - ) && base.Equals(input) && - ( - this.PreferredWarehouseID == input.PreferredWarehouseID || - (this.PreferredWarehouseID != null && - this.PreferredWarehouseID.Equals(input.PreferredWarehouseID)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ReciprocalRate == input.ReciprocalRate || - (this.ReciprocalRate != null && - this.ReciprocalRate.Equals(input.ReciprocalRate)) - ) && base.Equals(input) && - ( - this.RequestedOn == input.RequestedOn || - (this.RequestedOn != null && - this.RequestedOn.Equals(input.RequestedOn)) - ) && base.Equals(input) && - ( - this.Shipments == input.Shipments || - this.Shipments != null && - this.Shipments.SequenceEqual(input.Shipments) - ) && base.Equals(input) && - ( - this.ShippingSettings == input.ShippingSettings || - (this.ShippingSettings != null && - this.ShippingSettings.Equals(input.ShippingSettings)) - ) && base.Equals(input) && - ( - this.ShipToAddress == input.ShipToAddress || - (this.ShipToAddress != null && - this.ShipToAddress.Equals(input.ShipToAddress)) - ) && base.Equals(input) && - ( - this.ShipToAddressOverride == input.ShipToAddressOverride || - (this.ShipToAddressOverride != null && - this.ShipToAddressOverride.Equals(input.ShipToAddressOverride)) - ) && base.Equals(input) && - ( - this.ShipToAddressValidated == input.ShipToAddressValidated || - (this.ShipToAddressValidated != null && - this.ShipToAddressValidated.Equals(input.ShipToAddressValidated)) - ) && base.Equals(input) && - ( - this.ShipToContact == input.ShipToContact || - (this.ShipToContact != null && - this.ShipToContact.Equals(input.ShipToContact)) - ) && base.Equals(input) && - ( - this.ShipToContactOverride == input.ShipToContactOverride || - (this.ShipToContactOverride != null && - this.ShipToContactOverride.Equals(input.ShipToContactOverride)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxDetails == input.TaxDetails || - this.TaxDetails != null && - this.TaxDetails.SequenceEqual(input.TaxDetails) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.Totals == input.Totals || - (this.Totals != null && - this.Totals.Equals(input.Totals)) - ) && base.Equals(input) && - ( - this.VATExemptTotal == input.VATExemptTotal || - (this.VATExemptTotal != null && - this.VATExemptTotal.Equals(input.VATExemptTotal)) - ) && base.Equals(input) && - ( - this.VATTaxableTotal == input.VATTaxableTotal || - (this.VATTaxableTotal != null && - this.VATTaxableTotal.Equals(input.VATTaxableTotal)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Approved != null) - hashCode = hashCode * 59 + this.Approved.GetHashCode(); - if (this.BaseCurrencyID != null) - hashCode = hashCode * 59 + this.BaseCurrencyID.GetHashCode(); - if (this.BillToAddress != null) - hashCode = hashCode * 59 + this.BillToAddress.GetHashCode(); - if (this.BillToAddressOverride != null) - hashCode = hashCode * 59 + this.BillToAddressOverride.GetHashCode(); - if (this.BillToAddressValidated != null) - hashCode = hashCode * 59 + this.BillToAddressValidated.GetHashCode(); - if (this.BillToContact != null) - hashCode = hashCode * 59 + this.BillToContact.GetHashCode(); - if (this.BillToContactOverride != null) - hashCode = hashCode * 59 + this.BillToContactOverride.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.Commissions != null) - hashCode = hashCode * 59 + this.Commissions.GetHashCode(); - if (this.ControlTotal != null) - hashCode = hashCode * 59 + this.ControlTotal.GetHashCode(); - if (this.CreditHold != null) - hashCode = hashCode * 59 + this.CreditHold.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRate != null) - hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode(); - if (this.CurrencyRateTypeID != null) - hashCode = hashCode * 59 + this.CurrencyRateTypeID.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.CustomerOrder != null) - hashCode = hashCode * 59 + this.CustomerOrder.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DestinationWarehouseID != null) - hashCode = hashCode * 59 + this.DestinationWarehouseID.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.DisableAutomaticDiscountUpdate != null) - hashCode = hashCode * 59 + this.DisableAutomaticDiscountUpdate.GetHashCode(); - if (this.DiscountDetails != null) - hashCode = hashCode * 59 + this.DiscountDetails.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExternalRef != null) - hashCode = hashCode * 59 + this.ExternalRef.GetHashCode(); - if (this.FinancialSettings != null) - hashCode = hashCode * 59 + this.FinancialSettings.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.IsTaxValid != null) - hashCode = hashCode * 59 + this.IsTaxValid.GetHashCode(); - if (this.LastModified != null) - hashCode = hashCode * 59 + this.LastModified.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.NewCard != null) - hashCode = hashCode * 59 + this.NewCard.GetHashCode(); - if (this.OrderedQty != null) - hashCode = hashCode * 59 + this.OrderedQty.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderTotal != null) - hashCode = hashCode * 59 + this.OrderTotal.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.PaymentCardIdentifier != null) - hashCode = hashCode * 59 + this.PaymentCardIdentifier.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaymentProfileID != null) - hashCode = hashCode * 59 + this.PaymentProfileID.GetHashCode(); - if (this.PaymentRef != null) - hashCode = hashCode * 59 + this.PaymentRef.GetHashCode(); - if (this.Payments != null) - hashCode = hashCode * 59 + this.Payments.GetHashCode(); - if (this.PreAuthorizationNbr != null) - hashCode = hashCode * 59 + this.PreAuthorizationNbr.GetHashCode(); - if (this.PreAuthorizedAmount != null) - hashCode = hashCode * 59 + this.PreAuthorizedAmount.GetHashCode(); - if (this.PreferredWarehouseID != null) - hashCode = hashCode * 59 + this.PreferredWarehouseID.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ReciprocalRate != null) - hashCode = hashCode * 59 + this.ReciprocalRate.GetHashCode(); - if (this.RequestedOn != null) - hashCode = hashCode * 59 + this.RequestedOn.GetHashCode(); - if (this.Shipments != null) - hashCode = hashCode * 59 + this.Shipments.GetHashCode(); - if (this.ShippingSettings != null) - hashCode = hashCode * 59 + this.ShippingSettings.GetHashCode(); - if (this.ShipToAddress != null) - hashCode = hashCode * 59 + this.ShipToAddress.GetHashCode(); - if (this.ShipToAddressOverride != null) - hashCode = hashCode * 59 + this.ShipToAddressOverride.GetHashCode(); - if (this.ShipToAddressValidated != null) - hashCode = hashCode * 59 + this.ShipToAddressValidated.GetHashCode(); - if (this.ShipToContact != null) - hashCode = hashCode * 59 + this.ShipToContact.GetHashCode(); - if (this.ShipToContactOverride != null) - hashCode = hashCode * 59 + this.ShipToContactOverride.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxDetails != null) - hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.Totals != null) - hashCode = hashCode * 59 + this.Totals.GetHashCode(); - if (this.VATExemptTotal != null) - hashCode = hashCode * 59 + this.VATExemptTotal.GetHashCode(); - if (this.VATTaxableTotal != null) - hashCode = hashCode * 59 + this.VATTaxableTotal.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesOrderDetail.cs b/Default.18.200.001/Model/SalesOrderDetail.cs deleted file mode 100644 index eba82c2d..00000000 --- a/Default.18.200.001/Model/SalesOrderDetail.cs +++ /dev/null @@ -1,830 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesOrderDetail - /// - [DataContract] - public partial class SalesOrderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// account. - /// allocations. - /// alternateID. - /// autoCreateIssue. - /// averageCost. - /// branch. - /// calculateDiscountsOnImport. - /// commissionable. - /// completed. - /// costCode. - /// discountAmount. - /// discountCode. - /// discountedUnitPrice. - /// discountPercent. - /// extendedPrice. - /// freeItem. - /// inventoryID. - /// lastModifiedDate. - /// lineDescription. - /// lineNbr. - /// lineType. - /// location. - /// manualDiscount. - /// markForPO. - /// openQty. - /// operation. - /// orderQty. - /// overshipThreshold. - /// pOSource. - /// projectTask. - /// purchasingSettings. - /// qtyOnShipments. - /// reasonCode. - /// requestedOn. - /// salespersonID. - /// shipOn. - /// shippingRule. - /// subitem. - /// taxCategory. - /// unbilledAmount. - /// undershipThreshold. - /// unitCost. - /// unitPrice. - /// uOM. - /// warehouseID. - public SalesOrderDetail(StringValue account = default(StringValue), IEnumerable allocations = default(IEnumerable), StringValue alternateID = default(StringValue), BooleanValue autoCreateIssue = default(BooleanValue), DecimalValue averageCost = default(DecimalValue), StringValue branch = default(StringValue), BooleanValue calculateDiscountsOnImport = default(BooleanValue), BooleanValue commissionable = default(BooleanValue), BooleanValue completed = default(BooleanValue), StringValue costCode = default(StringValue), DecimalValue discountAmount = default(DecimalValue), StringValue discountCode = default(StringValue), DecimalValue discountedUnitPrice = default(DecimalValue), DecimalValue discountPercent = default(DecimalValue), DecimalValue extendedPrice = default(DecimalValue), BooleanValue freeItem = default(BooleanValue), StringValue inventoryID = default(StringValue), StringValue lastModifiedDate = default(StringValue), StringValue lineDescription = default(StringValue), IntValue lineNbr = default(IntValue), StringValue lineType = default(StringValue), StringValue location = default(StringValue), BooleanValue manualDiscount = default(BooleanValue), BooleanValue markForPO = default(BooleanValue), DecimalValue openQty = default(DecimalValue), StringValue operation = default(StringValue), DecimalValue orderQty = default(DecimalValue), DecimalValue overshipThreshold = default(DecimalValue), StringValue pOSource = default(StringValue), StringValue projectTask = default(StringValue), PurchaseSettings purchasingSettings = default(PurchaseSettings), DecimalValue qtyOnShipments = default(DecimalValue), StringValue reasonCode = default(StringValue), DateTimeValue requestedOn = default(DateTimeValue), StringValue salespersonID = default(StringValue), DateTimeValue shipOn = default(DateTimeValue), StringValue shippingRule = default(StringValue), StringValue subitem = default(StringValue), StringValue taxCategory = default(StringValue), DecimalValue unbilledAmount = default(DecimalValue), DecimalValue undershipThreshold = default(DecimalValue), DecimalValue unitCost = default(DecimalValue), DecimalValue unitPrice = default(DecimalValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Account = account; - this.Allocations = allocations; - this.AlternateID = alternateID; - this.AutoCreateIssue = autoCreateIssue; - this.AverageCost = averageCost; - this.Branch = branch; - this.CalculateDiscountsOnImport = calculateDiscountsOnImport; - this.Commissionable = commissionable; - this.Completed = completed; - this.CostCode = costCode; - this.DiscountAmount = discountAmount; - this.DiscountCode = discountCode; - this.DiscountedUnitPrice = discountedUnitPrice; - this.DiscountPercent = discountPercent; - this.ExtendedPrice = extendedPrice; - this.FreeItem = freeItem; - this.InventoryID = inventoryID; - this.LastModifiedDate = lastModifiedDate; - this.LineDescription = lineDescription; - this.LineNbr = lineNbr; - this.LineType = lineType; - this.Location = location; - this.ManualDiscount = manualDiscount; - this.MarkForPO = markForPO; - this.OpenQty = openQty; - this.Operation = operation; - this.OrderQty = orderQty; - this.OvershipThreshold = overshipThreshold; - this.POSource = pOSource; - this.ProjectTask = projectTask; - this.PurchasingSettings = purchasingSettings; - this.QtyOnShipments = qtyOnShipments; - this.ReasonCode = reasonCode; - this.RequestedOn = requestedOn; - this.SalespersonID = salespersonID; - this.ShipOn = shipOn; - this.ShippingRule = shippingRule; - this.Subitem = subitem; - this.TaxCategory = taxCategory; - this.UnbilledAmount = unbilledAmount; - this.UndershipThreshold = undershipThreshold; - this.UnitCost = unitCost; - this.UnitPrice = unitPrice; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Account - /// - [DataMember(Name="Account", EmitDefaultValue=false)] - public StringValue Account { get; set; } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public IEnumerable Allocations { get; set; } - - /// - /// Gets or Sets AlternateID - /// - [DataMember(Name="AlternateID", EmitDefaultValue=false)] - public StringValue AlternateID { get; set; } - - /// - /// Gets or Sets AutoCreateIssue - /// - [DataMember(Name="AutoCreateIssue", EmitDefaultValue=false)] - public BooleanValue AutoCreateIssue { get; set; } - - /// - /// Gets or Sets AverageCost - /// - [DataMember(Name="AverageCost", EmitDefaultValue=false)] - public DecimalValue AverageCost { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CalculateDiscountsOnImport - /// - [DataMember(Name="CalculateDiscountsOnImport", EmitDefaultValue=false)] - public BooleanValue CalculateDiscountsOnImport { get; set; } - - /// - /// Gets or Sets Commissionable - /// - [DataMember(Name="Commissionable", EmitDefaultValue=false)] - public BooleanValue Commissionable { get; set; } - - /// - /// Gets or Sets Completed - /// - [DataMember(Name="Completed", EmitDefaultValue=false)] - public BooleanValue Completed { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets DiscountedUnitPrice - /// - [DataMember(Name="DiscountedUnitPrice", EmitDefaultValue=false)] - public DecimalValue DiscountedUnitPrice { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets ExtendedPrice - /// - [DataMember(Name="ExtendedPrice", EmitDefaultValue=false)] - public DecimalValue ExtendedPrice { get; set; } - - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public BooleanValue FreeItem { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LastModifiedDate - /// - [DataMember(Name="LastModifiedDate", EmitDefaultValue=false)] - public StringValue LastModifiedDate { get; set; } - - /// - /// Gets or Sets LineDescription - /// - [DataMember(Name="LineDescription", EmitDefaultValue=false)] - public StringValue LineDescription { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LineType - /// - [DataMember(Name="LineType", EmitDefaultValue=false)] - public StringValue LineType { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } - - /// - /// Gets or Sets MarkForPO - /// - [DataMember(Name="MarkForPO", EmitDefaultValue=false)] - public BooleanValue MarkForPO { get; set; } - - /// - /// Gets or Sets OpenQty - /// - [DataMember(Name="OpenQty", EmitDefaultValue=false)] - public DecimalValue OpenQty { get; set; } - - /// - /// Gets or Sets Operation - /// - [DataMember(Name="Operation", EmitDefaultValue=false)] - public StringValue Operation { get; set; } - - /// - /// Gets or Sets OrderQty - /// - [DataMember(Name="OrderQty", EmitDefaultValue=false)] - public DecimalValue OrderQty { get; set; } - - /// - /// Gets or Sets OvershipThreshold - /// - [DataMember(Name="OvershipThreshold", EmitDefaultValue=false)] - public DecimalValue OvershipThreshold { get; set; } - - /// - /// Gets or Sets POSource - /// - [DataMember(Name="POSource", EmitDefaultValue=false)] - public StringValue POSource { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets PurchasingSettings - /// - [DataMember(Name="PurchasingSettings", EmitDefaultValue=false)] - public PurchaseSettings PurchasingSettings { get; set; } - - /// - /// Gets or Sets QtyOnShipments - /// - [DataMember(Name="QtyOnShipments", EmitDefaultValue=false)] - public DecimalValue QtyOnShipments { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } - - /// - /// Gets or Sets RequestedOn - /// - [DataMember(Name="RequestedOn", EmitDefaultValue=false)] - public DateTimeValue RequestedOn { get; set; } - - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } - - /// - /// Gets or Sets ShipOn - /// - [DataMember(Name="ShipOn", EmitDefaultValue=false)] - public DateTimeValue ShipOn { get; set; } - - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets UnbilledAmount - /// - [DataMember(Name="UnbilledAmount", EmitDefaultValue=false)] - public DecimalValue UnbilledAmount { get; set; } - - /// - /// Gets or Sets UndershipThreshold - /// - [DataMember(Name="UndershipThreshold", EmitDefaultValue=false)] - public DecimalValue UndershipThreshold { get; set; } - - /// - /// Gets or Sets UnitCost - /// - [DataMember(Name="UnitCost", EmitDefaultValue=false)] - public DecimalValue UnitCost { get; set; } - - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesOrderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Account: ").Append(Account).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" AlternateID: ").Append(AlternateID).Append("\n"); - sb.Append(" AutoCreateIssue: ").Append(AutoCreateIssue).Append("\n"); - sb.Append(" AverageCost: ").Append(AverageCost).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CalculateDiscountsOnImport: ").Append(CalculateDiscountsOnImport).Append("\n"); - sb.Append(" Commissionable: ").Append(Commissionable).Append("\n"); - sb.Append(" Completed: ").Append(Completed).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" DiscountedUnitPrice: ").Append(DiscountedUnitPrice).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" ExtendedPrice: ").Append(ExtendedPrice).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LastModifiedDate: ").Append(LastModifiedDate).Append("\n"); - sb.Append(" LineDescription: ").Append(LineDescription).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LineType: ").Append(LineType).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" MarkForPO: ").Append(MarkForPO).Append("\n"); - sb.Append(" OpenQty: ").Append(OpenQty).Append("\n"); - sb.Append(" Operation: ").Append(Operation).Append("\n"); - sb.Append(" OrderQty: ").Append(OrderQty).Append("\n"); - sb.Append(" OvershipThreshold: ").Append(OvershipThreshold).Append("\n"); - sb.Append(" POSource: ").Append(POSource).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" PurchasingSettings: ").Append(PurchasingSettings).Append("\n"); - sb.Append(" QtyOnShipments: ").Append(QtyOnShipments).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" RequestedOn: ").Append(RequestedOn).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append(" ShipOn: ").Append(ShipOn).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" UnbilledAmount: ").Append(UnbilledAmount).Append("\n"); - sb.Append(" UndershipThreshold: ").Append(UndershipThreshold).Append("\n"); - sb.Append(" UnitCost: ").Append(UnitCost).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesOrderDetail); - } - - /// - /// Returns true if SalesOrderDetail instances are equal - /// - /// Instance of SalesOrderDetail to be compared - /// Boolean - public bool Equals(SalesOrderDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Account == input.Account || - (this.Account != null && - this.Account.Equals(input.Account)) - ) && base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.AlternateID == input.AlternateID || - (this.AlternateID != null && - this.AlternateID.Equals(input.AlternateID)) - ) && base.Equals(input) && - ( - this.AutoCreateIssue == input.AutoCreateIssue || - (this.AutoCreateIssue != null && - this.AutoCreateIssue.Equals(input.AutoCreateIssue)) - ) && base.Equals(input) && - ( - this.AverageCost == input.AverageCost || - (this.AverageCost != null && - this.AverageCost.Equals(input.AverageCost)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CalculateDiscountsOnImport == input.CalculateDiscountsOnImport || - (this.CalculateDiscountsOnImport != null && - this.CalculateDiscountsOnImport.Equals(input.CalculateDiscountsOnImport)) - ) && base.Equals(input) && - ( - this.Commissionable == input.Commissionable || - (this.Commissionable != null && - this.Commissionable.Equals(input.Commissionable)) - ) && base.Equals(input) && - ( - this.Completed == input.Completed || - (this.Completed != null && - this.Completed.Equals(input.Completed)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.DiscountedUnitPrice == input.DiscountedUnitPrice || - (this.DiscountedUnitPrice != null && - this.DiscountedUnitPrice.Equals(input.DiscountedUnitPrice)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.ExtendedPrice == input.ExtendedPrice || - (this.ExtendedPrice != null && - this.ExtendedPrice.Equals(input.ExtendedPrice)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LastModifiedDate == input.LastModifiedDate || - (this.LastModifiedDate != null && - this.LastModifiedDate.Equals(input.LastModifiedDate)) - ) && base.Equals(input) && - ( - this.LineDescription == input.LineDescription || - (this.LineDescription != null && - this.LineDescription.Equals(input.LineDescription)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LineType == input.LineType || - (this.LineType != null && - this.LineType.Equals(input.LineType)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.MarkForPO == input.MarkForPO || - (this.MarkForPO != null && - this.MarkForPO.Equals(input.MarkForPO)) - ) && base.Equals(input) && - ( - this.OpenQty == input.OpenQty || - (this.OpenQty != null && - this.OpenQty.Equals(input.OpenQty)) - ) && base.Equals(input) && - ( - this.Operation == input.Operation || - (this.Operation != null && - this.Operation.Equals(input.Operation)) - ) && base.Equals(input) && - ( - this.OrderQty == input.OrderQty || - (this.OrderQty != null && - this.OrderQty.Equals(input.OrderQty)) - ) && base.Equals(input) && - ( - this.OvershipThreshold == input.OvershipThreshold || - (this.OvershipThreshold != null && - this.OvershipThreshold.Equals(input.OvershipThreshold)) - ) && base.Equals(input) && - ( - this.POSource == input.POSource || - (this.POSource != null && - this.POSource.Equals(input.POSource)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.PurchasingSettings == input.PurchasingSettings || - (this.PurchasingSettings != null && - this.PurchasingSettings.Equals(input.PurchasingSettings)) - ) && base.Equals(input) && - ( - this.QtyOnShipments == input.QtyOnShipments || - (this.QtyOnShipments != null && - this.QtyOnShipments.Equals(input.QtyOnShipments)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.RequestedOn == input.RequestedOn || - (this.RequestedOn != null && - this.RequestedOn.Equals(input.RequestedOn)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ) && base.Equals(input) && - ( - this.ShipOn == input.ShipOn || - (this.ShipOn != null && - this.ShipOn.Equals(input.ShipOn)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.UnbilledAmount == input.UnbilledAmount || - (this.UnbilledAmount != null && - this.UnbilledAmount.Equals(input.UnbilledAmount)) - ) && base.Equals(input) && - ( - this.UndershipThreshold == input.UndershipThreshold || - (this.UndershipThreshold != null && - this.UndershipThreshold.Equals(input.UndershipThreshold)) - ) && base.Equals(input) && - ( - this.UnitCost == input.UnitCost || - (this.UnitCost != null && - this.UnitCost.Equals(input.UnitCost)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.AlternateID != null) - hashCode = hashCode * 59 + this.AlternateID.GetHashCode(); - if (this.AutoCreateIssue != null) - hashCode = hashCode * 59 + this.AutoCreateIssue.GetHashCode(); - if (this.AverageCost != null) - hashCode = hashCode * 59 + this.AverageCost.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CalculateDiscountsOnImport != null) - hashCode = hashCode * 59 + this.CalculateDiscountsOnImport.GetHashCode(); - if (this.Commissionable != null) - hashCode = hashCode * 59 + this.Commissionable.GetHashCode(); - if (this.Completed != null) - hashCode = hashCode * 59 + this.Completed.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.DiscountedUnitPrice != null) - hashCode = hashCode * 59 + this.DiscountedUnitPrice.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.ExtendedPrice != null) - hashCode = hashCode * 59 + this.ExtendedPrice.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LastModifiedDate != null) - hashCode = hashCode * 59 + this.LastModifiedDate.GetHashCode(); - if (this.LineDescription != null) - hashCode = hashCode * 59 + this.LineDescription.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LineType != null) - hashCode = hashCode * 59 + this.LineType.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.MarkForPO != null) - hashCode = hashCode * 59 + this.MarkForPO.GetHashCode(); - if (this.OpenQty != null) - hashCode = hashCode * 59 + this.OpenQty.GetHashCode(); - if (this.Operation != null) - hashCode = hashCode * 59 + this.Operation.GetHashCode(); - if (this.OrderQty != null) - hashCode = hashCode * 59 + this.OrderQty.GetHashCode(); - if (this.OvershipThreshold != null) - hashCode = hashCode * 59 + this.OvershipThreshold.GetHashCode(); - if (this.POSource != null) - hashCode = hashCode * 59 + this.POSource.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.PurchasingSettings != null) - hashCode = hashCode * 59 + this.PurchasingSettings.GetHashCode(); - if (this.QtyOnShipments != null) - hashCode = hashCode * 59 + this.QtyOnShipments.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.RequestedOn != null) - hashCode = hashCode * 59 + this.RequestedOn.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - if (this.ShipOn != null) - hashCode = hashCode * 59 + this.ShipOn.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.UnbilledAmount != null) - hashCode = hashCode * 59 + this.UnbilledAmount.GetHashCode(); - if (this.UndershipThreshold != null) - hashCode = hashCode * 59 + this.UndershipThreshold.GetHashCode(); - if (this.UnitCost != null) - hashCode = hashCode * 59 + this.UnitCost.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesOrderDetailAllocation.cs b/Default.18.200.001/Model/SalesOrderDetailAllocation.cs deleted file mode 100644 index eca8c3ff..00000000 --- a/Default.18.200.001/Model/SalesOrderDetailAllocation.cs +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesOrderDetailAllocation - /// - [DataContract] - public partial class SalesOrderDetailAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocated. - /// allocWarehouseID. - /// completed. - /// expirationDate. - /// inventoryID. - /// lineNbr. - /// locationID. - /// lotSerialNbr. - /// orderNbr. - /// orderType. - /// qty. - /// qtyOnShipments. - /// qtyReceived. - /// relatedDocument. - /// shipOn. - /// splitLineNbr. - /// subitem. - /// uOM. - public SalesOrderDetailAllocation(BooleanValue allocated = default(BooleanValue), StringValue allocWarehouseID = default(StringValue), BooleanValue completed = default(BooleanValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), DecimalValue qty = default(DecimalValue), DecimalValue qtyOnShipments = default(DecimalValue), DecimalValue qtyReceived = default(DecimalValue), StringValue relatedDocument = default(StringValue), DateTimeValue shipOn = default(DateTimeValue), IntValue splitLineNbr = default(IntValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocated = allocated; - this.AllocWarehouseID = allocWarehouseID; - this.Completed = completed; - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.Qty = qty; - this.QtyOnShipments = qtyOnShipments; - this.QtyReceived = qtyReceived; - this.RelatedDocument = relatedDocument; - this.ShipOn = shipOn; - this.SplitLineNbr = splitLineNbr; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets Allocated - /// - [DataMember(Name="Allocated", EmitDefaultValue=false)] - public BooleanValue Allocated { get; set; } - - /// - /// Gets or Sets AllocWarehouseID - /// - [DataMember(Name="AllocWarehouseID", EmitDefaultValue=false)] - public StringValue AllocWarehouseID { get; set; } - - /// - /// Gets or Sets Completed - /// - [DataMember(Name="Completed", EmitDefaultValue=false)] - public BooleanValue Completed { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets QtyOnShipments - /// - [DataMember(Name="QtyOnShipments", EmitDefaultValue=false)] - public DecimalValue QtyOnShipments { get; set; } - - /// - /// Gets or Sets QtyReceived - /// - [DataMember(Name="QtyReceived", EmitDefaultValue=false)] - public DecimalValue QtyReceived { get; set; } - - /// - /// Gets or Sets RelatedDocument - /// - [DataMember(Name="RelatedDocument", EmitDefaultValue=false)] - public StringValue RelatedDocument { get; set; } - - /// - /// Gets or Sets ShipOn - /// - [DataMember(Name="ShipOn", EmitDefaultValue=false)] - public DateTimeValue ShipOn { get; set; } - - /// - /// Gets or Sets SplitLineNbr - /// - [DataMember(Name="SplitLineNbr", EmitDefaultValue=false)] - public IntValue SplitLineNbr { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesOrderDetailAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocated: ").Append(Allocated).Append("\n"); - sb.Append(" AllocWarehouseID: ").Append(AllocWarehouseID).Append("\n"); - sb.Append(" Completed: ").Append(Completed).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" QtyOnShipments: ").Append(QtyOnShipments).Append("\n"); - sb.Append(" QtyReceived: ").Append(QtyReceived).Append("\n"); - sb.Append(" RelatedDocument: ").Append(RelatedDocument).Append("\n"); - sb.Append(" ShipOn: ").Append(ShipOn).Append("\n"); - sb.Append(" SplitLineNbr: ").Append(SplitLineNbr).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesOrderDetailAllocation); - } - - /// - /// Returns true if SalesOrderDetailAllocation instances are equal - /// - /// Instance of SalesOrderDetailAllocation to be compared - /// Boolean - public bool Equals(SalesOrderDetailAllocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Allocated == input.Allocated || - (this.Allocated != null && - this.Allocated.Equals(input.Allocated)) - ) && base.Equals(input) && - ( - this.AllocWarehouseID == input.AllocWarehouseID || - (this.AllocWarehouseID != null && - this.AllocWarehouseID.Equals(input.AllocWarehouseID)) - ) && base.Equals(input) && - ( - this.Completed == input.Completed || - (this.Completed != null && - this.Completed.Equals(input.Completed)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.QtyOnShipments == input.QtyOnShipments || - (this.QtyOnShipments != null && - this.QtyOnShipments.Equals(input.QtyOnShipments)) - ) && base.Equals(input) && - ( - this.QtyReceived == input.QtyReceived || - (this.QtyReceived != null && - this.QtyReceived.Equals(input.QtyReceived)) - ) && base.Equals(input) && - ( - this.RelatedDocument == input.RelatedDocument || - (this.RelatedDocument != null && - this.RelatedDocument.Equals(input.RelatedDocument)) - ) && base.Equals(input) && - ( - this.ShipOn == input.ShipOn || - (this.ShipOn != null && - this.ShipOn.Equals(input.ShipOn)) - ) && base.Equals(input) && - ( - this.SplitLineNbr == input.SplitLineNbr || - (this.SplitLineNbr != null && - this.SplitLineNbr.Equals(input.SplitLineNbr)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocated != null) - hashCode = hashCode * 59 + this.Allocated.GetHashCode(); - if (this.AllocWarehouseID != null) - hashCode = hashCode * 59 + this.AllocWarehouseID.GetHashCode(); - if (this.Completed != null) - hashCode = hashCode * 59 + this.Completed.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.QtyOnShipments != null) - hashCode = hashCode * 59 + this.QtyOnShipments.GetHashCode(); - if (this.QtyReceived != null) - hashCode = hashCode * 59 + this.QtyReceived.GetHashCode(); - if (this.RelatedDocument != null) - hashCode = hashCode * 59 + this.RelatedDocument.GetHashCode(); - if (this.ShipOn != null) - hashCode = hashCode * 59 + this.ShipOn.GetHashCode(); - if (this.SplitLineNbr != null) - hashCode = hashCode * 59 + this.SplitLineNbr.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesOrderShipment.cs b/Default.18.200.001/Model/SalesOrderShipment.cs deleted file mode 100644 index 024d8210..00000000 --- a/Default.18.200.001/Model/SalesOrderShipment.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesOrderShipment - /// - [DataContract] - public partial class SalesOrderShipment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// inventoryDocType. - /// inventoryRefNbr. - /// invoiceNbr. - /// invoiceType. - /// shipmentDate. - /// shipmentNbr. - /// shipmentType. - /// shippedQty. - /// shippedVolume. - /// shippedWeight. - /// status. - public SalesOrderShipment(StringValue inventoryDocType = default(StringValue), StringValue inventoryRefNbr = default(StringValue), StringValue invoiceNbr = default(StringValue), StringValue invoiceType = default(StringValue), DateTimeValue shipmentDate = default(DateTimeValue), StringValue shipmentNbr = default(StringValue), StringValue shipmentType = default(StringValue), DecimalValue shippedQty = default(DecimalValue), DecimalValue shippedVolume = default(DecimalValue), DecimalValue shippedWeight = default(DecimalValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.InventoryDocType = inventoryDocType; - this.InventoryRefNbr = inventoryRefNbr; - this.InvoiceNbr = invoiceNbr; - this.InvoiceType = invoiceType; - this.ShipmentDate = shipmentDate; - this.ShipmentNbr = shipmentNbr; - this.ShipmentType = shipmentType; - this.ShippedQty = shippedQty; - this.ShippedVolume = shippedVolume; - this.ShippedWeight = shippedWeight; - this.Status = status; - } - - /// - /// Gets or Sets InventoryDocType - /// - [DataMember(Name="InventoryDocType", EmitDefaultValue=false)] - public StringValue InventoryDocType { get; set; } - - /// - /// Gets or Sets InventoryRefNbr - /// - [DataMember(Name="InventoryRefNbr", EmitDefaultValue=false)] - public StringValue InventoryRefNbr { get; set; } - - /// - /// Gets or Sets InvoiceNbr - /// - [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] - public StringValue InvoiceNbr { get; set; } - - /// - /// Gets or Sets InvoiceType - /// - [DataMember(Name="InvoiceType", EmitDefaultValue=false)] - public StringValue InvoiceType { get; set; } - - /// - /// Gets or Sets ShipmentDate - /// - [DataMember(Name="ShipmentDate", EmitDefaultValue=false)] - public DateTimeValue ShipmentDate { get; set; } - - /// - /// Gets or Sets ShipmentNbr - /// - [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] - public StringValue ShipmentNbr { get; set; } - - /// - /// Gets or Sets ShipmentType - /// - [DataMember(Name="ShipmentType", EmitDefaultValue=false)] - public StringValue ShipmentType { get; set; } - - /// - /// Gets or Sets ShippedQty - /// - [DataMember(Name="ShippedQty", EmitDefaultValue=false)] - public DecimalValue ShippedQty { get; set; } - - /// - /// Gets or Sets ShippedVolume - /// - [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] - public DecimalValue ShippedVolume { get; set; } - - /// - /// Gets or Sets ShippedWeight - /// - [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] - public DecimalValue ShippedWeight { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesOrderShipment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" InventoryDocType: ").Append(InventoryDocType).Append("\n"); - sb.Append(" InventoryRefNbr: ").Append(InventoryRefNbr).Append("\n"); - sb.Append(" InvoiceNbr: ").Append(InvoiceNbr).Append("\n"); - sb.Append(" InvoiceType: ").Append(InvoiceType).Append("\n"); - sb.Append(" ShipmentDate: ").Append(ShipmentDate).Append("\n"); - sb.Append(" ShipmentNbr: ").Append(ShipmentNbr).Append("\n"); - sb.Append(" ShipmentType: ").Append(ShipmentType).Append("\n"); - sb.Append(" ShippedQty: ").Append(ShippedQty).Append("\n"); - sb.Append(" ShippedVolume: ").Append(ShippedVolume).Append("\n"); - sb.Append(" ShippedWeight: ").Append(ShippedWeight).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesOrderShipment); - } - - /// - /// Returns true if SalesOrderShipment instances are equal - /// - /// Instance of SalesOrderShipment to be compared - /// Boolean - public bool Equals(SalesOrderShipment input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.InventoryDocType == input.InventoryDocType || - (this.InventoryDocType != null && - this.InventoryDocType.Equals(input.InventoryDocType)) - ) && base.Equals(input) && - ( - this.InventoryRefNbr == input.InventoryRefNbr || - (this.InventoryRefNbr != null && - this.InventoryRefNbr.Equals(input.InventoryRefNbr)) - ) && base.Equals(input) && - ( - this.InvoiceNbr == input.InvoiceNbr || - (this.InvoiceNbr != null && - this.InvoiceNbr.Equals(input.InvoiceNbr)) - ) && base.Equals(input) && - ( - this.InvoiceType == input.InvoiceType || - (this.InvoiceType != null && - this.InvoiceType.Equals(input.InvoiceType)) - ) && base.Equals(input) && - ( - this.ShipmentDate == input.ShipmentDate || - (this.ShipmentDate != null && - this.ShipmentDate.Equals(input.ShipmentDate)) - ) && base.Equals(input) && - ( - this.ShipmentNbr == input.ShipmentNbr || - (this.ShipmentNbr != null && - this.ShipmentNbr.Equals(input.ShipmentNbr)) - ) && base.Equals(input) && - ( - this.ShipmentType == input.ShipmentType || - (this.ShipmentType != null && - this.ShipmentType.Equals(input.ShipmentType)) - ) && base.Equals(input) && - ( - this.ShippedQty == input.ShippedQty || - (this.ShippedQty != null && - this.ShippedQty.Equals(input.ShippedQty)) - ) && base.Equals(input) && - ( - this.ShippedVolume == input.ShippedVolume || - (this.ShippedVolume != null && - this.ShippedVolume.Equals(input.ShippedVolume)) - ) && base.Equals(input) && - ( - this.ShippedWeight == input.ShippedWeight || - (this.ShippedWeight != null && - this.ShippedWeight.Equals(input.ShippedWeight)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.InventoryDocType != null) - hashCode = hashCode * 59 + this.InventoryDocType.GetHashCode(); - if (this.InventoryRefNbr != null) - hashCode = hashCode * 59 + this.InventoryRefNbr.GetHashCode(); - if (this.InvoiceNbr != null) - hashCode = hashCode * 59 + this.InvoiceNbr.GetHashCode(); - if (this.InvoiceType != null) - hashCode = hashCode * 59 + this.InvoiceType.GetHashCode(); - if (this.ShipmentDate != null) - hashCode = hashCode * 59 + this.ShipmentDate.GetHashCode(); - if (this.ShipmentNbr != null) - hashCode = hashCode * 59 + this.ShipmentNbr.GetHashCode(); - if (this.ShipmentType != null) - hashCode = hashCode * 59 + this.ShipmentType.GetHashCode(); - if (this.ShippedQty != null) - hashCode = hashCode * 59 + this.ShippedQty.GetHashCode(); - if (this.ShippedVolume != null) - hashCode = hashCode * 59 + this.ShippedVolume.GetHashCode(); - if (this.ShippedWeight != null) - hashCode = hashCode * 59 + this.ShippedWeight.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesOrdersDiscountDetails.cs b/Default.18.200.001/Model/SalesOrdersDiscountDetails.cs deleted file mode 100644 index eae331b9..00000000 --- a/Default.18.200.001/Model/SalesOrdersDiscountDetails.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesOrdersDiscountDetails - /// - [DataContract] - public partial class SalesOrdersDiscountDetails : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// discountableAmount. - /// discountableQty. - /// discountAmount. - /// discountCode. - /// discountPercent. - /// externalDiscountCode. - /// freeItem. - /// freeItemQty. - /// manualDiscount. - /// sequenceID. - /// skipDiscount. - /// type. - public SalesOrdersDiscountDetails(StringValue description = default(StringValue), DecimalValue discountableAmount = default(DecimalValue), DecimalValue discountableQty = default(DecimalValue), DecimalValue discountAmount = default(DecimalValue), StringValue discountCode = default(StringValue), DecimalValue discountPercent = default(DecimalValue), StringValue externalDiscountCode = default(StringValue), StringValue freeItem = default(StringValue), DecimalValue freeItemQty = default(DecimalValue), BooleanValue manualDiscount = default(BooleanValue), StringValue sequenceID = default(StringValue), BooleanValue skipDiscount = default(BooleanValue), StringValue type = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.DiscountableAmount = discountableAmount; - this.DiscountableQty = discountableQty; - this.DiscountAmount = discountAmount; - this.DiscountCode = discountCode; - this.DiscountPercent = discountPercent; - this.ExternalDiscountCode = externalDiscountCode; - this.FreeItem = freeItem; - this.FreeItemQty = freeItemQty; - this.ManualDiscount = manualDiscount; - this.SequenceID = sequenceID; - this.SkipDiscount = skipDiscount; - this.Type = type; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DiscountableAmount - /// - [DataMember(Name="DiscountableAmount", EmitDefaultValue=false)] - public DecimalValue DiscountableAmount { get; set; } - - /// - /// Gets or Sets DiscountableQty - /// - [DataMember(Name="DiscountableQty", EmitDefaultValue=false)] - public DecimalValue DiscountableQty { get; set; } - - /// - /// Gets or Sets DiscountAmount - /// - [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] - public DecimalValue DiscountAmount { get; set; } - - /// - /// Gets or Sets DiscountCode - /// - [DataMember(Name="DiscountCode", EmitDefaultValue=false)] - public StringValue DiscountCode { get; set; } - - /// - /// Gets or Sets DiscountPercent - /// - [DataMember(Name="DiscountPercent", EmitDefaultValue=false)] - public DecimalValue DiscountPercent { get; set; } - - /// - /// Gets or Sets ExternalDiscountCode - /// - [DataMember(Name="ExternalDiscountCode", EmitDefaultValue=false)] - public StringValue ExternalDiscountCode { get; set; } - - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public StringValue FreeItem { get; set; } - - /// - /// Gets or Sets FreeItemQty - /// - [DataMember(Name="FreeItemQty", EmitDefaultValue=false)] - public DecimalValue FreeItemQty { get; set; } - - /// - /// Gets or Sets ManualDiscount - /// - [DataMember(Name="ManualDiscount", EmitDefaultValue=false)] - public BooleanValue ManualDiscount { get; set; } - - /// - /// Gets or Sets SequenceID - /// - [DataMember(Name="SequenceID", EmitDefaultValue=false)] - public StringValue SequenceID { get; set; } - - /// - /// Gets or Sets SkipDiscount - /// - [DataMember(Name="SkipDiscount", EmitDefaultValue=false)] - public BooleanValue SkipDiscount { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesOrdersDiscountDetails {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountableAmount: ").Append(DiscountableAmount).Append("\n"); - sb.Append(" DiscountableQty: ").Append(DiscountableQty).Append("\n"); - sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); - sb.Append(" DiscountCode: ").Append(DiscountCode).Append("\n"); - sb.Append(" DiscountPercent: ").Append(DiscountPercent).Append("\n"); - sb.Append(" ExternalDiscountCode: ").Append(ExternalDiscountCode).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" FreeItemQty: ").Append(FreeItemQty).Append("\n"); - sb.Append(" ManualDiscount: ").Append(ManualDiscount).Append("\n"); - sb.Append(" SequenceID: ").Append(SequenceID).Append("\n"); - sb.Append(" SkipDiscount: ").Append(SkipDiscount).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesOrdersDiscountDetails); - } - - /// - /// Returns true if SalesOrdersDiscountDetails instances are equal - /// - /// Instance of SalesOrdersDiscountDetails to be compared - /// Boolean - public bool Equals(SalesOrdersDiscountDetails input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountableAmount == input.DiscountableAmount || - (this.DiscountableAmount != null && - this.DiscountableAmount.Equals(input.DiscountableAmount)) - ) && base.Equals(input) && - ( - this.DiscountableQty == input.DiscountableQty || - (this.DiscountableQty != null && - this.DiscountableQty.Equals(input.DiscountableQty)) - ) && base.Equals(input) && - ( - this.DiscountAmount == input.DiscountAmount || - (this.DiscountAmount != null && - this.DiscountAmount.Equals(input.DiscountAmount)) - ) && base.Equals(input) && - ( - this.DiscountCode == input.DiscountCode || - (this.DiscountCode != null && - this.DiscountCode.Equals(input.DiscountCode)) - ) && base.Equals(input) && - ( - this.DiscountPercent == input.DiscountPercent || - (this.DiscountPercent != null && - this.DiscountPercent.Equals(input.DiscountPercent)) - ) && base.Equals(input) && - ( - this.ExternalDiscountCode == input.ExternalDiscountCode || - (this.ExternalDiscountCode != null && - this.ExternalDiscountCode.Equals(input.ExternalDiscountCode)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.FreeItemQty == input.FreeItemQty || - (this.FreeItemQty != null && - this.FreeItemQty.Equals(input.FreeItemQty)) - ) && base.Equals(input) && - ( - this.ManualDiscount == input.ManualDiscount || - (this.ManualDiscount != null && - this.ManualDiscount.Equals(input.ManualDiscount)) - ) && base.Equals(input) && - ( - this.SequenceID == input.SequenceID || - (this.SequenceID != null && - this.SequenceID.Equals(input.SequenceID)) - ) && base.Equals(input) && - ( - this.SkipDiscount == input.SkipDiscount || - (this.SkipDiscount != null && - this.SkipDiscount.Equals(input.SkipDiscount)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountableAmount != null) - hashCode = hashCode * 59 + this.DiscountableAmount.GetHashCode(); - if (this.DiscountableQty != null) - hashCode = hashCode * 59 + this.DiscountableQty.GetHashCode(); - if (this.DiscountAmount != null) - hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); - if (this.DiscountCode != null) - hashCode = hashCode * 59 + this.DiscountCode.GetHashCode(); - if (this.DiscountPercent != null) - hashCode = hashCode * 59 + this.DiscountPercent.GetHashCode(); - if (this.ExternalDiscountCode != null) - hashCode = hashCode * 59 + this.ExternalDiscountCode.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.FreeItemQty != null) - hashCode = hashCode * 59 + this.FreeItemQty.GetHashCode(); - if (this.ManualDiscount != null) - hashCode = hashCode * 59 + this.ManualDiscount.GetHashCode(); - if (this.SequenceID != null) - hashCode = hashCode * 59 + this.SequenceID.GetHashCode(); - if (this.SkipDiscount != null) - hashCode = hashCode * 59 + this.SkipDiscount.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesPersonDetail.cs b/Default.18.200.001/Model/SalesPersonDetail.cs deleted file mode 100644 index a9c042aa..00000000 --- a/Default.18.200.001/Model/SalesPersonDetail.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesPersonDetail - /// - [DataContract] - public partial class SalesPersonDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// commissionableAmount. - /// commissionAmount. - /// commissionPercent. - /// salespersonID. - public SalesPersonDetail(DecimalValue commissionableAmount = default(DecimalValue), DecimalValue commissionAmount = default(DecimalValue), DecimalValue commissionPercent = default(DecimalValue), StringValue salespersonID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CommissionableAmount = commissionableAmount; - this.CommissionAmount = commissionAmount; - this.CommissionPercent = commissionPercent; - this.SalespersonID = salespersonID; - } - - /// - /// Gets or Sets CommissionableAmount - /// - [DataMember(Name="CommissionableAmount", EmitDefaultValue=false)] - public DecimalValue CommissionableAmount { get; set; } - - /// - /// Gets or Sets CommissionAmount - /// - [DataMember(Name="CommissionAmount", EmitDefaultValue=false)] - public DecimalValue CommissionAmount { get; set; } - - /// - /// Gets or Sets CommissionPercent - /// - [DataMember(Name="CommissionPercent", EmitDefaultValue=false)] - public DecimalValue CommissionPercent { get; set; } - - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesPersonDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CommissionableAmount: ").Append(CommissionableAmount).Append("\n"); - sb.Append(" CommissionAmount: ").Append(CommissionAmount).Append("\n"); - sb.Append(" CommissionPercent: ").Append(CommissionPercent).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesPersonDetail); - } - - /// - /// Returns true if SalesPersonDetail instances are equal - /// - /// Instance of SalesPersonDetail to be compared - /// Boolean - public bool Equals(SalesPersonDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CommissionableAmount == input.CommissionableAmount || - (this.CommissionableAmount != null && - this.CommissionableAmount.Equals(input.CommissionableAmount)) - ) && base.Equals(input) && - ( - this.CommissionAmount == input.CommissionAmount || - (this.CommissionAmount != null && - this.CommissionAmount.Equals(input.CommissionAmount)) - ) && base.Equals(input) && - ( - this.CommissionPercent == input.CommissionPercent || - (this.CommissionPercent != null && - this.CommissionPercent.Equals(input.CommissionPercent)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CommissionableAmount != null) - hashCode = hashCode * 59 + this.CommissionableAmount.GetHashCode(); - if (this.CommissionAmount != null) - hashCode = hashCode * 59 + this.CommissionAmount.GetHashCode(); - if (this.CommissionPercent != null) - hashCode = hashCode * 59 + this.CommissionPercent.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesPriceDetail.cs b/Default.18.200.001/Model/SalesPriceDetail.cs deleted file mode 100644 index 0ca48a4d..00000000 --- a/Default.18.200.001/Model/SalesPriceDetail.cs +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesPriceDetail - /// - [DataContract] - public partial class SalesPriceDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakQty. - /// createdDateTime. - /// currencyID. - /// description. - /// effectiveDate. - /// expirationDate. - /// inventoryID. - /// lastModifiedDateTime. - /// price. - /// priceCode. - /// priceType. - /// promotion. - /// recordID. - /// tax. - /// uOM. - public SalesPriceDetail(DecimalValue breakQty = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue price = default(DecimalValue), StringValue priceCode = default(StringValue), StringValue priceType = default(StringValue), BooleanValue promotion = default(BooleanValue), IntValue recordID = default(IntValue), StringValue tax = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakQty = breakQty; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Price = price; - this.PriceCode = priceCode; - this.PriceType = priceType; - this.Promotion = promotion; - this.RecordID = recordID; - this.Tax = tax; - this.UOM = uOM; - } - - /// - /// Gets or Sets BreakQty - /// - [DataMember(Name="BreakQty", EmitDefaultValue=false)] - public DecimalValue BreakQty { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Price - /// - [DataMember(Name="Price", EmitDefaultValue=false)] - public DecimalValue Price { get; set; } - - /// - /// Gets or Sets PriceCode - /// - [DataMember(Name="PriceCode", EmitDefaultValue=false)] - public StringValue PriceCode { get; set; } - - /// - /// Gets or Sets PriceType - /// - [DataMember(Name="PriceType", EmitDefaultValue=false)] - public StringValue PriceType { get; set; } - - /// - /// Gets or Sets Promotion - /// - [DataMember(Name="Promotion", EmitDefaultValue=false)] - public BooleanValue Promotion { get; set; } - - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } - - /// - /// Gets or Sets Tax - /// - [DataMember(Name="Tax", EmitDefaultValue=false)] - public StringValue Tax { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesPriceDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakQty: ").Append(BreakQty).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Price: ").Append(Price).Append("\n"); - sb.Append(" PriceCode: ").Append(PriceCode).Append("\n"); - sb.Append(" PriceType: ").Append(PriceType).Append("\n"); - sb.Append(" Promotion: ").Append(Promotion).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" Tax: ").Append(Tax).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesPriceDetail); - } - - /// - /// Returns true if SalesPriceDetail instances are equal - /// - /// Instance of SalesPriceDetail to be compared - /// Boolean - public bool Equals(SalesPriceDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BreakQty == input.BreakQty || - (this.BreakQty != null && - this.BreakQty.Equals(input.BreakQty)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Price == input.Price || - (this.Price != null && - this.Price.Equals(input.Price)) - ) && base.Equals(input) && - ( - this.PriceCode == input.PriceCode || - (this.PriceCode != null && - this.PriceCode.Equals(input.PriceCode)) - ) && base.Equals(input) && - ( - this.PriceType == input.PriceType || - (this.PriceType != null && - this.PriceType.Equals(input.PriceType)) - ) && base.Equals(input) && - ( - this.Promotion == input.Promotion || - (this.Promotion != null && - this.Promotion.Equals(input.Promotion)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.Tax == input.Tax || - (this.Tax != null && - this.Tax.Equals(input.Tax)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakQty != null) - hashCode = hashCode * 59 + this.BreakQty.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Price != null) - hashCode = hashCode * 59 + this.Price.GetHashCode(); - if (this.PriceCode != null) - hashCode = hashCode * 59 + this.PriceCode.GetHashCode(); - if (this.PriceType != null) - hashCode = hashCode * 59 + this.PriceType.GetHashCode(); - if (this.Promotion != null) - hashCode = hashCode * 59 + this.Promotion.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesPriceWorksheet.cs b/Default.18.200.001/Model/SalesPriceWorksheet.cs deleted file mode 100644 index 638ac861..00000000 --- a/Default.18.200.001/Model/SalesPriceWorksheet.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesPriceWorksheet - /// - [DataContract] - public partial class SalesPriceWorksheet : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// description. - /// effectiveDate. - /// expirationDate. - /// hold. - /// lastModifiedDateTime. - /// overwriteOverlappingPrices. - /// referenceNbr. - /// salesPrices. - /// status. - public SalesPriceWorksheet(DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), DateTimeValue expirationDate = default(DateTimeValue), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), BooleanValue overwriteOverlappingPrices = default(BooleanValue), StringValue referenceNbr = default(StringValue), IEnumerable salesPrices = default(IEnumerable), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExpirationDate = expirationDate; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.OverwriteOverlappingPrices = overwriteOverlappingPrices; - this.ReferenceNbr = referenceNbr; - this.SalesPrices = salesPrices; - this.Status = status; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets OverwriteOverlappingPrices - /// - [DataMember(Name="OverwriteOverlappingPrices", EmitDefaultValue=false)] - public BooleanValue OverwriteOverlappingPrices { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets SalesPrices - /// - [DataMember(Name="SalesPrices", EmitDefaultValue=false)] - public IEnumerable SalesPrices { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesPriceWorksheet {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" OverwriteOverlappingPrices: ").Append(OverwriteOverlappingPrices).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" SalesPrices: ").Append(SalesPrices).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesPriceWorksheet); - } - - /// - /// Returns true if SalesPriceWorksheet instances are equal - /// - /// Instance of SalesPriceWorksheet to be compared - /// Boolean - public bool Equals(SalesPriceWorksheet input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.OverwriteOverlappingPrices == input.OverwriteOverlappingPrices || - (this.OverwriteOverlappingPrices != null && - this.OverwriteOverlappingPrices.Equals(input.OverwriteOverlappingPrices)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.SalesPrices == input.SalesPrices || - this.SalesPrices != null && - this.SalesPrices.SequenceEqual(input.SalesPrices) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.OverwriteOverlappingPrices != null) - hashCode = hashCode * 59 + this.OverwriteOverlappingPrices.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.SalesPrices != null) - hashCode = hashCode * 59 + this.SalesPrices.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesPricesInquiry.cs b/Default.18.200.001/Model/SalesPricesInquiry.cs deleted file mode 100644 index 5283331e..00000000 --- a/Default.18.200.001/Model/SalesPricesInquiry.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesPricesInquiry - /// - [DataContract] - public partial class SalesPricesInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// effectiveAsOf. - /// inventoryID. - /// itemClassID. - /// priceClass. - /// priceCode. - /// priceManager. - /// priceManagerIsMe. - /// priceType. - /// priceWorkgroup. - /// priceWorkgroupIsMine. - /// salesPriceDetails. - public SalesPricesInquiry(DateTimeValue effectiveAsOf = default(DateTimeValue), StringValue inventoryID = default(StringValue), StringValue itemClassID = default(StringValue), StringValue priceClass = default(StringValue), StringValue priceCode = default(StringValue), StringValue priceManager = default(StringValue), BooleanValue priceManagerIsMe = default(BooleanValue), StringValue priceType = default(StringValue), StringValue priceWorkgroup = default(StringValue), BooleanValue priceWorkgroupIsMine = default(BooleanValue), IEnumerable salesPriceDetails = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.EffectiveAsOf = effectiveAsOf; - this.InventoryID = inventoryID; - this.ItemClassID = itemClassID; - this.PriceClass = priceClass; - this.PriceCode = priceCode; - this.PriceManager = priceManager; - this.PriceManagerIsMe = priceManagerIsMe; - this.PriceType = priceType; - this.PriceWorkgroup = priceWorkgroup; - this.PriceWorkgroupIsMine = priceWorkgroupIsMine; - this.SalesPriceDetails = salesPriceDetails; - } - - /// - /// Gets or Sets EffectiveAsOf - /// - [DataMember(Name="EffectiveAsOf", EmitDefaultValue=false)] - public DateTimeValue EffectiveAsOf { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets ItemClassID - /// - [DataMember(Name="ItemClassID", EmitDefaultValue=false)] - public StringValue ItemClassID { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets PriceCode - /// - [DataMember(Name="PriceCode", EmitDefaultValue=false)] - public StringValue PriceCode { get; set; } - - /// - /// Gets or Sets PriceManager - /// - [DataMember(Name="PriceManager", EmitDefaultValue=false)] - public StringValue PriceManager { get; set; } - - /// - /// Gets or Sets PriceManagerIsMe - /// - [DataMember(Name="PriceManagerIsMe", EmitDefaultValue=false)] - public BooleanValue PriceManagerIsMe { get; set; } - - /// - /// Gets or Sets PriceType - /// - [DataMember(Name="PriceType", EmitDefaultValue=false)] - public StringValue PriceType { get; set; } - - /// - /// Gets or Sets PriceWorkgroup - /// - [DataMember(Name="PriceWorkgroup", EmitDefaultValue=false)] - public StringValue PriceWorkgroup { get; set; } - - /// - /// Gets or Sets PriceWorkgroupIsMine - /// - [DataMember(Name="PriceWorkgroupIsMine", EmitDefaultValue=false)] - public BooleanValue PriceWorkgroupIsMine { get; set; } - - /// - /// Gets or Sets SalesPriceDetails - /// - [DataMember(Name="SalesPriceDetails", EmitDefaultValue=false)] - public IEnumerable SalesPriceDetails { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesPricesInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" EffectiveAsOf: ").Append(EffectiveAsOf).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" ItemClassID: ").Append(ItemClassID).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" PriceCode: ").Append(PriceCode).Append("\n"); - sb.Append(" PriceManager: ").Append(PriceManager).Append("\n"); - sb.Append(" PriceManagerIsMe: ").Append(PriceManagerIsMe).Append("\n"); - sb.Append(" PriceType: ").Append(PriceType).Append("\n"); - sb.Append(" PriceWorkgroup: ").Append(PriceWorkgroup).Append("\n"); - sb.Append(" PriceWorkgroupIsMine: ").Append(PriceWorkgroupIsMine).Append("\n"); - sb.Append(" SalesPriceDetails: ").Append(SalesPriceDetails).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesPricesInquiry); - } - - /// - /// Returns true if SalesPricesInquiry instances are equal - /// - /// Instance of SalesPricesInquiry to be compared - /// Boolean - public bool Equals(SalesPricesInquiry input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.EffectiveAsOf == input.EffectiveAsOf || - (this.EffectiveAsOf != null && - this.EffectiveAsOf.Equals(input.EffectiveAsOf)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.ItemClassID == input.ItemClassID || - (this.ItemClassID != null && - this.ItemClassID.Equals(input.ItemClassID)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.PriceCode == input.PriceCode || - (this.PriceCode != null && - this.PriceCode.Equals(input.PriceCode)) - ) && base.Equals(input) && - ( - this.PriceManager == input.PriceManager || - (this.PriceManager != null && - this.PriceManager.Equals(input.PriceManager)) - ) && base.Equals(input) && - ( - this.PriceManagerIsMe == input.PriceManagerIsMe || - (this.PriceManagerIsMe != null && - this.PriceManagerIsMe.Equals(input.PriceManagerIsMe)) - ) && base.Equals(input) && - ( - this.PriceType == input.PriceType || - (this.PriceType != null && - this.PriceType.Equals(input.PriceType)) - ) && base.Equals(input) && - ( - this.PriceWorkgroup == input.PriceWorkgroup || - (this.PriceWorkgroup != null && - this.PriceWorkgroup.Equals(input.PriceWorkgroup)) - ) && base.Equals(input) && - ( - this.PriceWorkgroupIsMine == input.PriceWorkgroupIsMine || - (this.PriceWorkgroupIsMine != null && - this.PriceWorkgroupIsMine.Equals(input.PriceWorkgroupIsMine)) - ) && base.Equals(input) && - ( - this.SalesPriceDetails == input.SalesPriceDetails || - this.SalesPriceDetails != null && - this.SalesPriceDetails.SequenceEqual(input.SalesPriceDetails) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.EffectiveAsOf != null) - hashCode = hashCode * 59 + this.EffectiveAsOf.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.ItemClassID != null) - hashCode = hashCode * 59 + this.ItemClassID.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.PriceCode != null) - hashCode = hashCode * 59 + this.PriceCode.GetHashCode(); - if (this.PriceManager != null) - hashCode = hashCode * 59 + this.PriceManager.GetHashCode(); - if (this.PriceManagerIsMe != null) - hashCode = hashCode * 59 + this.PriceManagerIsMe.GetHashCode(); - if (this.PriceType != null) - hashCode = hashCode * 59 + this.PriceType.GetHashCode(); - if (this.PriceWorkgroup != null) - hashCode = hashCode * 59 + this.PriceWorkgroup.GetHashCode(); - if (this.PriceWorkgroupIsMine != null) - hashCode = hashCode * 59 + this.PriceWorkgroupIsMine.GetHashCode(); - if (this.SalesPriceDetails != null) - hashCode = hashCode * 59 + this.SalesPriceDetails.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SalesPricesWorksheetDetail.cs b/Default.18.200.001/Model/SalesPricesWorksheetDetail.cs deleted file mode 100644 index 91dd3f8d..00000000 --- a/Default.18.200.001/Model/SalesPricesWorksheetDetail.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SalesPricesWorksheetDetail - /// - [DataContract] - public partial class SalesPricesWorksheetDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakQty. - /// currencyID. - /// description. - /// inventoryID. - /// lineID. - /// pendingPrice. - /// priceCode. - /// priceType. - /// referenceNbr. - /// sourcePrice. - /// tax. - /// uOM. - public SalesPricesWorksheetDetail(DecimalValue breakQty = default(DecimalValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), IntValue lineID = default(IntValue), DecimalValue pendingPrice = default(DecimalValue), StringValue priceCode = default(StringValue), StringValue priceType = default(StringValue), StringValue referenceNbr = default(StringValue), DecimalValue sourcePrice = default(DecimalValue), StringValue tax = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakQty = breakQty; - this.CurrencyID = currencyID; - this.Description = description; - this.InventoryID = inventoryID; - this.LineID = lineID; - this.PendingPrice = pendingPrice; - this.PriceCode = priceCode; - this.PriceType = priceType; - this.ReferenceNbr = referenceNbr; - this.SourcePrice = sourcePrice; - this.Tax = tax; - this.UOM = uOM; - } - - /// - /// Gets or Sets BreakQty - /// - [DataMember(Name="BreakQty", EmitDefaultValue=false)] - public DecimalValue BreakQty { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineID - /// - [DataMember(Name="LineID", EmitDefaultValue=false)] - public IntValue LineID { get; set; } - - /// - /// Gets or Sets PendingPrice - /// - [DataMember(Name="PendingPrice", EmitDefaultValue=false)] - public DecimalValue PendingPrice { get; set; } - - /// - /// Gets or Sets PriceCode - /// - [DataMember(Name="PriceCode", EmitDefaultValue=false)] - public StringValue PriceCode { get; set; } - - /// - /// Gets or Sets PriceType - /// - [DataMember(Name="PriceType", EmitDefaultValue=false)] - public StringValue PriceType { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets SourcePrice - /// - [DataMember(Name="SourcePrice", EmitDefaultValue=false)] - public DecimalValue SourcePrice { get; set; } - - /// - /// Gets or Sets Tax - /// - [DataMember(Name="Tax", EmitDefaultValue=false)] - public StringValue Tax { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SalesPricesWorksheetDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakQty: ").Append(BreakQty).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineID: ").Append(LineID).Append("\n"); - sb.Append(" PendingPrice: ").Append(PendingPrice).Append("\n"); - sb.Append(" PriceCode: ").Append(PriceCode).Append("\n"); - sb.Append(" PriceType: ").Append(PriceType).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" SourcePrice: ").Append(SourcePrice).Append("\n"); - sb.Append(" Tax: ").Append(Tax).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SalesPricesWorksheetDetail); - } - - /// - /// Returns true if SalesPricesWorksheetDetail instances are equal - /// - /// Instance of SalesPricesWorksheetDetail to be compared - /// Boolean - public bool Equals(SalesPricesWorksheetDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BreakQty == input.BreakQty || - (this.BreakQty != null && - this.BreakQty.Equals(input.BreakQty)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineID == input.LineID || - (this.LineID != null && - this.LineID.Equals(input.LineID)) - ) && base.Equals(input) && - ( - this.PendingPrice == input.PendingPrice || - (this.PendingPrice != null && - this.PendingPrice.Equals(input.PendingPrice)) - ) && base.Equals(input) && - ( - this.PriceCode == input.PriceCode || - (this.PriceCode != null && - this.PriceCode.Equals(input.PriceCode)) - ) && base.Equals(input) && - ( - this.PriceType == input.PriceType || - (this.PriceType != null && - this.PriceType.Equals(input.PriceType)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.SourcePrice == input.SourcePrice || - (this.SourcePrice != null && - this.SourcePrice.Equals(input.SourcePrice)) - ) && base.Equals(input) && - ( - this.Tax == input.Tax || - (this.Tax != null && - this.Tax.Equals(input.Tax)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakQty != null) - hashCode = hashCode * 59 + this.BreakQty.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineID != null) - hashCode = hashCode * 59 + this.LineID.GetHashCode(); - if (this.PendingPrice != null) - hashCode = hashCode * 59 + this.PendingPrice.GetHashCode(); - if (this.PriceCode != null) - hashCode = hashCode * 59 + this.PriceCode.GetHashCode(); - if (this.PriceType != null) - hashCode = hashCode * 59 + this.PriceType.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.SourcePrice != null) - hashCode = hashCode * 59 + this.SourcePrice.GetHashCode(); - if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Salesperson.cs b/Default.18.200.001/Model/Salesperson.cs deleted file mode 100644 index f6c86964..00000000 --- a/Default.18.200.001/Model/Salesperson.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Salesperson - /// - [DataContract] - public partial class Salesperson : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// defaultCommission. - /// isActive. - /// lastModifiedDateTime. - /// name. - /// salespersonID. - /// salesSubaccount. - public Salesperson(DateTimeValue createdDateTime = default(DateTimeValue), DecimalValue defaultCommission = default(DecimalValue), BooleanValue isActive = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue name = default(StringValue), StringValue salespersonID = default(StringValue), StringValue salesSubaccount = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.DefaultCommission = defaultCommission; - this.IsActive = isActive; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Name = name; - this.SalespersonID = salespersonID; - this.SalesSubaccount = salesSubaccount; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets DefaultCommission - /// - [DataMember(Name="DefaultCommission", EmitDefaultValue=false)] - public DecimalValue DefaultCommission { get; set; } - - /// - /// Gets or Sets IsActive - /// - [DataMember(Name="IsActive", EmitDefaultValue=false)] - public BooleanValue IsActive { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="Name", EmitDefaultValue=false)] - public StringValue Name { get; set; } - - /// - /// Gets or Sets SalespersonID - /// - [DataMember(Name="SalespersonID", EmitDefaultValue=false)] - public StringValue SalespersonID { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Salesperson {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" DefaultCommission: ").Append(DefaultCommission).Append("\n"); - sb.Append(" IsActive: ").Append(IsActive).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" SalespersonID: ").Append(SalespersonID).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Salesperson); - } - - /// - /// Returns true if Salesperson instances are equal - /// - /// Instance of Salesperson to be compared - /// Boolean - public bool Equals(Salesperson input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.DefaultCommission == input.DefaultCommission || - (this.DefaultCommission != null && - this.DefaultCommission.Equals(input.DefaultCommission)) - ) && base.Equals(input) && - ( - this.IsActive == input.IsActive || - (this.IsActive != null && - this.IsActive.Equals(input.IsActive)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && base.Equals(input) && - ( - this.SalespersonID == input.SalespersonID || - (this.SalespersonID != null && - this.SalespersonID.Equals(input.SalespersonID)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.DefaultCommission != null) - hashCode = hashCode * 59 + this.DefaultCommission.GetHashCode(); - if (this.IsActive != null) - hashCode = hashCode * 59 + this.IsActive.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.SalespersonID != null) - hashCode = hashCode * 59 + this.SalespersonID.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShipToSettings.cs b/Default.18.200.001/Model/ShipToSettings.cs deleted file mode 100644 index 501801a0..00000000 --- a/Default.18.200.001/Model/ShipToSettings.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShipToSettings - /// - [DataContract] - public partial class ShipToSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// shipToAddress. - /// shipToAddressOverride. - /// shipToContact. - /// shipToContactOverride. - /// validated. - public ShipToSettings(Address shipToAddress = default(Address), BooleanValue shipToAddressOverride = default(BooleanValue), DocContact shipToContact = default(DocContact), BooleanValue shipToContactOverride = default(BooleanValue), BooleanValue validated = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ShipToAddress = shipToAddress; - this.ShipToAddressOverride = shipToAddressOverride; - this.ShipToContact = shipToContact; - this.ShipToContactOverride = shipToContactOverride; - this.Validated = validated; - } - - /// - /// Gets or Sets ShipToAddress - /// - [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] - public Address ShipToAddress { get; set; } - - /// - /// Gets or Sets ShipToAddressOverride - /// - [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] - public BooleanValue ShipToAddressOverride { get; set; } - - /// - /// Gets or Sets ShipToContact - /// - [DataMember(Name="ShipToContact", EmitDefaultValue=false)] - public DocContact ShipToContact { get; set; } - - /// - /// Gets or Sets ShipToContactOverride - /// - [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] - public BooleanValue ShipToContactOverride { get; set; } - - /// - /// Gets or Sets Validated - /// - [DataMember(Name="Validated", EmitDefaultValue=false)] - public BooleanValue Validated { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipToSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ShipToAddress: ").Append(ShipToAddress).Append("\n"); - sb.Append(" ShipToAddressOverride: ").Append(ShipToAddressOverride).Append("\n"); - sb.Append(" ShipToContact: ").Append(ShipToContact).Append("\n"); - sb.Append(" ShipToContactOverride: ").Append(ShipToContactOverride).Append("\n"); - sb.Append(" Validated: ").Append(Validated).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipToSettings); - } - - /// - /// Returns true if ShipToSettings instances are equal - /// - /// Instance of ShipToSettings to be compared - /// Boolean - public bool Equals(ShipToSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ShipToAddress == input.ShipToAddress || - (this.ShipToAddress != null && - this.ShipToAddress.Equals(input.ShipToAddress)) - ) && base.Equals(input) && - ( - this.ShipToAddressOverride == input.ShipToAddressOverride || - (this.ShipToAddressOverride != null && - this.ShipToAddressOverride.Equals(input.ShipToAddressOverride)) - ) && base.Equals(input) && - ( - this.ShipToContact == input.ShipToContact || - (this.ShipToContact != null && - this.ShipToContact.Equals(input.ShipToContact)) - ) && base.Equals(input) && - ( - this.ShipToContactOverride == input.ShipToContactOverride || - (this.ShipToContactOverride != null && - this.ShipToContactOverride.Equals(input.ShipToContactOverride)) - ) && base.Equals(input) && - ( - this.Validated == input.Validated || - (this.Validated != null && - this.Validated.Equals(input.Validated)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ShipToAddress != null) - hashCode = hashCode * 59 + this.ShipToAddress.GetHashCode(); - if (this.ShipToAddressOverride != null) - hashCode = hashCode * 59 + this.ShipToAddressOverride.GetHashCode(); - if (this.ShipToContact != null) - hashCode = hashCode * 59 + this.ShipToContact.GetHashCode(); - if (this.ShipToContactOverride != null) - hashCode = hashCode * 59 + this.ShipToContactOverride.GetHashCode(); - if (this.Validated != null) - hashCode = hashCode * 59 + this.Validated.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShipVia.cs b/Default.18.200.001/Model/ShipVia.cs deleted file mode 100644 index 3091e85a..00000000 --- a/Default.18.200.001/Model/ShipVia.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShipVia - /// - [DataContract] - public partial class ShipVia : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// calculationMethod. - /// calendar. - /// carrierID. - /// commonCarrier. - /// description. - /// freightExpenseAccount. - /// freightExpenseSubaccount. - /// freightRates. - /// freightSalesAccount. - /// freightSalesSubaccount. - /// packages. - /// taxCategory. - public ShipVia(StringValue calculationMethod = default(StringValue), StringValue calendar = default(StringValue), StringValue carrierID = default(StringValue), BooleanValue commonCarrier = default(BooleanValue), StringValue description = default(StringValue), StringValue freightExpenseAccount = default(StringValue), StringValue freightExpenseSubaccount = default(StringValue), IEnumerable freightRates = default(IEnumerable), StringValue freightSalesAccount = default(StringValue), StringValue freightSalesSubaccount = default(StringValue), IEnumerable packages = default(IEnumerable), StringValue taxCategory = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CalculationMethod = calculationMethod; - this.Calendar = calendar; - this.CarrierID = carrierID; - this.CommonCarrier = commonCarrier; - this.Description = description; - this.FreightExpenseAccount = freightExpenseAccount; - this.FreightExpenseSubaccount = freightExpenseSubaccount; - this.FreightRates = freightRates; - this.FreightSalesAccount = freightSalesAccount; - this.FreightSalesSubaccount = freightSalesSubaccount; - this.Packages = packages; - this.TaxCategory = taxCategory; - } - - /// - /// Gets or Sets CalculationMethod - /// - [DataMember(Name="CalculationMethod", EmitDefaultValue=false)] - public StringValue CalculationMethod { get; set; } - - /// - /// Gets or Sets Calendar - /// - [DataMember(Name="Calendar", EmitDefaultValue=false)] - public StringValue Calendar { get; set; } - - /// - /// Gets or Sets CarrierID - /// - [DataMember(Name="CarrierID", EmitDefaultValue=false)] - public StringValue CarrierID { get; set; } - - /// - /// Gets or Sets CommonCarrier - /// - [DataMember(Name="CommonCarrier", EmitDefaultValue=false)] - public BooleanValue CommonCarrier { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets FreightExpenseAccount - /// - [DataMember(Name="FreightExpenseAccount", EmitDefaultValue=false)] - public StringValue FreightExpenseAccount { get; set; } - - /// - /// Gets or Sets FreightExpenseSubaccount - /// - [DataMember(Name="FreightExpenseSubaccount", EmitDefaultValue=false)] - public StringValue FreightExpenseSubaccount { get; set; } - - /// - /// Gets or Sets FreightRates - /// - [DataMember(Name="FreightRates", EmitDefaultValue=false)] - public IEnumerable FreightRates { get; set; } - - /// - /// Gets or Sets FreightSalesAccount - /// - [DataMember(Name="FreightSalesAccount", EmitDefaultValue=false)] - public StringValue FreightSalesAccount { get; set; } - - /// - /// Gets or Sets FreightSalesSubaccount - /// - [DataMember(Name="FreightSalesSubaccount", EmitDefaultValue=false)] - public StringValue FreightSalesSubaccount { get; set; } - - /// - /// Gets or Sets Packages - /// - [DataMember(Name="Packages", EmitDefaultValue=false)] - public IEnumerable Packages { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipVia {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CalculationMethod: ").Append(CalculationMethod).Append("\n"); - sb.Append(" Calendar: ").Append(Calendar).Append("\n"); - sb.Append(" CarrierID: ").Append(CarrierID).Append("\n"); - sb.Append(" CommonCarrier: ").Append(CommonCarrier).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" FreightExpenseAccount: ").Append(FreightExpenseAccount).Append("\n"); - sb.Append(" FreightExpenseSubaccount: ").Append(FreightExpenseSubaccount).Append("\n"); - sb.Append(" FreightRates: ").Append(FreightRates).Append("\n"); - sb.Append(" FreightSalesAccount: ").Append(FreightSalesAccount).Append("\n"); - sb.Append(" FreightSalesSubaccount: ").Append(FreightSalesSubaccount).Append("\n"); - sb.Append(" Packages: ").Append(Packages).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipVia); - } - - /// - /// Returns true if ShipVia instances are equal - /// - /// Instance of ShipVia to be compared - /// Boolean - public bool Equals(ShipVia input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CalculationMethod == input.CalculationMethod || - (this.CalculationMethod != null && - this.CalculationMethod.Equals(input.CalculationMethod)) - ) && base.Equals(input) && - ( - this.Calendar == input.Calendar || - (this.Calendar != null && - this.Calendar.Equals(input.Calendar)) - ) && base.Equals(input) && - ( - this.CarrierID == input.CarrierID || - (this.CarrierID != null && - this.CarrierID.Equals(input.CarrierID)) - ) && base.Equals(input) && - ( - this.CommonCarrier == input.CommonCarrier || - (this.CommonCarrier != null && - this.CommonCarrier.Equals(input.CommonCarrier)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.FreightExpenseAccount == input.FreightExpenseAccount || - (this.FreightExpenseAccount != null && - this.FreightExpenseAccount.Equals(input.FreightExpenseAccount)) - ) && base.Equals(input) && - ( - this.FreightExpenseSubaccount == input.FreightExpenseSubaccount || - (this.FreightExpenseSubaccount != null && - this.FreightExpenseSubaccount.Equals(input.FreightExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.FreightRates == input.FreightRates || - this.FreightRates != null && - this.FreightRates.SequenceEqual(input.FreightRates) - ) && base.Equals(input) && - ( - this.FreightSalesAccount == input.FreightSalesAccount || - (this.FreightSalesAccount != null && - this.FreightSalesAccount.Equals(input.FreightSalesAccount)) - ) && base.Equals(input) && - ( - this.FreightSalesSubaccount == input.FreightSalesSubaccount || - (this.FreightSalesSubaccount != null && - this.FreightSalesSubaccount.Equals(input.FreightSalesSubaccount)) - ) && base.Equals(input) && - ( - this.Packages == input.Packages || - this.Packages != null && - this.Packages.SequenceEqual(input.Packages) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CalculationMethod != null) - hashCode = hashCode * 59 + this.CalculationMethod.GetHashCode(); - if (this.Calendar != null) - hashCode = hashCode * 59 + this.Calendar.GetHashCode(); - if (this.CarrierID != null) - hashCode = hashCode * 59 + this.CarrierID.GetHashCode(); - if (this.CommonCarrier != null) - hashCode = hashCode * 59 + this.CommonCarrier.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.FreightExpenseAccount != null) - hashCode = hashCode * 59 + this.FreightExpenseAccount.GetHashCode(); - if (this.FreightExpenseSubaccount != null) - hashCode = hashCode * 59 + this.FreightExpenseSubaccount.GetHashCode(); - if (this.FreightRates != null) - hashCode = hashCode * 59 + this.FreightRates.GetHashCode(); - if (this.FreightSalesAccount != null) - hashCode = hashCode * 59 + this.FreightSalesAccount.GetHashCode(); - if (this.FreightSalesSubaccount != null) - hashCode = hashCode * 59 + this.FreightSalesSubaccount.GetHashCode(); - if (this.Packages != null) - hashCode = hashCode * 59 + this.Packages.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShipViaFreightRate.cs b/Default.18.200.001/Model/ShipViaFreightRate.cs deleted file mode 100644 index 5383fa77..00000000 --- a/Default.18.200.001/Model/ShipViaFreightRate.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShipViaFreightRate - /// - [DataContract] - public partial class ShipViaFreightRate : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// lineNbr. - /// rate. - /// volume. - /// weight. - /// zoneID. - public ShipViaFreightRate(IntValue lineNbr = default(IntValue), DecimalValue rate = default(DecimalValue), DecimalValue volume = default(DecimalValue), DecimalValue weight = default(DecimalValue), StringValue zoneID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.LineNbr = lineNbr; - this.Rate = rate; - this.Volume = volume; - this.Weight = weight; - this.ZoneID = zoneID; - } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets Rate - /// - [DataMember(Name="Rate", EmitDefaultValue=false)] - public DecimalValue Rate { get; set; } - - /// - /// Gets or Sets Volume - /// - [DataMember(Name="Volume", EmitDefaultValue=false)] - public DecimalValue Volume { get; set; } - - /// - /// Gets or Sets Weight - /// - [DataMember(Name="Weight", EmitDefaultValue=false)] - public DecimalValue Weight { get; set; } - - /// - /// Gets or Sets ZoneID - /// - [DataMember(Name="ZoneID", EmitDefaultValue=false)] - public StringValue ZoneID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipViaFreightRate {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" Rate: ").Append(Rate).Append("\n"); - sb.Append(" Volume: ").Append(Volume).Append("\n"); - sb.Append(" Weight: ").Append(Weight).Append("\n"); - sb.Append(" ZoneID: ").Append(ZoneID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipViaFreightRate); - } - - /// - /// Returns true if ShipViaFreightRate instances are equal - /// - /// Instance of ShipViaFreightRate to be compared - /// Boolean - public bool Equals(ShipViaFreightRate input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.Rate == input.Rate || - (this.Rate != null && - this.Rate.Equals(input.Rate)) - ) && base.Equals(input) && - ( - this.Volume == input.Volume || - (this.Volume != null && - this.Volume.Equals(input.Volume)) - ) && base.Equals(input) && - ( - this.Weight == input.Weight || - (this.Weight != null && - this.Weight.Equals(input.Weight)) - ) && base.Equals(input) && - ( - this.ZoneID == input.ZoneID || - (this.ZoneID != null && - this.ZoneID.Equals(input.ZoneID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.Rate != null) - hashCode = hashCode * 59 + this.Rate.GetHashCode(); - if (this.Volume != null) - hashCode = hashCode * 59 + this.Volume.GetHashCode(); - if (this.Weight != null) - hashCode = hashCode * 59 + this.Weight.GetHashCode(); - if (this.ZoneID != null) - hashCode = hashCode * 59 + this.ZoneID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Shipment.cs b/Default.18.200.001/Model/Shipment.cs deleted file mode 100644 index 9f8d9604..00000000 --- a/Default.18.200.001/Model/Shipment.cs +++ /dev/null @@ -1,798 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Shipment - /// - [DataContract] - public partial class Shipment : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// baseCurrencyID. - /// controlQty. - /// createdDateTime. - /// currencyID. - /// currencyRate. - /// currencyRateTypeID. - /// currencyViewState. - /// customerID. - /// details. - /// effectiveDate. - /// fOBPoint. - /// freightAmount. - /// freightCost. - /// freightCurrency. - /// groundCollect. - /// hold. - /// insurance. - /// lastModifiedDateTime. - /// locationID. - /// operation. - /// orders. - /// owner. - /// packageCount. - /// packages. - /// packageWeight. - /// reciprocalRate. - /// residentialDelivery. - /// saturdayDelivery. - /// shipmentDate. - /// shipmentNbr. - /// shippedQty. - /// shippedVolume. - /// shippedWeight. - /// shippingSettings. - /// shippingTerms. - /// shippingZoneID. - /// shipVia. - /// status. - /// toWarehouseID. - /// type. - /// useCustomersAccount. - /// warehouseID. - /// workgroupID. - public Shipment(StringValue baseCurrencyID = default(StringValue), DecimalValue controlQty = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), DecimalValue currencyRate = default(DecimalValue), StringValue currencyRateTypeID = default(StringValue), BooleanValue currencyViewState = default(BooleanValue), StringValue customerID = default(StringValue), IEnumerable details = default(IEnumerable), DateTimeValue effectiveDate = default(DateTimeValue), StringValue fOBPoint = default(StringValue), DecimalValue freightAmount = default(DecimalValue), DecimalValue freightCost = default(DecimalValue), StringValue freightCurrency = default(StringValue), BooleanValue groundCollect = default(BooleanValue), BooleanValue hold = default(BooleanValue), BooleanValue insurance = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue locationID = default(StringValue), StringValue operation = default(StringValue), IEnumerable orders = default(IEnumerable), StringValue owner = default(StringValue), IntValue packageCount = default(IntValue), IEnumerable packages = default(IEnumerable), DecimalValue packageWeight = default(DecimalValue), DecimalValue reciprocalRate = default(DecimalValue), BooleanValue residentialDelivery = default(BooleanValue), BooleanValue saturdayDelivery = default(BooleanValue), DateTimeValue shipmentDate = default(DateTimeValue), StringValue shipmentNbr = default(StringValue), DecimalValue shippedQty = default(DecimalValue), DecimalValue shippedVolume = default(DecimalValue), DecimalValue shippedWeight = default(DecimalValue), ShipToSettings shippingSettings = default(ShipToSettings), StringValue shippingTerms = default(StringValue), StringValue shippingZoneID = default(StringValue), StringValue shipVia = default(StringValue), StringValue status = default(StringValue), StringValue toWarehouseID = default(StringValue), StringValue type = default(StringValue), BooleanValue useCustomersAccount = default(BooleanValue), StringValue warehouseID = default(StringValue), StringValue workgroupID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BaseCurrencyID = baseCurrencyID; - this.ControlQty = controlQty; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.CurrencyRate = currencyRate; - this.CurrencyRateTypeID = currencyRateTypeID; - this.CurrencyViewState = currencyViewState; - this.CustomerID = customerID; - this.Details = details; - this.EffectiveDate = effectiveDate; - this.FOBPoint = fOBPoint; - this.FreightAmount = freightAmount; - this.FreightCost = freightCost; - this.FreightCurrency = freightCurrency; - this.GroundCollect = groundCollect; - this.Hold = hold; - this.Insurance = insurance; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LocationID = locationID; - this.Operation = operation; - this.Orders = orders; - this.Owner = owner; - this.PackageCount = packageCount; - this.Packages = packages; - this.PackageWeight = packageWeight; - this.ReciprocalRate = reciprocalRate; - this.ResidentialDelivery = residentialDelivery; - this.SaturdayDelivery = saturdayDelivery; - this.ShipmentDate = shipmentDate; - this.ShipmentNbr = shipmentNbr; - this.ShippedQty = shippedQty; - this.ShippedVolume = shippedVolume; - this.ShippedWeight = shippedWeight; - this.ShippingSettings = shippingSettings; - this.ShippingTerms = shippingTerms; - this.ShippingZoneID = shippingZoneID; - this.ShipVia = shipVia; - this.Status = status; - this.ToWarehouseID = toWarehouseID; - this.Type = type; - this.UseCustomersAccount = useCustomersAccount; - this.WarehouseID = warehouseID; - this.WorkgroupID = workgroupID; - } - - /// - /// Gets or Sets BaseCurrencyID - /// - [DataMember(Name="BaseCurrencyID", EmitDefaultValue=false)] - public StringValue BaseCurrencyID { get; set; } - - /// - /// Gets or Sets ControlQty - /// - [DataMember(Name="ControlQty", EmitDefaultValue=false)] - public DecimalValue ControlQty { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRate - /// - [DataMember(Name="CurrencyRate", EmitDefaultValue=false)] - public DecimalValue CurrencyRate { get; set; } - - /// - /// Gets or Sets CurrencyRateTypeID - /// - [DataMember(Name="CurrencyRateTypeID", EmitDefaultValue=false)] - public StringValue CurrencyRateTypeID { get; set; } - - /// - /// Gets or Sets CurrencyViewState - /// - [DataMember(Name="CurrencyViewState", EmitDefaultValue=false)] - public BooleanValue CurrencyViewState { get; set; } - - /// - /// Gets or Sets CustomerID - /// - [DataMember(Name="CustomerID", EmitDefaultValue=false)] - public StringValue CustomerID { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets FreightAmount - /// - [DataMember(Name="FreightAmount", EmitDefaultValue=false)] - public DecimalValue FreightAmount { get; set; } - - /// - /// Gets or Sets FreightCost - /// - [DataMember(Name="FreightCost", EmitDefaultValue=false)] - public DecimalValue FreightCost { get; set; } - - /// - /// Gets or Sets FreightCurrency - /// - [DataMember(Name="FreightCurrency", EmitDefaultValue=false)] - public StringValue FreightCurrency { get; set; } - - /// - /// Gets or Sets GroundCollect - /// - [DataMember(Name="GroundCollect", EmitDefaultValue=false)] - public BooleanValue GroundCollect { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets Insurance - /// - [DataMember(Name="Insurance", EmitDefaultValue=false)] - public BooleanValue Insurance { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets Operation - /// - [DataMember(Name="Operation", EmitDefaultValue=false)] - public StringValue Operation { get; set; } - - /// - /// Gets or Sets Orders - /// - [DataMember(Name="Orders", EmitDefaultValue=false)] - public IEnumerable Orders { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets PackageCount - /// - [DataMember(Name="PackageCount", EmitDefaultValue=false)] - public IntValue PackageCount { get; set; } - - /// - /// Gets or Sets Packages - /// - [DataMember(Name="Packages", EmitDefaultValue=false)] - public IEnumerable Packages { get; set; } - - /// - /// Gets or Sets PackageWeight - /// - [DataMember(Name="PackageWeight", EmitDefaultValue=false)] - public DecimalValue PackageWeight { get; set; } - - /// - /// Gets or Sets ReciprocalRate - /// - [DataMember(Name="ReciprocalRate", EmitDefaultValue=false)] - public DecimalValue ReciprocalRate { get; set; } - - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } - - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } - - /// - /// Gets or Sets ShipmentDate - /// - [DataMember(Name="ShipmentDate", EmitDefaultValue=false)] - public DateTimeValue ShipmentDate { get; set; } - - /// - /// Gets or Sets ShipmentNbr - /// - [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] - public StringValue ShipmentNbr { get; set; } - - /// - /// Gets or Sets ShippedQty - /// - [DataMember(Name="ShippedQty", EmitDefaultValue=false)] - public DecimalValue ShippedQty { get; set; } - - /// - /// Gets or Sets ShippedVolume - /// - [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] - public DecimalValue ShippedVolume { get; set; } - - /// - /// Gets or Sets ShippedWeight - /// - [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] - public DecimalValue ShippedWeight { get; set; } - - /// - /// Gets or Sets ShippingSettings - /// - [DataMember(Name="ShippingSettings", EmitDefaultValue=false)] - public ShipToSettings ShippingSettings { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShippingZoneID - /// - [DataMember(Name="ShippingZoneID", EmitDefaultValue=false)] - public StringValue ShippingZoneID { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets ToWarehouseID - /// - [DataMember(Name="ToWarehouseID", EmitDefaultValue=false)] - public StringValue ToWarehouseID { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UseCustomersAccount - /// - [DataMember(Name="UseCustomersAccount", EmitDefaultValue=false)] - public BooleanValue UseCustomersAccount { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Gets or Sets WorkgroupID - /// - [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] - public StringValue WorkgroupID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Shipment {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BaseCurrencyID: ").Append(BaseCurrencyID).Append("\n"); - sb.Append(" ControlQty: ").Append(ControlQty).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n"); - sb.Append(" CurrencyRateTypeID: ").Append(CurrencyRateTypeID).Append("\n"); - sb.Append(" CurrencyViewState: ").Append(CurrencyViewState).Append("\n"); - sb.Append(" CustomerID: ").Append(CustomerID).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" FreightAmount: ").Append(FreightAmount).Append("\n"); - sb.Append(" FreightCost: ").Append(FreightCost).Append("\n"); - sb.Append(" FreightCurrency: ").Append(FreightCurrency).Append("\n"); - sb.Append(" GroundCollect: ").Append(GroundCollect).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" Insurance: ").Append(Insurance).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" Operation: ").Append(Operation).Append("\n"); - sb.Append(" Orders: ").Append(Orders).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PackageCount: ").Append(PackageCount).Append("\n"); - sb.Append(" Packages: ").Append(Packages).Append("\n"); - sb.Append(" PackageWeight: ").Append(PackageWeight).Append("\n"); - sb.Append(" ReciprocalRate: ").Append(ReciprocalRate).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" ShipmentDate: ").Append(ShipmentDate).Append("\n"); - sb.Append(" ShipmentNbr: ").Append(ShipmentNbr).Append("\n"); - sb.Append(" ShippedQty: ").Append(ShippedQty).Append("\n"); - sb.Append(" ShippedVolume: ").Append(ShippedVolume).Append("\n"); - sb.Append(" ShippedWeight: ").Append(ShippedWeight).Append("\n"); - sb.Append(" ShippingSettings: ").Append(ShippingSettings).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZoneID: ").Append(ShippingZoneID).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" ToWarehouseID: ").Append(ToWarehouseID).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UseCustomersAccount: ").Append(UseCustomersAccount).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append(" WorkgroupID: ").Append(WorkgroupID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Shipment); - } - - /// - /// Returns true if Shipment instances are equal - /// - /// Instance of Shipment to be compared - /// Boolean - public bool Equals(Shipment input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BaseCurrencyID == input.BaseCurrencyID || - (this.BaseCurrencyID != null && - this.BaseCurrencyID.Equals(input.BaseCurrencyID)) - ) && base.Equals(input) && - ( - this.ControlQty == input.ControlQty || - (this.ControlQty != null && - this.ControlQty.Equals(input.ControlQty)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRate == input.CurrencyRate || - (this.CurrencyRate != null && - this.CurrencyRate.Equals(input.CurrencyRate)) - ) && base.Equals(input) && - ( - this.CurrencyRateTypeID == input.CurrencyRateTypeID || - (this.CurrencyRateTypeID != null && - this.CurrencyRateTypeID.Equals(input.CurrencyRateTypeID)) - ) && base.Equals(input) && - ( - this.CurrencyViewState == input.CurrencyViewState || - (this.CurrencyViewState != null && - this.CurrencyViewState.Equals(input.CurrencyViewState)) - ) && base.Equals(input) && - ( - this.CustomerID == input.CustomerID || - (this.CustomerID != null && - this.CustomerID.Equals(input.CustomerID)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.FreightAmount == input.FreightAmount || - (this.FreightAmount != null && - this.FreightAmount.Equals(input.FreightAmount)) - ) && base.Equals(input) && - ( - this.FreightCost == input.FreightCost || - (this.FreightCost != null && - this.FreightCost.Equals(input.FreightCost)) - ) && base.Equals(input) && - ( - this.FreightCurrency == input.FreightCurrency || - (this.FreightCurrency != null && - this.FreightCurrency.Equals(input.FreightCurrency)) - ) && base.Equals(input) && - ( - this.GroundCollect == input.GroundCollect || - (this.GroundCollect != null && - this.GroundCollect.Equals(input.GroundCollect)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.Insurance == input.Insurance || - (this.Insurance != null && - this.Insurance.Equals(input.Insurance)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.Operation == input.Operation || - (this.Operation != null && - this.Operation.Equals(input.Operation)) - ) && base.Equals(input) && - ( - this.Orders == input.Orders || - this.Orders != null && - this.Orders.SequenceEqual(input.Orders) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PackageCount == input.PackageCount || - (this.PackageCount != null && - this.PackageCount.Equals(input.PackageCount)) - ) && base.Equals(input) && - ( - this.Packages == input.Packages || - this.Packages != null && - this.Packages.SequenceEqual(input.Packages) - ) && base.Equals(input) && - ( - this.PackageWeight == input.PackageWeight || - (this.PackageWeight != null && - this.PackageWeight.Equals(input.PackageWeight)) - ) && base.Equals(input) && - ( - this.ReciprocalRate == input.ReciprocalRate || - (this.ReciprocalRate != null && - this.ReciprocalRate.Equals(input.ReciprocalRate)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.ShipmentDate == input.ShipmentDate || - (this.ShipmentDate != null && - this.ShipmentDate.Equals(input.ShipmentDate)) - ) && base.Equals(input) && - ( - this.ShipmentNbr == input.ShipmentNbr || - (this.ShipmentNbr != null && - this.ShipmentNbr.Equals(input.ShipmentNbr)) - ) && base.Equals(input) && - ( - this.ShippedQty == input.ShippedQty || - (this.ShippedQty != null && - this.ShippedQty.Equals(input.ShippedQty)) - ) && base.Equals(input) && - ( - this.ShippedVolume == input.ShippedVolume || - (this.ShippedVolume != null && - this.ShippedVolume.Equals(input.ShippedVolume)) - ) && base.Equals(input) && - ( - this.ShippedWeight == input.ShippedWeight || - (this.ShippedWeight != null && - this.ShippedWeight.Equals(input.ShippedWeight)) - ) && base.Equals(input) && - ( - this.ShippingSettings == input.ShippingSettings || - (this.ShippingSettings != null && - this.ShippingSettings.Equals(input.ShippingSettings)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZoneID == input.ShippingZoneID || - (this.ShippingZoneID != null && - this.ShippingZoneID.Equals(input.ShippingZoneID)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.ToWarehouseID == input.ToWarehouseID || - (this.ToWarehouseID != null && - this.ToWarehouseID.Equals(input.ToWarehouseID)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UseCustomersAccount == input.UseCustomersAccount || - (this.UseCustomersAccount != null && - this.UseCustomersAccount.Equals(input.UseCustomersAccount)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ) && base.Equals(input) && - ( - this.WorkgroupID == input.WorkgroupID || - (this.WorkgroupID != null && - this.WorkgroupID.Equals(input.WorkgroupID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BaseCurrencyID != null) - hashCode = hashCode * 59 + this.BaseCurrencyID.GetHashCode(); - if (this.ControlQty != null) - hashCode = hashCode * 59 + this.ControlQty.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRate != null) - hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode(); - if (this.CurrencyRateTypeID != null) - hashCode = hashCode * 59 + this.CurrencyRateTypeID.GetHashCode(); - if (this.CurrencyViewState != null) - hashCode = hashCode * 59 + this.CurrencyViewState.GetHashCode(); - if (this.CustomerID != null) - hashCode = hashCode * 59 + this.CustomerID.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.FreightAmount != null) - hashCode = hashCode * 59 + this.FreightAmount.GetHashCode(); - if (this.FreightCost != null) - hashCode = hashCode * 59 + this.FreightCost.GetHashCode(); - if (this.FreightCurrency != null) - hashCode = hashCode * 59 + this.FreightCurrency.GetHashCode(); - if (this.GroundCollect != null) - hashCode = hashCode * 59 + this.GroundCollect.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.Insurance != null) - hashCode = hashCode * 59 + this.Insurance.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.Operation != null) - hashCode = hashCode * 59 + this.Operation.GetHashCode(); - if (this.Orders != null) - hashCode = hashCode * 59 + this.Orders.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PackageCount != null) - hashCode = hashCode * 59 + this.PackageCount.GetHashCode(); - if (this.Packages != null) - hashCode = hashCode * 59 + this.Packages.GetHashCode(); - if (this.PackageWeight != null) - hashCode = hashCode * 59 + this.PackageWeight.GetHashCode(); - if (this.ReciprocalRate != null) - hashCode = hashCode * 59 + this.ReciprocalRate.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.ShipmentDate != null) - hashCode = hashCode * 59 + this.ShipmentDate.GetHashCode(); - if (this.ShipmentNbr != null) - hashCode = hashCode * 59 + this.ShipmentNbr.GetHashCode(); - if (this.ShippedQty != null) - hashCode = hashCode * 59 + this.ShippedQty.GetHashCode(); - if (this.ShippedVolume != null) - hashCode = hashCode * 59 + this.ShippedVolume.GetHashCode(); - if (this.ShippedWeight != null) - hashCode = hashCode * 59 + this.ShippedWeight.GetHashCode(); - if (this.ShippingSettings != null) - hashCode = hashCode * 59 + this.ShippingSettings.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZoneID != null) - hashCode = hashCode * 59 + this.ShippingZoneID.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.ToWarehouseID != null) - hashCode = hashCode * 59 + this.ToWarehouseID.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UseCustomersAccount != null) - hashCode = hashCode * 59 + this.UseCustomersAccount.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - if (this.WorkgroupID != null) - hashCode = hashCode * 59 + this.WorkgroupID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShipmentDetail.cs b/Default.18.200.001/Model/ShipmentDetail.cs deleted file mode 100644 index 95266fd5..00000000 --- a/Default.18.200.001/Model/ShipmentDetail.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShipmentDetail - /// - [DataContract] - public partial class ShipmentDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocations. - /// description. - /// expirationDate. - /// freeItem. - /// inventoryID. - /// lineNbr. - /// locationID. - /// lotSerialNbr. - /// openQty. - /// orderedQty. - /// orderLineNbr. - /// orderNbr. - /// orderType. - /// originalQty. - /// reasonCode. - /// shippedQty. - /// subitem. - /// uOM. - /// warehouseID. - public ShipmentDetail(IEnumerable allocations = default(IEnumerable), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), BooleanValue freeItem = default(BooleanValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue openQty = default(DecimalValue), DecimalValue orderedQty = default(DecimalValue), IntValue orderLineNbr = default(IntValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), DecimalValue originalQty = default(DecimalValue), StringValue reasonCode = default(StringValue), DecimalValue shippedQty = default(DecimalValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocations = allocations; - this.Description = description; - this.ExpirationDate = expirationDate; - this.FreeItem = freeItem; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.OpenQty = openQty; - this.OrderedQty = orderedQty; - this.OrderLineNbr = orderLineNbr; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.OriginalQty = originalQty; - this.ReasonCode = reasonCode; - this.ShippedQty = shippedQty; - this.Subitem = subitem; - this.UOM = uOM; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public IEnumerable Allocations { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets FreeItem - /// - [DataMember(Name="FreeItem", EmitDefaultValue=false)] - public BooleanValue FreeItem { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets OpenQty - /// - [DataMember(Name="OpenQty", EmitDefaultValue=false)] - public DecimalValue OpenQty { get; set; } - - /// - /// Gets or Sets OrderedQty - /// - [DataMember(Name="OrderedQty", EmitDefaultValue=false)] - public DecimalValue OrderedQty { get; set; } - - /// - /// Gets or Sets OrderLineNbr - /// - [DataMember(Name="OrderLineNbr", EmitDefaultValue=false)] - public IntValue OrderLineNbr { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets OriginalQty - /// - [DataMember(Name="OriginalQty", EmitDefaultValue=false)] - public DecimalValue OriginalQty { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } - - /// - /// Gets or Sets ShippedQty - /// - [DataMember(Name="ShippedQty", EmitDefaultValue=false)] - public DecimalValue ShippedQty { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipmentDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" FreeItem: ").Append(FreeItem).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" OpenQty: ").Append(OpenQty).Append("\n"); - sb.Append(" OrderedQty: ").Append(OrderedQty).Append("\n"); - sb.Append(" OrderLineNbr: ").Append(OrderLineNbr).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" OriginalQty: ").Append(OriginalQty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" ShippedQty: ").Append(ShippedQty).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipmentDetail); - } - - /// - /// Returns true if ShipmentDetail instances are equal - /// - /// Instance of ShipmentDetail to be compared - /// Boolean - public bool Equals(ShipmentDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.FreeItem == input.FreeItem || - (this.FreeItem != null && - this.FreeItem.Equals(input.FreeItem)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.OpenQty == input.OpenQty || - (this.OpenQty != null && - this.OpenQty.Equals(input.OpenQty)) - ) && base.Equals(input) && - ( - this.OrderedQty == input.OrderedQty || - (this.OrderedQty != null && - this.OrderedQty.Equals(input.OrderedQty)) - ) && base.Equals(input) && - ( - this.OrderLineNbr == input.OrderLineNbr || - (this.OrderLineNbr != null && - this.OrderLineNbr.Equals(input.OrderLineNbr)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.OriginalQty == input.OriginalQty || - (this.OriginalQty != null && - this.OriginalQty.Equals(input.OriginalQty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.ShippedQty == input.ShippedQty || - (this.ShippedQty != null && - this.ShippedQty.Equals(input.ShippedQty)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.FreeItem != null) - hashCode = hashCode * 59 + this.FreeItem.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.OpenQty != null) - hashCode = hashCode * 59 + this.OpenQty.GetHashCode(); - if (this.OrderedQty != null) - hashCode = hashCode * 59 + this.OrderedQty.GetHashCode(); - if (this.OrderLineNbr != null) - hashCode = hashCode * 59 + this.OrderLineNbr.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.OriginalQty != null) - hashCode = hashCode * 59 + this.OriginalQty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.ShippedQty != null) - hashCode = hashCode * 59 + this.ShippedQty.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShipmentDetailAllocation.cs b/Default.18.200.001/Model/ShipmentDetailAllocation.cs deleted file mode 100644 index eea3f254..00000000 --- a/Default.18.200.001/Model/ShipmentDetailAllocation.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShipmentDetailAllocation - /// - [DataContract] - public partial class ShipmentDetailAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// expirationDate. - /// inventoryID. - /// locationID. - /// lotSerialNbr. - /// orderNbr. - /// orderType. - /// qty. - /// subitem. - /// uOM. - public ShipmentDetailAllocation(StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue subitem = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.Qty = qty; - this.Subitem = subitem; - this.UOM = uOM; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipmentDetailAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipmentDetailAllocation); - } - - /// - /// Returns true if ShipmentDetailAllocation instances are equal - /// - /// Instance of ShipmentDetailAllocation to be compared - /// Boolean - public bool Equals(ShipmentDetailAllocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShipmentOrderDetail.cs b/Default.18.200.001/Model/ShipmentOrderDetail.cs deleted file mode 100644 index 9e7d03ef..00000000 --- a/Default.18.200.001/Model/ShipmentOrderDetail.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShipmentOrderDetail - /// - [DataContract] - public partial class ShipmentOrderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// inventoryDocType. - /// inventoryRefNbr. - /// invoiceNbr. - /// invoiceType. - /// orderNbr. - /// orderType. - /// shipmentNbr. - /// shipmentType. - /// shippedQty. - /// shippedVolume. - /// shippedWeight. - public ShipmentOrderDetail(StringValue inventoryDocType = default(StringValue), StringValue inventoryRefNbr = default(StringValue), StringValue invoiceNbr = default(StringValue), StringValue invoiceType = default(StringValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), StringValue shipmentNbr = default(StringValue), StringValue shipmentType = default(StringValue), DecimalValue shippedQty = default(DecimalValue), DecimalValue shippedVolume = default(DecimalValue), DecimalValue shippedWeight = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.InventoryDocType = inventoryDocType; - this.InventoryRefNbr = inventoryRefNbr; - this.InvoiceNbr = invoiceNbr; - this.InvoiceType = invoiceType; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.ShipmentNbr = shipmentNbr; - this.ShipmentType = shipmentType; - this.ShippedQty = shippedQty; - this.ShippedVolume = shippedVolume; - this.ShippedWeight = shippedWeight; - } - - /// - /// Gets or Sets InventoryDocType - /// - [DataMember(Name="InventoryDocType", EmitDefaultValue=false)] - public StringValue InventoryDocType { get; set; } - - /// - /// Gets or Sets InventoryRefNbr - /// - [DataMember(Name="InventoryRefNbr", EmitDefaultValue=false)] - public StringValue InventoryRefNbr { get; set; } - - /// - /// Gets or Sets InvoiceNbr - /// - [DataMember(Name="InvoiceNbr", EmitDefaultValue=false)] - public StringValue InvoiceNbr { get; set; } - - /// - /// Gets or Sets InvoiceType - /// - [DataMember(Name="InvoiceType", EmitDefaultValue=false)] - public StringValue InvoiceType { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets ShipmentNbr - /// - [DataMember(Name="ShipmentNbr", EmitDefaultValue=false)] - public StringValue ShipmentNbr { get; set; } - - /// - /// Gets or Sets ShipmentType - /// - [DataMember(Name="ShipmentType", EmitDefaultValue=false)] - public StringValue ShipmentType { get; set; } - - /// - /// Gets or Sets ShippedQty - /// - [DataMember(Name="ShippedQty", EmitDefaultValue=false)] - public DecimalValue ShippedQty { get; set; } - - /// - /// Gets or Sets ShippedVolume - /// - [DataMember(Name="ShippedVolume", EmitDefaultValue=false)] - public DecimalValue ShippedVolume { get; set; } - - /// - /// Gets or Sets ShippedWeight - /// - [DataMember(Name="ShippedWeight", EmitDefaultValue=false)] - public DecimalValue ShippedWeight { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipmentOrderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" InventoryDocType: ").Append(InventoryDocType).Append("\n"); - sb.Append(" InventoryRefNbr: ").Append(InventoryRefNbr).Append("\n"); - sb.Append(" InvoiceNbr: ").Append(InvoiceNbr).Append("\n"); - sb.Append(" InvoiceType: ").Append(InvoiceType).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" ShipmentNbr: ").Append(ShipmentNbr).Append("\n"); - sb.Append(" ShipmentType: ").Append(ShipmentType).Append("\n"); - sb.Append(" ShippedQty: ").Append(ShippedQty).Append("\n"); - sb.Append(" ShippedVolume: ").Append(ShippedVolume).Append("\n"); - sb.Append(" ShippedWeight: ").Append(ShippedWeight).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipmentOrderDetail); - } - - /// - /// Returns true if ShipmentOrderDetail instances are equal - /// - /// Instance of ShipmentOrderDetail to be compared - /// Boolean - public bool Equals(ShipmentOrderDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.InventoryDocType == input.InventoryDocType || - (this.InventoryDocType != null && - this.InventoryDocType.Equals(input.InventoryDocType)) - ) && base.Equals(input) && - ( - this.InventoryRefNbr == input.InventoryRefNbr || - (this.InventoryRefNbr != null && - this.InventoryRefNbr.Equals(input.InventoryRefNbr)) - ) && base.Equals(input) && - ( - this.InvoiceNbr == input.InvoiceNbr || - (this.InvoiceNbr != null && - this.InvoiceNbr.Equals(input.InvoiceNbr)) - ) && base.Equals(input) && - ( - this.InvoiceType == input.InvoiceType || - (this.InvoiceType != null && - this.InvoiceType.Equals(input.InvoiceType)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.ShipmentNbr == input.ShipmentNbr || - (this.ShipmentNbr != null && - this.ShipmentNbr.Equals(input.ShipmentNbr)) - ) && base.Equals(input) && - ( - this.ShipmentType == input.ShipmentType || - (this.ShipmentType != null && - this.ShipmentType.Equals(input.ShipmentType)) - ) && base.Equals(input) && - ( - this.ShippedQty == input.ShippedQty || - (this.ShippedQty != null && - this.ShippedQty.Equals(input.ShippedQty)) - ) && base.Equals(input) && - ( - this.ShippedVolume == input.ShippedVolume || - (this.ShippedVolume != null && - this.ShippedVolume.Equals(input.ShippedVolume)) - ) && base.Equals(input) && - ( - this.ShippedWeight == input.ShippedWeight || - (this.ShippedWeight != null && - this.ShippedWeight.Equals(input.ShippedWeight)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.InventoryDocType != null) - hashCode = hashCode * 59 + this.InventoryDocType.GetHashCode(); - if (this.InventoryRefNbr != null) - hashCode = hashCode * 59 + this.InventoryRefNbr.GetHashCode(); - if (this.InvoiceNbr != null) - hashCode = hashCode * 59 + this.InvoiceNbr.GetHashCode(); - if (this.InvoiceType != null) - hashCode = hashCode * 59 + this.InvoiceType.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.ShipmentNbr != null) - hashCode = hashCode * 59 + this.ShipmentNbr.GetHashCode(); - if (this.ShipmentType != null) - hashCode = hashCode * 59 + this.ShipmentType.GetHashCode(); - if (this.ShippedQty != null) - hashCode = hashCode * 59 + this.ShippedQty.GetHashCode(); - if (this.ShippedVolume != null) - hashCode = hashCode * 59 + this.ShippedVolume.GetHashCode(); - if (this.ShippedWeight != null) - hashCode = hashCode * 59 + this.ShippedWeight.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShipmentPackage.cs b/Default.18.200.001/Model/ShipmentPackage.cs deleted file mode 100644 index 2a5c42f1..00000000 --- a/Default.18.200.001/Model/ShipmentPackage.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShipmentPackage - /// - [DataContract] - public partial class ShipmentPackage : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// boxID. - /// cODAmount. - /// confirmed. - /// customRefNbr1. - /// customRefNbr2. - /// declaredValue. - /// description. - /// trackingNbr. - /// type. - /// uOM. - /// weight. - public ShipmentPackage(StringValue boxID = default(StringValue), DecimalValue cODAmount = default(DecimalValue), BooleanValue confirmed = default(BooleanValue), StringValue customRefNbr1 = default(StringValue), StringValue customRefNbr2 = default(StringValue), DecimalValue declaredValue = default(DecimalValue), StringValue description = default(StringValue), StringValue trackingNbr = default(StringValue), StringValue type = default(StringValue), StringValue uOM = default(StringValue), DecimalValue weight = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BoxID = boxID; - this.CODAmount = cODAmount; - this.Confirmed = confirmed; - this.CustomRefNbr1 = customRefNbr1; - this.CustomRefNbr2 = customRefNbr2; - this.DeclaredValue = declaredValue; - this.Description = description; - this.TrackingNbr = trackingNbr; - this.Type = type; - this.UOM = uOM; - this.Weight = weight; - } - - /// - /// Gets or Sets BoxID - /// - [DataMember(Name="BoxID", EmitDefaultValue=false)] - public StringValue BoxID { get; set; } - - /// - /// Gets or Sets CODAmount - /// - [DataMember(Name="CODAmount", EmitDefaultValue=false)] - public DecimalValue CODAmount { get; set; } - - /// - /// Gets or Sets Confirmed - /// - [DataMember(Name="Confirmed", EmitDefaultValue=false)] - public BooleanValue Confirmed { get; set; } - - /// - /// Gets or Sets CustomRefNbr1 - /// - [DataMember(Name="CustomRefNbr1", EmitDefaultValue=false)] - public StringValue CustomRefNbr1 { get; set; } - - /// - /// Gets or Sets CustomRefNbr2 - /// - [DataMember(Name="CustomRefNbr2", EmitDefaultValue=false)] - public StringValue CustomRefNbr2 { get; set; } - - /// - /// Gets or Sets DeclaredValue - /// - [DataMember(Name="DeclaredValue", EmitDefaultValue=false)] - public DecimalValue DeclaredValue { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets TrackingNbr - /// - [DataMember(Name="TrackingNbr", EmitDefaultValue=false)] - public StringValue TrackingNbr { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets Weight - /// - [DataMember(Name="Weight", EmitDefaultValue=false)] - public DecimalValue Weight { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShipmentPackage {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BoxID: ").Append(BoxID).Append("\n"); - sb.Append(" CODAmount: ").Append(CODAmount).Append("\n"); - sb.Append(" Confirmed: ").Append(Confirmed).Append("\n"); - sb.Append(" CustomRefNbr1: ").Append(CustomRefNbr1).Append("\n"); - sb.Append(" CustomRefNbr2: ").Append(CustomRefNbr2).Append("\n"); - sb.Append(" DeclaredValue: ").Append(DeclaredValue).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" TrackingNbr: ").Append(TrackingNbr).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Weight: ").Append(Weight).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShipmentPackage); - } - - /// - /// Returns true if ShipmentPackage instances are equal - /// - /// Instance of ShipmentPackage to be compared - /// Boolean - public bool Equals(ShipmentPackage input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BoxID == input.BoxID || - (this.BoxID != null && - this.BoxID.Equals(input.BoxID)) - ) && base.Equals(input) && - ( - this.CODAmount == input.CODAmount || - (this.CODAmount != null && - this.CODAmount.Equals(input.CODAmount)) - ) && base.Equals(input) && - ( - this.Confirmed == input.Confirmed || - (this.Confirmed != null && - this.Confirmed.Equals(input.Confirmed)) - ) && base.Equals(input) && - ( - this.CustomRefNbr1 == input.CustomRefNbr1 || - (this.CustomRefNbr1 != null && - this.CustomRefNbr1.Equals(input.CustomRefNbr1)) - ) && base.Equals(input) && - ( - this.CustomRefNbr2 == input.CustomRefNbr2 || - (this.CustomRefNbr2 != null && - this.CustomRefNbr2.Equals(input.CustomRefNbr2)) - ) && base.Equals(input) && - ( - this.DeclaredValue == input.DeclaredValue || - (this.DeclaredValue != null && - this.DeclaredValue.Equals(input.DeclaredValue)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.TrackingNbr == input.TrackingNbr || - (this.TrackingNbr != null && - this.TrackingNbr.Equals(input.TrackingNbr)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Weight == input.Weight || - (this.Weight != null && - this.Weight.Equals(input.Weight)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BoxID != null) - hashCode = hashCode * 59 + this.BoxID.GetHashCode(); - if (this.CODAmount != null) - hashCode = hashCode * 59 + this.CODAmount.GetHashCode(); - if (this.Confirmed != null) - hashCode = hashCode * 59 + this.Confirmed.GetHashCode(); - if (this.CustomRefNbr1 != null) - hashCode = hashCode * 59 + this.CustomRefNbr1.GetHashCode(); - if (this.CustomRefNbr2 != null) - hashCode = hashCode * 59 + this.CustomRefNbr2.GetHashCode(); - if (this.DeclaredValue != null) - hashCode = hashCode * 59 + this.DeclaredValue.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.TrackingNbr != null) - hashCode = hashCode * 59 + this.TrackingNbr.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Weight != null) - hashCode = hashCode * 59 + this.Weight.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShippingBox.cs b/Default.18.200.001/Model/ShippingBox.cs deleted file mode 100644 index cc57308d..00000000 --- a/Default.18.200.001/Model/ShippingBox.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShippingBox - /// - [DataContract] - public partial class ShippingBox : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// activeByDefault. - /// boxID. - /// boxWeight. - /// carriersPackage. - /// description. - /// height. - /// length. - /// maxVolume. - /// maxWeight. - /// volumeUOM. - /// weightUOM. - /// width. - public ShippingBox(BooleanValue activeByDefault = default(BooleanValue), StringValue boxID = default(StringValue), DecimalValue boxWeight = default(DecimalValue), StringValue carriersPackage = default(StringValue), StringValue description = default(StringValue), IntValue height = default(IntValue), IntValue length = default(IntValue), DecimalValue maxVolume = default(DecimalValue), DecimalValue maxWeight = default(DecimalValue), StringValue volumeUOM = default(StringValue), StringValue weightUOM = default(StringValue), IntValue width = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ActiveByDefault = activeByDefault; - this.BoxID = boxID; - this.BoxWeight = boxWeight; - this.CarriersPackage = carriersPackage; - this.Description = description; - this.Height = height; - this.Length = length; - this.MaxVolume = maxVolume; - this.MaxWeight = maxWeight; - this.VolumeUOM = volumeUOM; - this.WeightUOM = weightUOM; - this.Width = width; - } - - /// - /// Gets or Sets ActiveByDefault - /// - [DataMember(Name="ActiveByDefault", EmitDefaultValue=false)] - public BooleanValue ActiveByDefault { get; set; } - - /// - /// Gets or Sets BoxID - /// - [DataMember(Name="BoxID", EmitDefaultValue=false)] - public StringValue BoxID { get; set; } - - /// - /// Gets or Sets BoxWeight - /// - [DataMember(Name="BoxWeight", EmitDefaultValue=false)] - public DecimalValue BoxWeight { get; set; } - - /// - /// Gets or Sets CarriersPackage - /// - [DataMember(Name="CarriersPackage", EmitDefaultValue=false)] - public StringValue CarriersPackage { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Height - /// - [DataMember(Name="Height", EmitDefaultValue=false)] - public IntValue Height { get; set; } - - /// - /// Gets or Sets Length - /// - [DataMember(Name="Length", EmitDefaultValue=false)] - public IntValue Length { get; set; } - - /// - /// Gets or Sets MaxVolume - /// - [DataMember(Name="MaxVolume", EmitDefaultValue=false)] - public DecimalValue MaxVolume { get; set; } - - /// - /// Gets or Sets MaxWeight - /// - [DataMember(Name="MaxWeight", EmitDefaultValue=false)] - public DecimalValue MaxWeight { get; set; } - - /// - /// Gets or Sets VolumeUOM - /// - [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] - public StringValue VolumeUOM { get; set; } - - /// - /// Gets or Sets WeightUOM - /// - [DataMember(Name="WeightUOM", EmitDefaultValue=false)] - public StringValue WeightUOM { get; set; } - - /// - /// Gets or Sets Width - /// - [DataMember(Name="Width", EmitDefaultValue=false)] - public IntValue Width { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingBox {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ActiveByDefault: ").Append(ActiveByDefault).Append("\n"); - sb.Append(" BoxID: ").Append(BoxID).Append("\n"); - sb.Append(" BoxWeight: ").Append(BoxWeight).Append("\n"); - sb.Append(" CarriersPackage: ").Append(CarriersPackage).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Height: ").Append(Height).Append("\n"); - sb.Append(" Length: ").Append(Length).Append("\n"); - sb.Append(" MaxVolume: ").Append(MaxVolume).Append("\n"); - sb.Append(" MaxWeight: ").Append(MaxWeight).Append("\n"); - sb.Append(" VolumeUOM: ").Append(VolumeUOM).Append("\n"); - sb.Append(" WeightUOM: ").Append(WeightUOM).Append("\n"); - sb.Append(" Width: ").Append(Width).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingBox); - } - - /// - /// Returns true if ShippingBox instances are equal - /// - /// Instance of ShippingBox to be compared - /// Boolean - public bool Equals(ShippingBox input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ActiveByDefault == input.ActiveByDefault || - (this.ActiveByDefault != null && - this.ActiveByDefault.Equals(input.ActiveByDefault)) - ) && base.Equals(input) && - ( - this.BoxID == input.BoxID || - (this.BoxID != null && - this.BoxID.Equals(input.BoxID)) - ) && base.Equals(input) && - ( - this.BoxWeight == input.BoxWeight || - (this.BoxWeight != null && - this.BoxWeight.Equals(input.BoxWeight)) - ) && base.Equals(input) && - ( - this.CarriersPackage == input.CarriersPackage || - (this.CarriersPackage != null && - this.CarriersPackage.Equals(input.CarriersPackage)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Height == input.Height || - (this.Height != null && - this.Height.Equals(input.Height)) - ) && base.Equals(input) && - ( - this.Length == input.Length || - (this.Length != null && - this.Length.Equals(input.Length)) - ) && base.Equals(input) && - ( - this.MaxVolume == input.MaxVolume || - (this.MaxVolume != null && - this.MaxVolume.Equals(input.MaxVolume)) - ) && base.Equals(input) && - ( - this.MaxWeight == input.MaxWeight || - (this.MaxWeight != null && - this.MaxWeight.Equals(input.MaxWeight)) - ) && base.Equals(input) && - ( - this.VolumeUOM == input.VolumeUOM || - (this.VolumeUOM != null && - this.VolumeUOM.Equals(input.VolumeUOM)) - ) && base.Equals(input) && - ( - this.WeightUOM == input.WeightUOM || - (this.WeightUOM != null && - this.WeightUOM.Equals(input.WeightUOM)) - ) && base.Equals(input) && - ( - this.Width == input.Width || - (this.Width != null && - this.Width.Equals(input.Width)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ActiveByDefault != null) - hashCode = hashCode * 59 + this.ActiveByDefault.GetHashCode(); - if (this.BoxID != null) - hashCode = hashCode * 59 + this.BoxID.GetHashCode(); - if (this.BoxWeight != null) - hashCode = hashCode * 59 + this.BoxWeight.GetHashCode(); - if (this.CarriersPackage != null) - hashCode = hashCode * 59 + this.CarriersPackage.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Height != null) - hashCode = hashCode * 59 + this.Height.GetHashCode(); - if (this.Length != null) - hashCode = hashCode * 59 + this.Length.GetHashCode(); - if (this.MaxVolume != null) - hashCode = hashCode * 59 + this.MaxVolume.GetHashCode(); - if (this.MaxWeight != null) - hashCode = hashCode * 59 + this.MaxWeight.GetHashCode(); - if (this.VolumeUOM != null) - hashCode = hashCode * 59 + this.VolumeUOM.GetHashCode(); - if (this.WeightUOM != null) - hashCode = hashCode * 59 + this.WeightUOM.GetHashCode(); - if (this.Width != null) - hashCode = hashCode * 59 + this.Width.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShippingInstructions.cs b/Default.18.200.001/Model/ShippingInstructions.cs deleted file mode 100644 index 637a9df1..00000000 --- a/Default.18.200.001/Model/ShippingInstructions.cs +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShippingInstructions - /// - [DataContract] - public partial class ShippingInstructions : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// shippingDestinationType. - /// shippingLocation. - /// shipTo. - /// shipToAddress. - /// shipToAddressOverride. - /// shipToAddressValidated. - /// shipToContact. - /// shipToContactOverride. - /// warehouse. - public ShippingInstructions(StringValue shippingDestinationType = default(StringValue), StringValue shippingLocation = default(StringValue), StringValue shipTo = default(StringValue), Address shipToAddress = default(Address), BooleanValue shipToAddressOverride = default(BooleanValue), BooleanValue shipToAddressValidated = default(BooleanValue), DocContact shipToContact = default(DocContact), BooleanValue shipToContactOverride = default(BooleanValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ShippingDestinationType = shippingDestinationType; - this.ShippingLocation = shippingLocation; - this.ShipTo = shipTo; - this.ShipToAddress = shipToAddress; - this.ShipToAddressOverride = shipToAddressOverride; - this.ShipToAddressValidated = shipToAddressValidated; - this.ShipToContact = shipToContact; - this.ShipToContactOverride = shipToContactOverride; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets ShippingDestinationType - /// - [DataMember(Name="ShippingDestinationType", EmitDefaultValue=false)] - public StringValue ShippingDestinationType { get; set; } - - /// - /// Gets or Sets ShippingLocation - /// - [DataMember(Name="ShippingLocation", EmitDefaultValue=false)] - public StringValue ShippingLocation { get; set; } - - /// - /// Gets or Sets ShipTo - /// - [DataMember(Name="ShipTo", EmitDefaultValue=false)] - public StringValue ShipTo { get; set; } - - /// - /// Gets or Sets ShipToAddress - /// - [DataMember(Name="ShipToAddress", EmitDefaultValue=false)] - public Address ShipToAddress { get; set; } - - /// - /// Gets or Sets ShipToAddressOverride - /// - [DataMember(Name="ShipToAddressOverride", EmitDefaultValue=false)] - public BooleanValue ShipToAddressOverride { get; set; } - - /// - /// Gets or Sets ShipToAddressValidated - /// - [DataMember(Name="ShipToAddressValidated", EmitDefaultValue=false)] - public BooleanValue ShipToAddressValidated { get; set; } - - /// - /// Gets or Sets ShipToContact - /// - [DataMember(Name="ShipToContact", EmitDefaultValue=false)] - public DocContact ShipToContact { get; set; } - - /// - /// Gets or Sets ShipToContactOverride - /// - [DataMember(Name="ShipToContactOverride", EmitDefaultValue=false)] - public BooleanValue ShipToContactOverride { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingInstructions {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ShippingDestinationType: ").Append(ShippingDestinationType).Append("\n"); - sb.Append(" ShippingLocation: ").Append(ShippingLocation).Append("\n"); - sb.Append(" ShipTo: ").Append(ShipTo).Append("\n"); - sb.Append(" ShipToAddress: ").Append(ShipToAddress).Append("\n"); - sb.Append(" ShipToAddressOverride: ").Append(ShipToAddressOverride).Append("\n"); - sb.Append(" ShipToAddressValidated: ").Append(ShipToAddressValidated).Append("\n"); - sb.Append(" ShipToContact: ").Append(ShipToContact).Append("\n"); - sb.Append(" ShipToContactOverride: ").Append(ShipToContactOverride).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingInstructions); - } - - /// - /// Returns true if ShippingInstructions instances are equal - /// - /// Instance of ShippingInstructions to be compared - /// Boolean - public bool Equals(ShippingInstructions input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ShippingDestinationType == input.ShippingDestinationType || - (this.ShippingDestinationType != null && - this.ShippingDestinationType.Equals(input.ShippingDestinationType)) - ) && base.Equals(input) && - ( - this.ShippingLocation == input.ShippingLocation || - (this.ShippingLocation != null && - this.ShippingLocation.Equals(input.ShippingLocation)) - ) && base.Equals(input) && - ( - this.ShipTo == input.ShipTo || - (this.ShipTo != null && - this.ShipTo.Equals(input.ShipTo)) - ) && base.Equals(input) && - ( - this.ShipToAddress == input.ShipToAddress || - (this.ShipToAddress != null && - this.ShipToAddress.Equals(input.ShipToAddress)) - ) && base.Equals(input) && - ( - this.ShipToAddressOverride == input.ShipToAddressOverride || - (this.ShipToAddressOverride != null && - this.ShipToAddressOverride.Equals(input.ShipToAddressOverride)) - ) && base.Equals(input) && - ( - this.ShipToAddressValidated == input.ShipToAddressValidated || - (this.ShipToAddressValidated != null && - this.ShipToAddressValidated.Equals(input.ShipToAddressValidated)) - ) && base.Equals(input) && - ( - this.ShipToContact == input.ShipToContact || - (this.ShipToContact != null && - this.ShipToContact.Equals(input.ShipToContact)) - ) && base.Equals(input) && - ( - this.ShipToContactOverride == input.ShipToContactOverride || - (this.ShipToContactOverride != null && - this.ShipToContactOverride.Equals(input.ShipToContactOverride)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ShippingDestinationType != null) - hashCode = hashCode * 59 + this.ShippingDestinationType.GetHashCode(); - if (this.ShippingLocation != null) - hashCode = hashCode * 59 + this.ShippingLocation.GetHashCode(); - if (this.ShipTo != null) - hashCode = hashCode * 59 + this.ShipTo.GetHashCode(); - if (this.ShipToAddress != null) - hashCode = hashCode * 59 + this.ShipToAddress.GetHashCode(); - if (this.ShipToAddressOverride != null) - hashCode = hashCode * 59 + this.ShipToAddressOverride.GetHashCode(); - if (this.ShipToAddressValidated != null) - hashCode = hashCode * 59 + this.ShipToAddressValidated.GetHashCode(); - if (this.ShipToContact != null) - hashCode = hashCode * 59 + this.ShipToContact.GetHashCode(); - if (this.ShipToContactOverride != null) - hashCode = hashCode * 59 + this.ShipToContactOverride.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShippingSettings.cs b/Default.18.200.001/Model/ShippingSettings.cs deleted file mode 100644 index 17c46f2a..00000000 --- a/Default.18.200.001/Model/ShippingSettings.cs +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShippingSettings - /// - [DataContract] - public partial class ShippingSettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// cancelByDate. - /// canceled. - /// fOBPoint. - /// groundCollect. - /// insurance. - /// preferredWarehouseID. - /// priority. - /// residentialDelivery. - /// saturdayDelivery. - /// scheduledShipmentDate. - /// shippingRule. - /// shippingTerms. - /// shippingZone. - /// shipSeparately. - /// shipVia. - /// shopForRates. - /// useCustomersAccount. - public ShippingSettings(DateTimeValue cancelByDate = default(DateTimeValue), BooleanValue canceled = default(BooleanValue), StringValue fOBPoint = default(StringValue), BooleanValue groundCollect = default(BooleanValue), BooleanValue insurance = default(BooleanValue), StringValue preferredWarehouseID = default(StringValue), ShortValue priority = default(ShortValue), BooleanValue residentialDelivery = default(BooleanValue), BooleanValue saturdayDelivery = default(BooleanValue), DateTimeValue scheduledShipmentDate = default(DateTimeValue), StringValue shippingRule = default(StringValue), StringValue shippingTerms = default(StringValue), StringValue shippingZone = default(StringValue), BooleanValue shipSeparately = default(BooleanValue), StringValue shipVia = default(StringValue), ShopForRates shopForRates = default(ShopForRates), BooleanValue useCustomersAccount = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CancelByDate = cancelByDate; - this.Canceled = canceled; - this.FOBPoint = fOBPoint; - this.GroundCollect = groundCollect; - this.Insurance = insurance; - this.PreferredWarehouseID = preferredWarehouseID; - this.Priority = priority; - this.ResidentialDelivery = residentialDelivery; - this.SaturdayDelivery = saturdayDelivery; - this.ScheduledShipmentDate = scheduledShipmentDate; - this.ShippingRule = shippingRule; - this.ShippingTerms = shippingTerms; - this.ShippingZone = shippingZone; - this.ShipSeparately = shipSeparately; - this.ShipVia = shipVia; - this.ShopForRates = shopForRates; - this.UseCustomersAccount = useCustomersAccount; - } - - /// - /// Gets or Sets CancelByDate - /// - [DataMember(Name="CancelByDate", EmitDefaultValue=false)] - public DateTimeValue CancelByDate { get; set; } - - /// - /// Gets or Sets Canceled - /// - [DataMember(Name="Canceled", EmitDefaultValue=false)] - public BooleanValue Canceled { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets GroundCollect - /// - [DataMember(Name="GroundCollect", EmitDefaultValue=false)] - public BooleanValue GroundCollect { get; set; } - - /// - /// Gets or Sets Insurance - /// - [DataMember(Name="Insurance", EmitDefaultValue=false)] - public BooleanValue Insurance { get; set; } - - /// - /// Gets or Sets PreferredWarehouseID - /// - [DataMember(Name="PreferredWarehouseID", EmitDefaultValue=false)] - public StringValue PreferredWarehouseID { get; set; } - - /// - /// Gets or Sets Priority - /// - [DataMember(Name="Priority", EmitDefaultValue=false)] - public ShortValue Priority { get; set; } - - /// - /// Gets or Sets ResidentialDelivery - /// - [DataMember(Name="ResidentialDelivery", EmitDefaultValue=false)] - public BooleanValue ResidentialDelivery { get; set; } - - /// - /// Gets or Sets SaturdayDelivery - /// - [DataMember(Name="SaturdayDelivery", EmitDefaultValue=false)] - public BooleanValue SaturdayDelivery { get; set; } - - /// - /// Gets or Sets ScheduledShipmentDate - /// - [DataMember(Name="ScheduledShipmentDate", EmitDefaultValue=false)] - public DateTimeValue ScheduledShipmentDate { get; set; } - - /// - /// Gets or Sets ShippingRule - /// - [DataMember(Name="ShippingRule", EmitDefaultValue=false)] - public StringValue ShippingRule { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShippingZone - /// - [DataMember(Name="ShippingZone", EmitDefaultValue=false)] - public StringValue ShippingZone { get; set; } - - /// - /// Gets or Sets ShipSeparately - /// - [DataMember(Name="ShipSeparately", EmitDefaultValue=false)] - public BooleanValue ShipSeparately { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets ShopForRates - /// - [DataMember(Name="ShopForRates", EmitDefaultValue=false)] - public ShopForRates ShopForRates { get; set; } - - /// - /// Gets or Sets UseCustomersAccount - /// - [DataMember(Name="UseCustomersAccount", EmitDefaultValue=false)] - public BooleanValue UseCustomersAccount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingSettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CancelByDate: ").Append(CancelByDate).Append("\n"); - sb.Append(" Canceled: ").Append(Canceled).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" GroundCollect: ").Append(GroundCollect).Append("\n"); - sb.Append(" Insurance: ").Append(Insurance).Append("\n"); - sb.Append(" PreferredWarehouseID: ").Append(PreferredWarehouseID).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" ResidentialDelivery: ").Append(ResidentialDelivery).Append("\n"); - sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n"); - sb.Append(" ScheduledShipmentDate: ").Append(ScheduledShipmentDate).Append("\n"); - sb.Append(" ShippingRule: ").Append(ShippingRule).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShippingZone: ").Append(ShippingZone).Append("\n"); - sb.Append(" ShipSeparately: ").Append(ShipSeparately).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" ShopForRates: ").Append(ShopForRates).Append("\n"); - sb.Append(" UseCustomersAccount: ").Append(UseCustomersAccount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingSettings); - } - - /// - /// Returns true if ShippingSettings instances are equal - /// - /// Instance of ShippingSettings to be compared - /// Boolean - public bool Equals(ShippingSettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CancelByDate == input.CancelByDate || - (this.CancelByDate != null && - this.CancelByDate.Equals(input.CancelByDate)) - ) && base.Equals(input) && - ( - this.Canceled == input.Canceled || - (this.Canceled != null && - this.Canceled.Equals(input.Canceled)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.GroundCollect == input.GroundCollect || - (this.GroundCollect != null && - this.GroundCollect.Equals(input.GroundCollect)) - ) && base.Equals(input) && - ( - this.Insurance == input.Insurance || - (this.Insurance != null && - this.Insurance.Equals(input.Insurance)) - ) && base.Equals(input) && - ( - this.PreferredWarehouseID == input.PreferredWarehouseID || - (this.PreferredWarehouseID != null && - this.PreferredWarehouseID.Equals(input.PreferredWarehouseID)) - ) && base.Equals(input) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && base.Equals(input) && - ( - this.ResidentialDelivery == input.ResidentialDelivery || - (this.ResidentialDelivery != null && - this.ResidentialDelivery.Equals(input.ResidentialDelivery)) - ) && base.Equals(input) && - ( - this.SaturdayDelivery == input.SaturdayDelivery || - (this.SaturdayDelivery != null && - this.SaturdayDelivery.Equals(input.SaturdayDelivery)) - ) && base.Equals(input) && - ( - this.ScheduledShipmentDate == input.ScheduledShipmentDate || - (this.ScheduledShipmentDate != null && - this.ScheduledShipmentDate.Equals(input.ScheduledShipmentDate)) - ) && base.Equals(input) && - ( - this.ShippingRule == input.ShippingRule || - (this.ShippingRule != null && - this.ShippingRule.Equals(input.ShippingRule)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShippingZone == input.ShippingZone || - (this.ShippingZone != null && - this.ShippingZone.Equals(input.ShippingZone)) - ) && base.Equals(input) && - ( - this.ShipSeparately == input.ShipSeparately || - (this.ShipSeparately != null && - this.ShipSeparately.Equals(input.ShipSeparately)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.ShopForRates == input.ShopForRates || - (this.ShopForRates != null && - this.ShopForRates.Equals(input.ShopForRates)) - ) && base.Equals(input) && - ( - this.UseCustomersAccount == input.UseCustomersAccount || - (this.UseCustomersAccount != null && - this.UseCustomersAccount.Equals(input.UseCustomersAccount)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CancelByDate != null) - hashCode = hashCode * 59 + this.CancelByDate.GetHashCode(); - if (this.Canceled != null) - hashCode = hashCode * 59 + this.Canceled.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.GroundCollect != null) - hashCode = hashCode * 59 + this.GroundCollect.GetHashCode(); - if (this.Insurance != null) - hashCode = hashCode * 59 + this.Insurance.GetHashCode(); - if (this.PreferredWarehouseID != null) - hashCode = hashCode * 59 + this.PreferredWarehouseID.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.ResidentialDelivery != null) - hashCode = hashCode * 59 + this.ResidentialDelivery.GetHashCode(); - if (this.SaturdayDelivery != null) - hashCode = hashCode * 59 + this.SaturdayDelivery.GetHashCode(); - if (this.ScheduledShipmentDate != null) - hashCode = hashCode * 59 + this.ScheduledShipmentDate.GetHashCode(); - if (this.ShippingRule != null) - hashCode = hashCode * 59 + this.ShippingRule.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShippingZone != null) - hashCode = hashCode * 59 + this.ShippingZone.GetHashCode(); - if (this.ShipSeparately != null) - hashCode = hashCode * 59 + this.ShipSeparately.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.ShopForRates != null) - hashCode = hashCode * 59 + this.ShopForRates.GetHashCode(); - if (this.UseCustomersAccount != null) - hashCode = hashCode * 59 + this.UseCustomersAccount.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShippingTerm.cs b/Default.18.200.001/Model/ShippingTerm.cs deleted file mode 100644 index 8363fbcb..00000000 --- a/Default.18.200.001/Model/ShippingTerm.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShippingTerm - /// - [DataContract] - public partial class ShippingTerm : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// details. - /// termID. - public ShippingTerm(StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), StringValue termID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.Details = details; - this.TermID = termID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets TermID - /// - [DataMember(Name="TermID", EmitDefaultValue=false)] - public StringValue TermID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingTerm {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" TermID: ").Append(TermID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingTerm); - } - - /// - /// Returns true if ShippingTerm instances are equal - /// - /// Instance of ShippingTerm to be compared - /// Boolean - public bool Equals(ShippingTerm input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.TermID == input.TermID || - (this.TermID != null && - this.TermID.Equals(input.TermID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.TermID != null) - hashCode = hashCode * 59 + this.TermID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShippingTermDetail.cs b/Default.18.200.001/Model/ShippingTermDetail.cs deleted file mode 100644 index e991f9c4..00000000 --- a/Default.18.200.001/Model/ShippingTermDetail.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShippingTermDetail - /// - [DataContract] - public partial class ShippingTermDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakAmount. - /// freightCost. - /// invoiceAmount. - /// lineHandling. - /// lineNbr. - /// shippingandHandling. - public ShippingTermDetail(DecimalValue breakAmount = default(DecimalValue), DecimalValue freightCost = default(DecimalValue), DecimalValue invoiceAmount = default(DecimalValue), DecimalValue lineHandling = default(DecimalValue), IntValue lineNbr = default(IntValue), DecimalValue shippingandHandling = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakAmount = breakAmount; - this.FreightCost = freightCost; - this.InvoiceAmount = invoiceAmount; - this.LineHandling = lineHandling; - this.LineNbr = lineNbr; - this.ShippingandHandling = shippingandHandling; - } - - /// - /// Gets or Sets BreakAmount - /// - [DataMember(Name="BreakAmount", EmitDefaultValue=false)] - public DecimalValue BreakAmount { get; set; } - - /// - /// Gets or Sets FreightCost - /// - [DataMember(Name="FreightCost", EmitDefaultValue=false)] - public DecimalValue FreightCost { get; set; } - - /// - /// Gets or Sets InvoiceAmount - /// - [DataMember(Name="InvoiceAmount", EmitDefaultValue=false)] - public DecimalValue InvoiceAmount { get; set; } - - /// - /// Gets or Sets LineHandling - /// - [DataMember(Name="LineHandling", EmitDefaultValue=false)] - public DecimalValue LineHandling { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets ShippingandHandling - /// - [DataMember(Name="ShippingandHandling", EmitDefaultValue=false)] - public DecimalValue ShippingandHandling { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingTermDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakAmount: ").Append(BreakAmount).Append("\n"); - sb.Append(" FreightCost: ").Append(FreightCost).Append("\n"); - sb.Append(" InvoiceAmount: ").Append(InvoiceAmount).Append("\n"); - sb.Append(" LineHandling: ").Append(LineHandling).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" ShippingandHandling: ").Append(ShippingandHandling).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingTermDetail); - } - - /// - /// Returns true if ShippingTermDetail instances are equal - /// - /// Instance of ShippingTermDetail to be compared - /// Boolean - public bool Equals(ShippingTermDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BreakAmount == input.BreakAmount || - (this.BreakAmount != null && - this.BreakAmount.Equals(input.BreakAmount)) - ) && base.Equals(input) && - ( - this.FreightCost == input.FreightCost || - (this.FreightCost != null && - this.FreightCost.Equals(input.FreightCost)) - ) && base.Equals(input) && - ( - this.InvoiceAmount == input.InvoiceAmount || - (this.InvoiceAmount != null && - this.InvoiceAmount.Equals(input.InvoiceAmount)) - ) && base.Equals(input) && - ( - this.LineHandling == input.LineHandling || - (this.LineHandling != null && - this.LineHandling.Equals(input.LineHandling)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.ShippingandHandling == input.ShippingandHandling || - (this.ShippingandHandling != null && - this.ShippingandHandling.Equals(input.ShippingandHandling)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakAmount != null) - hashCode = hashCode * 59 + this.BreakAmount.GetHashCode(); - if (this.FreightCost != null) - hashCode = hashCode * 59 + this.FreightCost.GetHashCode(); - if (this.InvoiceAmount != null) - hashCode = hashCode * 59 + this.InvoiceAmount.GetHashCode(); - if (this.LineHandling != null) - hashCode = hashCode * 59 + this.LineHandling.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.ShippingandHandling != null) - hashCode = hashCode * 59 + this.ShippingandHandling.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShippingZones.cs b/Default.18.200.001/Model/ShippingZones.cs deleted file mode 100644 index ad144a45..00000000 --- a/Default.18.200.001/Model/ShippingZones.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShippingZones - /// - [DataContract] - public partial class ShippingZones : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// description. - /// zoneID. - public ShippingZones(StringValue description = default(StringValue), StringValue zoneID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Description = description; - this.ZoneID = zoneID; - } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ZoneID - /// - [DataMember(Name="ZoneID", EmitDefaultValue=false)] - public StringValue ZoneID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShippingZones {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ZoneID: ").Append(ZoneID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShippingZones); - } - - /// - /// Returns true if ShippingZones instances are equal - /// - /// Instance of ShippingZones to be compared - /// Boolean - public bool Equals(ShippingZones input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ZoneID == input.ZoneID || - (this.ZoneID != null && - this.ZoneID.Equals(input.ZoneID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ZoneID != null) - hashCode = hashCode * 59 + this.ZoneID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/ShopForRates.cs b/Default.18.200.001/Model/ShopForRates.cs deleted file mode 100644 index 9ab0244f..00000000 --- a/Default.18.200.001/Model/ShopForRates.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// ShopForRates - /// - [DataContract] - public partial class ShopForRates : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// isManualPackage. - /// orderWeight. - /// packageWeight. - public ShopForRates(BooleanValue isManualPackage = default(BooleanValue), DecimalValue orderWeight = default(DecimalValue), DecimalValue packageWeight = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.IsManualPackage = isManualPackage; - this.OrderWeight = orderWeight; - this.PackageWeight = packageWeight; - } - - /// - /// Gets or Sets IsManualPackage - /// - [DataMember(Name="IsManualPackage", EmitDefaultValue=false)] - public BooleanValue IsManualPackage { get; set; } - - /// - /// Gets or Sets OrderWeight - /// - [DataMember(Name="OrderWeight", EmitDefaultValue=false)] - public DecimalValue OrderWeight { get; set; } - - /// - /// Gets or Sets PackageWeight - /// - [DataMember(Name="PackageWeight", EmitDefaultValue=false)] - public DecimalValue PackageWeight { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ShopForRates {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" IsManualPackage: ").Append(IsManualPackage).Append("\n"); - sb.Append(" OrderWeight: ").Append(OrderWeight).Append("\n"); - sb.Append(" PackageWeight: ").Append(PackageWeight).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ShopForRates); - } - - /// - /// Returns true if ShopForRates instances are equal - /// - /// Instance of ShopForRates to be compared - /// Boolean - public bool Equals(ShopForRates input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.IsManualPackage == input.IsManualPackage || - (this.IsManualPackage != null && - this.IsManualPackage.Equals(input.IsManualPackage)) - ) && base.Equals(input) && - ( - this.OrderWeight == input.OrderWeight || - (this.OrderWeight != null && - this.OrderWeight.Equals(input.OrderWeight)) - ) && base.Equals(input) && - ( - this.PackageWeight == input.PackageWeight || - (this.PackageWeight != null && - this.PackageWeight.Equals(input.PackageWeight)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.IsManualPackage != null) - hashCode = hashCode * 59 + this.IsManualPackage.GetHashCode(); - if (this.OrderWeight != null) - hashCode = hashCode * 59 + this.OrderWeight.GetHashCode(); - if (this.PackageWeight != null) - hashCode = hashCode * 59 + this.PackageWeight.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/StatementCycle.cs b/Default.18.200.001/Model/StatementCycle.cs deleted file mode 100644 index ee878ec8..00000000 --- a/Default.18.200.001/Model/StatementCycle.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// StatementCycle - /// - [DataContract] - public partial class StatementCycle : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// agingPeriod1EndDay. - /// agingPeriod1Message. - /// agingPeriod2EndDay. - /// agingPeriod2Message. - /// agingPeriod3EndDay. - /// agingPeriod3Message. - /// agingPeriod4Message. - /// applyOverdueCharges. - /// createdDateTime. - /// cycleID. - /// dayOfMonth. - /// dayOfMonth1. - /// description. - /// lastModifiedDateTime. - /// lastStatementDate. - /// overdueChargeID. - /// prepareOn. - /// requireOverdueChargesCalculationBeforeStatement. - /// requirePaymentApplicationBeforeStatementProcessing. - public StatementCycle(ShortValue agingPeriod1EndDay = default(ShortValue), StringValue agingPeriod1Message = default(StringValue), ShortValue agingPeriod2EndDay = default(ShortValue), StringValue agingPeriod2Message = default(StringValue), ShortValue agingPeriod3EndDay = default(ShortValue), StringValue agingPeriod3Message = default(StringValue), StringValue agingPeriod4Message = default(StringValue), BooleanValue applyOverdueCharges = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue cycleID = default(StringValue), ShortValue dayOfMonth = default(ShortValue), ShortValue dayOfMonth1 = default(ShortValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DateTimeValue lastStatementDate = default(DateTimeValue), StringValue overdueChargeID = default(StringValue), StringValue prepareOn = default(StringValue), BooleanValue requireOverdueChargesCalculationBeforeStatement = default(BooleanValue), BooleanValue requirePaymentApplicationBeforeStatementProcessing = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AgingPeriod1EndDay = agingPeriod1EndDay; - this.AgingPeriod1Message = agingPeriod1Message; - this.AgingPeriod2EndDay = agingPeriod2EndDay; - this.AgingPeriod2Message = agingPeriod2Message; - this.AgingPeriod3EndDay = agingPeriod3EndDay; - this.AgingPeriod3Message = agingPeriod3Message; - this.AgingPeriod4Message = agingPeriod4Message; - this.ApplyOverdueCharges = applyOverdueCharges; - this.CreatedDateTime = createdDateTime; - this.CycleID = cycleID; - this.DayOfMonth = dayOfMonth; - this.DayOfMonth1 = dayOfMonth1; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LastStatementDate = lastStatementDate; - this.OverdueChargeID = overdueChargeID; - this.PrepareOn = prepareOn; - this.RequireOverdueChargesCalculationBeforeStatement = requireOverdueChargesCalculationBeforeStatement; - this.RequirePaymentApplicationBeforeStatementProcessing = requirePaymentApplicationBeforeStatementProcessing; - } - - /// - /// Gets or Sets AgingPeriod1EndDay - /// - [DataMember(Name="AgingPeriod1EndDay", EmitDefaultValue=false)] - public ShortValue AgingPeriod1EndDay { get; set; } - - /// - /// Gets or Sets AgingPeriod1Message - /// - [DataMember(Name="AgingPeriod1Message", EmitDefaultValue=false)] - public StringValue AgingPeriod1Message { get; set; } - - /// - /// Gets or Sets AgingPeriod2EndDay - /// - [DataMember(Name="AgingPeriod2EndDay", EmitDefaultValue=false)] - public ShortValue AgingPeriod2EndDay { get; set; } - - /// - /// Gets or Sets AgingPeriod2Message - /// - [DataMember(Name="AgingPeriod2Message", EmitDefaultValue=false)] - public StringValue AgingPeriod2Message { get; set; } - - /// - /// Gets or Sets AgingPeriod3EndDay - /// - [DataMember(Name="AgingPeriod3EndDay", EmitDefaultValue=false)] - public ShortValue AgingPeriod3EndDay { get; set; } - - /// - /// Gets or Sets AgingPeriod3Message - /// - [DataMember(Name="AgingPeriod3Message", EmitDefaultValue=false)] - public StringValue AgingPeriod3Message { get; set; } - - /// - /// Gets or Sets AgingPeriod4Message - /// - [DataMember(Name="AgingPeriod4Message", EmitDefaultValue=false)] - public StringValue AgingPeriod4Message { get; set; } - - /// - /// Gets or Sets ApplyOverdueCharges - /// - [DataMember(Name="ApplyOverdueCharges", EmitDefaultValue=false)] - public BooleanValue ApplyOverdueCharges { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CycleID - /// - [DataMember(Name="CycleID", EmitDefaultValue=false)] - public StringValue CycleID { get; set; } - - /// - /// Gets or Sets DayOfMonth - /// - [DataMember(Name="DayOfMonth", EmitDefaultValue=false)] - public ShortValue DayOfMonth { get; set; } - - /// - /// Gets or Sets DayOfMonth1 - /// - [DataMember(Name="DayOfMonth1", EmitDefaultValue=false)] - public ShortValue DayOfMonth1 { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LastStatementDate - /// - [DataMember(Name="LastStatementDate", EmitDefaultValue=false)] - public DateTimeValue LastStatementDate { get; set; } - - /// - /// Gets or Sets OverdueChargeID - /// - [DataMember(Name="OverdueChargeID", EmitDefaultValue=false)] - public StringValue OverdueChargeID { get; set; } - - /// - /// Gets or Sets PrepareOn - /// - [DataMember(Name="PrepareOn", EmitDefaultValue=false)] - public StringValue PrepareOn { get; set; } - - /// - /// Gets or Sets RequireOverdueChargesCalculationBeforeStatement - /// - [DataMember(Name="RequireOverdueChargesCalculationBeforeStatement", EmitDefaultValue=false)] - public BooleanValue RequireOverdueChargesCalculationBeforeStatement { get; set; } - - /// - /// Gets or Sets RequirePaymentApplicationBeforeStatementProcessing - /// - [DataMember(Name="RequirePaymentApplicationBeforeStatementProcessing", EmitDefaultValue=false)] - public BooleanValue RequirePaymentApplicationBeforeStatementProcessing { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StatementCycle {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AgingPeriod1EndDay: ").Append(AgingPeriod1EndDay).Append("\n"); - sb.Append(" AgingPeriod1Message: ").Append(AgingPeriod1Message).Append("\n"); - sb.Append(" AgingPeriod2EndDay: ").Append(AgingPeriod2EndDay).Append("\n"); - sb.Append(" AgingPeriod2Message: ").Append(AgingPeriod2Message).Append("\n"); - sb.Append(" AgingPeriod3EndDay: ").Append(AgingPeriod3EndDay).Append("\n"); - sb.Append(" AgingPeriod3Message: ").Append(AgingPeriod3Message).Append("\n"); - sb.Append(" AgingPeriod4Message: ").Append(AgingPeriod4Message).Append("\n"); - sb.Append(" ApplyOverdueCharges: ").Append(ApplyOverdueCharges).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CycleID: ").Append(CycleID).Append("\n"); - sb.Append(" DayOfMonth: ").Append(DayOfMonth).Append("\n"); - sb.Append(" DayOfMonth1: ").Append(DayOfMonth1).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LastStatementDate: ").Append(LastStatementDate).Append("\n"); - sb.Append(" OverdueChargeID: ").Append(OverdueChargeID).Append("\n"); - sb.Append(" PrepareOn: ").Append(PrepareOn).Append("\n"); - sb.Append(" RequireOverdueChargesCalculationBeforeStatement: ").Append(RequireOverdueChargesCalculationBeforeStatement).Append("\n"); - sb.Append(" RequirePaymentApplicationBeforeStatementProcessing: ").Append(RequirePaymentApplicationBeforeStatementProcessing).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StatementCycle); - } - - /// - /// Returns true if StatementCycle instances are equal - /// - /// Instance of StatementCycle to be compared - /// Boolean - public bool Equals(StatementCycle input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AgingPeriod1EndDay == input.AgingPeriod1EndDay || - (this.AgingPeriod1EndDay != null && - this.AgingPeriod1EndDay.Equals(input.AgingPeriod1EndDay)) - ) && base.Equals(input) && - ( - this.AgingPeriod1Message == input.AgingPeriod1Message || - (this.AgingPeriod1Message != null && - this.AgingPeriod1Message.Equals(input.AgingPeriod1Message)) - ) && base.Equals(input) && - ( - this.AgingPeriod2EndDay == input.AgingPeriod2EndDay || - (this.AgingPeriod2EndDay != null && - this.AgingPeriod2EndDay.Equals(input.AgingPeriod2EndDay)) - ) && base.Equals(input) && - ( - this.AgingPeriod2Message == input.AgingPeriod2Message || - (this.AgingPeriod2Message != null && - this.AgingPeriod2Message.Equals(input.AgingPeriod2Message)) - ) && base.Equals(input) && - ( - this.AgingPeriod3EndDay == input.AgingPeriod3EndDay || - (this.AgingPeriod3EndDay != null && - this.AgingPeriod3EndDay.Equals(input.AgingPeriod3EndDay)) - ) && base.Equals(input) && - ( - this.AgingPeriod3Message == input.AgingPeriod3Message || - (this.AgingPeriod3Message != null && - this.AgingPeriod3Message.Equals(input.AgingPeriod3Message)) - ) && base.Equals(input) && - ( - this.AgingPeriod4Message == input.AgingPeriod4Message || - (this.AgingPeriod4Message != null && - this.AgingPeriod4Message.Equals(input.AgingPeriod4Message)) - ) && base.Equals(input) && - ( - this.ApplyOverdueCharges == input.ApplyOverdueCharges || - (this.ApplyOverdueCharges != null && - this.ApplyOverdueCharges.Equals(input.ApplyOverdueCharges)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CycleID == input.CycleID || - (this.CycleID != null && - this.CycleID.Equals(input.CycleID)) - ) && base.Equals(input) && - ( - this.DayOfMonth == input.DayOfMonth || - (this.DayOfMonth != null && - this.DayOfMonth.Equals(input.DayOfMonth)) - ) && base.Equals(input) && - ( - this.DayOfMonth1 == input.DayOfMonth1 || - (this.DayOfMonth1 != null && - this.DayOfMonth1.Equals(input.DayOfMonth1)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LastStatementDate == input.LastStatementDate || - (this.LastStatementDate != null && - this.LastStatementDate.Equals(input.LastStatementDate)) - ) && base.Equals(input) && - ( - this.OverdueChargeID == input.OverdueChargeID || - (this.OverdueChargeID != null && - this.OverdueChargeID.Equals(input.OverdueChargeID)) - ) && base.Equals(input) && - ( - this.PrepareOn == input.PrepareOn || - (this.PrepareOn != null && - this.PrepareOn.Equals(input.PrepareOn)) - ) && base.Equals(input) && - ( - this.RequireOverdueChargesCalculationBeforeStatement == input.RequireOverdueChargesCalculationBeforeStatement || - (this.RequireOverdueChargesCalculationBeforeStatement != null && - this.RequireOverdueChargesCalculationBeforeStatement.Equals(input.RequireOverdueChargesCalculationBeforeStatement)) - ) && base.Equals(input) && - ( - this.RequirePaymentApplicationBeforeStatementProcessing == input.RequirePaymentApplicationBeforeStatementProcessing || - (this.RequirePaymentApplicationBeforeStatementProcessing != null && - this.RequirePaymentApplicationBeforeStatementProcessing.Equals(input.RequirePaymentApplicationBeforeStatementProcessing)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AgingPeriod1EndDay != null) - hashCode = hashCode * 59 + this.AgingPeriod1EndDay.GetHashCode(); - if (this.AgingPeriod1Message != null) - hashCode = hashCode * 59 + this.AgingPeriod1Message.GetHashCode(); - if (this.AgingPeriod2EndDay != null) - hashCode = hashCode * 59 + this.AgingPeriod2EndDay.GetHashCode(); - if (this.AgingPeriod2Message != null) - hashCode = hashCode * 59 + this.AgingPeriod2Message.GetHashCode(); - if (this.AgingPeriod3EndDay != null) - hashCode = hashCode * 59 + this.AgingPeriod3EndDay.GetHashCode(); - if (this.AgingPeriod3Message != null) - hashCode = hashCode * 59 + this.AgingPeriod3Message.GetHashCode(); - if (this.AgingPeriod4Message != null) - hashCode = hashCode * 59 + this.AgingPeriod4Message.GetHashCode(); - if (this.ApplyOverdueCharges != null) - hashCode = hashCode * 59 + this.ApplyOverdueCharges.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CycleID != null) - hashCode = hashCode * 59 + this.CycleID.GetHashCode(); - if (this.DayOfMonth != null) - hashCode = hashCode * 59 + this.DayOfMonth.GetHashCode(); - if (this.DayOfMonth1 != null) - hashCode = hashCode * 59 + this.DayOfMonth1.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LastStatementDate != null) - hashCode = hashCode * 59 + this.LastStatementDate.GetHashCode(); - if (this.OverdueChargeID != null) - hashCode = hashCode * 59 + this.OverdueChargeID.GetHashCode(); - if (this.PrepareOn != null) - hashCode = hashCode * 59 + this.PrepareOn.GetHashCode(); - if (this.RequireOverdueChargesCalculationBeforeStatement != null) - hashCode = hashCode * 59 + this.RequireOverdueChargesCalculationBeforeStatement.GetHashCode(); - if (this.RequirePaymentApplicationBeforeStatementProcessing != null) - hashCode = hashCode * 59 + this.RequirePaymentApplicationBeforeStatementProcessing.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/StockItem.cs b/Default.18.200.001/Model/StockItem.cs deleted file mode 100644 index e80e8fd4..00000000 --- a/Default.18.200.001/Model/StockItem.cs +++ /dev/null @@ -1,1326 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// StockItem - /// - [DataContract] - public partial class StockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aBCCode. - /// attributes. - /// autoIncrementalValue. - /// averageCost. - /// baseUOM. - /// boxes. - /// categories. - /// cOGSAccount. - /// cOGSSubaccount. - /// content. - /// crossReferences. - /// currentStdCost. - /// defaultIssueLocationID. - /// defaultPrice. - /// defaultReceiptLocationID. - /// defaultSubitem. - /// defaultWarehouseID. - /// deferralAccount. - /// deferralSubaccount. - /// description. - /// dimensionVolume. - /// dimensionWeight. - /// discountAccount. - /// discountSubaccount. - /// imageUrl. - /// inventoryAccount. - /// inventoryID. - /// inventorySubaccount. - /// isAKit. - /// itemClass. - /// itemStatus. - /// itemType. - /// landedCostVarianceAccount. - /// landedCostVarianceSubaccount. - /// lastCost. - /// lastModified. - /// lastStdCost. - /// lotSerialClass. - /// markup. - /// maxCost. - /// minCost. - /// minMarkup. - /// mSRP. - /// packagingOption. - /// packSeparately. - /// pendingStdCost. - /// pOAccrualAccount. - /// pOAccrualSubaccount. - /// postingClass. - /// priceClass. - /// priceManager. - /// priceWorkgroup. - /// productManager. - /// productWorkgroup. - /// purchasePriceVarianceAccount. - /// purchasePriceVarianceSubaccount. - /// purchaseUOM. - /// reasonCodeSubaccount. - /// replenishmentParameters. - /// salesAccount. - /// salesSubaccount. - /// salesUOM. - /// standardCostRevaluationAccount. - /// standardCostRevaluationSubaccount. - /// standardCostVarianceAccount. - /// standardCostVarianceSubaccount. - /// subItems. - /// subjectToCommission. - /// taxCategory. - /// uOMConversions. - /// useOnEntry. - /// valuationMethod. - /// vendorDetails. - /// volumeUOM. - /// warehouseDetails. - /// weightUOM. - public StockItem(StringValue aBCCode = default(StringValue), IEnumerable attributes = default(IEnumerable), StringValue autoIncrementalValue = default(StringValue), DecimalValue averageCost = default(DecimalValue), StringValue baseUOM = default(StringValue), IEnumerable boxes = default(IEnumerable), IEnumerable categories = default(IEnumerable), StringValue cOGSAccount = default(StringValue), StringValue cOGSSubaccount = default(StringValue), StringValue content = default(StringValue), IEnumerable crossReferences = default(IEnumerable), DecimalValue currentStdCost = default(DecimalValue), StringValue defaultIssueLocationID = default(StringValue), DecimalValue defaultPrice = default(DecimalValue), StringValue defaultReceiptLocationID = default(StringValue), StringValue defaultSubitem = default(StringValue), StringValue defaultWarehouseID = default(StringValue), StringValue deferralAccount = default(StringValue), StringValue deferralSubaccount = default(StringValue), StringValue description = default(StringValue), DecimalValue dimensionVolume = default(DecimalValue), DecimalValue dimensionWeight = default(DecimalValue), StringValue discountAccount = default(StringValue), StringValue discountSubaccount = default(StringValue), StringValue imageUrl = default(StringValue), StringValue inventoryAccount = default(StringValue), StringValue inventoryID = default(StringValue), StringValue inventorySubaccount = default(StringValue), BooleanValue isAKit = default(BooleanValue), StringValue itemClass = default(StringValue), StringValue itemStatus = default(StringValue), StringValue itemType = default(StringValue), StringValue landedCostVarianceAccount = default(StringValue), StringValue landedCostVarianceSubaccount = default(StringValue), DecimalValue lastCost = default(DecimalValue), DateTimeValue lastModified = default(DateTimeValue), DecimalValue lastStdCost = default(DecimalValue), StringValue lotSerialClass = default(StringValue), DecimalValue markup = default(DecimalValue), DecimalValue maxCost = default(DecimalValue), DecimalValue minCost = default(DecimalValue), DecimalValue minMarkup = default(DecimalValue), DecimalValue mSRP = default(DecimalValue), StringValue packagingOption = default(StringValue), BooleanValue packSeparately = default(BooleanValue), DecimalValue pendingStdCost = default(DecimalValue), StringValue pOAccrualAccount = default(StringValue), StringValue pOAccrualSubaccount = default(StringValue), StringValue postingClass = default(StringValue), StringValue priceClass = default(StringValue), StringValue priceManager = default(StringValue), StringValue priceWorkgroup = default(StringValue), StringValue productManager = default(StringValue), StringValue productWorkgroup = default(StringValue), StringValue purchasePriceVarianceAccount = default(StringValue), StringValue purchasePriceVarianceSubaccount = default(StringValue), StringValue purchaseUOM = default(StringValue), StringValue reasonCodeSubaccount = default(StringValue), IEnumerable replenishmentParameters = default(IEnumerable), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), StringValue salesUOM = default(StringValue), StringValue standardCostRevaluationAccount = default(StringValue), StringValue standardCostRevaluationSubaccount = default(StringValue), StringValue standardCostVarianceAccount = default(StringValue), StringValue standardCostVarianceSubaccount = default(StringValue), IEnumerable subItems = default(IEnumerable), BooleanValue subjectToCommission = default(BooleanValue), StringValue taxCategory = default(StringValue), IEnumerable uOMConversions = default(IEnumerable), BooleanValue useOnEntry = default(BooleanValue), StringValue valuationMethod = default(StringValue), IEnumerable vendorDetails = default(IEnumerable), StringValue volumeUOM = default(StringValue), IEnumerable warehouseDetails = default(IEnumerable), StringValue weightUOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ABCCode = aBCCode; - this.Attributes = attributes; - this.AutoIncrementalValue = autoIncrementalValue; - this.AverageCost = averageCost; - this.BaseUOM = baseUOM; - this.Boxes = boxes; - this.Categories = categories; - this.COGSAccount = cOGSAccount; - this.COGSSubaccount = cOGSSubaccount; - this.Content = content; - this.CrossReferences = crossReferences; - this.CurrentStdCost = currentStdCost; - this.DefaultIssueLocationID = defaultIssueLocationID; - this.DefaultPrice = defaultPrice; - this.DefaultReceiptLocationID = defaultReceiptLocationID; - this.DefaultSubitem = defaultSubitem; - this.DefaultWarehouseID = defaultWarehouseID; - this.DeferralAccount = deferralAccount; - this.DeferralSubaccount = deferralSubaccount; - this.Description = description; - this.DimensionVolume = dimensionVolume; - this.DimensionWeight = dimensionWeight; - this.DiscountAccount = discountAccount; - this.DiscountSubaccount = discountSubaccount; - this.ImageUrl = imageUrl; - this.InventoryAccount = inventoryAccount; - this.InventoryID = inventoryID; - this.InventorySubaccount = inventorySubaccount; - this.IsAKit = isAKit; - this.ItemClass = itemClass; - this.ItemStatus = itemStatus; - this.ItemType = itemType; - this.LandedCostVarianceAccount = landedCostVarianceAccount; - this.LandedCostVarianceSubaccount = landedCostVarianceSubaccount; - this.LastCost = lastCost; - this.LastModified = lastModified; - this.LastStdCost = lastStdCost; - this.LotSerialClass = lotSerialClass; - this.Markup = markup; - this.MaxCost = maxCost; - this.MinCost = minCost; - this.MinMarkup = minMarkup; - this.MSRP = mSRP; - this.PackagingOption = packagingOption; - this.PackSeparately = packSeparately; - this.PendingStdCost = pendingStdCost; - this.POAccrualAccount = pOAccrualAccount; - this.POAccrualSubaccount = pOAccrualSubaccount; - this.PostingClass = postingClass; - this.PriceClass = priceClass; - this.PriceManager = priceManager; - this.PriceWorkgroup = priceWorkgroup; - this.ProductManager = productManager; - this.ProductWorkgroup = productWorkgroup; - this.PurchasePriceVarianceAccount = purchasePriceVarianceAccount; - this.PurchasePriceVarianceSubaccount = purchasePriceVarianceSubaccount; - this.PurchaseUOM = purchaseUOM; - this.ReasonCodeSubaccount = reasonCodeSubaccount; - this.ReplenishmentParameters = replenishmentParameters; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.SalesUOM = salesUOM; - this.StandardCostRevaluationAccount = standardCostRevaluationAccount; - this.StandardCostRevaluationSubaccount = standardCostRevaluationSubaccount; - this.StandardCostVarianceAccount = standardCostVarianceAccount; - this.StandardCostVarianceSubaccount = standardCostVarianceSubaccount; - this.SubItems = subItems; - this.SubjectToCommission = subjectToCommission; - this.TaxCategory = taxCategory; - this.UOMConversions = uOMConversions; - this.UseOnEntry = useOnEntry; - this.ValuationMethod = valuationMethod; - this.VendorDetails = vendorDetails; - this.VolumeUOM = volumeUOM; - this.WarehouseDetails = warehouseDetails; - this.WeightUOM = weightUOM; - } - - /// - /// Gets or Sets ABCCode - /// - [DataMember(Name="ABCCode", EmitDefaultValue=false)] - public StringValue ABCCode { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets AutoIncrementalValue - /// - [DataMember(Name="AutoIncrementalValue", EmitDefaultValue=false)] - public StringValue AutoIncrementalValue { get; set; } - - /// - /// Gets or Sets AverageCost - /// - [DataMember(Name="AverageCost", EmitDefaultValue=false)] - public DecimalValue AverageCost { get; set; } - - /// - /// Gets or Sets BaseUOM - /// - [DataMember(Name="BaseUOM", EmitDefaultValue=false)] - public StringValue BaseUOM { get; set; } - - /// - /// Gets or Sets Boxes - /// - [DataMember(Name="Boxes", EmitDefaultValue=false)] - public IEnumerable Boxes { get; set; } - - /// - /// Gets or Sets Categories - /// - [DataMember(Name="Categories", EmitDefaultValue=false)] - public IEnumerable Categories { get; set; } - - /// - /// Gets or Sets COGSAccount - /// - [DataMember(Name="COGSAccount", EmitDefaultValue=false)] - public StringValue COGSAccount { get; set; } - - /// - /// Gets or Sets COGSSubaccount - /// - [DataMember(Name="COGSSubaccount", EmitDefaultValue=false)] - public StringValue COGSSubaccount { get; set; } - - /// - /// Gets or Sets Content - /// - [DataMember(Name="Content", EmitDefaultValue=false)] - public StringValue Content { get; set; } - - /// - /// Gets or Sets CrossReferences - /// - [DataMember(Name="CrossReferences", EmitDefaultValue=false)] - public IEnumerable CrossReferences { get; set; } - - /// - /// Gets or Sets CurrentStdCost - /// - [DataMember(Name="CurrentStdCost", EmitDefaultValue=false)] - public DecimalValue CurrentStdCost { get; set; } - - /// - /// Gets or Sets DefaultIssueLocationID - /// - [DataMember(Name="DefaultIssueLocationID", EmitDefaultValue=false)] - public StringValue DefaultIssueLocationID { get; set; } - - /// - /// Gets or Sets DefaultPrice - /// - [DataMember(Name="DefaultPrice", EmitDefaultValue=false)] - public DecimalValue DefaultPrice { get; set; } - - /// - /// Gets or Sets DefaultReceiptLocationID - /// - [DataMember(Name="DefaultReceiptLocationID", EmitDefaultValue=false)] - public StringValue DefaultReceiptLocationID { get; set; } - - /// - /// Gets or Sets DefaultSubitem - /// - [DataMember(Name="DefaultSubitem", EmitDefaultValue=false)] - public StringValue DefaultSubitem { get; set; } - - /// - /// Gets or Sets DefaultWarehouseID - /// - [DataMember(Name="DefaultWarehouseID", EmitDefaultValue=false)] - public StringValue DefaultWarehouseID { get; set; } - - /// - /// Gets or Sets DeferralAccount - /// - [DataMember(Name="DeferralAccount", EmitDefaultValue=false)] - public StringValue DeferralAccount { get; set; } - - /// - /// Gets or Sets DeferralSubaccount - /// - [DataMember(Name="DeferralSubaccount", EmitDefaultValue=false)] - public StringValue DeferralSubaccount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DimensionVolume - /// - [DataMember(Name="DimensionVolume", EmitDefaultValue=false)] - public DecimalValue DimensionVolume { get; set; } - - /// - /// Gets or Sets DimensionWeight - /// - [DataMember(Name="DimensionWeight", EmitDefaultValue=false)] - public DecimalValue DimensionWeight { get; set; } - - /// - /// Gets or Sets DiscountAccount - /// - [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] - public StringValue DiscountAccount { get; set; } - - /// - /// Gets or Sets DiscountSubaccount - /// - [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] - public StringValue DiscountSubaccount { get; set; } - - /// - /// Gets or Sets ImageUrl - /// - [DataMember(Name="ImageUrl", EmitDefaultValue=false)] - public StringValue ImageUrl { get; set; } - - /// - /// Gets or Sets InventoryAccount - /// - [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] - public StringValue InventoryAccount { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets InventorySubaccount - /// - [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] - public StringValue InventorySubaccount { get; set; } - - /// - /// Gets or Sets IsAKit - /// - [DataMember(Name="IsAKit", EmitDefaultValue=false)] - public BooleanValue IsAKit { get; set; } - - /// - /// Gets or Sets ItemClass - /// - [DataMember(Name="ItemClass", EmitDefaultValue=false)] - public StringValue ItemClass { get; set; } - - /// - /// Gets or Sets ItemStatus - /// - [DataMember(Name="ItemStatus", EmitDefaultValue=false)] - public StringValue ItemStatus { get; set; } - - /// - /// Gets or Sets ItemType - /// - [DataMember(Name="ItemType", EmitDefaultValue=false)] - public StringValue ItemType { get; set; } - - /// - /// Gets or Sets LandedCostVarianceAccount - /// - [DataMember(Name="LandedCostVarianceAccount", EmitDefaultValue=false)] - public StringValue LandedCostVarianceAccount { get; set; } - - /// - /// Gets or Sets LandedCostVarianceSubaccount - /// - [DataMember(Name="LandedCostVarianceSubaccount", EmitDefaultValue=false)] - public StringValue LandedCostVarianceSubaccount { get; set; } - - /// - /// Gets or Sets LastCost - /// - [DataMember(Name="LastCost", EmitDefaultValue=false)] - public DecimalValue LastCost { get; set; } - - /// - /// Gets or Sets LastModified - /// - [DataMember(Name="LastModified", EmitDefaultValue=false)] - public DateTimeValue LastModified { get; set; } - - /// - /// Gets or Sets LastStdCost - /// - [DataMember(Name="LastStdCost", EmitDefaultValue=false)] - public DecimalValue LastStdCost { get; set; } - - /// - /// Gets or Sets LotSerialClass - /// - [DataMember(Name="LotSerialClass", EmitDefaultValue=false)] - public StringValue LotSerialClass { get; set; } - - /// - /// Gets or Sets Markup - /// - [DataMember(Name="Markup", EmitDefaultValue=false)] - public DecimalValue Markup { get; set; } - - /// - /// Gets or Sets MaxCost - /// - [DataMember(Name="MaxCost", EmitDefaultValue=false)] - public DecimalValue MaxCost { get; set; } - - /// - /// Gets or Sets MinCost - /// - [DataMember(Name="MinCost", EmitDefaultValue=false)] - public DecimalValue MinCost { get; set; } - - /// - /// Gets or Sets MinMarkup - /// - [DataMember(Name="MinMarkup", EmitDefaultValue=false)] - public DecimalValue MinMarkup { get; set; } - - /// - /// Gets or Sets MSRP - /// - [DataMember(Name="MSRP", EmitDefaultValue=false)] - public DecimalValue MSRP { get; set; } - - /// - /// Gets or Sets PackagingOption - /// - [DataMember(Name="PackagingOption", EmitDefaultValue=false)] - public StringValue PackagingOption { get; set; } - - /// - /// Gets or Sets PackSeparately - /// - [DataMember(Name="PackSeparately", EmitDefaultValue=false)] - public BooleanValue PackSeparately { get; set; } - - /// - /// Gets or Sets PendingStdCost - /// - [DataMember(Name="PendingStdCost", EmitDefaultValue=false)] - public DecimalValue PendingStdCost { get; set; } - - /// - /// Gets or Sets POAccrualAccount - /// - [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] - public StringValue POAccrualAccount { get; set; } - - /// - /// Gets or Sets POAccrualSubaccount - /// - [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] - public StringValue POAccrualSubaccount { get; set; } - - /// - /// Gets or Sets PostingClass - /// - [DataMember(Name="PostingClass", EmitDefaultValue=false)] - public StringValue PostingClass { get; set; } - - /// - /// Gets or Sets PriceClass - /// - [DataMember(Name="PriceClass", EmitDefaultValue=false)] - public StringValue PriceClass { get; set; } - - /// - /// Gets or Sets PriceManager - /// - [DataMember(Name="PriceManager", EmitDefaultValue=false)] - public StringValue PriceManager { get; set; } - - /// - /// Gets or Sets PriceWorkgroup - /// - [DataMember(Name="PriceWorkgroup", EmitDefaultValue=false)] - public StringValue PriceWorkgroup { get; set; } - - /// - /// Gets or Sets ProductManager - /// - [DataMember(Name="ProductManager", EmitDefaultValue=false)] - public StringValue ProductManager { get; set; } - - /// - /// Gets or Sets ProductWorkgroup - /// - [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] - public StringValue ProductWorkgroup { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceAccount - /// - [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceAccount { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceSubaccount - /// - [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceSubaccount { get; set; } - - /// - /// Gets or Sets PurchaseUOM - /// - [DataMember(Name="PurchaseUOM", EmitDefaultValue=false)] - public StringValue PurchaseUOM { get; set; } - - /// - /// Gets or Sets ReasonCodeSubaccount - /// - [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] - public StringValue ReasonCodeSubaccount { get; set; } - - /// - /// Gets or Sets ReplenishmentParameters - /// - [DataMember(Name="ReplenishmentParameters", EmitDefaultValue=false)] - public IEnumerable ReplenishmentParameters { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets SalesUOM - /// - [DataMember(Name="SalesUOM", EmitDefaultValue=false)] - public StringValue SalesUOM { get; set; } - - /// - /// Gets or Sets StandardCostRevaluationAccount - /// - [DataMember(Name="StandardCostRevaluationAccount", EmitDefaultValue=false)] - public StringValue StandardCostRevaluationAccount { get; set; } - - /// - /// Gets or Sets StandardCostRevaluationSubaccount - /// - [DataMember(Name="StandardCostRevaluationSubaccount", EmitDefaultValue=false)] - public StringValue StandardCostRevaluationSubaccount { get; set; } - - /// - /// Gets or Sets StandardCostVarianceAccount - /// - [DataMember(Name="StandardCostVarianceAccount", EmitDefaultValue=false)] - public StringValue StandardCostVarianceAccount { get; set; } - - /// - /// Gets or Sets StandardCostVarianceSubaccount - /// - [DataMember(Name="StandardCostVarianceSubaccount", EmitDefaultValue=false)] - public StringValue StandardCostVarianceSubaccount { get; set; } - - /// - /// Gets or Sets SubItems - /// - [DataMember(Name="SubItems", EmitDefaultValue=false)] - public IEnumerable SubItems { get; set; } - - /// - /// Gets or Sets SubjectToCommission - /// - [DataMember(Name="SubjectToCommission", EmitDefaultValue=false)] - public BooleanValue SubjectToCommission { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets UOMConversions - /// - [DataMember(Name="UOMConversions", EmitDefaultValue=false)] - public IEnumerable UOMConversions { get; set; } - - /// - /// Gets or Sets UseOnEntry - /// - [DataMember(Name="UseOnEntry", EmitDefaultValue=false)] - public BooleanValue UseOnEntry { get; set; } - - /// - /// Gets or Sets ValuationMethod - /// - [DataMember(Name="ValuationMethod", EmitDefaultValue=false)] - public StringValue ValuationMethod { get; set; } - - /// - /// Gets or Sets VendorDetails - /// - [DataMember(Name="VendorDetails", EmitDefaultValue=false)] - public IEnumerable VendorDetails { get; set; } - - /// - /// Gets or Sets VolumeUOM - /// - [DataMember(Name="VolumeUOM", EmitDefaultValue=false)] - public StringValue VolumeUOM { get; set; } - - /// - /// Gets or Sets WarehouseDetails - /// - [DataMember(Name="WarehouseDetails", EmitDefaultValue=false)] - public IEnumerable WarehouseDetails { get; set; } - - /// - /// Gets or Sets WeightUOM - /// - [DataMember(Name="WeightUOM", EmitDefaultValue=false)] - public StringValue WeightUOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ABCCode: ").Append(ABCCode).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" AutoIncrementalValue: ").Append(AutoIncrementalValue).Append("\n"); - sb.Append(" AverageCost: ").Append(AverageCost).Append("\n"); - sb.Append(" BaseUOM: ").Append(BaseUOM).Append("\n"); - sb.Append(" Boxes: ").Append(Boxes).Append("\n"); - sb.Append(" Categories: ").Append(Categories).Append("\n"); - sb.Append(" COGSAccount: ").Append(COGSAccount).Append("\n"); - sb.Append(" COGSSubaccount: ").Append(COGSSubaccount).Append("\n"); - sb.Append(" Content: ").Append(Content).Append("\n"); - sb.Append(" CrossReferences: ").Append(CrossReferences).Append("\n"); - sb.Append(" CurrentStdCost: ").Append(CurrentStdCost).Append("\n"); - sb.Append(" DefaultIssueLocationID: ").Append(DefaultIssueLocationID).Append("\n"); - sb.Append(" DefaultPrice: ").Append(DefaultPrice).Append("\n"); - sb.Append(" DefaultReceiptLocationID: ").Append(DefaultReceiptLocationID).Append("\n"); - sb.Append(" DefaultSubitem: ").Append(DefaultSubitem).Append("\n"); - sb.Append(" DefaultWarehouseID: ").Append(DefaultWarehouseID).Append("\n"); - sb.Append(" DeferralAccount: ").Append(DeferralAccount).Append("\n"); - sb.Append(" DeferralSubaccount: ").Append(DeferralSubaccount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DimensionVolume: ").Append(DimensionVolume).Append("\n"); - sb.Append(" DimensionWeight: ").Append(DimensionWeight).Append("\n"); - sb.Append(" DiscountAccount: ").Append(DiscountAccount).Append("\n"); - sb.Append(" DiscountSubaccount: ").Append(DiscountSubaccount).Append("\n"); - sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); - sb.Append(" InventoryAccount: ").Append(InventoryAccount).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" InventorySubaccount: ").Append(InventorySubaccount).Append("\n"); - sb.Append(" IsAKit: ").Append(IsAKit).Append("\n"); - sb.Append(" ItemClass: ").Append(ItemClass).Append("\n"); - sb.Append(" ItemStatus: ").Append(ItemStatus).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" LandedCostVarianceAccount: ").Append(LandedCostVarianceAccount).Append("\n"); - sb.Append(" LandedCostVarianceSubaccount: ").Append(LandedCostVarianceSubaccount).Append("\n"); - sb.Append(" LastCost: ").Append(LastCost).Append("\n"); - sb.Append(" LastModified: ").Append(LastModified).Append("\n"); - sb.Append(" LastStdCost: ").Append(LastStdCost).Append("\n"); - sb.Append(" LotSerialClass: ").Append(LotSerialClass).Append("\n"); - sb.Append(" Markup: ").Append(Markup).Append("\n"); - sb.Append(" MaxCost: ").Append(MaxCost).Append("\n"); - sb.Append(" MinCost: ").Append(MinCost).Append("\n"); - sb.Append(" MinMarkup: ").Append(MinMarkup).Append("\n"); - sb.Append(" MSRP: ").Append(MSRP).Append("\n"); - sb.Append(" PackagingOption: ").Append(PackagingOption).Append("\n"); - sb.Append(" PackSeparately: ").Append(PackSeparately).Append("\n"); - sb.Append(" PendingStdCost: ").Append(PendingStdCost).Append("\n"); - sb.Append(" POAccrualAccount: ").Append(POAccrualAccount).Append("\n"); - sb.Append(" POAccrualSubaccount: ").Append(POAccrualSubaccount).Append("\n"); - sb.Append(" PostingClass: ").Append(PostingClass).Append("\n"); - sb.Append(" PriceClass: ").Append(PriceClass).Append("\n"); - sb.Append(" PriceManager: ").Append(PriceManager).Append("\n"); - sb.Append(" PriceWorkgroup: ").Append(PriceWorkgroup).Append("\n"); - sb.Append(" ProductManager: ").Append(ProductManager).Append("\n"); - sb.Append(" ProductWorkgroup: ").Append(ProductWorkgroup).Append("\n"); - sb.Append(" PurchasePriceVarianceAccount: ").Append(PurchasePriceVarianceAccount).Append("\n"); - sb.Append(" PurchasePriceVarianceSubaccount: ").Append(PurchasePriceVarianceSubaccount).Append("\n"); - sb.Append(" PurchaseUOM: ").Append(PurchaseUOM).Append("\n"); - sb.Append(" ReasonCodeSubaccount: ").Append(ReasonCodeSubaccount).Append("\n"); - sb.Append(" ReplenishmentParameters: ").Append(ReplenishmentParameters).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" SalesUOM: ").Append(SalesUOM).Append("\n"); - sb.Append(" StandardCostRevaluationAccount: ").Append(StandardCostRevaluationAccount).Append("\n"); - sb.Append(" StandardCostRevaluationSubaccount: ").Append(StandardCostRevaluationSubaccount).Append("\n"); - sb.Append(" StandardCostVarianceAccount: ").Append(StandardCostVarianceAccount).Append("\n"); - sb.Append(" StandardCostVarianceSubaccount: ").Append(StandardCostVarianceSubaccount).Append("\n"); - sb.Append(" SubItems: ").Append(SubItems).Append("\n"); - sb.Append(" SubjectToCommission: ").Append(SubjectToCommission).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" UOMConversions: ").Append(UOMConversions).Append("\n"); - sb.Append(" UseOnEntry: ").Append(UseOnEntry).Append("\n"); - sb.Append(" ValuationMethod: ").Append(ValuationMethod).Append("\n"); - sb.Append(" VendorDetails: ").Append(VendorDetails).Append("\n"); - sb.Append(" VolumeUOM: ").Append(VolumeUOM).Append("\n"); - sb.Append(" WarehouseDetails: ").Append(WarehouseDetails).Append("\n"); - sb.Append(" WeightUOM: ").Append(WeightUOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StockItem); - } - - /// - /// Returns true if StockItem instances are equal - /// - /// Instance of StockItem to be compared - /// Boolean - public bool Equals(StockItem input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ABCCode == input.ABCCode || - (this.ABCCode != null && - this.ABCCode.Equals(input.ABCCode)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.AutoIncrementalValue == input.AutoIncrementalValue || - (this.AutoIncrementalValue != null && - this.AutoIncrementalValue.Equals(input.AutoIncrementalValue)) - ) && base.Equals(input) && - ( - this.AverageCost == input.AverageCost || - (this.AverageCost != null && - this.AverageCost.Equals(input.AverageCost)) - ) && base.Equals(input) && - ( - this.BaseUOM == input.BaseUOM || - (this.BaseUOM != null && - this.BaseUOM.Equals(input.BaseUOM)) - ) && base.Equals(input) && - ( - this.Boxes == input.Boxes || - this.Boxes != null && - this.Boxes.SequenceEqual(input.Boxes) - ) && base.Equals(input) && - ( - this.Categories == input.Categories || - this.Categories != null && - this.Categories.SequenceEqual(input.Categories) - ) && base.Equals(input) && - ( - this.COGSAccount == input.COGSAccount || - (this.COGSAccount != null && - this.COGSAccount.Equals(input.COGSAccount)) - ) && base.Equals(input) && - ( - this.COGSSubaccount == input.COGSSubaccount || - (this.COGSSubaccount != null && - this.COGSSubaccount.Equals(input.COGSSubaccount)) - ) && base.Equals(input) && - ( - this.Content == input.Content || - (this.Content != null && - this.Content.Equals(input.Content)) - ) && base.Equals(input) && - ( - this.CrossReferences == input.CrossReferences || - this.CrossReferences != null && - this.CrossReferences.SequenceEqual(input.CrossReferences) - ) && base.Equals(input) && - ( - this.CurrentStdCost == input.CurrentStdCost || - (this.CurrentStdCost != null && - this.CurrentStdCost.Equals(input.CurrentStdCost)) - ) && base.Equals(input) && - ( - this.DefaultIssueLocationID == input.DefaultIssueLocationID || - (this.DefaultIssueLocationID != null && - this.DefaultIssueLocationID.Equals(input.DefaultIssueLocationID)) - ) && base.Equals(input) && - ( - this.DefaultPrice == input.DefaultPrice || - (this.DefaultPrice != null && - this.DefaultPrice.Equals(input.DefaultPrice)) - ) && base.Equals(input) && - ( - this.DefaultReceiptLocationID == input.DefaultReceiptLocationID || - (this.DefaultReceiptLocationID != null && - this.DefaultReceiptLocationID.Equals(input.DefaultReceiptLocationID)) - ) && base.Equals(input) && - ( - this.DefaultSubitem == input.DefaultSubitem || - (this.DefaultSubitem != null && - this.DefaultSubitem.Equals(input.DefaultSubitem)) - ) && base.Equals(input) && - ( - this.DefaultWarehouseID == input.DefaultWarehouseID || - (this.DefaultWarehouseID != null && - this.DefaultWarehouseID.Equals(input.DefaultWarehouseID)) - ) && base.Equals(input) && - ( - this.DeferralAccount == input.DeferralAccount || - (this.DeferralAccount != null && - this.DeferralAccount.Equals(input.DeferralAccount)) - ) && base.Equals(input) && - ( - this.DeferralSubaccount == input.DeferralSubaccount || - (this.DeferralSubaccount != null && - this.DeferralSubaccount.Equals(input.DeferralSubaccount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DimensionVolume == input.DimensionVolume || - (this.DimensionVolume != null && - this.DimensionVolume.Equals(input.DimensionVolume)) - ) && base.Equals(input) && - ( - this.DimensionWeight == input.DimensionWeight || - (this.DimensionWeight != null && - this.DimensionWeight.Equals(input.DimensionWeight)) - ) && base.Equals(input) && - ( - this.DiscountAccount == input.DiscountAccount || - (this.DiscountAccount != null && - this.DiscountAccount.Equals(input.DiscountAccount)) - ) && base.Equals(input) && - ( - this.DiscountSubaccount == input.DiscountSubaccount || - (this.DiscountSubaccount != null && - this.DiscountSubaccount.Equals(input.DiscountSubaccount)) - ) && base.Equals(input) && - ( - this.ImageUrl == input.ImageUrl || - (this.ImageUrl != null && - this.ImageUrl.Equals(input.ImageUrl)) - ) && base.Equals(input) && - ( - this.InventoryAccount == input.InventoryAccount || - (this.InventoryAccount != null && - this.InventoryAccount.Equals(input.InventoryAccount)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.InventorySubaccount == input.InventorySubaccount || - (this.InventorySubaccount != null && - this.InventorySubaccount.Equals(input.InventorySubaccount)) - ) && base.Equals(input) && - ( - this.IsAKit == input.IsAKit || - (this.IsAKit != null && - this.IsAKit.Equals(input.IsAKit)) - ) && base.Equals(input) && - ( - this.ItemClass == input.ItemClass || - (this.ItemClass != null && - this.ItemClass.Equals(input.ItemClass)) - ) && base.Equals(input) && - ( - this.ItemStatus == input.ItemStatus || - (this.ItemStatus != null && - this.ItemStatus.Equals(input.ItemStatus)) - ) && base.Equals(input) && - ( - this.ItemType == input.ItemType || - (this.ItemType != null && - this.ItemType.Equals(input.ItemType)) - ) && base.Equals(input) && - ( - this.LandedCostVarianceAccount == input.LandedCostVarianceAccount || - (this.LandedCostVarianceAccount != null && - this.LandedCostVarianceAccount.Equals(input.LandedCostVarianceAccount)) - ) && base.Equals(input) && - ( - this.LandedCostVarianceSubaccount == input.LandedCostVarianceSubaccount || - (this.LandedCostVarianceSubaccount != null && - this.LandedCostVarianceSubaccount.Equals(input.LandedCostVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.LastCost == input.LastCost || - (this.LastCost != null && - this.LastCost.Equals(input.LastCost)) - ) && base.Equals(input) && - ( - this.LastModified == input.LastModified || - (this.LastModified != null && - this.LastModified.Equals(input.LastModified)) - ) && base.Equals(input) && - ( - this.LastStdCost == input.LastStdCost || - (this.LastStdCost != null && - this.LastStdCost.Equals(input.LastStdCost)) - ) && base.Equals(input) && - ( - this.LotSerialClass == input.LotSerialClass || - (this.LotSerialClass != null && - this.LotSerialClass.Equals(input.LotSerialClass)) - ) && base.Equals(input) && - ( - this.Markup == input.Markup || - (this.Markup != null && - this.Markup.Equals(input.Markup)) - ) && base.Equals(input) && - ( - this.MaxCost == input.MaxCost || - (this.MaxCost != null && - this.MaxCost.Equals(input.MaxCost)) - ) && base.Equals(input) && - ( - this.MinCost == input.MinCost || - (this.MinCost != null && - this.MinCost.Equals(input.MinCost)) - ) && base.Equals(input) && - ( - this.MinMarkup == input.MinMarkup || - (this.MinMarkup != null && - this.MinMarkup.Equals(input.MinMarkup)) - ) && base.Equals(input) && - ( - this.MSRP == input.MSRP || - (this.MSRP != null && - this.MSRP.Equals(input.MSRP)) - ) && base.Equals(input) && - ( - this.PackagingOption == input.PackagingOption || - (this.PackagingOption != null && - this.PackagingOption.Equals(input.PackagingOption)) - ) && base.Equals(input) && - ( - this.PackSeparately == input.PackSeparately || - (this.PackSeparately != null && - this.PackSeparately.Equals(input.PackSeparately)) - ) && base.Equals(input) && - ( - this.PendingStdCost == input.PendingStdCost || - (this.PendingStdCost != null && - this.PendingStdCost.Equals(input.PendingStdCost)) - ) && base.Equals(input) && - ( - this.POAccrualAccount == input.POAccrualAccount || - (this.POAccrualAccount != null && - this.POAccrualAccount.Equals(input.POAccrualAccount)) - ) && base.Equals(input) && - ( - this.POAccrualSubaccount == input.POAccrualSubaccount || - (this.POAccrualSubaccount != null && - this.POAccrualSubaccount.Equals(input.POAccrualSubaccount)) - ) && base.Equals(input) && - ( - this.PostingClass == input.PostingClass || - (this.PostingClass != null && - this.PostingClass.Equals(input.PostingClass)) - ) && base.Equals(input) && - ( - this.PriceClass == input.PriceClass || - (this.PriceClass != null && - this.PriceClass.Equals(input.PriceClass)) - ) && base.Equals(input) && - ( - this.PriceManager == input.PriceManager || - (this.PriceManager != null && - this.PriceManager.Equals(input.PriceManager)) - ) && base.Equals(input) && - ( - this.PriceWorkgroup == input.PriceWorkgroup || - (this.PriceWorkgroup != null && - this.PriceWorkgroup.Equals(input.PriceWorkgroup)) - ) && base.Equals(input) && - ( - this.ProductManager == input.ProductManager || - (this.ProductManager != null && - this.ProductManager.Equals(input.ProductManager)) - ) && base.Equals(input) && - ( - this.ProductWorkgroup == input.ProductWorkgroup || - (this.ProductWorkgroup != null && - this.ProductWorkgroup.Equals(input.ProductWorkgroup)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceAccount == input.PurchasePriceVarianceAccount || - (this.PurchasePriceVarianceAccount != null && - this.PurchasePriceVarianceAccount.Equals(input.PurchasePriceVarianceAccount)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceSubaccount == input.PurchasePriceVarianceSubaccount || - (this.PurchasePriceVarianceSubaccount != null && - this.PurchasePriceVarianceSubaccount.Equals(input.PurchasePriceVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.PurchaseUOM == input.PurchaseUOM || - (this.PurchaseUOM != null && - this.PurchaseUOM.Equals(input.PurchaseUOM)) - ) && base.Equals(input) && - ( - this.ReasonCodeSubaccount == input.ReasonCodeSubaccount || - (this.ReasonCodeSubaccount != null && - this.ReasonCodeSubaccount.Equals(input.ReasonCodeSubaccount)) - ) && base.Equals(input) && - ( - this.ReplenishmentParameters == input.ReplenishmentParameters || - this.ReplenishmentParameters != null && - this.ReplenishmentParameters.SequenceEqual(input.ReplenishmentParameters) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.SalesUOM == input.SalesUOM || - (this.SalesUOM != null && - this.SalesUOM.Equals(input.SalesUOM)) - ) && base.Equals(input) && - ( - this.StandardCostRevaluationAccount == input.StandardCostRevaluationAccount || - (this.StandardCostRevaluationAccount != null && - this.StandardCostRevaluationAccount.Equals(input.StandardCostRevaluationAccount)) - ) && base.Equals(input) && - ( - this.StandardCostRevaluationSubaccount == input.StandardCostRevaluationSubaccount || - (this.StandardCostRevaluationSubaccount != null && - this.StandardCostRevaluationSubaccount.Equals(input.StandardCostRevaluationSubaccount)) - ) && base.Equals(input) && - ( - this.StandardCostVarianceAccount == input.StandardCostVarianceAccount || - (this.StandardCostVarianceAccount != null && - this.StandardCostVarianceAccount.Equals(input.StandardCostVarianceAccount)) - ) && base.Equals(input) && - ( - this.StandardCostVarianceSubaccount == input.StandardCostVarianceSubaccount || - (this.StandardCostVarianceSubaccount != null && - this.StandardCostVarianceSubaccount.Equals(input.StandardCostVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.SubItems == input.SubItems || - this.SubItems != null && - this.SubItems.SequenceEqual(input.SubItems) - ) && base.Equals(input) && - ( - this.SubjectToCommission == input.SubjectToCommission || - (this.SubjectToCommission != null && - this.SubjectToCommission.Equals(input.SubjectToCommission)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.UOMConversions == input.UOMConversions || - this.UOMConversions != null && - this.UOMConversions.SequenceEqual(input.UOMConversions) - ) && base.Equals(input) && - ( - this.UseOnEntry == input.UseOnEntry || - (this.UseOnEntry != null && - this.UseOnEntry.Equals(input.UseOnEntry)) - ) && base.Equals(input) && - ( - this.ValuationMethod == input.ValuationMethod || - (this.ValuationMethod != null && - this.ValuationMethod.Equals(input.ValuationMethod)) - ) && base.Equals(input) && - ( - this.VendorDetails == input.VendorDetails || - this.VendorDetails != null && - this.VendorDetails.SequenceEqual(input.VendorDetails) - ) && base.Equals(input) && - ( - this.VolumeUOM == input.VolumeUOM || - (this.VolumeUOM != null && - this.VolumeUOM.Equals(input.VolumeUOM)) - ) && base.Equals(input) && - ( - this.WarehouseDetails == input.WarehouseDetails || - this.WarehouseDetails != null && - this.WarehouseDetails.SequenceEqual(input.WarehouseDetails) - ) && base.Equals(input) && - ( - this.WeightUOM == input.WeightUOM || - (this.WeightUOM != null && - this.WeightUOM.Equals(input.WeightUOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ABCCode != null) - hashCode = hashCode * 59 + this.ABCCode.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.AutoIncrementalValue != null) - hashCode = hashCode * 59 + this.AutoIncrementalValue.GetHashCode(); - if (this.AverageCost != null) - hashCode = hashCode * 59 + this.AverageCost.GetHashCode(); - if (this.BaseUOM != null) - hashCode = hashCode * 59 + this.BaseUOM.GetHashCode(); - if (this.Boxes != null) - hashCode = hashCode * 59 + this.Boxes.GetHashCode(); - if (this.Categories != null) - hashCode = hashCode * 59 + this.Categories.GetHashCode(); - if (this.COGSAccount != null) - hashCode = hashCode * 59 + this.COGSAccount.GetHashCode(); - if (this.COGSSubaccount != null) - hashCode = hashCode * 59 + this.COGSSubaccount.GetHashCode(); - if (this.Content != null) - hashCode = hashCode * 59 + this.Content.GetHashCode(); - if (this.CrossReferences != null) - hashCode = hashCode * 59 + this.CrossReferences.GetHashCode(); - if (this.CurrentStdCost != null) - hashCode = hashCode * 59 + this.CurrentStdCost.GetHashCode(); - if (this.DefaultIssueLocationID != null) - hashCode = hashCode * 59 + this.DefaultIssueLocationID.GetHashCode(); - if (this.DefaultPrice != null) - hashCode = hashCode * 59 + this.DefaultPrice.GetHashCode(); - if (this.DefaultReceiptLocationID != null) - hashCode = hashCode * 59 + this.DefaultReceiptLocationID.GetHashCode(); - if (this.DefaultSubitem != null) - hashCode = hashCode * 59 + this.DefaultSubitem.GetHashCode(); - if (this.DefaultWarehouseID != null) - hashCode = hashCode * 59 + this.DefaultWarehouseID.GetHashCode(); - if (this.DeferralAccount != null) - hashCode = hashCode * 59 + this.DeferralAccount.GetHashCode(); - if (this.DeferralSubaccount != null) - hashCode = hashCode * 59 + this.DeferralSubaccount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DimensionVolume != null) - hashCode = hashCode * 59 + this.DimensionVolume.GetHashCode(); - if (this.DimensionWeight != null) - hashCode = hashCode * 59 + this.DimensionWeight.GetHashCode(); - if (this.DiscountAccount != null) - hashCode = hashCode * 59 + this.DiscountAccount.GetHashCode(); - if (this.DiscountSubaccount != null) - hashCode = hashCode * 59 + this.DiscountSubaccount.GetHashCode(); - if (this.ImageUrl != null) - hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); - if (this.InventoryAccount != null) - hashCode = hashCode * 59 + this.InventoryAccount.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.InventorySubaccount != null) - hashCode = hashCode * 59 + this.InventorySubaccount.GetHashCode(); - if (this.IsAKit != null) - hashCode = hashCode * 59 + this.IsAKit.GetHashCode(); - if (this.ItemClass != null) - hashCode = hashCode * 59 + this.ItemClass.GetHashCode(); - if (this.ItemStatus != null) - hashCode = hashCode * 59 + this.ItemStatus.GetHashCode(); - if (this.ItemType != null) - hashCode = hashCode * 59 + this.ItemType.GetHashCode(); - if (this.LandedCostVarianceAccount != null) - hashCode = hashCode * 59 + this.LandedCostVarianceAccount.GetHashCode(); - if (this.LandedCostVarianceSubaccount != null) - hashCode = hashCode * 59 + this.LandedCostVarianceSubaccount.GetHashCode(); - if (this.LastCost != null) - hashCode = hashCode * 59 + this.LastCost.GetHashCode(); - if (this.LastModified != null) - hashCode = hashCode * 59 + this.LastModified.GetHashCode(); - if (this.LastStdCost != null) - hashCode = hashCode * 59 + this.LastStdCost.GetHashCode(); - if (this.LotSerialClass != null) - hashCode = hashCode * 59 + this.LotSerialClass.GetHashCode(); - if (this.Markup != null) - hashCode = hashCode * 59 + this.Markup.GetHashCode(); - if (this.MaxCost != null) - hashCode = hashCode * 59 + this.MaxCost.GetHashCode(); - if (this.MinCost != null) - hashCode = hashCode * 59 + this.MinCost.GetHashCode(); - if (this.MinMarkup != null) - hashCode = hashCode * 59 + this.MinMarkup.GetHashCode(); - if (this.MSRP != null) - hashCode = hashCode * 59 + this.MSRP.GetHashCode(); - if (this.PackagingOption != null) - hashCode = hashCode * 59 + this.PackagingOption.GetHashCode(); - if (this.PackSeparately != null) - hashCode = hashCode * 59 + this.PackSeparately.GetHashCode(); - if (this.PendingStdCost != null) - hashCode = hashCode * 59 + this.PendingStdCost.GetHashCode(); - if (this.POAccrualAccount != null) - hashCode = hashCode * 59 + this.POAccrualAccount.GetHashCode(); - if (this.POAccrualSubaccount != null) - hashCode = hashCode * 59 + this.POAccrualSubaccount.GetHashCode(); - if (this.PostingClass != null) - hashCode = hashCode * 59 + this.PostingClass.GetHashCode(); - if (this.PriceClass != null) - hashCode = hashCode * 59 + this.PriceClass.GetHashCode(); - if (this.PriceManager != null) - hashCode = hashCode * 59 + this.PriceManager.GetHashCode(); - if (this.PriceWorkgroup != null) - hashCode = hashCode * 59 + this.PriceWorkgroup.GetHashCode(); - if (this.ProductManager != null) - hashCode = hashCode * 59 + this.ProductManager.GetHashCode(); - if (this.ProductWorkgroup != null) - hashCode = hashCode * 59 + this.ProductWorkgroup.GetHashCode(); - if (this.PurchasePriceVarianceAccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceAccount.GetHashCode(); - if (this.PurchasePriceVarianceSubaccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceSubaccount.GetHashCode(); - if (this.PurchaseUOM != null) - hashCode = hashCode * 59 + this.PurchaseUOM.GetHashCode(); - if (this.ReasonCodeSubaccount != null) - hashCode = hashCode * 59 + this.ReasonCodeSubaccount.GetHashCode(); - if (this.ReplenishmentParameters != null) - hashCode = hashCode * 59 + this.ReplenishmentParameters.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.SalesUOM != null) - hashCode = hashCode * 59 + this.SalesUOM.GetHashCode(); - if (this.StandardCostRevaluationAccount != null) - hashCode = hashCode * 59 + this.StandardCostRevaluationAccount.GetHashCode(); - if (this.StandardCostRevaluationSubaccount != null) - hashCode = hashCode * 59 + this.StandardCostRevaluationSubaccount.GetHashCode(); - if (this.StandardCostVarianceAccount != null) - hashCode = hashCode * 59 + this.StandardCostVarianceAccount.GetHashCode(); - if (this.StandardCostVarianceSubaccount != null) - hashCode = hashCode * 59 + this.StandardCostVarianceSubaccount.GetHashCode(); - if (this.SubItems != null) - hashCode = hashCode * 59 + this.SubItems.GetHashCode(); - if (this.SubjectToCommission != null) - hashCode = hashCode * 59 + this.SubjectToCommission.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.UOMConversions != null) - hashCode = hashCode * 59 + this.UOMConversions.GetHashCode(); - if (this.UseOnEntry != null) - hashCode = hashCode * 59 + this.UseOnEntry.GetHashCode(); - if (this.ValuationMethod != null) - hashCode = hashCode * 59 + this.ValuationMethod.GetHashCode(); - if (this.VendorDetails != null) - hashCode = hashCode * 59 + this.VendorDetails.GetHashCode(); - if (this.VolumeUOM != null) - hashCode = hashCode * 59 + this.VolumeUOM.GetHashCode(); - if (this.WarehouseDetails != null) - hashCode = hashCode * 59 + this.WarehouseDetails.GetHashCode(); - if (this.WeightUOM != null) - hashCode = hashCode * 59 + this.WeightUOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/StockItemVendorDetail.cs b/Default.18.200.001/Model/StockItemVendorDetail.cs deleted file mode 100644 index 6959e9fa..00000000 --- a/Default.18.200.001/Model/StockItemVendorDetail.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// StockItemVendorDetail - /// - [DataContract] - public partial class StockItemVendorDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// addLeadTimeDays. - /// currencyID. - /// _default. - /// eOQ. - /// lastVendorPrice. - /// leadTimeDays. - /// location. - /// lotSize. - /// maxOrderQty. - /// minOrderFrequencyInDays. - /// minOrderQty. - /// _override. - /// purchaseUnit. - /// recordID. - /// subitem. - /// vendorID. - /// vendorName. - /// warehouse. - public StockItemVendorDetail(BooleanValue active = default(BooleanValue), ShortValue addLeadTimeDays = default(ShortValue), StringValue currencyID = default(StringValue), BooleanValue _default = default(BooleanValue), DecimalValue eOQ = default(DecimalValue), DecimalValue lastVendorPrice = default(DecimalValue), ShortValue leadTimeDays = default(ShortValue), StringValue location = default(StringValue), DecimalValue lotSize = default(DecimalValue), DecimalValue maxOrderQty = default(DecimalValue), IntValue minOrderFrequencyInDays = default(IntValue), DecimalValue minOrderQty = default(DecimalValue), BooleanValue _override = default(BooleanValue), StringValue purchaseUnit = default(StringValue), IntValue recordID = default(IntValue), StringValue subitem = default(StringValue), StringValue vendorID = default(StringValue), StringValue vendorName = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AddLeadTimeDays = addLeadTimeDays; - this.CurrencyID = currencyID; - this.Default = _default; - this.EOQ = eOQ; - this.LastVendorPrice = lastVendorPrice; - this.LeadTimeDays = leadTimeDays; - this.Location = location; - this.LotSize = lotSize; - this.MaxOrderQty = maxOrderQty; - this.MinOrderFrequencyInDays = minOrderFrequencyInDays; - this.MinOrderQty = minOrderQty; - this.Override = _override; - this.PurchaseUnit = purchaseUnit; - this.RecordID = recordID; - this.Subitem = subitem; - this.VendorID = vendorID; - this.VendorName = vendorName; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AddLeadTimeDays - /// - [DataMember(Name="AddLeadTimeDays", EmitDefaultValue=false)] - public ShortValue AddLeadTimeDays { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Default - /// - [DataMember(Name="Default", EmitDefaultValue=false)] - public BooleanValue Default { get; set; } - - /// - /// Gets or Sets EOQ - /// - [DataMember(Name="EOQ", EmitDefaultValue=false)] - public DecimalValue EOQ { get; set; } - - /// - /// Gets or Sets LastVendorPrice - /// - [DataMember(Name="LastVendorPrice", EmitDefaultValue=false)] - public DecimalValue LastVendorPrice { get; set; } - - /// - /// Gets or Sets LeadTimeDays - /// - [DataMember(Name="LeadTimeDays", EmitDefaultValue=false)] - public ShortValue LeadTimeDays { get; set; } - - /// - /// Gets or Sets Location - /// - [DataMember(Name="Location", EmitDefaultValue=false)] - public StringValue Location { get; set; } - - /// - /// Gets or Sets LotSize - /// - [DataMember(Name="LotSize", EmitDefaultValue=false)] - public DecimalValue LotSize { get; set; } - - /// - /// Gets or Sets MaxOrderQty - /// - [DataMember(Name="MaxOrderQty", EmitDefaultValue=false)] - public DecimalValue MaxOrderQty { get; set; } - - /// - /// Gets or Sets MinOrderFrequencyInDays - /// - [DataMember(Name="MinOrderFrequencyInDays", EmitDefaultValue=false)] - public IntValue MinOrderFrequencyInDays { get; set; } - - /// - /// Gets or Sets MinOrderQty - /// - [DataMember(Name="MinOrderQty", EmitDefaultValue=false)] - public DecimalValue MinOrderQty { get; set; } - - /// - /// Gets or Sets Override - /// - [DataMember(Name="Override", EmitDefaultValue=false)] - public BooleanValue Override { get; set; } - - /// - /// Gets or Sets PurchaseUnit - /// - [DataMember(Name="PurchaseUnit", EmitDefaultValue=false)] - public StringValue PurchaseUnit { get; set; } - - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } - - /// - /// Gets or Sets VendorName - /// - [DataMember(Name="VendorName", EmitDefaultValue=false)] - public StringValue VendorName { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StockItemVendorDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AddLeadTimeDays: ").Append(AddLeadTimeDays).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append(" EOQ: ").Append(EOQ).Append("\n"); - sb.Append(" LastVendorPrice: ").Append(LastVendorPrice).Append("\n"); - sb.Append(" LeadTimeDays: ").Append(LeadTimeDays).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LotSize: ").Append(LotSize).Append("\n"); - sb.Append(" MaxOrderQty: ").Append(MaxOrderQty).Append("\n"); - sb.Append(" MinOrderFrequencyInDays: ").Append(MinOrderFrequencyInDays).Append("\n"); - sb.Append(" MinOrderQty: ").Append(MinOrderQty).Append("\n"); - sb.Append(" Override: ").Append(Override).Append("\n"); - sb.Append(" PurchaseUnit: ").Append(PurchaseUnit).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append(" VendorName: ").Append(VendorName).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StockItemVendorDetail); - } - - /// - /// Returns true if StockItemVendorDetail instances are equal - /// - /// Instance of StockItemVendorDetail to be compared - /// Boolean - public bool Equals(StockItemVendorDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AddLeadTimeDays == input.AddLeadTimeDays || - (this.AddLeadTimeDays != null && - this.AddLeadTimeDays.Equals(input.AddLeadTimeDays)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Default == input.Default || - (this.Default != null && - this.Default.Equals(input.Default)) - ) && base.Equals(input) && - ( - this.EOQ == input.EOQ || - (this.EOQ != null && - this.EOQ.Equals(input.EOQ)) - ) && base.Equals(input) && - ( - this.LastVendorPrice == input.LastVendorPrice || - (this.LastVendorPrice != null && - this.LastVendorPrice.Equals(input.LastVendorPrice)) - ) && base.Equals(input) && - ( - this.LeadTimeDays == input.LeadTimeDays || - (this.LeadTimeDays != null && - this.LeadTimeDays.Equals(input.LeadTimeDays)) - ) && base.Equals(input) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && base.Equals(input) && - ( - this.LotSize == input.LotSize || - (this.LotSize != null && - this.LotSize.Equals(input.LotSize)) - ) && base.Equals(input) && - ( - this.MaxOrderQty == input.MaxOrderQty || - (this.MaxOrderQty != null && - this.MaxOrderQty.Equals(input.MaxOrderQty)) - ) && base.Equals(input) && - ( - this.MinOrderFrequencyInDays == input.MinOrderFrequencyInDays || - (this.MinOrderFrequencyInDays != null && - this.MinOrderFrequencyInDays.Equals(input.MinOrderFrequencyInDays)) - ) && base.Equals(input) && - ( - this.MinOrderQty == input.MinOrderQty || - (this.MinOrderQty != null && - this.MinOrderQty.Equals(input.MinOrderQty)) - ) && base.Equals(input) && - ( - this.Override == input.Override || - (this.Override != null && - this.Override.Equals(input.Override)) - ) && base.Equals(input) && - ( - this.PurchaseUnit == input.PurchaseUnit || - (this.PurchaseUnit != null && - this.PurchaseUnit.Equals(input.PurchaseUnit)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ) && base.Equals(input) && - ( - this.VendorName == input.VendorName || - (this.VendorName != null && - this.VendorName.Equals(input.VendorName)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AddLeadTimeDays != null) - hashCode = hashCode * 59 + this.AddLeadTimeDays.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Default != null) - hashCode = hashCode * 59 + this.Default.GetHashCode(); - if (this.EOQ != null) - hashCode = hashCode * 59 + this.EOQ.GetHashCode(); - if (this.LastVendorPrice != null) - hashCode = hashCode * 59 + this.LastVendorPrice.GetHashCode(); - if (this.LeadTimeDays != null) - hashCode = hashCode * 59 + this.LeadTimeDays.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.LotSize != null) - hashCode = hashCode * 59 + this.LotSize.GetHashCode(); - if (this.MaxOrderQty != null) - hashCode = hashCode * 59 + this.MaxOrderQty.GetHashCode(); - if (this.MinOrderFrequencyInDays != null) - hashCode = hashCode * 59 + this.MinOrderFrequencyInDays.GetHashCode(); - if (this.MinOrderQty != null) - hashCode = hashCode * 59 + this.MinOrderQty.GetHashCode(); - if (this.Override != null) - hashCode = hashCode * 59 + this.Override.GetHashCode(); - if (this.PurchaseUnit != null) - hashCode = hashCode * 59 + this.PurchaseUnit.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - if (this.VendorName != null) - hashCode = hashCode * 59 + this.VendorName.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/StockItemWarehouseDetail.cs b/Default.18.200.001/Model/StockItemWarehouseDetail.cs deleted file mode 100644 index 8ae3f07e..00000000 --- a/Default.18.200.001/Model/StockItemWarehouseDetail.cs +++ /dev/null @@ -1,478 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// StockItemWarehouseDetail - /// - [DataContract] - public partial class StockItemWarehouseDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// dailyDemandForecast. - /// dailyDemandForecastErrorSTDEV. - /// defaultIssueLocationID. - /// defaultReceiptLocationID. - /// inventoryAccount. - /// inventorySubaccount. - /// isDefault. - /// lastForecastDate. - /// _override. - /// overridePreferredVendor. - /// overrideReplenishmentSettings. - /// overrideStdCost. - /// preferredVendor. - /// priceOverride. - /// productManager. - /// productWorkgroup. - /// qtyOnHand. - /// replenishmentSource. - /// replenishmentWarehouse. - /// seasonality. - /// serviceLevel. - /// status. - /// warehouseID. - public StockItemWarehouseDetail(DecimalValue dailyDemandForecast = default(DecimalValue), DecimalValue dailyDemandForecastErrorSTDEV = default(DecimalValue), StringValue defaultIssueLocationID = default(StringValue), StringValue defaultReceiptLocationID = default(StringValue), StringValue inventoryAccount = default(StringValue), StringValue inventorySubaccount = default(StringValue), BooleanValue isDefault = default(BooleanValue), DateTimeValue lastForecastDate = default(DateTimeValue), BooleanValue _override = default(BooleanValue), BooleanValue overridePreferredVendor = default(BooleanValue), BooleanValue overrideReplenishmentSettings = default(BooleanValue), BooleanValue overrideStdCost = default(BooleanValue), StringValue preferredVendor = default(StringValue), BooleanValue priceOverride = default(BooleanValue), StringValue productManager = default(StringValue), StringValue productWorkgroup = default(StringValue), DecimalValue qtyOnHand = default(DecimalValue), StringValue replenishmentSource = default(StringValue), StringValue replenishmentWarehouse = default(StringValue), StringValue seasonality = default(StringValue), DecimalValue serviceLevel = default(DecimalValue), StringValue status = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DailyDemandForecast = dailyDemandForecast; - this.DailyDemandForecastErrorSTDEV = dailyDemandForecastErrorSTDEV; - this.DefaultIssueLocationID = defaultIssueLocationID; - this.DefaultReceiptLocationID = defaultReceiptLocationID; - this.InventoryAccount = inventoryAccount; - this.InventorySubaccount = inventorySubaccount; - this.IsDefault = isDefault; - this.LastForecastDate = lastForecastDate; - this.Override = _override; - this.OverridePreferredVendor = overridePreferredVendor; - this.OverrideReplenishmentSettings = overrideReplenishmentSettings; - this.OverrideStdCost = overrideStdCost; - this.PreferredVendor = preferredVendor; - this.PriceOverride = priceOverride; - this.ProductManager = productManager; - this.ProductWorkgroup = productWorkgroup; - this.QtyOnHand = qtyOnHand; - this.ReplenishmentSource = replenishmentSource; - this.ReplenishmentWarehouse = replenishmentWarehouse; - this.Seasonality = seasonality; - this.ServiceLevel = serviceLevel; - this.Status = status; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets DailyDemandForecast - /// - [DataMember(Name="DailyDemandForecast", EmitDefaultValue=false)] - public DecimalValue DailyDemandForecast { get; set; } - - /// - /// Gets or Sets DailyDemandForecastErrorSTDEV - /// - [DataMember(Name="DailyDemandForecastErrorSTDEV", EmitDefaultValue=false)] - public DecimalValue DailyDemandForecastErrorSTDEV { get; set; } - - /// - /// Gets or Sets DefaultIssueLocationID - /// - [DataMember(Name="DefaultIssueLocationID", EmitDefaultValue=false)] - public StringValue DefaultIssueLocationID { get; set; } - - /// - /// Gets or Sets DefaultReceiptLocationID - /// - [DataMember(Name="DefaultReceiptLocationID", EmitDefaultValue=false)] - public StringValue DefaultReceiptLocationID { get; set; } - - /// - /// Gets or Sets InventoryAccount - /// - [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] - public StringValue InventoryAccount { get; set; } - - /// - /// Gets or Sets InventorySubaccount - /// - [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] - public StringValue InventorySubaccount { get; set; } - - /// - /// Gets or Sets IsDefault - /// - [DataMember(Name="IsDefault", EmitDefaultValue=false)] - public BooleanValue IsDefault { get; set; } - - /// - /// Gets or Sets LastForecastDate - /// - [DataMember(Name="LastForecastDate", EmitDefaultValue=false)] - public DateTimeValue LastForecastDate { get; set; } - - /// - /// Gets or Sets Override - /// - [DataMember(Name="Override", EmitDefaultValue=false)] - public BooleanValue Override { get; set; } - - /// - /// Gets or Sets OverridePreferredVendor - /// - [DataMember(Name="OverridePreferredVendor", EmitDefaultValue=false)] - public BooleanValue OverridePreferredVendor { get; set; } - - /// - /// Gets or Sets OverrideReplenishmentSettings - /// - [DataMember(Name="OverrideReplenishmentSettings", EmitDefaultValue=false)] - public BooleanValue OverrideReplenishmentSettings { get; set; } - - /// - /// Gets or Sets OverrideStdCost - /// - [DataMember(Name="OverrideStdCost", EmitDefaultValue=false)] - public BooleanValue OverrideStdCost { get; set; } - - /// - /// Gets or Sets PreferredVendor - /// - [DataMember(Name="PreferredVendor", EmitDefaultValue=false)] - public StringValue PreferredVendor { get; set; } - - /// - /// Gets or Sets PriceOverride - /// - [DataMember(Name="PriceOverride", EmitDefaultValue=false)] - public BooleanValue PriceOverride { get; set; } - - /// - /// Gets or Sets ProductManager - /// - [DataMember(Name="ProductManager", EmitDefaultValue=false)] - public StringValue ProductManager { get; set; } - - /// - /// Gets or Sets ProductWorkgroup - /// - [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] - public StringValue ProductWorkgroup { get; set; } - - /// - /// Gets or Sets QtyOnHand - /// - [DataMember(Name="QtyOnHand", EmitDefaultValue=false)] - public DecimalValue QtyOnHand { get; set; } - - /// - /// Gets or Sets ReplenishmentSource - /// - [DataMember(Name="ReplenishmentSource", EmitDefaultValue=false)] - public StringValue ReplenishmentSource { get; set; } - - /// - /// Gets or Sets ReplenishmentWarehouse - /// - [DataMember(Name="ReplenishmentWarehouse", EmitDefaultValue=false)] - public StringValue ReplenishmentWarehouse { get; set; } - - /// - /// Gets or Sets Seasonality - /// - [DataMember(Name="Seasonality", EmitDefaultValue=false)] - public StringValue Seasonality { get; set; } - - /// - /// Gets or Sets ServiceLevel - /// - [DataMember(Name="ServiceLevel", EmitDefaultValue=false)] - public DecimalValue ServiceLevel { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StockItemWarehouseDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DailyDemandForecast: ").Append(DailyDemandForecast).Append("\n"); - sb.Append(" DailyDemandForecastErrorSTDEV: ").Append(DailyDemandForecastErrorSTDEV).Append("\n"); - sb.Append(" DefaultIssueLocationID: ").Append(DefaultIssueLocationID).Append("\n"); - sb.Append(" DefaultReceiptLocationID: ").Append(DefaultReceiptLocationID).Append("\n"); - sb.Append(" InventoryAccount: ").Append(InventoryAccount).Append("\n"); - sb.Append(" InventorySubaccount: ").Append(InventorySubaccount).Append("\n"); - sb.Append(" IsDefault: ").Append(IsDefault).Append("\n"); - sb.Append(" LastForecastDate: ").Append(LastForecastDate).Append("\n"); - sb.Append(" Override: ").Append(Override).Append("\n"); - sb.Append(" OverridePreferredVendor: ").Append(OverridePreferredVendor).Append("\n"); - sb.Append(" OverrideReplenishmentSettings: ").Append(OverrideReplenishmentSettings).Append("\n"); - sb.Append(" OverrideStdCost: ").Append(OverrideStdCost).Append("\n"); - sb.Append(" PreferredVendor: ").Append(PreferredVendor).Append("\n"); - sb.Append(" PriceOverride: ").Append(PriceOverride).Append("\n"); - sb.Append(" ProductManager: ").Append(ProductManager).Append("\n"); - sb.Append(" ProductWorkgroup: ").Append(ProductWorkgroup).Append("\n"); - sb.Append(" QtyOnHand: ").Append(QtyOnHand).Append("\n"); - sb.Append(" ReplenishmentSource: ").Append(ReplenishmentSource).Append("\n"); - sb.Append(" ReplenishmentWarehouse: ").Append(ReplenishmentWarehouse).Append("\n"); - sb.Append(" Seasonality: ").Append(Seasonality).Append("\n"); - sb.Append(" ServiceLevel: ").Append(ServiceLevel).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StockItemWarehouseDetail); - } - - /// - /// Returns true if StockItemWarehouseDetail instances are equal - /// - /// Instance of StockItemWarehouseDetail to be compared - /// Boolean - public bool Equals(StockItemWarehouseDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DailyDemandForecast == input.DailyDemandForecast || - (this.DailyDemandForecast != null && - this.DailyDemandForecast.Equals(input.DailyDemandForecast)) - ) && base.Equals(input) && - ( - this.DailyDemandForecastErrorSTDEV == input.DailyDemandForecastErrorSTDEV || - (this.DailyDemandForecastErrorSTDEV != null && - this.DailyDemandForecastErrorSTDEV.Equals(input.DailyDemandForecastErrorSTDEV)) - ) && base.Equals(input) && - ( - this.DefaultIssueLocationID == input.DefaultIssueLocationID || - (this.DefaultIssueLocationID != null && - this.DefaultIssueLocationID.Equals(input.DefaultIssueLocationID)) - ) && base.Equals(input) && - ( - this.DefaultReceiptLocationID == input.DefaultReceiptLocationID || - (this.DefaultReceiptLocationID != null && - this.DefaultReceiptLocationID.Equals(input.DefaultReceiptLocationID)) - ) && base.Equals(input) && - ( - this.InventoryAccount == input.InventoryAccount || - (this.InventoryAccount != null && - this.InventoryAccount.Equals(input.InventoryAccount)) - ) && base.Equals(input) && - ( - this.InventorySubaccount == input.InventorySubaccount || - (this.InventorySubaccount != null && - this.InventorySubaccount.Equals(input.InventorySubaccount)) - ) && base.Equals(input) && - ( - this.IsDefault == input.IsDefault || - (this.IsDefault != null && - this.IsDefault.Equals(input.IsDefault)) - ) && base.Equals(input) && - ( - this.LastForecastDate == input.LastForecastDate || - (this.LastForecastDate != null && - this.LastForecastDate.Equals(input.LastForecastDate)) - ) && base.Equals(input) && - ( - this.Override == input.Override || - (this.Override != null && - this.Override.Equals(input.Override)) - ) && base.Equals(input) && - ( - this.OverridePreferredVendor == input.OverridePreferredVendor || - (this.OverridePreferredVendor != null && - this.OverridePreferredVendor.Equals(input.OverridePreferredVendor)) - ) && base.Equals(input) && - ( - this.OverrideReplenishmentSettings == input.OverrideReplenishmentSettings || - (this.OverrideReplenishmentSettings != null && - this.OverrideReplenishmentSettings.Equals(input.OverrideReplenishmentSettings)) - ) && base.Equals(input) && - ( - this.OverrideStdCost == input.OverrideStdCost || - (this.OverrideStdCost != null && - this.OverrideStdCost.Equals(input.OverrideStdCost)) - ) && base.Equals(input) && - ( - this.PreferredVendor == input.PreferredVendor || - (this.PreferredVendor != null && - this.PreferredVendor.Equals(input.PreferredVendor)) - ) && base.Equals(input) && - ( - this.PriceOverride == input.PriceOverride || - (this.PriceOverride != null && - this.PriceOverride.Equals(input.PriceOverride)) - ) && base.Equals(input) && - ( - this.ProductManager == input.ProductManager || - (this.ProductManager != null && - this.ProductManager.Equals(input.ProductManager)) - ) && base.Equals(input) && - ( - this.ProductWorkgroup == input.ProductWorkgroup || - (this.ProductWorkgroup != null && - this.ProductWorkgroup.Equals(input.ProductWorkgroup)) - ) && base.Equals(input) && - ( - this.QtyOnHand == input.QtyOnHand || - (this.QtyOnHand != null && - this.QtyOnHand.Equals(input.QtyOnHand)) - ) && base.Equals(input) && - ( - this.ReplenishmentSource == input.ReplenishmentSource || - (this.ReplenishmentSource != null && - this.ReplenishmentSource.Equals(input.ReplenishmentSource)) - ) && base.Equals(input) && - ( - this.ReplenishmentWarehouse == input.ReplenishmentWarehouse || - (this.ReplenishmentWarehouse != null && - this.ReplenishmentWarehouse.Equals(input.ReplenishmentWarehouse)) - ) && base.Equals(input) && - ( - this.Seasonality == input.Seasonality || - (this.Seasonality != null && - this.Seasonality.Equals(input.Seasonality)) - ) && base.Equals(input) && - ( - this.ServiceLevel == input.ServiceLevel || - (this.ServiceLevel != null && - this.ServiceLevel.Equals(input.ServiceLevel)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DailyDemandForecast != null) - hashCode = hashCode * 59 + this.DailyDemandForecast.GetHashCode(); - if (this.DailyDemandForecastErrorSTDEV != null) - hashCode = hashCode * 59 + this.DailyDemandForecastErrorSTDEV.GetHashCode(); - if (this.DefaultIssueLocationID != null) - hashCode = hashCode * 59 + this.DefaultIssueLocationID.GetHashCode(); - if (this.DefaultReceiptLocationID != null) - hashCode = hashCode * 59 + this.DefaultReceiptLocationID.GetHashCode(); - if (this.InventoryAccount != null) - hashCode = hashCode * 59 + this.InventoryAccount.GetHashCode(); - if (this.InventorySubaccount != null) - hashCode = hashCode * 59 + this.InventorySubaccount.GetHashCode(); - if (this.IsDefault != null) - hashCode = hashCode * 59 + this.IsDefault.GetHashCode(); - if (this.LastForecastDate != null) - hashCode = hashCode * 59 + this.LastForecastDate.GetHashCode(); - if (this.Override != null) - hashCode = hashCode * 59 + this.Override.GetHashCode(); - if (this.OverridePreferredVendor != null) - hashCode = hashCode * 59 + this.OverridePreferredVendor.GetHashCode(); - if (this.OverrideReplenishmentSettings != null) - hashCode = hashCode * 59 + this.OverrideReplenishmentSettings.GetHashCode(); - if (this.OverrideStdCost != null) - hashCode = hashCode * 59 + this.OverrideStdCost.GetHashCode(); - if (this.PreferredVendor != null) - hashCode = hashCode * 59 + this.PreferredVendor.GetHashCode(); - if (this.PriceOverride != null) - hashCode = hashCode * 59 + this.PriceOverride.GetHashCode(); - if (this.ProductManager != null) - hashCode = hashCode * 59 + this.ProductManager.GetHashCode(); - if (this.ProductWorkgroup != null) - hashCode = hashCode * 59 + this.ProductWorkgroup.GetHashCode(); - if (this.QtyOnHand != null) - hashCode = hashCode * 59 + this.QtyOnHand.GetHashCode(); - if (this.ReplenishmentSource != null) - hashCode = hashCode * 59 + this.ReplenishmentSource.GetHashCode(); - if (this.ReplenishmentWarehouse != null) - hashCode = hashCode * 59 + this.ReplenishmentWarehouse.GetHashCode(); - if (this.Seasonality != null) - hashCode = hashCode * 59 + this.Seasonality.GetHashCode(); - if (this.ServiceLevel != null) - hashCode = hashCode * 59 + this.ServiceLevel.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/SubItemStockItem.cs b/Default.18.200.001/Model/SubItemStockItem.cs deleted file mode 100644 index 6a5fdeba..00000000 --- a/Default.18.200.001/Model/SubItemStockItem.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// SubItemStockItem - /// - [DataContract] - public partial class SubItemStockItem : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// description. - /// segmentID. - /// value. - public SubItemStockItem(BooleanValue active = default(BooleanValue), StringValue description = default(StringValue), ShortValue segmentID = default(ShortValue), StringValue value = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Description = description; - this.SegmentID = segmentID; - this.Value = value; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets SegmentID - /// - [DataMember(Name="SegmentID", EmitDefaultValue=false)] - public ShortValue SegmentID { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="Value", EmitDefaultValue=false)] - public StringValue Value { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SubItemStockItem {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" SegmentID: ").Append(SegmentID).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SubItemStockItem); - } - - /// - /// Returns true if SubItemStockItem instances are equal - /// - /// Instance of SubItemStockItem to be compared - /// Boolean - public bool Equals(SubItemStockItem input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.SegmentID == input.SegmentID || - (this.SegmentID != null && - this.SegmentID.Equals(input.SegmentID)) - ) && base.Equals(input) && - ( - this.Value == input.Value || - (this.Value != null && - this.Value.Equals(input.Value)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.SegmentID != null) - hashCode = hashCode * 59 + this.SegmentID.GetHashCode(); - if (this.Value != null) - hashCode = hashCode * 59 + this.Value.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Subaccount.cs b/Default.18.200.001/Model/Subaccount.cs deleted file mode 100644 index f2df5e61..00000000 --- a/Default.18.200.001/Model/Subaccount.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Subaccount - /// - [DataContract] - public partial class Subaccount : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// description. - /// secured. - /// subaccountCD. - /// subaccountID. - public Subaccount(BooleanValue active = default(BooleanValue), StringValue description = default(StringValue), BooleanValue secured = default(BooleanValue), StringValue subaccountCD = default(StringValue), IntValue subaccountID = default(IntValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Description = description; - this.Secured = secured; - this.SubaccountCD = subaccountCD; - this.SubaccountID = subaccountID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Secured - /// - [DataMember(Name="Secured", EmitDefaultValue=false)] - public BooleanValue Secured { get; set; } - - /// - /// Gets or Sets SubaccountCD - /// - [DataMember(Name="SubaccountCD", EmitDefaultValue=false)] - public StringValue SubaccountCD { get; set; } - - /// - /// Gets or Sets SubaccountID - /// - [DataMember(Name="SubaccountID", EmitDefaultValue=false)] - public IntValue SubaccountID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Subaccount {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Secured: ").Append(Secured).Append("\n"); - sb.Append(" SubaccountCD: ").Append(SubaccountCD).Append("\n"); - sb.Append(" SubaccountID: ").Append(SubaccountID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Subaccount); - } - - /// - /// Returns true if Subaccount instances are equal - /// - /// Instance of Subaccount to be compared - /// Boolean - public bool Equals(Subaccount input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Secured == input.Secured || - (this.Secured != null && - this.Secured.Equals(input.Secured)) - ) && base.Equals(input) && - ( - this.SubaccountCD == input.SubaccountCD || - (this.SubaccountCD != null && - this.SubaccountCD.Equals(input.SubaccountCD)) - ) && base.Equals(input) && - ( - this.SubaccountID == input.SubaccountID || - (this.SubaccountID != null && - this.SubaccountID.Equals(input.SubaccountID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Secured != null) - hashCode = hashCode * 59 + this.Secured.GetHashCode(); - if (this.SubaccountCD != null) - hashCode = hashCode * 59 + this.SubaccountCD.GetHashCode(); - if (this.SubaccountID != null) - hashCode = hashCode * 59 + this.SubaccountID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Task.cs b/Default.18.200.001/Model/Task.cs deleted file mode 100644 index 10bc36af..00000000 --- a/Default.18.200.001/Model/Task.cs +++ /dev/null @@ -1,430 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Task - /// - [DataContract] - public partial class Task : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// body. - /// category. - /// completedAt. - /// completionPercentage. - /// dueDate. - /// _internal. - /// noteID. - /// owner. - /// parent. - /// parentSummary. - /// priority. - /// relatedActivities. - /// relatedEntityDescription. - /// relatedTasks. - /// reminder. - /// startDate. - /// status. - /// summary. - /// timeActivity. - /// workgroupID. - public Task(StringValue body = default(StringValue), StringValue category = default(StringValue), DateTimeValue completedAt = default(DateTimeValue), IntValue completionPercentage = default(IntValue), DateTimeValue dueDate = default(DateTimeValue), BooleanValue _internal = default(BooleanValue), GuidValue noteID = default(GuidValue), StringValue owner = default(StringValue), GuidValue parent = default(GuidValue), StringValue parentSummary = default(StringValue), StringValue priority = default(StringValue), IEnumerable relatedActivities = default(IEnumerable), StringValue relatedEntityDescription = default(StringValue), IEnumerable relatedTasks = default(IEnumerable), ReminderDetail reminder = default(ReminderDetail), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), TaskTimeActivity timeActivity = default(TaskTimeActivity), StringValue workgroupID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Body = body; - this.Category = category; - this.CompletedAt = completedAt; - this.CompletionPercentage = completionPercentage; - this.DueDate = dueDate; - this.Internal = _internal; - this.NoteID = noteID; - this.Owner = owner; - this.Parent = parent; - this.ParentSummary = parentSummary; - this.Priority = priority; - this.RelatedActivities = relatedActivities; - this.RelatedEntityDescription = relatedEntityDescription; - this.RelatedTasks = relatedTasks; - this.Reminder = reminder; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeActivity = timeActivity; - this.WorkgroupID = workgroupID; - } - - /// - /// Gets or Sets Body - /// - [DataMember(Name="Body", EmitDefaultValue=false)] - public StringValue Body { get; set; } - - /// - /// Gets or Sets Category - /// - [DataMember(Name="Category", EmitDefaultValue=false)] - public StringValue Category { get; set; } - - /// - /// Gets or Sets CompletedAt - /// - [DataMember(Name="CompletedAt", EmitDefaultValue=false)] - public DateTimeValue CompletedAt { get; set; } - - /// - /// Gets or Sets CompletionPercentage - /// - [DataMember(Name="CompletionPercentage", EmitDefaultValue=false)] - public IntValue CompletionPercentage { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets Internal - /// - [DataMember(Name="Internal", EmitDefaultValue=false)] - public BooleanValue Internal { get; set; } - - /// - /// Gets or Sets NoteID - /// - [DataMember(Name="NoteID", EmitDefaultValue=false)] - public GuidValue NoteID { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets Parent - /// - [DataMember(Name="Parent", EmitDefaultValue=false)] - public GuidValue Parent { get; set; } - - /// - /// Gets or Sets ParentSummary - /// - [DataMember(Name="ParentSummary", EmitDefaultValue=false)] - public StringValue ParentSummary { get; set; } - - /// - /// Gets or Sets Priority - /// - [DataMember(Name="Priority", EmitDefaultValue=false)] - public StringValue Priority { get; set; } - - /// - /// Gets or Sets RelatedActivities - /// - [DataMember(Name="RelatedActivities", EmitDefaultValue=false)] - public IEnumerable RelatedActivities { get; set; } - - /// - /// Gets or Sets RelatedEntityDescription - /// - [DataMember(Name="RelatedEntityDescription", EmitDefaultValue=false)] - public StringValue RelatedEntityDescription { get; set; } - - /// - /// Gets or Sets RelatedTasks - /// - [DataMember(Name="RelatedTasks", EmitDefaultValue=false)] - public IEnumerable RelatedTasks { get; set; } - - /// - /// Gets or Sets Reminder - /// - [DataMember(Name="Reminder", EmitDefaultValue=false)] - public ReminderDetail Reminder { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } - - /// - /// Gets or Sets TimeActivity - /// - [DataMember(Name="TimeActivity", EmitDefaultValue=false)] - public TaskTimeActivity TimeActivity { get; set; } - - /// - /// Gets or Sets WorkgroupID - /// - [DataMember(Name="WorkgroupID", EmitDefaultValue=false)] - public StringValue WorkgroupID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Task {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Body: ").Append(Body).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" CompletedAt: ").Append(CompletedAt).Append("\n"); - sb.Append(" CompletionPercentage: ").Append(CompletionPercentage).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" Internal: ").Append(Internal).Append("\n"); - sb.Append(" NoteID: ").Append(NoteID).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Parent: ").Append(Parent).Append("\n"); - sb.Append(" ParentSummary: ").Append(ParentSummary).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" RelatedActivities: ").Append(RelatedActivities).Append("\n"); - sb.Append(" RelatedEntityDescription: ").Append(RelatedEntityDescription).Append("\n"); - sb.Append(" RelatedTasks: ").Append(RelatedTasks).Append("\n"); - sb.Append(" Reminder: ").Append(Reminder).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeActivity: ").Append(TimeActivity).Append("\n"); - sb.Append(" WorkgroupID: ").Append(WorkgroupID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Task); - } - - /// - /// Returns true if Task instances are equal - /// - /// Instance of Task to be compared - /// Boolean - public bool Equals(Task input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Body == input.Body || - (this.Body != null && - this.Body.Equals(input.Body)) - ) && base.Equals(input) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && base.Equals(input) && - ( - this.CompletedAt == input.CompletedAt || - (this.CompletedAt != null && - this.CompletedAt.Equals(input.CompletedAt)) - ) && base.Equals(input) && - ( - this.CompletionPercentage == input.CompletionPercentage || - (this.CompletionPercentage != null && - this.CompletionPercentage.Equals(input.CompletionPercentage)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.Internal == input.Internal || - (this.Internal != null && - this.Internal.Equals(input.Internal)) - ) && base.Equals(input) && - ( - this.NoteID == input.NoteID || - (this.NoteID != null && - this.NoteID.Equals(input.NoteID)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.Parent == input.Parent || - (this.Parent != null && - this.Parent.Equals(input.Parent)) - ) && base.Equals(input) && - ( - this.ParentSummary == input.ParentSummary || - (this.ParentSummary != null && - this.ParentSummary.Equals(input.ParentSummary)) - ) && base.Equals(input) && - ( - this.Priority == input.Priority || - (this.Priority != null && - this.Priority.Equals(input.Priority)) - ) && base.Equals(input) && - ( - this.RelatedActivities == input.RelatedActivities || - this.RelatedActivities != null && - this.RelatedActivities.SequenceEqual(input.RelatedActivities) - ) && base.Equals(input) && - ( - this.RelatedEntityDescription == input.RelatedEntityDescription || - (this.RelatedEntityDescription != null && - this.RelatedEntityDescription.Equals(input.RelatedEntityDescription)) - ) && base.Equals(input) && - ( - this.RelatedTasks == input.RelatedTasks || - this.RelatedTasks != null && - this.RelatedTasks.SequenceEqual(input.RelatedTasks) - ) && base.Equals(input) && - ( - this.Reminder == input.Reminder || - (this.Reminder != null && - this.Reminder.Equals(input.Reminder)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeActivity == input.TimeActivity || - (this.TimeActivity != null && - this.TimeActivity.Equals(input.TimeActivity)) - ) && base.Equals(input) && - ( - this.WorkgroupID == input.WorkgroupID || - (this.WorkgroupID != null && - this.WorkgroupID.Equals(input.WorkgroupID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Body != null) - hashCode = hashCode * 59 + this.Body.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.CompletedAt != null) - hashCode = hashCode * 59 + this.CompletedAt.GetHashCode(); - if (this.CompletionPercentage != null) - hashCode = hashCode * 59 + this.CompletionPercentage.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.Internal != null) - hashCode = hashCode * 59 + this.Internal.GetHashCode(); - if (this.NoteID != null) - hashCode = hashCode * 59 + this.NoteID.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.Parent != null) - hashCode = hashCode * 59 + this.Parent.GetHashCode(); - if (this.ParentSummary != null) - hashCode = hashCode * 59 + this.ParentSummary.GetHashCode(); - if (this.Priority != null) - hashCode = hashCode * 59 + this.Priority.GetHashCode(); - if (this.RelatedActivities != null) - hashCode = hashCode * 59 + this.RelatedActivities.GetHashCode(); - if (this.RelatedEntityDescription != null) - hashCode = hashCode * 59 + this.RelatedEntityDescription.GetHashCode(); - if (this.RelatedTasks != null) - hashCode = hashCode * 59 + this.RelatedTasks.GetHashCode(); - if (this.Reminder != null) - hashCode = hashCode * 59 + this.Reminder.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeActivity != null) - hashCode = hashCode * 59 + this.TimeActivity.GetHashCode(); - if (this.WorkgroupID != null) - hashCode = hashCode * 59 + this.WorkgroupID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TaskRelatedActivity.cs b/Default.18.200.001/Model/TaskRelatedActivity.cs deleted file mode 100644 index f8339b1b..00000000 --- a/Default.18.200.001/Model/TaskRelatedActivity.cs +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TaskRelatedActivity - /// - [DataContract] - public partial class TaskRelatedActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billable. - /// billableOvertime. - /// billableTime. - /// category. - /// createdAt. - /// createdBy. - /// isCompleteIcon. - /// noteID. - /// overtime. - /// owner. - /// priorityIcon. - /// refNoteID. - /// released. - /// startDate. - /// status. - /// summary. - /// timeSpent. - /// type. - /// workgroup. - public TaskRelatedActivity(BooleanValue billable = default(BooleanValue), StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue category = default(StringValue), DateTimeValue createdAt = default(DateTimeValue), StringValue createdBy = default(StringValue), StringValue isCompleteIcon = default(StringValue), GuidValue noteID = default(GuidValue), StringValue overtime = default(StringValue), StringValue owner = default(StringValue), StringValue priorityIcon = default(StringValue), GuidValue refNoteID = default(GuidValue), BooleanValue released = default(BooleanValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue summary = default(StringValue), StringValue timeSpent = default(StringValue), StringValue type = default(StringValue), StringValue workgroup = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.Category = category; - this.CreatedAt = createdAt; - this.CreatedBy = createdBy; - this.IsCompleteIcon = isCompleteIcon; - this.NoteID = noteID; - this.Overtime = overtime; - this.Owner = owner; - this.PriorityIcon = priorityIcon; - this.RefNoteID = refNoteID; - this.Released = released; - this.StartDate = startDate; - this.Status = status; - this.Summary = summary; - this.TimeSpent = timeSpent; - this.Type = type; - this.Workgroup = workgroup; - } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets Category - /// - [DataMember(Name="Category", EmitDefaultValue=false)] - public StringValue Category { get; set; } - - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name="CreatedAt", EmitDefaultValue=false)] - public DateTimeValue CreatedAt { get; set; } - - /// - /// Gets or Sets CreatedBy - /// - [DataMember(Name="CreatedBy", EmitDefaultValue=false)] - public StringValue CreatedBy { get; set; } - - /// - /// Gets or Sets IsCompleteIcon - /// - [DataMember(Name="IsCompleteIcon", EmitDefaultValue=false)] - public StringValue IsCompleteIcon { get; set; } - - /// - /// Gets or Sets NoteID - /// - [DataMember(Name="NoteID", EmitDefaultValue=false)] - public GuidValue NoteID { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="Owner", EmitDefaultValue=false)] - public StringValue Owner { get; set; } - - /// - /// Gets or Sets PriorityIcon - /// - [DataMember(Name="PriorityIcon", EmitDefaultValue=false)] - public StringValue PriorityIcon { get; set; } - - /// - /// Gets or Sets RefNoteID - /// - [DataMember(Name="RefNoteID", EmitDefaultValue=false)] - public GuidValue RefNoteID { get; set; } - - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets Workgroup - /// - [DataMember(Name="Workgroup", EmitDefaultValue=false)] - public StringValue Workgroup { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskRelatedActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n"); - sb.Append(" IsCompleteIcon: ").Append(IsCompleteIcon).Append("\n"); - sb.Append(" NoteID: ").Append(NoteID).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" PriorityIcon: ").Append(PriorityIcon).Append("\n"); - sb.Append(" RefNoteID: ").Append(RefNoteID).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Workgroup: ").Append(Workgroup).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskRelatedActivity); - } - - /// - /// Returns true if TaskRelatedActivity instances are equal - /// - /// Instance of TaskRelatedActivity to be compared - /// Boolean - public bool Equals(TaskRelatedActivity input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) - ) && base.Equals(input) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && base.Equals(input) && - ( - this.CreatedBy == input.CreatedBy || - (this.CreatedBy != null && - this.CreatedBy.Equals(input.CreatedBy)) - ) && base.Equals(input) && - ( - this.IsCompleteIcon == input.IsCompleteIcon || - (this.IsCompleteIcon != null && - this.IsCompleteIcon.Equals(input.IsCompleteIcon)) - ) && base.Equals(input) && - ( - this.NoteID == input.NoteID || - (this.NoteID != null && - this.NoteID.Equals(input.NoteID)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.Owner == input.Owner || - (this.Owner != null && - this.Owner.Equals(input.Owner)) - ) && base.Equals(input) && - ( - this.PriorityIcon == input.PriorityIcon || - (this.PriorityIcon != null && - this.PriorityIcon.Equals(input.PriorityIcon)) - ) && base.Equals(input) && - ( - this.RefNoteID == input.RefNoteID || - (this.RefNoteID != null && - this.RefNoteID.Equals(input.RefNoteID)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.Workgroup == input.Workgroup || - (this.Workgroup != null && - this.Workgroup.Equals(input.Workgroup)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); - if (this.CreatedBy != null) - hashCode = hashCode * 59 + this.CreatedBy.GetHashCode(); - if (this.IsCompleteIcon != null) - hashCode = hashCode * 59 + this.IsCompleteIcon.GetHashCode(); - if (this.NoteID != null) - hashCode = hashCode * 59 + this.NoteID.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.Owner != null) - hashCode = hashCode * 59 + this.Owner.GetHashCode(); - if (this.PriorityIcon != null) - hashCode = hashCode * 59 + this.PriorityIcon.GetHashCode(); - if (this.RefNoteID != null) - hashCode = hashCode * 59 + this.RefNoteID.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.Workgroup != null) - hashCode = hashCode * 59 + this.Workgroup.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TaskRelatedTask.cs b/Default.18.200.001/Model/TaskRelatedTask.cs deleted file mode 100644 index 69f72117..00000000 --- a/Default.18.200.001/Model/TaskRelatedTask.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TaskRelatedTask - /// - [DataContract] - public partial class TaskRelatedTask : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// completedAt. - /// dueDate. - /// recordID. - /// startDate. - /// status. - /// subject. - public TaskRelatedTask(DateTimeValue completedAt = default(DateTimeValue), DateTimeValue dueDate = default(DateTimeValue), IntValue recordID = default(IntValue), DateTimeValue startDate = default(DateTimeValue), StringValue status = default(StringValue), StringValue subject = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CompletedAt = completedAt; - this.DueDate = dueDate; - this.RecordID = recordID; - this.StartDate = startDate; - this.Status = status; - this.Subject = subject; - } - - /// - /// Gets or Sets CompletedAt - /// - [DataMember(Name="CompletedAt", EmitDefaultValue=false)] - public DateTimeValue CompletedAt { get; set; } - - /// - /// Gets or Sets DueDate - /// - [DataMember(Name="DueDate", EmitDefaultValue=false)] - public DateTimeValue DueDate { get; set; } - - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Subject - /// - [DataMember(Name="Subject", EmitDefaultValue=false)] - public StringValue Subject { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskRelatedTask {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CompletedAt: ").Append(CompletedAt).Append("\n"); - sb.Append(" DueDate: ").Append(DueDate).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskRelatedTask); - } - - /// - /// Returns true if TaskRelatedTask instances are equal - /// - /// Instance of TaskRelatedTask to be compared - /// Boolean - public bool Equals(TaskRelatedTask input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CompletedAt == input.CompletedAt || - (this.CompletedAt != null && - this.CompletedAt.Equals(input.CompletedAt)) - ) && base.Equals(input) && - ( - this.DueDate == input.DueDate || - (this.DueDate != null && - this.DueDate.Equals(input.DueDate)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CompletedAt != null) - hashCode = hashCode * 59 + this.CompletedAt.GetHashCode(); - if (this.DueDate != null) - hashCode = hashCode * 59 + this.DueDate.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Subject != null) - hashCode = hashCode * 59 + this.Subject.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TaskTimeActivity.cs b/Default.18.200.001/Model/TaskTimeActivity.cs deleted file mode 100644 index 345f29ea..00000000 --- a/Default.18.200.001/Model/TaskTimeActivity.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TaskTimeActivity - /// - [DataContract] - public partial class TaskTimeActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// billableOvertime. - /// billableTime. - /// costCode. - /// overtime. - /// project. - /// projectTask. - /// timeSpent. - public TaskTimeActivity(StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue costCode = default(StringValue), StringValue overtime = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), StringValue timeSpent = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.CostCode = costCode; - this.Overtime = overtime; - this.Project = project; - this.ProjectTask = projectTask; - this.TimeSpent = timeSpent; - } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaskTimeActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaskTimeActivity); - } - - /// - /// Returns true if TaskTimeActivity instances are equal - /// - /// Instance of TaskTimeActivity to be compared - /// Boolean - public bool Equals(TaskTimeActivity input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Tax.cs b/Default.18.200.001/Model/Tax.cs deleted file mode 100644 index 1f20de71..00000000 --- a/Default.18.200.001/Model/Tax.cs +++ /dev/null @@ -1,510 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Tax - /// - [DataContract] - public partial class Tax : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// calculateOn. - /// cashDiscount. - /// createdDateTime. - /// deductibleVAT. - /// description. - /// enterFromTaxBill. - /// excludeFromTaxonTaxCalculation. - /// includeInVATExemptTotal. - /// includeInVATTaxableTotal. - /// lastModifiedDateTime. - /// notValidAfter. - /// pendingVAT. - /// reverseVAT. - /// statisticalVAT. - /// taxAgency. - /// taxClaimableAccount. - /// taxClaimableSubaccount. - /// taxExpenseAccount. - /// taxExpenseSubaccount. - /// taxID. - /// taxPayableAccount. - /// taxPayableSubaccount. - /// taxSchedule. - /// taxType. - /// zones. - public Tax(StringValue calculateOn = default(StringValue), StringValue cashDiscount = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), BooleanValue deductibleVAT = default(BooleanValue), StringValue description = default(StringValue), BooleanValue enterFromTaxBill = default(BooleanValue), BooleanValue excludeFromTaxonTaxCalculation = default(BooleanValue), BooleanValue includeInVATExemptTotal = default(BooleanValue), BooleanValue includeInVATTaxableTotal = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DateTimeValue notValidAfter = default(DateTimeValue), BooleanValue pendingVAT = default(BooleanValue), BooleanValue reverseVAT = default(BooleanValue), BooleanValue statisticalVAT = default(BooleanValue), StringValue taxAgency = default(StringValue), StringValue taxClaimableAccount = default(StringValue), StringValue taxClaimableSubaccount = default(StringValue), StringValue taxExpenseAccount = default(StringValue), StringValue taxExpenseSubaccount = default(StringValue), StringValue taxID = default(StringValue), StringValue taxPayableAccount = default(StringValue), StringValue taxPayableSubaccount = default(StringValue), IEnumerable taxSchedule = default(IEnumerable), StringValue taxType = default(StringValue), IEnumerable zones = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CalculateOn = calculateOn; - this.CashDiscount = cashDiscount; - this.CreatedDateTime = createdDateTime; - this.DeductibleVAT = deductibleVAT; - this.Description = description; - this.EnterFromTaxBill = enterFromTaxBill; - this.ExcludeFromTaxonTaxCalculation = excludeFromTaxonTaxCalculation; - this.IncludeInVATExemptTotal = includeInVATExemptTotal; - this.IncludeInVATTaxableTotal = includeInVATTaxableTotal; - this.LastModifiedDateTime = lastModifiedDateTime; - this.NotValidAfter = notValidAfter; - this.PendingVAT = pendingVAT; - this.ReverseVAT = reverseVAT; - this.StatisticalVAT = statisticalVAT; - this.TaxAgency = taxAgency; - this.TaxClaimableAccount = taxClaimableAccount; - this.TaxClaimableSubaccount = taxClaimableSubaccount; - this.TaxExpenseAccount = taxExpenseAccount; - this.TaxExpenseSubaccount = taxExpenseSubaccount; - this.TaxID = taxID; - this.TaxPayableAccount = taxPayableAccount; - this.TaxPayableSubaccount = taxPayableSubaccount; - this.TaxSchedule = taxSchedule; - this.TaxType = taxType; - this.Zones = zones; - } - - /// - /// Gets or Sets CalculateOn - /// - [DataMember(Name="CalculateOn", EmitDefaultValue=false)] - public StringValue CalculateOn { get; set; } - - /// - /// Gets or Sets CashDiscount - /// - [DataMember(Name="CashDiscount", EmitDefaultValue=false)] - public StringValue CashDiscount { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets DeductibleVAT - /// - [DataMember(Name="DeductibleVAT", EmitDefaultValue=false)] - public BooleanValue DeductibleVAT { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EnterFromTaxBill - /// - [DataMember(Name="EnterFromTaxBill", EmitDefaultValue=false)] - public BooleanValue EnterFromTaxBill { get; set; } - - /// - /// Gets or Sets ExcludeFromTaxonTaxCalculation - /// - [DataMember(Name="ExcludeFromTaxonTaxCalculation", EmitDefaultValue=false)] - public BooleanValue ExcludeFromTaxonTaxCalculation { get; set; } - - /// - /// Gets or Sets IncludeInVATExemptTotal - /// - [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] - public BooleanValue IncludeInVATExemptTotal { get; set; } - - /// - /// Gets or Sets IncludeInVATTaxableTotal - /// - [DataMember(Name="IncludeInVATTaxableTotal", EmitDefaultValue=false)] - public BooleanValue IncludeInVATTaxableTotal { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets NotValidAfter - /// - [DataMember(Name="NotValidAfter", EmitDefaultValue=false)] - public DateTimeValue NotValidAfter { get; set; } - - /// - /// Gets or Sets PendingVAT - /// - [DataMember(Name="PendingVAT", EmitDefaultValue=false)] - public BooleanValue PendingVAT { get; set; } - - /// - /// Gets or Sets ReverseVAT - /// - [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] - public BooleanValue ReverseVAT { get; set; } - - /// - /// Gets or Sets StatisticalVAT - /// - [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] - public BooleanValue StatisticalVAT { get; set; } - - /// - /// Gets or Sets TaxAgency - /// - [DataMember(Name="TaxAgency", EmitDefaultValue=false)] - public StringValue TaxAgency { get; set; } - - /// - /// Gets or Sets TaxClaimableAccount - /// - [DataMember(Name="TaxClaimableAccount", EmitDefaultValue=false)] - public StringValue TaxClaimableAccount { get; set; } - - /// - /// Gets or Sets TaxClaimableSubaccount - /// - [DataMember(Name="TaxClaimableSubaccount", EmitDefaultValue=false)] - public StringValue TaxClaimableSubaccount { get; set; } - - /// - /// Gets or Sets TaxExpenseAccount - /// - [DataMember(Name="TaxExpenseAccount", EmitDefaultValue=false)] - public StringValue TaxExpenseAccount { get; set; } - - /// - /// Gets or Sets TaxExpenseSubaccount - /// - [DataMember(Name="TaxExpenseSubaccount", EmitDefaultValue=false)] - public StringValue TaxExpenseSubaccount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxPayableAccount - /// - [DataMember(Name="TaxPayableAccount", EmitDefaultValue=false)] - public StringValue TaxPayableAccount { get; set; } - - /// - /// Gets or Sets TaxPayableSubaccount - /// - [DataMember(Name="TaxPayableSubaccount", EmitDefaultValue=false)] - public StringValue TaxPayableSubaccount { get; set; } - - /// - /// Gets or Sets TaxSchedule - /// - [DataMember(Name="TaxSchedule", EmitDefaultValue=false)] - public IEnumerable TaxSchedule { get; set; } - - /// - /// Gets or Sets TaxType - /// - [DataMember(Name="TaxType", EmitDefaultValue=false)] - public StringValue TaxType { get; set; } - - /// - /// Gets or Sets Zones - /// - [DataMember(Name="Zones", EmitDefaultValue=false)] - public IEnumerable Zones { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Tax {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CalculateOn: ").Append(CalculateOn).Append("\n"); - sb.Append(" CashDiscount: ").Append(CashDiscount).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" DeductibleVAT: ").Append(DeductibleVAT).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EnterFromTaxBill: ").Append(EnterFromTaxBill).Append("\n"); - sb.Append(" ExcludeFromTaxonTaxCalculation: ").Append(ExcludeFromTaxonTaxCalculation).Append("\n"); - sb.Append(" IncludeInVATExemptTotal: ").Append(IncludeInVATExemptTotal).Append("\n"); - sb.Append(" IncludeInVATTaxableTotal: ").Append(IncludeInVATTaxableTotal).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" NotValidAfter: ").Append(NotValidAfter).Append("\n"); - sb.Append(" PendingVAT: ").Append(PendingVAT).Append("\n"); - sb.Append(" ReverseVAT: ").Append(ReverseVAT).Append("\n"); - sb.Append(" StatisticalVAT: ").Append(StatisticalVAT).Append("\n"); - sb.Append(" TaxAgency: ").Append(TaxAgency).Append("\n"); - sb.Append(" TaxClaimableAccount: ").Append(TaxClaimableAccount).Append("\n"); - sb.Append(" TaxClaimableSubaccount: ").Append(TaxClaimableSubaccount).Append("\n"); - sb.Append(" TaxExpenseAccount: ").Append(TaxExpenseAccount).Append("\n"); - sb.Append(" TaxExpenseSubaccount: ").Append(TaxExpenseSubaccount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxPayableAccount: ").Append(TaxPayableAccount).Append("\n"); - sb.Append(" TaxPayableSubaccount: ").Append(TaxPayableSubaccount).Append("\n"); - sb.Append(" TaxSchedule: ").Append(TaxSchedule).Append("\n"); - sb.Append(" TaxType: ").Append(TaxType).Append("\n"); - sb.Append(" Zones: ").Append(Zones).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Tax); - } - - /// - /// Returns true if Tax instances are equal - /// - /// Instance of Tax to be compared - /// Boolean - public bool Equals(Tax input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CalculateOn == input.CalculateOn || - (this.CalculateOn != null && - this.CalculateOn.Equals(input.CalculateOn)) - ) && base.Equals(input) && - ( - this.CashDiscount == input.CashDiscount || - (this.CashDiscount != null && - this.CashDiscount.Equals(input.CashDiscount)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.DeductibleVAT == input.DeductibleVAT || - (this.DeductibleVAT != null && - this.DeductibleVAT.Equals(input.DeductibleVAT)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EnterFromTaxBill == input.EnterFromTaxBill || - (this.EnterFromTaxBill != null && - this.EnterFromTaxBill.Equals(input.EnterFromTaxBill)) - ) && base.Equals(input) && - ( - this.ExcludeFromTaxonTaxCalculation == input.ExcludeFromTaxonTaxCalculation || - (this.ExcludeFromTaxonTaxCalculation != null && - this.ExcludeFromTaxonTaxCalculation.Equals(input.ExcludeFromTaxonTaxCalculation)) - ) && base.Equals(input) && - ( - this.IncludeInVATExemptTotal == input.IncludeInVATExemptTotal || - (this.IncludeInVATExemptTotal != null && - this.IncludeInVATExemptTotal.Equals(input.IncludeInVATExemptTotal)) - ) && base.Equals(input) && - ( - this.IncludeInVATTaxableTotal == input.IncludeInVATTaxableTotal || - (this.IncludeInVATTaxableTotal != null && - this.IncludeInVATTaxableTotal.Equals(input.IncludeInVATTaxableTotal)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.NotValidAfter == input.NotValidAfter || - (this.NotValidAfter != null && - this.NotValidAfter.Equals(input.NotValidAfter)) - ) && base.Equals(input) && - ( - this.PendingVAT == input.PendingVAT || - (this.PendingVAT != null && - this.PendingVAT.Equals(input.PendingVAT)) - ) && base.Equals(input) && - ( - this.ReverseVAT == input.ReverseVAT || - (this.ReverseVAT != null && - this.ReverseVAT.Equals(input.ReverseVAT)) - ) && base.Equals(input) && - ( - this.StatisticalVAT == input.StatisticalVAT || - (this.StatisticalVAT != null && - this.StatisticalVAT.Equals(input.StatisticalVAT)) - ) && base.Equals(input) && - ( - this.TaxAgency == input.TaxAgency || - (this.TaxAgency != null && - this.TaxAgency.Equals(input.TaxAgency)) - ) && base.Equals(input) && - ( - this.TaxClaimableAccount == input.TaxClaimableAccount || - (this.TaxClaimableAccount != null && - this.TaxClaimableAccount.Equals(input.TaxClaimableAccount)) - ) && base.Equals(input) && - ( - this.TaxClaimableSubaccount == input.TaxClaimableSubaccount || - (this.TaxClaimableSubaccount != null && - this.TaxClaimableSubaccount.Equals(input.TaxClaimableSubaccount)) - ) && base.Equals(input) && - ( - this.TaxExpenseAccount == input.TaxExpenseAccount || - (this.TaxExpenseAccount != null && - this.TaxExpenseAccount.Equals(input.TaxExpenseAccount)) - ) && base.Equals(input) && - ( - this.TaxExpenseSubaccount == input.TaxExpenseSubaccount || - (this.TaxExpenseSubaccount != null && - this.TaxExpenseSubaccount.Equals(input.TaxExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxPayableAccount == input.TaxPayableAccount || - (this.TaxPayableAccount != null && - this.TaxPayableAccount.Equals(input.TaxPayableAccount)) - ) && base.Equals(input) && - ( - this.TaxPayableSubaccount == input.TaxPayableSubaccount || - (this.TaxPayableSubaccount != null && - this.TaxPayableSubaccount.Equals(input.TaxPayableSubaccount)) - ) && base.Equals(input) && - ( - this.TaxSchedule == input.TaxSchedule || - this.TaxSchedule != null && - this.TaxSchedule.SequenceEqual(input.TaxSchedule) - ) && base.Equals(input) && - ( - this.TaxType == input.TaxType || - (this.TaxType != null && - this.TaxType.Equals(input.TaxType)) - ) && base.Equals(input) && - ( - this.Zones == input.Zones || - this.Zones != null && - this.Zones.SequenceEqual(input.Zones) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CalculateOn != null) - hashCode = hashCode * 59 + this.CalculateOn.GetHashCode(); - if (this.CashDiscount != null) - hashCode = hashCode * 59 + this.CashDiscount.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.DeductibleVAT != null) - hashCode = hashCode * 59 + this.DeductibleVAT.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EnterFromTaxBill != null) - hashCode = hashCode * 59 + this.EnterFromTaxBill.GetHashCode(); - if (this.ExcludeFromTaxonTaxCalculation != null) - hashCode = hashCode * 59 + this.ExcludeFromTaxonTaxCalculation.GetHashCode(); - if (this.IncludeInVATExemptTotal != null) - hashCode = hashCode * 59 + this.IncludeInVATExemptTotal.GetHashCode(); - if (this.IncludeInVATTaxableTotal != null) - hashCode = hashCode * 59 + this.IncludeInVATTaxableTotal.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.NotValidAfter != null) - hashCode = hashCode * 59 + this.NotValidAfter.GetHashCode(); - if (this.PendingVAT != null) - hashCode = hashCode * 59 + this.PendingVAT.GetHashCode(); - if (this.ReverseVAT != null) - hashCode = hashCode * 59 + this.ReverseVAT.GetHashCode(); - if (this.StatisticalVAT != null) - hashCode = hashCode * 59 + this.StatisticalVAT.GetHashCode(); - if (this.TaxAgency != null) - hashCode = hashCode * 59 + this.TaxAgency.GetHashCode(); - if (this.TaxClaimableAccount != null) - hashCode = hashCode * 59 + this.TaxClaimableAccount.GetHashCode(); - if (this.TaxClaimableSubaccount != null) - hashCode = hashCode * 59 + this.TaxClaimableSubaccount.GetHashCode(); - if (this.TaxExpenseAccount != null) - hashCode = hashCode * 59 + this.TaxExpenseAccount.GetHashCode(); - if (this.TaxExpenseSubaccount != null) - hashCode = hashCode * 59 + this.TaxExpenseSubaccount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxPayableAccount != null) - hashCode = hashCode * 59 + this.TaxPayableAccount.GetHashCode(); - if (this.TaxPayableSubaccount != null) - hashCode = hashCode * 59 + this.TaxPayableSubaccount.GetHashCode(); - if (this.TaxSchedule != null) - hashCode = hashCode * 59 + this.TaxSchedule.GetHashCode(); - if (this.TaxType != null) - hashCode = hashCode * 59 + this.TaxType.GetHashCode(); - if (this.Zones != null) - hashCode = hashCode * 59 + this.Zones.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TaxCategory.cs b/Default.18.200.001/Model/TaxCategory.cs deleted file mode 100644 index 85bce16f..00000000 --- a/Default.18.200.001/Model/TaxCategory.cs +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TaxCategory - /// - [DataContract] - public partial class TaxCategory : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// createdDateTime. - /// description. - /// details. - /// excludeListedTaxes. - /// lastModifiedDateTime. - /// taxCategoryID. - public TaxCategory(BooleanValue active = default(BooleanValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), BooleanValue excludeListedTaxes = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue taxCategoryID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.Details = details; - this.ExcludeListedTaxes = excludeListedTaxes; - this.LastModifiedDateTime = lastModifiedDateTime; - this.TaxCategoryID = taxCategoryID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets ExcludeListedTaxes - /// - [DataMember(Name="ExcludeListedTaxes", EmitDefaultValue=false)] - public BooleanValue ExcludeListedTaxes { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets TaxCategoryID - /// - [DataMember(Name="TaxCategoryID", EmitDefaultValue=false)] - public StringValue TaxCategoryID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxCategory {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" ExcludeListedTaxes: ").Append(ExcludeListedTaxes).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" TaxCategoryID: ").Append(TaxCategoryID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxCategory); - } - - /// - /// Returns true if TaxCategory instances are equal - /// - /// Instance of TaxCategory to be compared - /// Boolean - public bool Equals(TaxCategory input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.ExcludeListedTaxes == input.ExcludeListedTaxes || - (this.ExcludeListedTaxes != null && - this.ExcludeListedTaxes.Equals(input.ExcludeListedTaxes)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.TaxCategoryID == input.TaxCategoryID || - (this.TaxCategoryID != null && - this.TaxCategoryID.Equals(input.TaxCategoryID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.ExcludeListedTaxes != null) - hashCode = hashCode * 59 + this.ExcludeListedTaxes.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.TaxCategoryID != null) - hashCode = hashCode * 59 + this.TaxCategoryID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TaxCategoryTaxDetail.cs b/Default.18.200.001/Model/TaxCategoryTaxDetail.cs deleted file mode 100644 index 542938a4..00000000 --- a/Default.18.200.001/Model/TaxCategoryTaxDetail.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TaxCategoryTaxDetail - /// - [DataContract] - public partial class TaxCategoryTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// calculateOn. - /// cashDiscount. - /// description. - /// taxCategory. - /// taxID. - /// taxType. - public TaxCategoryTaxDetail(StringValue calculateOn = default(StringValue), StringValue cashDiscount = default(StringValue), StringValue description = default(StringValue), StringValue taxCategory = default(StringValue), StringValue taxID = default(StringValue), StringValue taxType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CalculateOn = calculateOn; - this.CashDiscount = cashDiscount; - this.Description = description; - this.TaxCategory = taxCategory; - this.TaxID = taxID; - this.TaxType = taxType; - } - - /// - /// Gets or Sets CalculateOn - /// - [DataMember(Name="CalculateOn", EmitDefaultValue=false)] - public StringValue CalculateOn { get; set; } - - /// - /// Gets or Sets CashDiscount - /// - [DataMember(Name="CashDiscount", EmitDefaultValue=false)] - public StringValue CashDiscount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxType - /// - [DataMember(Name="TaxType", EmitDefaultValue=false)] - public StringValue TaxType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxCategoryTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CalculateOn: ").Append(CalculateOn).Append("\n"); - sb.Append(" CashDiscount: ").Append(CashDiscount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxType: ").Append(TaxType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxCategoryTaxDetail); - } - - /// - /// Returns true if TaxCategoryTaxDetail instances are equal - /// - /// Instance of TaxCategoryTaxDetail to be compared - /// Boolean - public bool Equals(TaxCategoryTaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CalculateOn == input.CalculateOn || - (this.CalculateOn != null && - this.CalculateOn.Equals(input.CalculateOn)) - ) && base.Equals(input) && - ( - this.CashDiscount == input.CashDiscount || - (this.CashDiscount != null && - this.CashDiscount.Equals(input.CashDiscount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxType == input.TaxType || - (this.TaxType != null && - this.TaxType.Equals(input.TaxType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CalculateOn != null) - hashCode = hashCode * 59 + this.CalculateOn.GetHashCode(); - if (this.CashDiscount != null) - hashCode = hashCode * 59 + this.CashDiscount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxType != null) - hashCode = hashCode * 59 + this.TaxType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TaxDetail.cs b/Default.18.200.001/Model/TaxDetail.cs deleted file mode 100644 index 574fda07..00000000 --- a/Default.18.200.001/Model/TaxDetail.cs +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TaxDetail - /// - [DataContract] - public partial class TaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// includeInVATExemptTotal. - /// lineNbr. - /// orderNbr. - /// orderType. - /// pendingVAT. - /// recordID. - /// reverseVAT. - /// statisticalVAT. - /// taxableAmount. - /// taxAmount. - /// taxID. - /// taxRate. - /// taxType. - public TaxDetail(BooleanValue includeInVATExemptTotal = default(BooleanValue), IntValue lineNbr = default(IntValue), StringValue orderNbr = default(StringValue), StringValue orderType = default(StringValue), BooleanValue pendingVAT = default(BooleanValue), IntValue recordID = default(IntValue), BooleanValue reverseVAT = default(BooleanValue), BooleanValue statisticalVAT = default(BooleanValue), DecimalValue taxableAmount = default(DecimalValue), DecimalValue taxAmount = default(DecimalValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), StringValue taxType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.IncludeInVATExemptTotal = includeInVATExemptTotal; - this.LineNbr = lineNbr; - this.OrderNbr = orderNbr; - this.OrderType = orderType; - this.PendingVAT = pendingVAT; - this.RecordID = recordID; - this.ReverseVAT = reverseVAT; - this.StatisticalVAT = statisticalVAT; - this.TaxableAmount = taxableAmount; - this.TaxAmount = taxAmount; - this.TaxID = taxID; - this.TaxRate = taxRate; - this.TaxType = taxType; - } - - /// - /// Gets or Sets IncludeInVATExemptTotal - /// - [DataMember(Name="IncludeInVATExemptTotal", EmitDefaultValue=false)] - public BooleanValue IncludeInVATExemptTotal { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets OrderNbr - /// - [DataMember(Name="OrderNbr", EmitDefaultValue=false)] - public StringValue OrderNbr { get; set; } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name="OrderType", EmitDefaultValue=false)] - public StringValue OrderType { get; set; } - - /// - /// Gets or Sets PendingVAT - /// - [DataMember(Name="PendingVAT", EmitDefaultValue=false)] - public BooleanValue PendingVAT { get; set; } - - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } - - /// - /// Gets or Sets ReverseVAT - /// - [DataMember(Name="ReverseVAT", EmitDefaultValue=false)] - public BooleanValue ReverseVAT { get; set; } - - /// - /// Gets or Sets StatisticalVAT - /// - [DataMember(Name="StatisticalVAT", EmitDefaultValue=false)] - public BooleanValue StatisticalVAT { get; set; } - - /// - /// Gets or Sets TaxableAmount - /// - [DataMember(Name="TaxableAmount", EmitDefaultValue=false)] - public DecimalValue TaxableAmount { get; set; } - - /// - /// Gets or Sets TaxAmount - /// - [DataMember(Name="TaxAmount", EmitDefaultValue=false)] - public DecimalValue TaxAmount { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Gets or Sets TaxType - /// - [DataMember(Name="TaxType", EmitDefaultValue=false)] - public StringValue TaxType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" IncludeInVATExemptTotal: ").Append(IncludeInVATExemptTotal).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" OrderNbr: ").Append(OrderNbr).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" PendingVAT: ").Append(PendingVAT).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" ReverseVAT: ").Append(ReverseVAT).Append("\n"); - sb.Append(" StatisticalVAT: ").Append(StatisticalVAT).Append("\n"); - sb.Append(" TaxableAmount: ").Append(TaxableAmount).Append("\n"); - sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append(" TaxType: ").Append(TaxType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxDetail); - } - - /// - /// Returns true if TaxDetail instances are equal - /// - /// Instance of TaxDetail to be compared - /// Boolean - public bool Equals(TaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.IncludeInVATExemptTotal == input.IncludeInVATExemptTotal || - (this.IncludeInVATExemptTotal != null && - this.IncludeInVATExemptTotal.Equals(input.IncludeInVATExemptTotal)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.OrderNbr == input.OrderNbr || - (this.OrderNbr != null && - this.OrderNbr.Equals(input.OrderNbr)) - ) && base.Equals(input) && - ( - this.OrderType == input.OrderType || - (this.OrderType != null && - this.OrderType.Equals(input.OrderType)) - ) && base.Equals(input) && - ( - this.PendingVAT == input.PendingVAT || - (this.PendingVAT != null && - this.PendingVAT.Equals(input.PendingVAT)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.ReverseVAT == input.ReverseVAT || - (this.ReverseVAT != null && - this.ReverseVAT.Equals(input.ReverseVAT)) - ) && base.Equals(input) && - ( - this.StatisticalVAT == input.StatisticalVAT || - (this.StatisticalVAT != null && - this.StatisticalVAT.Equals(input.StatisticalVAT)) - ) && base.Equals(input) && - ( - this.TaxableAmount == input.TaxableAmount || - (this.TaxableAmount != null && - this.TaxableAmount.Equals(input.TaxableAmount)) - ) && base.Equals(input) && - ( - this.TaxAmount == input.TaxAmount || - (this.TaxAmount != null && - this.TaxAmount.Equals(input.TaxAmount)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ) && base.Equals(input) && - ( - this.TaxType == input.TaxType || - (this.TaxType != null && - this.TaxType.Equals(input.TaxType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.IncludeInVATExemptTotal != null) - hashCode = hashCode * 59 + this.IncludeInVATExemptTotal.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.OrderNbr != null) - hashCode = hashCode * 59 + this.OrderNbr.GetHashCode(); - if (this.OrderType != null) - hashCode = hashCode * 59 + this.OrderType.GetHashCode(); - if (this.PendingVAT != null) - hashCode = hashCode * 59 + this.PendingVAT.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.ReverseVAT != null) - hashCode = hashCode * 59 + this.ReverseVAT.GetHashCode(); - if (this.StatisticalVAT != null) - hashCode = hashCode * 59 + this.StatisticalVAT.GetHashCode(); - if (this.TaxableAmount != null) - hashCode = hashCode * 59 + this.TaxableAmount.GetHashCode(); - if (this.TaxAmount != null) - hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - if (this.TaxType != null) - hashCode = hashCode * 59 + this.TaxType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TaxScheduleDetail.cs b/Default.18.200.001/Model/TaxScheduleDetail.cs deleted file mode 100644 index 22b8441d..00000000 --- a/Default.18.200.001/Model/TaxScheduleDetail.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TaxScheduleDetail - /// - [DataContract] - public partial class TaxScheduleDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// deductibleTaxRate. - /// maxTaxableAmount. - /// minTaxableAmount. - /// reportingGroup. - /// revisionID. - /// startDate. - /// taxID. - /// taxRate. - public TaxScheduleDetail(DecimalValue deductibleTaxRate = default(DecimalValue), DecimalValue maxTaxableAmount = default(DecimalValue), DecimalValue minTaxableAmount = default(DecimalValue), StringValue reportingGroup = default(StringValue), IntValue revisionID = default(IntValue), DateTimeValue startDate = default(DateTimeValue), StringValue taxID = default(StringValue), DecimalValue taxRate = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DeductibleTaxRate = deductibleTaxRate; - this.MaxTaxableAmount = maxTaxableAmount; - this.MinTaxableAmount = minTaxableAmount; - this.ReportingGroup = reportingGroup; - this.RevisionID = revisionID; - this.StartDate = startDate; - this.TaxID = taxID; - this.TaxRate = taxRate; - } - - /// - /// Gets or Sets DeductibleTaxRate - /// - [DataMember(Name="DeductibleTaxRate", EmitDefaultValue=false)] - public DecimalValue DeductibleTaxRate { get; set; } - - /// - /// Gets or Sets MaxTaxableAmount - /// - [DataMember(Name="MaxTaxableAmount", EmitDefaultValue=false)] - public DecimalValue MaxTaxableAmount { get; set; } - - /// - /// Gets or Sets MinTaxableAmount - /// - [DataMember(Name="MinTaxableAmount", EmitDefaultValue=false)] - public DecimalValue MinTaxableAmount { get; set; } - - /// - /// Gets or Sets ReportingGroup - /// - [DataMember(Name="ReportingGroup", EmitDefaultValue=false)] - public StringValue ReportingGroup { get; set; } - - /// - /// Gets or Sets RevisionID - /// - [DataMember(Name="RevisionID", EmitDefaultValue=false)] - public IntValue RevisionID { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name="StartDate", EmitDefaultValue=false)] - public DateTimeValue StartDate { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxRate - /// - [DataMember(Name="TaxRate", EmitDefaultValue=false)] - public DecimalValue TaxRate { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxScheduleDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DeductibleTaxRate: ").Append(DeductibleTaxRate).Append("\n"); - sb.Append(" MaxTaxableAmount: ").Append(MaxTaxableAmount).Append("\n"); - sb.Append(" MinTaxableAmount: ").Append(MinTaxableAmount).Append("\n"); - sb.Append(" ReportingGroup: ").Append(ReportingGroup).Append("\n"); - sb.Append(" RevisionID: ").Append(RevisionID).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxRate: ").Append(TaxRate).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxScheduleDetail); - } - - /// - /// Returns true if TaxScheduleDetail instances are equal - /// - /// Instance of TaxScheduleDetail to be compared - /// Boolean - public bool Equals(TaxScheduleDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DeductibleTaxRate == input.DeductibleTaxRate || - (this.DeductibleTaxRate != null && - this.DeductibleTaxRate.Equals(input.DeductibleTaxRate)) - ) && base.Equals(input) && - ( - this.MaxTaxableAmount == input.MaxTaxableAmount || - (this.MaxTaxableAmount != null && - this.MaxTaxableAmount.Equals(input.MaxTaxableAmount)) - ) && base.Equals(input) && - ( - this.MinTaxableAmount == input.MinTaxableAmount || - (this.MinTaxableAmount != null && - this.MinTaxableAmount.Equals(input.MinTaxableAmount)) - ) && base.Equals(input) && - ( - this.ReportingGroup == input.ReportingGroup || - (this.ReportingGroup != null && - this.ReportingGroup.Equals(input.ReportingGroup)) - ) && base.Equals(input) && - ( - this.RevisionID == input.RevisionID || - (this.RevisionID != null && - this.RevisionID.Equals(input.RevisionID)) - ) && base.Equals(input) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxRate == input.TaxRate || - (this.TaxRate != null && - this.TaxRate.Equals(input.TaxRate)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DeductibleTaxRate != null) - hashCode = hashCode * 59 + this.DeductibleTaxRate.GetHashCode(); - if (this.MaxTaxableAmount != null) - hashCode = hashCode * 59 + this.MaxTaxableAmount.GetHashCode(); - if (this.MinTaxableAmount != null) - hashCode = hashCode * 59 + this.MinTaxableAmount.GetHashCode(); - if (this.ReportingGroup != null) - hashCode = hashCode * 59 + this.ReportingGroup.GetHashCode(); - if (this.RevisionID != null) - hashCode = hashCode * 59 + this.RevisionID.GetHashCode(); - if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxRate != null) - hashCode = hashCode * 59 + this.TaxRate.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TaxZone.cs b/Default.18.200.001/Model/TaxZone.cs deleted file mode 100644 index 5c34be91..00000000 --- a/Default.18.200.001/Model/TaxZone.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TaxZone - /// - [DataContract] - public partial class TaxZone : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// applicableTaxes. - /// createdDateTime. - /// description. - /// lastModifiedDateTime. - /// taxZoneID. - public TaxZone(IEnumerable applicableTaxes = default(IEnumerable), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue taxZoneID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApplicableTaxes = applicableTaxes; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - this.TaxZoneID = taxZoneID; - } - - /// - /// Gets or Sets ApplicableTaxes - /// - [DataMember(Name="ApplicableTaxes", EmitDefaultValue=false)] - public IEnumerable ApplicableTaxes { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets TaxZoneID - /// - [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] - public StringValue TaxZoneID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxZone {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApplicableTaxes: ").Append(ApplicableTaxes).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" TaxZoneID: ").Append(TaxZoneID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxZone); - } - - /// - /// Returns true if TaxZone instances are equal - /// - /// Instance of TaxZone to be compared - /// Boolean - public bool Equals(TaxZone input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ApplicableTaxes == input.ApplicableTaxes || - this.ApplicableTaxes != null && - this.ApplicableTaxes.SequenceEqual(input.ApplicableTaxes) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.TaxZoneID == input.TaxZoneID || - (this.TaxZoneID != null && - this.TaxZoneID.Equals(input.TaxZoneID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApplicableTaxes != null) - hashCode = hashCode * 59 + this.ApplicableTaxes.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.TaxZoneID != null) - hashCode = hashCode * 59 + this.TaxZoneID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TaxZoneApplicableTaxDetail.cs b/Default.18.200.001/Model/TaxZoneApplicableTaxDetail.cs deleted file mode 100644 index c3e87fcf..00000000 --- a/Default.18.200.001/Model/TaxZoneApplicableTaxDetail.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TaxZoneApplicableTaxDetail - /// - [DataContract] - public partial class TaxZoneApplicableTaxDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// taxID. - public TaxZoneApplicableTaxDetail(StringValue taxID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.TaxID = taxID; - } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxZoneApplicableTaxDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxZoneApplicableTaxDetail); - } - - /// - /// Returns true if TaxZoneApplicableTaxDetail instances are equal - /// - /// Instance of TaxZoneApplicableTaxDetail to be compared - /// Boolean - public bool Equals(TaxZoneApplicableTaxDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TaxZoneDetail.cs b/Default.18.200.001/Model/TaxZoneDetail.cs deleted file mode 100644 index 213202bd..00000000 --- a/Default.18.200.001/Model/TaxZoneDetail.cs +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TaxZoneDetail - /// - [DataContract] - public partial class TaxZoneDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// defaultTaxCategory. - /// description. - /// taxID. - /// taxZoneID. - public TaxZoneDetail(StringValue defaultTaxCategory = default(StringValue), StringValue description = default(StringValue), StringValue taxID = default(StringValue), StringValue taxZoneID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DefaultTaxCategory = defaultTaxCategory; - this.Description = description; - this.TaxID = taxID; - this.TaxZoneID = taxZoneID; - } - - /// - /// Gets or Sets DefaultTaxCategory - /// - [DataMember(Name="DefaultTaxCategory", EmitDefaultValue=false)] - public StringValue DefaultTaxCategory { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets TaxID - /// - [DataMember(Name="TaxID", EmitDefaultValue=false)] - public StringValue TaxID { get; set; } - - /// - /// Gets or Sets TaxZoneID - /// - [DataMember(Name="TaxZoneID", EmitDefaultValue=false)] - public StringValue TaxZoneID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TaxZoneDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DefaultTaxCategory: ").Append(DefaultTaxCategory).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" TaxID: ").Append(TaxID).Append("\n"); - sb.Append(" TaxZoneID: ").Append(TaxZoneID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TaxZoneDetail); - } - - /// - /// Returns true if TaxZoneDetail instances are equal - /// - /// Instance of TaxZoneDetail to be compared - /// Boolean - public bool Equals(TaxZoneDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DefaultTaxCategory == input.DefaultTaxCategory || - (this.DefaultTaxCategory != null && - this.DefaultTaxCategory.Equals(input.DefaultTaxCategory)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.TaxID == input.TaxID || - (this.TaxID != null && - this.TaxID.Equals(input.TaxID)) - ) && base.Equals(input) && - ( - this.TaxZoneID == input.TaxZoneID || - (this.TaxZoneID != null && - this.TaxZoneID.Equals(input.TaxZoneID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DefaultTaxCategory != null) - hashCode = hashCode * 59 + this.DefaultTaxCategory.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.TaxID != null) - hashCode = hashCode * 59 + this.TaxID.GetHashCode(); - if (this.TaxZoneID != null) - hashCode = hashCode * 59 + this.TaxZoneID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TimeActivity.cs b/Default.18.200.001/Model/TimeActivity.cs deleted file mode 100644 index 7eb5abb3..00000000 --- a/Default.18.200.001/Model/TimeActivity.cs +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TimeActivity - /// - [DataContract] - public partial class TimeActivity : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// approver. - /// billable. - /// billableOvertime. - /// billableTime. - /// costCode. - /// earningType. - /// overtime. - /// project. - /// projectTask. - /// referenceNbr. - /// released. - /// status. - /// timeSpent. - /// trackTime. - public TimeActivity(StringValue approver = default(StringValue), BooleanValue billable = default(BooleanValue), StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), StringValue costCode = default(StringValue), StringValue earningType = default(StringValue), StringValue overtime = default(StringValue), StringValue project = default(StringValue), StringValue projectTask = default(StringValue), StringValue referenceNbr = default(StringValue), BooleanValue released = default(BooleanValue), StringValue status = default(StringValue), StringValue timeSpent = default(StringValue), BooleanValue trackTime = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Approver = approver; - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.CostCode = costCode; - this.EarningType = earningType; - this.Overtime = overtime; - this.Project = project; - this.ProjectTask = projectTask; - this.ReferenceNbr = referenceNbr; - this.Released = released; - this.Status = status; - this.TimeSpent = timeSpent; - this.TrackTime = trackTime; - } - - /// - /// Gets or Sets Approver - /// - [DataMember(Name="Approver", EmitDefaultValue=false)] - public StringValue Approver { get; set; } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets EarningType - /// - [DataMember(Name="EarningType", EmitDefaultValue=false)] - public StringValue EarningType { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets Project - /// - [DataMember(Name="Project", EmitDefaultValue=false)] - public StringValue Project { get; set; } - - /// - /// Gets or Sets ProjectTask - /// - [DataMember(Name="ProjectTask", EmitDefaultValue=false)] - public StringValue ProjectTask { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Released - /// - [DataMember(Name="Released", EmitDefaultValue=false)] - public BooleanValue Released { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Gets or Sets TrackTime - /// - [DataMember(Name="TrackTime", EmitDefaultValue=false)] - public BooleanValue TrackTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TimeActivity {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Approver: ").Append(Approver).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" EarningType: ").Append(EarningType).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" Project: ").Append(Project).Append("\n"); - sb.Append(" ProjectTask: ").Append(ProjectTask).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Released: ").Append(Released).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" TrackTime: ").Append(TrackTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TimeActivity); - } - - /// - /// Returns true if TimeActivity instances are equal - /// - /// Instance of TimeActivity to be compared - /// Boolean - public bool Equals(TimeActivity input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Approver == input.Approver || - (this.Approver != null && - this.Approver.Equals(input.Approver)) - ) && base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.EarningType == input.EarningType || - (this.EarningType != null && - this.EarningType.Equals(input.EarningType)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.Project == input.Project || - (this.Project != null && - this.Project.Equals(input.Project)) - ) && base.Equals(input) && - ( - this.ProjectTask == input.ProjectTask || - (this.ProjectTask != null && - this.ProjectTask.Equals(input.ProjectTask)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Released == input.Released || - (this.Released != null && - this.Released.Equals(input.Released)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.TrackTime == input.TrackTime || - (this.TrackTime != null && - this.TrackTime.Equals(input.TrackTime)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Approver != null) - hashCode = hashCode * 59 + this.Approver.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.EarningType != null) - hashCode = hashCode * 59 + this.EarningType.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.Project != null) - hashCode = hashCode * 59 + this.Project.GetHashCode(); - if (this.ProjectTask != null) - hashCode = hashCode * 59 + this.ProjectTask.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Released != null) - hashCode = hashCode * 59 + this.Released.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.TrackTime != null) - hashCode = hashCode * 59 + this.TrackTime.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TimeAndMaterial.cs b/Default.18.200.001/Model/TimeAndMaterial.cs deleted file mode 100644 index 9004f84e..00000000 --- a/Default.18.200.001/Model/TimeAndMaterial.cs +++ /dev/null @@ -1,494 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TimeAndMaterial - /// - [DataContract] - public partial class TimeAndMaterial : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// amountToInvoice. - /// billedAmount. - /// billedQty. - /// branch. - /// costCode. - /// date. - /// deferralCode. - /// description. - /// employeeID. - /// inventoryID. - /// maxAvailableAmount. - /// maxLimitAmount. - /// overLimitAmount. - /// projectTaskID. - /// qtyToInvoice. - /// retainage. - /// retainageAmount. - /// salesAccount. - /// salesSubaccount. - /// status. - /// taxCategory. - /// unitPrice. - /// uOM. - /// vendor. - public TimeAndMaterial(DecimalValue amountToInvoice = default(DecimalValue), DecimalValue billedAmount = default(DecimalValue), DecimalValue billedQty = default(DecimalValue), StringValue branch = default(StringValue), StringValue costCode = default(StringValue), DateTimeValue date = default(DateTimeValue), StringValue deferralCode = default(StringValue), StringValue description = default(StringValue), StringValue employeeID = default(StringValue), StringValue inventoryID = default(StringValue), DecimalValue maxAvailableAmount = default(DecimalValue), DecimalValue maxLimitAmount = default(DecimalValue), DecimalValue overLimitAmount = default(DecimalValue), StringValue projectTaskID = default(StringValue), DecimalValue qtyToInvoice = default(DecimalValue), DecimalValue retainage = default(DecimalValue), DecimalValue retainageAmount = default(DecimalValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), StringValue status = default(StringValue), StringValue taxCategory = default(StringValue), DecimalValue unitPrice = default(DecimalValue), StringValue uOM = default(StringValue), StringValue vendor = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AmountToInvoice = amountToInvoice; - this.BilledAmount = billedAmount; - this.BilledQty = billedQty; - this.Branch = branch; - this.CostCode = costCode; - this.Date = date; - this.DeferralCode = deferralCode; - this.Description = description; - this.EmployeeID = employeeID; - this.InventoryID = inventoryID; - this.MaxAvailableAmount = maxAvailableAmount; - this.MaxLimitAmount = maxLimitAmount; - this.OverLimitAmount = overLimitAmount; - this.ProjectTaskID = projectTaskID; - this.QtyToInvoice = qtyToInvoice; - this.Retainage = retainage; - this.RetainageAmount = retainageAmount; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.Status = status; - this.TaxCategory = taxCategory; - this.UnitPrice = unitPrice; - this.UOM = uOM; - this.Vendor = vendor; - } - - /// - /// Gets or Sets AmountToInvoice - /// - [DataMember(Name="AmountToInvoice", EmitDefaultValue=false)] - public DecimalValue AmountToInvoice { get; set; } - - /// - /// Gets or Sets BilledAmount - /// - [DataMember(Name="BilledAmount", EmitDefaultValue=false)] - public DecimalValue BilledAmount { get; set; } - - /// - /// Gets or Sets BilledQty - /// - [DataMember(Name="BilledQty", EmitDefaultValue=false)] - public DecimalValue BilledQty { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets DeferralCode - /// - [DataMember(Name="DeferralCode", EmitDefaultValue=false)] - public StringValue DeferralCode { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EmployeeID - /// - [DataMember(Name="EmployeeID", EmitDefaultValue=false)] - public StringValue EmployeeID { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets MaxAvailableAmount - /// - [DataMember(Name="MaxAvailableAmount", EmitDefaultValue=false)] - public DecimalValue MaxAvailableAmount { get; set; } - - /// - /// Gets or Sets MaxLimitAmount - /// - [DataMember(Name="MaxLimitAmount", EmitDefaultValue=false)] - public DecimalValue MaxLimitAmount { get; set; } - - /// - /// Gets or Sets OverLimitAmount - /// - [DataMember(Name="OverLimitAmount", EmitDefaultValue=false)] - public DecimalValue OverLimitAmount { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets QtyToInvoice - /// - [DataMember(Name="QtyToInvoice", EmitDefaultValue=false)] - public DecimalValue QtyToInvoice { get; set; } - - /// - /// Gets or Sets Retainage - /// - [DataMember(Name="Retainage", EmitDefaultValue=false)] - public DecimalValue Retainage { get; set; } - - /// - /// Gets or Sets RetainageAmount - /// - [DataMember(Name="RetainageAmount", EmitDefaultValue=false)] - public DecimalValue RetainageAmount { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxCategory - /// - [DataMember(Name="TaxCategory", EmitDefaultValue=false)] - public StringValue TaxCategory { get; set; } - - /// - /// Gets or Sets UnitPrice - /// - [DataMember(Name="UnitPrice", EmitDefaultValue=false)] - public DecimalValue UnitPrice { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TimeAndMaterial {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AmountToInvoice: ").Append(AmountToInvoice).Append("\n"); - sb.Append(" BilledAmount: ").Append(BilledAmount).Append("\n"); - sb.Append(" BilledQty: ").Append(BilledQty).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" DeferralCode: ").Append(DeferralCode).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EmployeeID: ").Append(EmployeeID).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" MaxAvailableAmount: ").Append(MaxAvailableAmount).Append("\n"); - sb.Append(" MaxLimitAmount: ").Append(MaxLimitAmount).Append("\n"); - sb.Append(" OverLimitAmount: ").Append(OverLimitAmount).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" QtyToInvoice: ").Append(QtyToInvoice).Append("\n"); - sb.Append(" Retainage: ").Append(Retainage).Append("\n"); - sb.Append(" RetainageAmount: ").Append(RetainageAmount).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxCategory: ").Append(TaxCategory).Append("\n"); - sb.Append(" UnitPrice: ").Append(UnitPrice).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TimeAndMaterial); - } - - /// - /// Returns true if TimeAndMaterial instances are equal - /// - /// Instance of TimeAndMaterial to be compared - /// Boolean - public bool Equals(TimeAndMaterial input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AmountToInvoice == input.AmountToInvoice || - (this.AmountToInvoice != null && - this.AmountToInvoice.Equals(input.AmountToInvoice)) - ) && base.Equals(input) && - ( - this.BilledAmount == input.BilledAmount || - (this.BilledAmount != null && - this.BilledAmount.Equals(input.BilledAmount)) - ) && base.Equals(input) && - ( - this.BilledQty == input.BilledQty || - (this.BilledQty != null && - this.BilledQty.Equals(input.BilledQty)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.DeferralCode == input.DeferralCode || - (this.DeferralCode != null && - this.DeferralCode.Equals(input.DeferralCode)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EmployeeID == input.EmployeeID || - (this.EmployeeID != null && - this.EmployeeID.Equals(input.EmployeeID)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.MaxAvailableAmount == input.MaxAvailableAmount || - (this.MaxAvailableAmount != null && - this.MaxAvailableAmount.Equals(input.MaxAvailableAmount)) - ) && base.Equals(input) && - ( - this.MaxLimitAmount == input.MaxLimitAmount || - (this.MaxLimitAmount != null && - this.MaxLimitAmount.Equals(input.MaxLimitAmount)) - ) && base.Equals(input) && - ( - this.OverLimitAmount == input.OverLimitAmount || - (this.OverLimitAmount != null && - this.OverLimitAmount.Equals(input.OverLimitAmount)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.QtyToInvoice == input.QtyToInvoice || - (this.QtyToInvoice != null && - this.QtyToInvoice.Equals(input.QtyToInvoice)) - ) && base.Equals(input) && - ( - this.Retainage == input.Retainage || - (this.Retainage != null && - this.Retainage.Equals(input.Retainage)) - ) && base.Equals(input) && - ( - this.RetainageAmount == input.RetainageAmount || - (this.RetainageAmount != null && - this.RetainageAmount.Equals(input.RetainageAmount)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxCategory == input.TaxCategory || - (this.TaxCategory != null && - this.TaxCategory.Equals(input.TaxCategory)) - ) && base.Equals(input) && - ( - this.UnitPrice == input.UnitPrice || - (this.UnitPrice != null && - this.UnitPrice.Equals(input.UnitPrice)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AmountToInvoice != null) - hashCode = hashCode * 59 + this.AmountToInvoice.GetHashCode(); - if (this.BilledAmount != null) - hashCode = hashCode * 59 + this.BilledAmount.GetHashCode(); - if (this.BilledQty != null) - hashCode = hashCode * 59 + this.BilledQty.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.DeferralCode != null) - hashCode = hashCode * 59 + this.DeferralCode.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EmployeeID != null) - hashCode = hashCode * 59 + this.EmployeeID.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.MaxAvailableAmount != null) - hashCode = hashCode * 59 + this.MaxAvailableAmount.GetHashCode(); - if (this.MaxLimitAmount != null) - hashCode = hashCode * 59 + this.MaxLimitAmount.GetHashCode(); - if (this.OverLimitAmount != null) - hashCode = hashCode * 59 + this.OverLimitAmount.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.QtyToInvoice != null) - hashCode = hashCode * 59 + this.QtyToInvoice.GetHashCode(); - if (this.Retainage != null) - hashCode = hashCode * 59 + this.Retainage.GetHashCode(); - if (this.RetainageAmount != null) - hashCode = hashCode * 59 + this.RetainageAmount.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxCategory != null) - hashCode = hashCode * 59 + this.TaxCategory.GetHashCode(); - if (this.UnitPrice != null) - hashCode = hashCode * 59 + this.UnitPrice.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TimeEntry.cs b/Default.18.200.001/Model/TimeEntry.cs deleted file mode 100644 index 31fb6df3..00000000 --- a/Default.18.200.001/Model/TimeEntry.cs +++ /dev/null @@ -1,478 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TimeEntry - /// - [DataContract] - public partial class TimeEntry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// approvalStatus. - /// approver. - /// billable. - /// billableOvertime. - /// billableTime. - /// certifiedJob. - /// costCode. - /// costRate. - /// date. - /// earningType. - /// employee. - /// externalRefNbr. - /// laborItem. - /// lastModifiedDateTime. - /// overtime. - /// projectID. - /// projectTaskID. - /// summary. - /// time. - /// timeEntryID. - /// timeSpent. - /// unionLocal. - /// wCCCode. - public TimeEntry(StringValue approvalStatus = default(StringValue), StringValue approver = default(StringValue), BooleanValue billable = default(BooleanValue), StringValue billableOvertime = default(StringValue), StringValue billableTime = default(StringValue), BooleanValue certifiedJob = default(BooleanValue), StringValue costCode = default(StringValue), DecimalValue costRate = default(DecimalValue), DateTimeValue date = default(DateTimeValue), StringValue earningType = default(StringValue), StringValue employee = default(StringValue), StringValue externalRefNbr = default(StringValue), StringValue laborItem = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue overtime = default(StringValue), StringValue projectID = default(StringValue), StringValue projectTaskID = default(StringValue), StringValue summary = default(StringValue), DateTimeValue time = default(DateTimeValue), GuidValue timeEntryID = default(GuidValue), StringValue timeSpent = default(StringValue), StringValue unionLocal = default(StringValue), StringValue wCCCode = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ApprovalStatus = approvalStatus; - this.Approver = approver; - this.Billable = billable; - this.BillableOvertime = billableOvertime; - this.BillableTime = billableTime; - this.CertifiedJob = certifiedJob; - this.CostCode = costCode; - this.CostRate = costRate; - this.Date = date; - this.EarningType = earningType; - this.Employee = employee; - this.ExternalRefNbr = externalRefNbr; - this.LaborItem = laborItem; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Overtime = overtime; - this.ProjectID = projectID; - this.ProjectTaskID = projectTaskID; - this.Summary = summary; - this.Time = time; - this.TimeEntryID = timeEntryID; - this.TimeSpent = timeSpent; - this.UnionLocal = unionLocal; - this.WCCCode = wCCCode; - } - - /// - /// Gets or Sets ApprovalStatus - /// - [DataMember(Name="ApprovalStatus", EmitDefaultValue=false)] - public StringValue ApprovalStatus { get; set; } - - /// - /// Gets or Sets Approver - /// - [DataMember(Name="Approver", EmitDefaultValue=false)] - public StringValue Approver { get; set; } - - /// - /// Gets or Sets Billable - /// - [DataMember(Name="Billable", EmitDefaultValue=false)] - public BooleanValue Billable { get; set; } - - /// - /// Gets or Sets BillableOvertime - /// - [DataMember(Name="BillableOvertime", EmitDefaultValue=false)] - public StringValue BillableOvertime { get; set; } - - /// - /// Gets or Sets BillableTime - /// - [DataMember(Name="BillableTime", EmitDefaultValue=false)] - public StringValue BillableTime { get; set; } - - /// - /// Gets or Sets CertifiedJob - /// - [DataMember(Name="CertifiedJob", EmitDefaultValue=false)] - public BooleanValue CertifiedJob { get; set; } - - /// - /// Gets or Sets CostCode - /// - [DataMember(Name="CostCode", EmitDefaultValue=false)] - public StringValue CostCode { get; set; } - - /// - /// Gets or Sets CostRate - /// - [DataMember(Name="CostRate", EmitDefaultValue=false)] - public DecimalValue CostRate { get; set; } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets EarningType - /// - [DataMember(Name="EarningType", EmitDefaultValue=false)] - public StringValue EarningType { get; set; } - - /// - /// Gets or Sets Employee - /// - [DataMember(Name="Employee", EmitDefaultValue=false)] - public StringValue Employee { get; set; } - - /// - /// Gets or Sets ExternalRefNbr - /// - [DataMember(Name="ExternalRefNbr", EmitDefaultValue=false)] - public StringValue ExternalRefNbr { get; set; } - - /// - /// Gets or Sets LaborItem - /// - [DataMember(Name="LaborItem", EmitDefaultValue=false)] - public StringValue LaborItem { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Overtime - /// - [DataMember(Name="Overtime", EmitDefaultValue=false)] - public StringValue Overtime { get; set; } - - /// - /// Gets or Sets ProjectID - /// - [DataMember(Name="ProjectID", EmitDefaultValue=false)] - public StringValue ProjectID { get; set; } - - /// - /// Gets or Sets ProjectTaskID - /// - [DataMember(Name="ProjectTaskID", EmitDefaultValue=false)] - public StringValue ProjectTaskID { get; set; } - - /// - /// Gets or Sets Summary - /// - [DataMember(Name="Summary", EmitDefaultValue=false)] - public StringValue Summary { get; set; } - - /// - /// Gets or Sets Time - /// - [DataMember(Name="Time", EmitDefaultValue=false)] - public DateTimeValue Time { get; set; } - - /// - /// Gets or Sets TimeEntryID - /// - [DataMember(Name="TimeEntryID", EmitDefaultValue=false)] - public GuidValue TimeEntryID { get; set; } - - /// - /// Gets or Sets TimeSpent - /// - [DataMember(Name="TimeSpent", EmitDefaultValue=false)] - public StringValue TimeSpent { get; set; } - - /// - /// Gets or Sets UnionLocal - /// - [DataMember(Name="UnionLocal", EmitDefaultValue=false)] - public StringValue UnionLocal { get; set; } - - /// - /// Gets or Sets WCCCode - /// - [DataMember(Name="WCCCode", EmitDefaultValue=false)] - public StringValue WCCCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TimeEntry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ApprovalStatus: ").Append(ApprovalStatus).Append("\n"); - sb.Append(" Approver: ").Append(Approver).Append("\n"); - sb.Append(" Billable: ").Append(Billable).Append("\n"); - sb.Append(" BillableOvertime: ").Append(BillableOvertime).Append("\n"); - sb.Append(" BillableTime: ").Append(BillableTime).Append("\n"); - sb.Append(" CertifiedJob: ").Append(CertifiedJob).Append("\n"); - sb.Append(" CostCode: ").Append(CostCode).Append("\n"); - sb.Append(" CostRate: ").Append(CostRate).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" EarningType: ").Append(EarningType).Append("\n"); - sb.Append(" Employee: ").Append(Employee).Append("\n"); - sb.Append(" ExternalRefNbr: ").Append(ExternalRefNbr).Append("\n"); - sb.Append(" LaborItem: ").Append(LaborItem).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Overtime: ").Append(Overtime).Append("\n"); - sb.Append(" ProjectID: ").Append(ProjectID).Append("\n"); - sb.Append(" ProjectTaskID: ").Append(ProjectTaskID).Append("\n"); - sb.Append(" Summary: ").Append(Summary).Append("\n"); - sb.Append(" Time: ").Append(Time).Append("\n"); - sb.Append(" TimeEntryID: ").Append(TimeEntryID).Append("\n"); - sb.Append(" TimeSpent: ").Append(TimeSpent).Append("\n"); - sb.Append(" UnionLocal: ").Append(UnionLocal).Append("\n"); - sb.Append(" WCCCode: ").Append(WCCCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TimeEntry); - } - - /// - /// Returns true if TimeEntry instances are equal - /// - /// Instance of TimeEntry to be compared - /// Boolean - public bool Equals(TimeEntry input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ApprovalStatus == input.ApprovalStatus || - (this.ApprovalStatus != null && - this.ApprovalStatus.Equals(input.ApprovalStatus)) - ) && base.Equals(input) && - ( - this.Approver == input.Approver || - (this.Approver != null && - this.Approver.Equals(input.Approver)) - ) && base.Equals(input) && - ( - this.Billable == input.Billable || - (this.Billable != null && - this.Billable.Equals(input.Billable)) - ) && base.Equals(input) && - ( - this.BillableOvertime == input.BillableOvertime || - (this.BillableOvertime != null && - this.BillableOvertime.Equals(input.BillableOvertime)) - ) && base.Equals(input) && - ( - this.BillableTime == input.BillableTime || - (this.BillableTime != null && - this.BillableTime.Equals(input.BillableTime)) - ) && base.Equals(input) && - ( - this.CertifiedJob == input.CertifiedJob || - (this.CertifiedJob != null && - this.CertifiedJob.Equals(input.CertifiedJob)) - ) && base.Equals(input) && - ( - this.CostCode == input.CostCode || - (this.CostCode != null && - this.CostCode.Equals(input.CostCode)) - ) && base.Equals(input) && - ( - this.CostRate == input.CostRate || - (this.CostRate != null && - this.CostRate.Equals(input.CostRate)) - ) && base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.EarningType == input.EarningType || - (this.EarningType != null && - this.EarningType.Equals(input.EarningType)) - ) && base.Equals(input) && - ( - this.Employee == input.Employee || - (this.Employee != null && - this.Employee.Equals(input.Employee)) - ) && base.Equals(input) && - ( - this.ExternalRefNbr == input.ExternalRefNbr || - (this.ExternalRefNbr != null && - this.ExternalRefNbr.Equals(input.ExternalRefNbr)) - ) && base.Equals(input) && - ( - this.LaborItem == input.LaborItem || - (this.LaborItem != null && - this.LaborItem.Equals(input.LaborItem)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Overtime == input.Overtime || - (this.Overtime != null && - this.Overtime.Equals(input.Overtime)) - ) && base.Equals(input) && - ( - this.ProjectID == input.ProjectID || - (this.ProjectID != null && - this.ProjectID.Equals(input.ProjectID)) - ) && base.Equals(input) && - ( - this.ProjectTaskID == input.ProjectTaskID || - (this.ProjectTaskID != null && - this.ProjectTaskID.Equals(input.ProjectTaskID)) - ) && base.Equals(input) && - ( - this.Summary == input.Summary || - (this.Summary != null && - this.Summary.Equals(input.Summary)) - ) && base.Equals(input) && - ( - this.Time == input.Time || - (this.Time != null && - this.Time.Equals(input.Time)) - ) && base.Equals(input) && - ( - this.TimeEntryID == input.TimeEntryID || - (this.TimeEntryID != null && - this.TimeEntryID.Equals(input.TimeEntryID)) - ) && base.Equals(input) && - ( - this.TimeSpent == input.TimeSpent || - (this.TimeSpent != null && - this.TimeSpent.Equals(input.TimeSpent)) - ) && base.Equals(input) && - ( - this.UnionLocal == input.UnionLocal || - (this.UnionLocal != null && - this.UnionLocal.Equals(input.UnionLocal)) - ) && base.Equals(input) && - ( - this.WCCCode == input.WCCCode || - (this.WCCCode != null && - this.WCCCode.Equals(input.WCCCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ApprovalStatus != null) - hashCode = hashCode * 59 + this.ApprovalStatus.GetHashCode(); - if (this.Approver != null) - hashCode = hashCode * 59 + this.Approver.GetHashCode(); - if (this.Billable != null) - hashCode = hashCode * 59 + this.Billable.GetHashCode(); - if (this.BillableOvertime != null) - hashCode = hashCode * 59 + this.BillableOvertime.GetHashCode(); - if (this.BillableTime != null) - hashCode = hashCode * 59 + this.BillableTime.GetHashCode(); - if (this.CertifiedJob != null) - hashCode = hashCode * 59 + this.CertifiedJob.GetHashCode(); - if (this.CostCode != null) - hashCode = hashCode * 59 + this.CostCode.GetHashCode(); - if (this.CostRate != null) - hashCode = hashCode * 59 + this.CostRate.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.EarningType != null) - hashCode = hashCode * 59 + this.EarningType.GetHashCode(); - if (this.Employee != null) - hashCode = hashCode * 59 + this.Employee.GetHashCode(); - if (this.ExternalRefNbr != null) - hashCode = hashCode * 59 + this.ExternalRefNbr.GetHashCode(); - if (this.LaborItem != null) - hashCode = hashCode * 59 + this.LaborItem.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Overtime != null) - hashCode = hashCode * 59 + this.Overtime.GetHashCode(); - if (this.ProjectID != null) - hashCode = hashCode * 59 + this.ProjectID.GetHashCode(); - if (this.ProjectTaskID != null) - hashCode = hashCode * 59 + this.ProjectTaskID.GetHashCode(); - if (this.Summary != null) - hashCode = hashCode * 59 + this.Summary.GetHashCode(); - if (this.Time != null) - hashCode = hashCode * 59 + this.Time.GetHashCode(); - if (this.TimeEntryID != null) - hashCode = hashCode * 59 + this.TimeEntryID.GetHashCode(); - if (this.TimeSpent != null) - hashCode = hashCode * 59 + this.TimeSpent.GetHashCode(); - if (this.UnionLocal != null) - hashCode = hashCode * 59 + this.UnionLocal.GetHashCode(); - if (this.WCCCode != null) - hashCode = hashCode * 59 + this.WCCCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Totals.cs b/Default.18.200.001/Model/Totals.cs deleted file mode 100644 index 2c299463..00000000 --- a/Default.18.200.001/Model/Totals.cs +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Totals - /// - [DataContract] - public partial class Totals : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// discountTotal. - /// freight. - /// freightCost. - /// freightCostIsuptodate. - /// freightTaxCategory. - /// lineTotalAmount. - /// miscTotalAmount. - /// orderVolume. - /// orderWeight. - /// packageWeight. - /// premiumFreight. - /// taxTotal. - /// unbilledAmount. - /// unbilledQty. - /// unpaidBalance. - public Totals(DecimalValue discountTotal = default(DecimalValue), DecimalValue freight = default(DecimalValue), DecimalValue freightCost = default(DecimalValue), BooleanValue freightCostIsuptodate = default(BooleanValue), StringValue freightTaxCategory = default(StringValue), DecimalValue lineTotalAmount = default(DecimalValue), DecimalValue miscTotalAmount = default(DecimalValue), DecimalValue orderVolume = default(DecimalValue), DecimalValue orderWeight = default(DecimalValue), DecimalValue packageWeight = default(DecimalValue), DecimalValue premiumFreight = default(DecimalValue), DecimalValue taxTotal = default(DecimalValue), DecimalValue unbilledAmount = default(DecimalValue), DecimalValue unbilledQty = default(DecimalValue), DecimalValue unpaidBalance = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.DiscountTotal = discountTotal; - this.Freight = freight; - this.FreightCost = freightCost; - this.FreightCostIsuptodate = freightCostIsuptodate; - this.FreightTaxCategory = freightTaxCategory; - this.LineTotalAmount = lineTotalAmount; - this.MiscTotalAmount = miscTotalAmount; - this.OrderVolume = orderVolume; - this.OrderWeight = orderWeight; - this.PackageWeight = packageWeight; - this.PremiumFreight = premiumFreight; - this.TaxTotal = taxTotal; - this.UnbilledAmount = unbilledAmount; - this.UnbilledQty = unbilledQty; - this.UnpaidBalance = unpaidBalance; - } - - /// - /// Gets or Sets DiscountTotal - /// - [DataMember(Name="DiscountTotal", EmitDefaultValue=false)] - public DecimalValue DiscountTotal { get; set; } - - /// - /// Gets or Sets Freight - /// - [DataMember(Name="Freight", EmitDefaultValue=false)] - public DecimalValue Freight { get; set; } - - /// - /// Gets or Sets FreightCost - /// - [DataMember(Name="FreightCost", EmitDefaultValue=false)] - public DecimalValue FreightCost { get; set; } - - /// - /// Gets or Sets FreightCostIsuptodate - /// - [DataMember(Name="FreightCostIsuptodate", EmitDefaultValue=false)] - public BooleanValue FreightCostIsuptodate { get; set; } - - /// - /// Gets or Sets FreightTaxCategory - /// - [DataMember(Name="FreightTaxCategory", EmitDefaultValue=false)] - public StringValue FreightTaxCategory { get; set; } - - /// - /// Gets or Sets LineTotalAmount - /// - [DataMember(Name="LineTotalAmount", EmitDefaultValue=false)] - public DecimalValue LineTotalAmount { get; set; } - - /// - /// Gets or Sets MiscTotalAmount - /// - [DataMember(Name="MiscTotalAmount", EmitDefaultValue=false)] - public DecimalValue MiscTotalAmount { get; set; } - - /// - /// Gets or Sets OrderVolume - /// - [DataMember(Name="OrderVolume", EmitDefaultValue=false)] - public DecimalValue OrderVolume { get; set; } - - /// - /// Gets or Sets OrderWeight - /// - [DataMember(Name="OrderWeight", EmitDefaultValue=false)] - public DecimalValue OrderWeight { get; set; } - - /// - /// Gets or Sets PackageWeight - /// - [DataMember(Name="PackageWeight", EmitDefaultValue=false)] - public DecimalValue PackageWeight { get; set; } - - /// - /// Gets or Sets PremiumFreight - /// - [DataMember(Name="PremiumFreight", EmitDefaultValue=false)] - public DecimalValue PremiumFreight { get; set; } - - /// - /// Gets or Sets TaxTotal - /// - [DataMember(Name="TaxTotal", EmitDefaultValue=false)] - public DecimalValue TaxTotal { get; set; } - - /// - /// Gets or Sets UnbilledAmount - /// - [DataMember(Name="UnbilledAmount", EmitDefaultValue=false)] - public DecimalValue UnbilledAmount { get; set; } - - /// - /// Gets or Sets UnbilledQty - /// - [DataMember(Name="UnbilledQty", EmitDefaultValue=false)] - public DecimalValue UnbilledQty { get; set; } - - /// - /// Gets or Sets UnpaidBalance - /// - [DataMember(Name="UnpaidBalance", EmitDefaultValue=false)] - public DecimalValue UnpaidBalance { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Totals {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" DiscountTotal: ").Append(DiscountTotal).Append("\n"); - sb.Append(" Freight: ").Append(Freight).Append("\n"); - sb.Append(" FreightCost: ").Append(FreightCost).Append("\n"); - sb.Append(" FreightCostIsuptodate: ").Append(FreightCostIsuptodate).Append("\n"); - sb.Append(" FreightTaxCategory: ").Append(FreightTaxCategory).Append("\n"); - sb.Append(" LineTotalAmount: ").Append(LineTotalAmount).Append("\n"); - sb.Append(" MiscTotalAmount: ").Append(MiscTotalAmount).Append("\n"); - sb.Append(" OrderVolume: ").Append(OrderVolume).Append("\n"); - sb.Append(" OrderWeight: ").Append(OrderWeight).Append("\n"); - sb.Append(" PackageWeight: ").Append(PackageWeight).Append("\n"); - sb.Append(" PremiumFreight: ").Append(PremiumFreight).Append("\n"); - sb.Append(" TaxTotal: ").Append(TaxTotal).Append("\n"); - sb.Append(" UnbilledAmount: ").Append(UnbilledAmount).Append("\n"); - sb.Append(" UnbilledQty: ").Append(UnbilledQty).Append("\n"); - sb.Append(" UnpaidBalance: ").Append(UnpaidBalance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Totals); - } - - /// - /// Returns true if Totals instances are equal - /// - /// Instance of Totals to be compared - /// Boolean - public bool Equals(Totals input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.DiscountTotal == input.DiscountTotal || - (this.DiscountTotal != null && - this.DiscountTotal.Equals(input.DiscountTotal)) - ) && base.Equals(input) && - ( - this.Freight == input.Freight || - (this.Freight != null && - this.Freight.Equals(input.Freight)) - ) && base.Equals(input) && - ( - this.FreightCost == input.FreightCost || - (this.FreightCost != null && - this.FreightCost.Equals(input.FreightCost)) - ) && base.Equals(input) && - ( - this.FreightCostIsuptodate == input.FreightCostIsuptodate || - (this.FreightCostIsuptodate != null && - this.FreightCostIsuptodate.Equals(input.FreightCostIsuptodate)) - ) && base.Equals(input) && - ( - this.FreightTaxCategory == input.FreightTaxCategory || - (this.FreightTaxCategory != null && - this.FreightTaxCategory.Equals(input.FreightTaxCategory)) - ) && base.Equals(input) && - ( - this.LineTotalAmount == input.LineTotalAmount || - (this.LineTotalAmount != null && - this.LineTotalAmount.Equals(input.LineTotalAmount)) - ) && base.Equals(input) && - ( - this.MiscTotalAmount == input.MiscTotalAmount || - (this.MiscTotalAmount != null && - this.MiscTotalAmount.Equals(input.MiscTotalAmount)) - ) && base.Equals(input) && - ( - this.OrderVolume == input.OrderVolume || - (this.OrderVolume != null && - this.OrderVolume.Equals(input.OrderVolume)) - ) && base.Equals(input) && - ( - this.OrderWeight == input.OrderWeight || - (this.OrderWeight != null && - this.OrderWeight.Equals(input.OrderWeight)) - ) && base.Equals(input) && - ( - this.PackageWeight == input.PackageWeight || - (this.PackageWeight != null && - this.PackageWeight.Equals(input.PackageWeight)) - ) && base.Equals(input) && - ( - this.PremiumFreight == input.PremiumFreight || - (this.PremiumFreight != null && - this.PremiumFreight.Equals(input.PremiumFreight)) - ) && base.Equals(input) && - ( - this.TaxTotal == input.TaxTotal || - (this.TaxTotal != null && - this.TaxTotal.Equals(input.TaxTotal)) - ) && base.Equals(input) && - ( - this.UnbilledAmount == input.UnbilledAmount || - (this.UnbilledAmount != null && - this.UnbilledAmount.Equals(input.UnbilledAmount)) - ) && base.Equals(input) && - ( - this.UnbilledQty == input.UnbilledQty || - (this.UnbilledQty != null && - this.UnbilledQty.Equals(input.UnbilledQty)) - ) && base.Equals(input) && - ( - this.UnpaidBalance == input.UnpaidBalance || - (this.UnpaidBalance != null && - this.UnpaidBalance.Equals(input.UnpaidBalance)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.DiscountTotal != null) - hashCode = hashCode * 59 + this.DiscountTotal.GetHashCode(); - if (this.Freight != null) - hashCode = hashCode * 59 + this.Freight.GetHashCode(); - if (this.FreightCost != null) - hashCode = hashCode * 59 + this.FreightCost.GetHashCode(); - if (this.FreightCostIsuptodate != null) - hashCode = hashCode * 59 + this.FreightCostIsuptodate.GetHashCode(); - if (this.FreightTaxCategory != null) - hashCode = hashCode * 59 + this.FreightTaxCategory.GetHashCode(); - if (this.LineTotalAmount != null) - hashCode = hashCode * 59 + this.LineTotalAmount.GetHashCode(); - if (this.MiscTotalAmount != null) - hashCode = hashCode * 59 + this.MiscTotalAmount.GetHashCode(); - if (this.OrderVolume != null) - hashCode = hashCode * 59 + this.OrderVolume.GetHashCode(); - if (this.OrderWeight != null) - hashCode = hashCode * 59 + this.OrderWeight.GetHashCode(); - if (this.PackageWeight != null) - hashCode = hashCode * 59 + this.PackageWeight.GetHashCode(); - if (this.PremiumFreight != null) - hashCode = hashCode * 59 + this.PremiumFreight.GetHashCode(); - if (this.TaxTotal != null) - hashCode = hashCode * 59 + this.TaxTotal.GetHashCode(); - if (this.UnbilledAmount != null) - hashCode = hashCode * 59 + this.UnbilledAmount.GetHashCode(); - if (this.UnbilledQty != null) - hashCode = hashCode * 59 + this.UnbilledQty.GetHashCode(); - if (this.UnpaidBalance != null) - hashCode = hashCode * 59 + this.UnpaidBalance.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TransferOrder.cs b/Default.18.200.001/Model/TransferOrder.cs deleted file mode 100644 index 3e7ea641..00000000 --- a/Default.18.200.001/Model/TransferOrder.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TransferOrder - /// - [DataContract] - public partial class TransferOrder : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// date. - /// description. - /// details. - /// externalRef. - /// fromWarehouseID. - /// hold. - /// postPeriod. - /// referenceNbr. - /// status. - /// totalQty. - /// toWarehouseID. - /// transferType. - public TransferOrder(DateTimeValue date = default(DateTimeValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), StringValue externalRef = default(StringValue), StringValue fromWarehouseID = default(StringValue), BooleanValue hold = default(BooleanValue), StringValue postPeriod = default(StringValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), DecimalValue totalQty = default(DecimalValue), StringValue toWarehouseID = default(StringValue), StringValue transferType = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Date = date; - this.Description = description; - this.Details = details; - this.ExternalRef = externalRef; - this.FromWarehouseID = fromWarehouseID; - this.Hold = hold; - this.PostPeriod = postPeriod; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.TotalQty = totalQty; - this.ToWarehouseID = toWarehouseID; - this.TransferType = transferType; - } - - /// - /// Gets or Sets Date - /// - [DataMember(Name="Date", EmitDefaultValue=false)] - public DateTimeValue Date { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets ExternalRef - /// - [DataMember(Name="ExternalRef", EmitDefaultValue=false)] - public StringValue ExternalRef { get; set; } - - /// - /// Gets or Sets FromWarehouseID - /// - [DataMember(Name="FromWarehouseID", EmitDefaultValue=false)] - public StringValue FromWarehouseID { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets PostPeriod - /// - [DataMember(Name="PostPeriod", EmitDefaultValue=false)] - public StringValue PostPeriod { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TotalQty - /// - [DataMember(Name="TotalQty", EmitDefaultValue=false)] - public DecimalValue TotalQty { get; set; } - - /// - /// Gets or Sets ToWarehouseID - /// - [DataMember(Name="ToWarehouseID", EmitDefaultValue=false)] - public StringValue ToWarehouseID { get; set; } - - /// - /// Gets or Sets TransferType - /// - [DataMember(Name="TransferType", EmitDefaultValue=false)] - public StringValue TransferType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TransferOrder {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Date: ").Append(Date).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" ExternalRef: ").Append(ExternalRef).Append("\n"); - sb.Append(" FromWarehouseID: ").Append(FromWarehouseID).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" PostPeriod: ").Append(PostPeriod).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TotalQty: ").Append(TotalQty).Append("\n"); - sb.Append(" ToWarehouseID: ").Append(ToWarehouseID).Append("\n"); - sb.Append(" TransferType: ").Append(TransferType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TransferOrder); - } - - /// - /// Returns true if TransferOrder instances are equal - /// - /// Instance of TransferOrder to be compared - /// Boolean - public bool Equals(TransferOrder input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Date == input.Date || - (this.Date != null && - this.Date.Equals(input.Date)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.ExternalRef == input.ExternalRef || - (this.ExternalRef != null && - this.ExternalRef.Equals(input.ExternalRef)) - ) && base.Equals(input) && - ( - this.FromWarehouseID == input.FromWarehouseID || - (this.FromWarehouseID != null && - this.FromWarehouseID.Equals(input.FromWarehouseID)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.PostPeriod == input.PostPeriod || - (this.PostPeriod != null && - this.PostPeriod.Equals(input.PostPeriod)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TotalQty == input.TotalQty || - (this.TotalQty != null && - this.TotalQty.Equals(input.TotalQty)) - ) && base.Equals(input) && - ( - this.ToWarehouseID == input.ToWarehouseID || - (this.ToWarehouseID != null && - this.ToWarehouseID.Equals(input.ToWarehouseID)) - ) && base.Equals(input) && - ( - this.TransferType == input.TransferType || - (this.TransferType != null && - this.TransferType.Equals(input.TransferType)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Date != null) - hashCode = hashCode * 59 + this.Date.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.ExternalRef != null) - hashCode = hashCode * 59 + this.ExternalRef.GetHashCode(); - if (this.FromWarehouseID != null) - hashCode = hashCode * 59 + this.FromWarehouseID.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.PostPeriod != null) - hashCode = hashCode * 59 + this.PostPeriod.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TotalQty != null) - hashCode = hashCode * 59 + this.TotalQty.GetHashCode(); - if (this.ToWarehouseID != null) - hashCode = hashCode * 59 + this.ToWarehouseID.GetHashCode(); - if (this.TransferType != null) - hashCode = hashCode * 59 + this.TransferType.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TransferOrderDetail.cs b/Default.18.200.001/Model/TransferOrderDetail.cs deleted file mode 100644 index 05a8430c..00000000 --- a/Default.18.200.001/Model/TransferOrderDetail.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TransferOrderDetail - /// - [DataContract] - public partial class TransferOrderDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// allocations. - /// description. - /// expirationDate. - /// fromLocationID. - /// inventoryID. - /// lineNbr. - /// lotSerialNbr. - /// qty. - /// reasonCode. - /// subitem. - /// toLocationID. - /// uOM. - public TransferOrderDetail(IEnumerable allocations = default(IEnumerable), StringValue description = default(StringValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue fromLocationID = default(StringValue), StringValue inventoryID = default(StringValue), IntValue lineNbr = default(IntValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), StringValue reasonCode = default(StringValue), StringValue subitem = default(StringValue), StringValue toLocationID = default(StringValue), StringValue uOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Allocations = allocations; - this.Description = description; - this.ExpirationDate = expirationDate; - this.FromLocationID = fromLocationID; - this.InventoryID = inventoryID; - this.LineNbr = lineNbr; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.ReasonCode = reasonCode; - this.Subitem = subitem; - this.ToLocationID = toLocationID; - this.UOM = uOM; - } - - /// - /// Gets or Sets Allocations - /// - [DataMember(Name="Allocations", EmitDefaultValue=false)] - public IEnumerable Allocations { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets FromLocationID - /// - [DataMember(Name="FromLocationID", EmitDefaultValue=false)] - public StringValue FromLocationID { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineNbr - /// - [DataMember(Name="LineNbr", EmitDefaultValue=false)] - public IntValue LineNbr { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets ReasonCode - /// - [DataMember(Name="ReasonCode", EmitDefaultValue=false)] - public StringValue ReasonCode { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Gets or Sets ToLocationID - /// - [DataMember(Name="ToLocationID", EmitDefaultValue=false)] - public StringValue ToLocationID { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TransferOrderDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Allocations: ").Append(Allocations).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" FromLocationID: ").Append(FromLocationID).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineNbr: ").Append(LineNbr).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append(" ToLocationID: ").Append(ToLocationID).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TransferOrderDetail); - } - - /// - /// Returns true if TransferOrderDetail instances are equal - /// - /// Instance of TransferOrderDetail to be compared - /// Boolean - public bool Equals(TransferOrderDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Allocations == input.Allocations || - this.Allocations != null && - this.Allocations.SequenceEqual(input.Allocations) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.FromLocationID == input.FromLocationID || - (this.FromLocationID != null && - this.FromLocationID.Equals(input.FromLocationID)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineNbr == input.LineNbr || - (this.LineNbr != null && - this.LineNbr.Equals(input.LineNbr)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.ReasonCode == input.ReasonCode || - (this.ReasonCode != null && - this.ReasonCode.Equals(input.ReasonCode)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ) && base.Equals(input) && - ( - this.ToLocationID == input.ToLocationID || - (this.ToLocationID != null && - this.ToLocationID.Equals(input.ToLocationID)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Allocations != null) - hashCode = hashCode * 59 + this.Allocations.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.FromLocationID != null) - hashCode = hashCode * 59 + this.FromLocationID.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineNbr != null) - hashCode = hashCode * 59 + this.LineNbr.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.ReasonCode != null) - hashCode = hashCode * 59 + this.ReasonCode.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - if (this.ToLocationID != null) - hashCode = hashCode * 59 + this.ToLocationID.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TransferOrderDetailAllocation.cs b/Default.18.200.001/Model/TransferOrderDetailAllocation.cs deleted file mode 100644 index 2db0f757..00000000 --- a/Default.18.200.001/Model/TransferOrderDetailAllocation.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TransferOrderDetailAllocation - /// - [DataContract] - public partial class TransferOrderDetailAllocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// locationID. - /// lotSerialNbr. - /// qty. - /// splitLineNumber. - /// subitem. - public TransferOrderDetailAllocation(StringValue locationID = default(StringValue), StringValue lotSerialNbr = default(StringValue), DecimalValue qty = default(DecimalValue), IntValue splitLineNumber = default(IntValue), StringValue subitem = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.LocationID = locationID; - this.LotSerialNbr = lotSerialNbr; - this.Qty = qty; - this.SplitLineNumber = splitLineNumber; - this.Subitem = subitem; - } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets LotSerialNbr - /// - [DataMember(Name="LotSerialNbr", EmitDefaultValue=false)] - public StringValue LotSerialNbr { get; set; } - - /// - /// Gets or Sets Qty - /// - [DataMember(Name="Qty", EmitDefaultValue=false)] - public DecimalValue Qty { get; set; } - - /// - /// Gets or Sets SplitLineNumber - /// - [DataMember(Name="SplitLineNumber", EmitDefaultValue=false)] - public IntValue SplitLineNumber { get; set; } - - /// - /// Gets or Sets Subitem - /// - [DataMember(Name="Subitem", EmitDefaultValue=false)] - public StringValue Subitem { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TransferOrderDetailAllocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" LotSerialNbr: ").Append(LotSerialNbr).Append("\n"); - sb.Append(" Qty: ").Append(Qty).Append("\n"); - sb.Append(" SplitLineNumber: ").Append(SplitLineNumber).Append("\n"); - sb.Append(" Subitem: ").Append(Subitem).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TransferOrderDetailAllocation); - } - - /// - /// Returns true if TransferOrderDetailAllocation instances are equal - /// - /// Instance of TransferOrderDetailAllocation to be compared - /// Boolean - public bool Equals(TransferOrderDetailAllocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.LotSerialNbr == input.LotSerialNbr || - (this.LotSerialNbr != null && - this.LotSerialNbr.Equals(input.LotSerialNbr)) - ) && base.Equals(input) && - ( - this.Qty == input.Qty || - (this.Qty != null && - this.Qty.Equals(input.Qty)) - ) && base.Equals(input) && - ( - this.SplitLineNumber == input.SplitLineNumber || - (this.SplitLineNumber != null && - this.SplitLineNumber.Equals(input.SplitLineNumber)) - ) && base.Equals(input) && - ( - this.Subitem == input.Subitem || - (this.Subitem != null && - this.Subitem.Equals(input.Subitem)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.LotSerialNbr != null) - hashCode = hashCode * 59 + this.LotSerialNbr.GetHashCode(); - if (this.Qty != null) - hashCode = hashCode * 59 + this.Qty.GetHashCode(); - if (this.SplitLineNumber != null) - hashCode = hashCode * 59 + this.SplitLineNumber.GetHashCode(); - if (this.Subitem != null) - hashCode = hashCode * 59 + this.Subitem.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TrialBalance.cs b/Default.18.200.001/Model/TrialBalance.cs deleted file mode 100644 index 317e6877..00000000 --- a/Default.18.200.001/Model/TrialBalance.cs +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TrialBalance - /// - [DataContract] - public partial class TrialBalance : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// batchNbr. - /// branch. - /// controlTotal. - /// createdDateTime. - /// creditTotal. - /// debitTotal. - /// description. - /// details. - /// hold. - /// importDate. - /// importNbr. - /// lastModifiedDateTime. - /// ledger. - /// period. - /// status. - public TrialBalance(StringValue batchNbr = default(StringValue), StringValue branch = default(StringValue), DecimalValue controlTotal = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), DecimalValue creditTotal = default(DecimalValue), DecimalValue debitTotal = default(DecimalValue), StringValue description = default(StringValue), IEnumerable details = default(IEnumerable), BooleanValue hold = default(BooleanValue), DateTimeValue importDate = default(DateTimeValue), StringValue importNbr = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue ledger = default(StringValue), StringValue period = default(StringValue), StringValue status = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BatchNbr = batchNbr; - this.Branch = branch; - this.ControlTotal = controlTotal; - this.CreatedDateTime = createdDateTime; - this.CreditTotal = creditTotal; - this.DebitTotal = debitTotal; - this.Description = description; - this.Details = details; - this.Hold = hold; - this.ImportDate = importDate; - this.ImportNbr = importNbr; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Ledger = ledger; - this.Period = period; - this.Status = status; - } - - /// - /// Gets or Sets BatchNbr - /// - [DataMember(Name="BatchNbr", EmitDefaultValue=false)] - public StringValue BatchNbr { get; set; } - - /// - /// Gets or Sets Branch - /// - [DataMember(Name="Branch", EmitDefaultValue=false)] - public StringValue Branch { get; set; } - - /// - /// Gets or Sets ControlTotal - /// - [DataMember(Name="ControlTotal", EmitDefaultValue=false)] - public DecimalValue ControlTotal { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CreditTotal - /// - [DataMember(Name="CreditTotal", EmitDefaultValue=false)] - public DecimalValue CreditTotal { get; set; } - - /// - /// Gets or Sets DebitTotal - /// - [DataMember(Name="DebitTotal", EmitDefaultValue=false)] - public DecimalValue DebitTotal { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Details - /// - [DataMember(Name="Details", EmitDefaultValue=false)] - public IEnumerable Details { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets ImportDate - /// - [DataMember(Name="ImportDate", EmitDefaultValue=false)] - public DateTimeValue ImportDate { get; set; } - - /// - /// Gets or Sets ImportNbr - /// - [DataMember(Name="ImportNbr", EmitDefaultValue=false)] - public StringValue ImportNbr { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Ledger - /// - [DataMember(Name="Ledger", EmitDefaultValue=false)] - public StringValue Ledger { get; set; } - - /// - /// Gets or Sets Period - /// - [DataMember(Name="Period", EmitDefaultValue=false)] - public StringValue Period { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TrialBalance {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BatchNbr: ").Append(BatchNbr).Append("\n"); - sb.Append(" Branch: ").Append(Branch).Append("\n"); - sb.Append(" ControlTotal: ").Append(ControlTotal).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CreditTotal: ").Append(CreditTotal).Append("\n"); - sb.Append(" DebitTotal: ").Append(DebitTotal).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" ImportDate: ").Append(ImportDate).Append("\n"); - sb.Append(" ImportNbr: ").Append(ImportNbr).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Ledger: ").Append(Ledger).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TrialBalance); - } - - /// - /// Returns true if TrialBalance instances are equal - /// - /// Instance of TrialBalance to be compared - /// Boolean - public bool Equals(TrialBalance input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BatchNbr == input.BatchNbr || - (this.BatchNbr != null && - this.BatchNbr.Equals(input.BatchNbr)) - ) && base.Equals(input) && - ( - this.Branch == input.Branch || - (this.Branch != null && - this.Branch.Equals(input.Branch)) - ) && base.Equals(input) && - ( - this.ControlTotal == input.ControlTotal || - (this.ControlTotal != null && - this.ControlTotal.Equals(input.ControlTotal)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CreditTotal == input.CreditTotal || - (this.CreditTotal != null && - this.CreditTotal.Equals(input.CreditTotal)) - ) && base.Equals(input) && - ( - this.DebitTotal == input.DebitTotal || - (this.DebitTotal != null && - this.DebitTotal.Equals(input.DebitTotal)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Details == input.Details || - this.Details != null && - this.Details.SequenceEqual(input.Details) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.ImportDate == input.ImportDate || - (this.ImportDate != null && - this.ImportDate.Equals(input.ImportDate)) - ) && base.Equals(input) && - ( - this.ImportNbr == input.ImportNbr || - (this.ImportNbr != null && - this.ImportNbr.Equals(input.ImportNbr)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Ledger == input.Ledger || - (this.Ledger != null && - this.Ledger.Equals(input.Ledger)) - ) && base.Equals(input) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BatchNbr != null) - hashCode = hashCode * 59 + this.BatchNbr.GetHashCode(); - if (this.Branch != null) - hashCode = hashCode * 59 + this.Branch.GetHashCode(); - if (this.ControlTotal != null) - hashCode = hashCode * 59 + this.ControlTotal.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CreditTotal != null) - hashCode = hashCode * 59 + this.CreditTotal.GetHashCode(); - if (this.DebitTotal != null) - hashCode = hashCode * 59 + this.DebitTotal.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Details != null) - hashCode = hashCode * 59 + this.Details.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.ImportDate != null) - hashCode = hashCode * 59 + this.ImportDate.GetHashCode(); - if (this.ImportNbr != null) - hashCode = hashCode * 59 + this.ImportNbr.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Ledger != null) - hashCode = hashCode * 59 + this.Ledger.GetHashCode(); - if (this.Period != null) - hashCode = hashCode * 59 + this.Period.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/TrialBalanceDetail.cs b/Default.18.200.001/Model/TrialBalanceDetail.cs deleted file mode 100644 index 434a1ced..00000000 --- a/Default.18.200.001/Model/TrialBalanceDetail.cs +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// TrialBalanceDetail - /// - [DataContract] - public partial class TrialBalanceDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// currencyYTDBalance. - /// description. - /// importedAccount. - /// importedSubaccount. - /// line. - /// mapNbr. - /// mappedAccount. - /// mappedSubaccount. - /// selected. - /// status. - /// type. - /// yTDBalance. - public TrialBalanceDetail(DecimalValue currencyYTDBalance = default(DecimalValue), StringValue description = default(StringValue), StringValue importedAccount = default(StringValue), StringValue importedSubaccount = default(StringValue), IntValue line = default(IntValue), StringValue mapNbr = default(StringValue), StringValue mappedAccount = default(StringValue), StringValue mappedSubaccount = default(StringValue), BooleanValue selected = default(BooleanValue), StringValue status = default(StringValue), StringValue type = default(StringValue), DecimalValue yTDBalance = default(DecimalValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CurrencyYTDBalance = currencyYTDBalance; - this.Description = description; - this.ImportedAccount = importedAccount; - this.ImportedSubaccount = importedSubaccount; - this.Line = line; - this.MapNbr = mapNbr; - this.MappedAccount = mappedAccount; - this.MappedSubaccount = mappedSubaccount; - this.Selected = selected; - this.Status = status; - this.Type = type; - this.YTDBalance = yTDBalance; - } - - /// - /// Gets or Sets CurrencyYTDBalance - /// - [DataMember(Name="CurrencyYTDBalance", EmitDefaultValue=false)] - public DecimalValue CurrencyYTDBalance { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets ImportedAccount - /// - [DataMember(Name="ImportedAccount", EmitDefaultValue=false)] - public StringValue ImportedAccount { get; set; } - - /// - /// Gets or Sets ImportedSubaccount - /// - [DataMember(Name="ImportedSubaccount", EmitDefaultValue=false)] - public StringValue ImportedSubaccount { get; set; } - - /// - /// Gets or Sets Line - /// - [DataMember(Name="Line", EmitDefaultValue=false)] - public IntValue Line { get; set; } - - /// - /// Gets or Sets MapNbr - /// - [DataMember(Name="MapNbr", EmitDefaultValue=false)] - public StringValue MapNbr { get; set; } - - /// - /// Gets or Sets MappedAccount - /// - [DataMember(Name="MappedAccount", EmitDefaultValue=false)] - public StringValue MappedAccount { get; set; } - - /// - /// Gets or Sets MappedSubaccount - /// - [DataMember(Name="MappedSubaccount", EmitDefaultValue=false)] - public StringValue MappedSubaccount { get; set; } - - /// - /// Gets or Sets Selected - /// - [DataMember(Name="Selected", EmitDefaultValue=false)] - public BooleanValue Selected { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name="Type", EmitDefaultValue=false)] - public StringValue Type { get; set; } - - /// - /// Gets or Sets YTDBalance - /// - [DataMember(Name="YTDBalance", EmitDefaultValue=false)] - public DecimalValue YTDBalance { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TrialBalanceDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CurrencyYTDBalance: ").Append(CurrencyYTDBalance).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" ImportedAccount: ").Append(ImportedAccount).Append("\n"); - sb.Append(" ImportedSubaccount: ").Append(ImportedSubaccount).Append("\n"); - sb.Append(" Line: ").Append(Line).Append("\n"); - sb.Append(" MapNbr: ").Append(MapNbr).Append("\n"); - sb.Append(" MappedAccount: ").Append(MappedAccount).Append("\n"); - sb.Append(" MappedSubaccount: ").Append(MappedSubaccount).Append("\n"); - sb.Append(" Selected: ").Append(Selected).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" YTDBalance: ").Append(YTDBalance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as TrialBalanceDetail); - } - - /// - /// Returns true if TrialBalanceDetail instances are equal - /// - /// Instance of TrialBalanceDetail to be compared - /// Boolean - public bool Equals(TrialBalanceDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CurrencyYTDBalance == input.CurrencyYTDBalance || - (this.CurrencyYTDBalance != null && - this.CurrencyYTDBalance.Equals(input.CurrencyYTDBalance)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.ImportedAccount == input.ImportedAccount || - (this.ImportedAccount != null && - this.ImportedAccount.Equals(input.ImportedAccount)) - ) && base.Equals(input) && - ( - this.ImportedSubaccount == input.ImportedSubaccount || - (this.ImportedSubaccount != null && - this.ImportedSubaccount.Equals(input.ImportedSubaccount)) - ) && base.Equals(input) && - ( - this.Line == input.Line || - (this.Line != null && - this.Line.Equals(input.Line)) - ) && base.Equals(input) && - ( - this.MapNbr == input.MapNbr || - (this.MapNbr != null && - this.MapNbr.Equals(input.MapNbr)) - ) && base.Equals(input) && - ( - this.MappedAccount == input.MappedAccount || - (this.MappedAccount != null && - this.MappedAccount.Equals(input.MappedAccount)) - ) && base.Equals(input) && - ( - this.MappedSubaccount == input.MappedSubaccount || - (this.MappedSubaccount != null && - this.MappedSubaccount.Equals(input.MappedSubaccount)) - ) && base.Equals(input) && - ( - this.Selected == input.Selected || - (this.Selected != null && - this.Selected.Equals(input.Selected)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) - ) && base.Equals(input) && - ( - this.YTDBalance == input.YTDBalance || - (this.YTDBalance != null && - this.YTDBalance.Equals(input.YTDBalance)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CurrencyYTDBalance != null) - hashCode = hashCode * 59 + this.CurrencyYTDBalance.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.ImportedAccount != null) - hashCode = hashCode * 59 + this.ImportedAccount.GetHashCode(); - if (this.ImportedSubaccount != null) - hashCode = hashCode * 59 + this.ImportedSubaccount.GetHashCode(); - if (this.Line != null) - hashCode = hashCode * 59 + this.Line.GetHashCode(); - if (this.MapNbr != null) - hashCode = hashCode * 59 + this.MapNbr.GetHashCode(); - if (this.MappedAccount != null) - hashCode = hashCode * 59 + this.MappedAccount.GetHashCode(); - if (this.MappedSubaccount != null) - hashCode = hashCode * 59 + this.MappedSubaccount.GetHashCode(); - if (this.Selected != null) - hashCode = hashCode * 59 + this.Selected.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); - if (this.YTDBalance != null) - hashCode = hashCode * 59 + this.YTDBalance.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/UnionLocal.cs b/Default.18.200.001/Model/UnionLocal.cs deleted file mode 100644 index 2b70d902..00000000 --- a/Default.18.200.001/Model/UnionLocal.cs +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// UnionLocal - /// - [DataContract] - public partial class UnionLocal : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// description. - /// unionLocalID. - public UnionLocal(BooleanValue active = default(BooleanValue), StringValue description = default(StringValue), StringValue unionLocalID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Description = description; - this.UnionLocalID = unionLocalID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets UnionLocalID - /// - [DataMember(Name="UnionLocalID", EmitDefaultValue=false)] - public StringValue UnionLocalID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UnionLocal {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" UnionLocalID: ").Append(UnionLocalID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UnionLocal); - } - - /// - /// Returns true if UnionLocal instances are equal - /// - /// Instance of UnionLocal to be compared - /// Boolean - public bool Equals(UnionLocal input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.UnionLocalID == input.UnionLocalID || - (this.UnionLocalID != null && - this.UnionLocalID.Equals(input.UnionLocalID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.UnionLocalID != null) - hashCode = hashCode * 59 + this.UnionLocalID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/UnitsOfMeasure.cs b/Default.18.200.001/Model/UnitsOfMeasure.cs deleted file mode 100644 index 355f356c..00000000 --- a/Default.18.200.001/Model/UnitsOfMeasure.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// UnitsOfMeasure - /// - [DataContract] - public partial class UnitsOfMeasure : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// conversionFactor. - /// createdDateTime. - /// fromUOM. - /// lastModifiedDateTime. - /// multiplyOrDivide. - /// toUOM. - public UnitsOfMeasure(DecimalValue conversionFactor = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue fromUOM = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), StringValue multiplyOrDivide = default(StringValue), StringValue toUOM = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.ConversionFactor = conversionFactor; - this.CreatedDateTime = createdDateTime; - this.FromUOM = fromUOM; - this.LastModifiedDateTime = lastModifiedDateTime; - this.MultiplyOrDivide = multiplyOrDivide; - this.ToUOM = toUOM; - } - - /// - /// Gets or Sets ConversionFactor - /// - [DataMember(Name="ConversionFactor", EmitDefaultValue=false)] - public DecimalValue ConversionFactor { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets FromUOM - /// - [DataMember(Name="FromUOM", EmitDefaultValue=false)] - public StringValue FromUOM { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets MultiplyOrDivide - /// - [DataMember(Name="MultiplyOrDivide", EmitDefaultValue=false)] - public StringValue MultiplyOrDivide { get; set; } - - /// - /// Gets or Sets ToUOM - /// - [DataMember(Name="ToUOM", EmitDefaultValue=false)] - public StringValue ToUOM { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class UnitsOfMeasure {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" ConversionFactor: ").Append(ConversionFactor).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" FromUOM: ").Append(FromUOM).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" MultiplyOrDivide: ").Append(MultiplyOrDivide).Append("\n"); - sb.Append(" ToUOM: ").Append(ToUOM).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as UnitsOfMeasure); - } - - /// - /// Returns true if UnitsOfMeasure instances are equal - /// - /// Instance of UnitsOfMeasure to be compared - /// Boolean - public bool Equals(UnitsOfMeasure input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.ConversionFactor == input.ConversionFactor || - (this.ConversionFactor != null && - this.ConversionFactor.Equals(input.ConversionFactor)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.FromUOM == input.FromUOM || - (this.FromUOM != null && - this.FromUOM.Equals(input.FromUOM)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.MultiplyOrDivide == input.MultiplyOrDivide || - (this.MultiplyOrDivide != null && - this.MultiplyOrDivide.Equals(input.MultiplyOrDivide)) - ) && base.Equals(input) && - ( - this.ToUOM == input.ToUOM || - (this.ToUOM != null && - this.ToUOM.Equals(input.ToUOM)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.ConversionFactor != null) - hashCode = hashCode * 59 + this.ConversionFactor.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.FromUOM != null) - hashCode = hashCode * 59 + this.FromUOM.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.MultiplyOrDivide != null) - hashCode = hashCode * 59 + this.MultiplyOrDivide.GetHashCode(); - if (this.ToUOM != null) - hashCode = hashCode * 59 + this.ToUOM.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Vendor.cs b/Default.18.200.001/Model/Vendor.cs deleted file mode 100644 index 3a3f3416..00000000 --- a/Default.18.200.001/Model/Vendor.cs +++ /dev/null @@ -1,958 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Vendor - /// - [DataContract] - public partial class Vendor : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// accountRef. - /// aPAccount. - /// aPSubaccount. - /// attributes. - /// cashAccount. - /// contacts. - /// createdDateTime. - /// currencyID. - /// currencyRateType. - /// enableCurrencyOverride. - /// enableRateOverride. - /// f1099Box. - /// f1099Vendor. - /// fATCA. - /// fOBPoint. - /// foreignEntity. - /// landedCostVendor. - /// lastModifiedDateTime. - /// leadTimedays. - /// locationName. - /// mainContact. - /// maxReceipt. - /// minReceipt. - /// parentAccount. - /// paymentBy. - /// paymentInstructions. - /// paymentLeadTimedays. - /// paymentMethod. - /// paySeparately. - /// printOrders. - /// receiptAction. - /// receivingBranch. - /// remittanceAddressSameasMain. - /// remittanceContact. - /// remittanceContactSameasMain. - /// sendOrdersbyEmail. - /// shippersContactSameasMain. - /// shippingAddressSameasMain. - /// shippingContact. - /// shippingTerms. - /// shipVia. - /// status. - /// taxCalculationMode. - /// taxRegistrationID. - /// taxZone. - /// terms. - /// thresholdReceipt. - /// vendorClass. - /// vendorID. - /// vendorIsLaborUnion. - /// vendorIsTaxAgency. - /// vendorName. - /// warehouse. - public Vendor(StringValue accountRef = default(StringValue), StringValue aPAccount = default(StringValue), StringValue aPSubaccount = default(StringValue), IEnumerable attributes = default(IEnumerable), StringValue cashAccount = default(StringValue), IEnumerable contacts = default(IEnumerable), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue currencyRateType = default(StringValue), BooleanValue enableCurrencyOverride = default(BooleanValue), BooleanValue enableRateOverride = default(BooleanValue), StringValue f1099Box = default(StringValue), BooleanValue f1099Vendor = default(BooleanValue), BooleanValue fATCA = default(BooleanValue), StringValue fOBPoint = default(StringValue), BooleanValue foreignEntity = default(BooleanValue), BooleanValue landedCostVendor = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), ShortValue leadTimedays = default(ShortValue), StringValue locationName = default(StringValue), Contact mainContact = default(Contact), DecimalValue maxReceipt = default(DecimalValue), DecimalValue minReceipt = default(DecimalValue), StringValue parentAccount = default(StringValue), StringValue paymentBy = default(StringValue), IEnumerable paymentInstructions = default(IEnumerable), ShortValue paymentLeadTimedays = default(ShortValue), StringValue paymentMethod = default(StringValue), BooleanValue paySeparately = default(BooleanValue), BooleanValue printOrders = default(BooleanValue), StringValue receiptAction = default(StringValue), StringValue receivingBranch = default(StringValue), BooleanValue remittanceAddressSameasMain = default(BooleanValue), Contact remittanceContact = default(Contact), BooleanValue remittanceContactSameasMain = default(BooleanValue), BooleanValue sendOrdersbyEmail = default(BooleanValue), BooleanValue shippersContactSameasMain = default(BooleanValue), BooleanValue shippingAddressSameasMain = default(BooleanValue), Contact shippingContact = default(Contact), StringValue shippingTerms = default(StringValue), StringValue shipVia = default(StringValue), StringValue status = default(StringValue), StringValue taxCalculationMode = default(StringValue), StringValue taxRegistrationID = default(StringValue), StringValue taxZone = default(StringValue), StringValue terms = default(StringValue), DecimalValue thresholdReceipt = default(DecimalValue), StringValue vendorClass = default(StringValue), StringValue vendorID = default(StringValue), BooleanValue vendorIsLaborUnion = default(BooleanValue), BooleanValue vendorIsTaxAgency = default(BooleanValue), StringValue vendorName = default(StringValue), StringValue warehouse = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AccountRef = accountRef; - this.APAccount = aPAccount; - this.APSubaccount = aPSubaccount; - this.Attributes = attributes; - this.CashAccount = cashAccount; - this.Contacts = contacts; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.CurrencyRateType = currencyRateType; - this.EnableCurrencyOverride = enableCurrencyOverride; - this.EnableRateOverride = enableRateOverride; - this.F1099Box = f1099Box; - this.F1099Vendor = f1099Vendor; - this.FATCA = fATCA; - this.FOBPoint = fOBPoint; - this.ForeignEntity = foreignEntity; - this.LandedCostVendor = landedCostVendor; - this.LastModifiedDateTime = lastModifiedDateTime; - this.LeadTimedays = leadTimedays; - this.LocationName = locationName; - this.MainContact = mainContact; - this.MaxReceipt = maxReceipt; - this.MinReceipt = minReceipt; - this.ParentAccount = parentAccount; - this.PaymentBy = paymentBy; - this.PaymentInstructions = paymentInstructions; - this.PaymentLeadTimedays = paymentLeadTimedays; - this.PaymentMethod = paymentMethod; - this.PaySeparately = paySeparately; - this.PrintOrders = printOrders; - this.ReceiptAction = receiptAction; - this.ReceivingBranch = receivingBranch; - this.RemittanceAddressSameasMain = remittanceAddressSameasMain; - this.RemittanceContact = remittanceContact; - this.RemittanceContactSameasMain = remittanceContactSameasMain; - this.SendOrdersbyEmail = sendOrdersbyEmail; - this.ShippersContactSameasMain = shippersContactSameasMain; - this.ShippingAddressSameasMain = shippingAddressSameasMain; - this.ShippingContact = shippingContact; - this.ShippingTerms = shippingTerms; - this.ShipVia = shipVia; - this.Status = status; - this.TaxCalculationMode = taxCalculationMode; - this.TaxRegistrationID = taxRegistrationID; - this.TaxZone = taxZone; - this.Terms = terms; - this.ThresholdReceipt = thresholdReceipt; - this.VendorClass = vendorClass; - this.VendorID = vendorID; - this.VendorIsLaborUnion = vendorIsLaborUnion; - this.VendorIsTaxAgency = vendorIsTaxAgency; - this.VendorName = vendorName; - this.Warehouse = warehouse; - } - - /// - /// Gets or Sets AccountRef - /// - [DataMember(Name="AccountRef", EmitDefaultValue=false)] - public StringValue AccountRef { get; set; } - - /// - /// Gets or Sets APAccount - /// - [DataMember(Name="APAccount", EmitDefaultValue=false)] - public StringValue APAccount { get; set; } - - /// - /// Gets or Sets APSubaccount - /// - [DataMember(Name="APSubaccount", EmitDefaultValue=false)] - public StringValue APSubaccount { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets CashAccount - /// - [DataMember(Name="CashAccount", EmitDefaultValue=false)] - public StringValue CashAccount { get; set; } - - /// - /// Gets or Sets Contacts - /// - [DataMember(Name="Contacts", EmitDefaultValue=false)] - public IEnumerable Contacts { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets CurrencyRateType - /// - [DataMember(Name="CurrencyRateType", EmitDefaultValue=false)] - public StringValue CurrencyRateType { get; set; } - - /// - /// Gets or Sets EnableCurrencyOverride - /// - [DataMember(Name="EnableCurrencyOverride", EmitDefaultValue=false)] - public BooleanValue EnableCurrencyOverride { get; set; } - - /// - /// Gets or Sets EnableRateOverride - /// - [DataMember(Name="EnableRateOverride", EmitDefaultValue=false)] - public BooleanValue EnableRateOverride { get; set; } - - /// - /// Gets or Sets F1099Box - /// - [DataMember(Name="F1099Box", EmitDefaultValue=false)] - public StringValue F1099Box { get; set; } - - /// - /// Gets or Sets F1099Vendor - /// - [DataMember(Name="F1099Vendor", EmitDefaultValue=false)] - public BooleanValue F1099Vendor { get; set; } - - /// - /// Gets or Sets FATCA - /// - [DataMember(Name="FATCA", EmitDefaultValue=false)] - public BooleanValue FATCA { get; set; } - - /// - /// Gets or Sets FOBPoint - /// - [DataMember(Name="FOBPoint", EmitDefaultValue=false)] - public StringValue FOBPoint { get; set; } - - /// - /// Gets or Sets ForeignEntity - /// - [DataMember(Name="ForeignEntity", EmitDefaultValue=false)] - public BooleanValue ForeignEntity { get; set; } - - /// - /// Gets or Sets LandedCostVendor - /// - [DataMember(Name="LandedCostVendor", EmitDefaultValue=false)] - public BooleanValue LandedCostVendor { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets LeadTimedays - /// - [DataMember(Name="LeadTimedays", EmitDefaultValue=false)] - public ShortValue LeadTimedays { get; set; } - - /// - /// Gets or Sets LocationName - /// - [DataMember(Name="LocationName", EmitDefaultValue=false)] - public StringValue LocationName { get; set; } - - /// - /// Gets or Sets MainContact - /// - [DataMember(Name="MainContact", EmitDefaultValue=false)] - public Contact MainContact { get; set; } - - /// - /// Gets or Sets MaxReceipt - /// - [DataMember(Name="MaxReceipt", EmitDefaultValue=false)] - public DecimalValue MaxReceipt { get; set; } - - /// - /// Gets or Sets MinReceipt - /// - [DataMember(Name="MinReceipt", EmitDefaultValue=false)] - public DecimalValue MinReceipt { get; set; } - - /// - /// Gets or Sets ParentAccount - /// - [DataMember(Name="ParentAccount", EmitDefaultValue=false)] - public StringValue ParentAccount { get; set; } - - /// - /// Gets or Sets PaymentBy - /// - [DataMember(Name="PaymentBy", EmitDefaultValue=false)] - public StringValue PaymentBy { get; set; } - - /// - /// Gets or Sets PaymentInstructions - /// - [DataMember(Name="PaymentInstructions", EmitDefaultValue=false)] - public IEnumerable PaymentInstructions { get; set; } - - /// - /// Gets or Sets PaymentLeadTimedays - /// - [DataMember(Name="PaymentLeadTimedays", EmitDefaultValue=false)] - public ShortValue PaymentLeadTimedays { get; set; } - - /// - /// Gets or Sets PaymentMethod - /// - [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] - public StringValue PaymentMethod { get; set; } - - /// - /// Gets or Sets PaySeparately - /// - [DataMember(Name="PaySeparately", EmitDefaultValue=false)] - public BooleanValue PaySeparately { get; set; } - - /// - /// Gets or Sets PrintOrders - /// - [DataMember(Name="PrintOrders", EmitDefaultValue=false)] - public BooleanValue PrintOrders { get; set; } - - /// - /// Gets or Sets ReceiptAction - /// - [DataMember(Name="ReceiptAction", EmitDefaultValue=false)] - public StringValue ReceiptAction { get; set; } - - /// - /// Gets or Sets ReceivingBranch - /// - [DataMember(Name="ReceivingBranch", EmitDefaultValue=false)] - public StringValue ReceivingBranch { get; set; } - - /// - /// Gets or Sets RemittanceAddressSameasMain - /// - [DataMember(Name="RemittanceAddressSameasMain", EmitDefaultValue=false)] - public BooleanValue RemittanceAddressSameasMain { get; set; } - - /// - /// Gets or Sets RemittanceContact - /// - [DataMember(Name="RemittanceContact", EmitDefaultValue=false)] - public Contact RemittanceContact { get; set; } - - /// - /// Gets or Sets RemittanceContactSameasMain - /// - [DataMember(Name="RemittanceContactSameasMain", EmitDefaultValue=false)] - public BooleanValue RemittanceContactSameasMain { get; set; } - - /// - /// Gets or Sets SendOrdersbyEmail - /// - [DataMember(Name="SendOrdersbyEmail", EmitDefaultValue=false)] - public BooleanValue SendOrdersbyEmail { get; set; } - - /// - /// Gets or Sets ShippersContactSameasMain - /// - [DataMember(Name="ShippersContactSameasMain", EmitDefaultValue=false)] - public BooleanValue ShippersContactSameasMain { get; set; } - - /// - /// Gets or Sets ShippingAddressSameasMain - /// - [DataMember(Name="ShippingAddressSameasMain", EmitDefaultValue=false)] - public BooleanValue ShippingAddressSameasMain { get; set; } - - /// - /// Gets or Sets ShippingContact - /// - [DataMember(Name="ShippingContact", EmitDefaultValue=false)] - public Contact ShippingContact { get; set; } - - /// - /// Gets or Sets ShippingTerms - /// - [DataMember(Name="ShippingTerms", EmitDefaultValue=false)] - public StringValue ShippingTerms { get; set; } - - /// - /// Gets or Sets ShipVia - /// - [DataMember(Name="ShipVia", EmitDefaultValue=false)] - public StringValue ShipVia { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets TaxCalculationMode - /// - [DataMember(Name="TaxCalculationMode", EmitDefaultValue=false)] - public StringValue TaxCalculationMode { get; set; } - - /// - /// Gets or Sets TaxRegistrationID - /// - [DataMember(Name="TaxRegistrationID", EmitDefaultValue=false)] - public StringValue TaxRegistrationID { get; set; } - - /// - /// Gets or Sets TaxZone - /// - [DataMember(Name="TaxZone", EmitDefaultValue=false)] - public StringValue TaxZone { get; set; } - - /// - /// Gets or Sets Terms - /// - [DataMember(Name="Terms", EmitDefaultValue=false)] - public StringValue Terms { get; set; } - - /// - /// Gets or Sets ThresholdReceipt - /// - [DataMember(Name="ThresholdReceipt", EmitDefaultValue=false)] - public DecimalValue ThresholdReceipt { get; set; } - - /// - /// Gets or Sets VendorClass - /// - [DataMember(Name="VendorClass", EmitDefaultValue=false)] - public StringValue VendorClass { get; set; } - - /// - /// Gets or Sets VendorID - /// - [DataMember(Name="VendorID", EmitDefaultValue=false)] - public StringValue VendorID { get; set; } - - /// - /// Gets or Sets VendorIsLaborUnion - /// - [DataMember(Name="VendorIsLaborUnion", EmitDefaultValue=false)] - public BooleanValue VendorIsLaborUnion { get; set; } - - /// - /// Gets or Sets VendorIsTaxAgency - /// - [DataMember(Name="VendorIsTaxAgency", EmitDefaultValue=false)] - public BooleanValue VendorIsTaxAgency { get; set; } - - /// - /// Gets or Sets VendorName - /// - [DataMember(Name="VendorName", EmitDefaultValue=false)] - public StringValue VendorName { get; set; } - - /// - /// Gets or Sets Warehouse - /// - [DataMember(Name="Warehouse", EmitDefaultValue=false)] - public StringValue Warehouse { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Vendor {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AccountRef: ").Append(AccountRef).Append("\n"); - sb.Append(" APAccount: ").Append(APAccount).Append("\n"); - sb.Append(" APSubaccount: ").Append(APSubaccount).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" CashAccount: ").Append(CashAccount).Append("\n"); - sb.Append(" Contacts: ").Append(Contacts).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" CurrencyRateType: ").Append(CurrencyRateType).Append("\n"); - sb.Append(" EnableCurrencyOverride: ").Append(EnableCurrencyOverride).Append("\n"); - sb.Append(" EnableRateOverride: ").Append(EnableRateOverride).Append("\n"); - sb.Append(" F1099Box: ").Append(F1099Box).Append("\n"); - sb.Append(" F1099Vendor: ").Append(F1099Vendor).Append("\n"); - sb.Append(" FATCA: ").Append(FATCA).Append("\n"); - sb.Append(" FOBPoint: ").Append(FOBPoint).Append("\n"); - sb.Append(" ForeignEntity: ").Append(ForeignEntity).Append("\n"); - sb.Append(" LandedCostVendor: ").Append(LandedCostVendor).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" LeadTimedays: ").Append(LeadTimedays).Append("\n"); - sb.Append(" LocationName: ").Append(LocationName).Append("\n"); - sb.Append(" MainContact: ").Append(MainContact).Append("\n"); - sb.Append(" MaxReceipt: ").Append(MaxReceipt).Append("\n"); - sb.Append(" MinReceipt: ").Append(MinReceipt).Append("\n"); - sb.Append(" ParentAccount: ").Append(ParentAccount).Append("\n"); - sb.Append(" PaymentBy: ").Append(PaymentBy).Append("\n"); - sb.Append(" PaymentInstructions: ").Append(PaymentInstructions).Append("\n"); - sb.Append(" PaymentLeadTimedays: ").Append(PaymentLeadTimedays).Append("\n"); - sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" PaySeparately: ").Append(PaySeparately).Append("\n"); - sb.Append(" PrintOrders: ").Append(PrintOrders).Append("\n"); - sb.Append(" ReceiptAction: ").Append(ReceiptAction).Append("\n"); - sb.Append(" ReceivingBranch: ").Append(ReceivingBranch).Append("\n"); - sb.Append(" RemittanceAddressSameasMain: ").Append(RemittanceAddressSameasMain).Append("\n"); - sb.Append(" RemittanceContact: ").Append(RemittanceContact).Append("\n"); - sb.Append(" RemittanceContactSameasMain: ").Append(RemittanceContactSameasMain).Append("\n"); - sb.Append(" SendOrdersbyEmail: ").Append(SendOrdersbyEmail).Append("\n"); - sb.Append(" ShippersContactSameasMain: ").Append(ShippersContactSameasMain).Append("\n"); - sb.Append(" ShippingAddressSameasMain: ").Append(ShippingAddressSameasMain).Append("\n"); - sb.Append(" ShippingContact: ").Append(ShippingContact).Append("\n"); - sb.Append(" ShippingTerms: ").Append(ShippingTerms).Append("\n"); - sb.Append(" ShipVia: ").Append(ShipVia).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" TaxCalculationMode: ").Append(TaxCalculationMode).Append("\n"); - sb.Append(" TaxRegistrationID: ").Append(TaxRegistrationID).Append("\n"); - sb.Append(" TaxZone: ").Append(TaxZone).Append("\n"); - sb.Append(" Terms: ").Append(Terms).Append("\n"); - sb.Append(" ThresholdReceipt: ").Append(ThresholdReceipt).Append("\n"); - sb.Append(" VendorClass: ").Append(VendorClass).Append("\n"); - sb.Append(" VendorID: ").Append(VendorID).Append("\n"); - sb.Append(" VendorIsLaborUnion: ").Append(VendorIsLaborUnion).Append("\n"); - sb.Append(" VendorIsTaxAgency: ").Append(VendorIsTaxAgency).Append("\n"); - sb.Append(" VendorName: ").Append(VendorName).Append("\n"); - sb.Append(" Warehouse: ").Append(Warehouse).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Vendor); - } - - /// - /// Returns true if Vendor instances are equal - /// - /// Instance of Vendor to be compared - /// Boolean - public bool Equals(Vendor input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AccountRef == input.AccountRef || - (this.AccountRef != null && - this.AccountRef.Equals(input.AccountRef)) - ) && base.Equals(input) && - ( - this.APAccount == input.APAccount || - (this.APAccount != null && - this.APAccount.Equals(input.APAccount)) - ) && base.Equals(input) && - ( - this.APSubaccount == input.APSubaccount || - (this.APSubaccount != null && - this.APSubaccount.Equals(input.APSubaccount)) - ) && base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.CashAccount == input.CashAccount || - (this.CashAccount != null && - this.CashAccount.Equals(input.CashAccount)) - ) && base.Equals(input) && - ( - this.Contacts == input.Contacts || - this.Contacts != null && - this.Contacts.SequenceEqual(input.Contacts) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.CurrencyRateType == input.CurrencyRateType || - (this.CurrencyRateType != null && - this.CurrencyRateType.Equals(input.CurrencyRateType)) - ) && base.Equals(input) && - ( - this.EnableCurrencyOverride == input.EnableCurrencyOverride || - (this.EnableCurrencyOverride != null && - this.EnableCurrencyOverride.Equals(input.EnableCurrencyOverride)) - ) && base.Equals(input) && - ( - this.EnableRateOverride == input.EnableRateOverride || - (this.EnableRateOverride != null && - this.EnableRateOverride.Equals(input.EnableRateOverride)) - ) && base.Equals(input) && - ( - this.F1099Box == input.F1099Box || - (this.F1099Box != null && - this.F1099Box.Equals(input.F1099Box)) - ) && base.Equals(input) && - ( - this.F1099Vendor == input.F1099Vendor || - (this.F1099Vendor != null && - this.F1099Vendor.Equals(input.F1099Vendor)) - ) && base.Equals(input) && - ( - this.FATCA == input.FATCA || - (this.FATCA != null && - this.FATCA.Equals(input.FATCA)) - ) && base.Equals(input) && - ( - this.FOBPoint == input.FOBPoint || - (this.FOBPoint != null && - this.FOBPoint.Equals(input.FOBPoint)) - ) && base.Equals(input) && - ( - this.ForeignEntity == input.ForeignEntity || - (this.ForeignEntity != null && - this.ForeignEntity.Equals(input.ForeignEntity)) - ) && base.Equals(input) && - ( - this.LandedCostVendor == input.LandedCostVendor || - (this.LandedCostVendor != null && - this.LandedCostVendor.Equals(input.LandedCostVendor)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.LeadTimedays == input.LeadTimedays || - (this.LeadTimedays != null && - this.LeadTimedays.Equals(input.LeadTimedays)) - ) && base.Equals(input) && - ( - this.LocationName == input.LocationName || - (this.LocationName != null && - this.LocationName.Equals(input.LocationName)) - ) && base.Equals(input) && - ( - this.MainContact == input.MainContact || - (this.MainContact != null && - this.MainContact.Equals(input.MainContact)) - ) && base.Equals(input) && - ( - this.MaxReceipt == input.MaxReceipt || - (this.MaxReceipt != null && - this.MaxReceipt.Equals(input.MaxReceipt)) - ) && base.Equals(input) && - ( - this.MinReceipt == input.MinReceipt || - (this.MinReceipt != null && - this.MinReceipt.Equals(input.MinReceipt)) - ) && base.Equals(input) && - ( - this.ParentAccount == input.ParentAccount || - (this.ParentAccount != null && - this.ParentAccount.Equals(input.ParentAccount)) - ) && base.Equals(input) && - ( - this.PaymentBy == input.PaymentBy || - (this.PaymentBy != null && - this.PaymentBy.Equals(input.PaymentBy)) - ) && base.Equals(input) && - ( - this.PaymentInstructions == input.PaymentInstructions || - this.PaymentInstructions != null && - this.PaymentInstructions.SequenceEqual(input.PaymentInstructions) - ) && base.Equals(input) && - ( - this.PaymentLeadTimedays == input.PaymentLeadTimedays || - (this.PaymentLeadTimedays != null && - this.PaymentLeadTimedays.Equals(input.PaymentLeadTimedays)) - ) && base.Equals(input) && - ( - this.PaymentMethod == input.PaymentMethod || - (this.PaymentMethod != null && - this.PaymentMethod.Equals(input.PaymentMethod)) - ) && base.Equals(input) && - ( - this.PaySeparately == input.PaySeparately || - (this.PaySeparately != null && - this.PaySeparately.Equals(input.PaySeparately)) - ) && base.Equals(input) && - ( - this.PrintOrders == input.PrintOrders || - (this.PrintOrders != null && - this.PrintOrders.Equals(input.PrintOrders)) - ) && base.Equals(input) && - ( - this.ReceiptAction == input.ReceiptAction || - (this.ReceiptAction != null && - this.ReceiptAction.Equals(input.ReceiptAction)) - ) && base.Equals(input) && - ( - this.ReceivingBranch == input.ReceivingBranch || - (this.ReceivingBranch != null && - this.ReceivingBranch.Equals(input.ReceivingBranch)) - ) && base.Equals(input) && - ( - this.RemittanceAddressSameasMain == input.RemittanceAddressSameasMain || - (this.RemittanceAddressSameasMain != null && - this.RemittanceAddressSameasMain.Equals(input.RemittanceAddressSameasMain)) - ) && base.Equals(input) && - ( - this.RemittanceContact == input.RemittanceContact || - (this.RemittanceContact != null && - this.RemittanceContact.Equals(input.RemittanceContact)) - ) && base.Equals(input) && - ( - this.RemittanceContactSameasMain == input.RemittanceContactSameasMain || - (this.RemittanceContactSameasMain != null && - this.RemittanceContactSameasMain.Equals(input.RemittanceContactSameasMain)) - ) && base.Equals(input) && - ( - this.SendOrdersbyEmail == input.SendOrdersbyEmail || - (this.SendOrdersbyEmail != null && - this.SendOrdersbyEmail.Equals(input.SendOrdersbyEmail)) - ) && base.Equals(input) && - ( - this.ShippersContactSameasMain == input.ShippersContactSameasMain || - (this.ShippersContactSameasMain != null && - this.ShippersContactSameasMain.Equals(input.ShippersContactSameasMain)) - ) && base.Equals(input) && - ( - this.ShippingAddressSameasMain == input.ShippingAddressSameasMain || - (this.ShippingAddressSameasMain != null && - this.ShippingAddressSameasMain.Equals(input.ShippingAddressSameasMain)) - ) && base.Equals(input) && - ( - this.ShippingContact == input.ShippingContact || - (this.ShippingContact != null && - this.ShippingContact.Equals(input.ShippingContact)) - ) && base.Equals(input) && - ( - this.ShippingTerms == input.ShippingTerms || - (this.ShippingTerms != null && - this.ShippingTerms.Equals(input.ShippingTerms)) - ) && base.Equals(input) && - ( - this.ShipVia == input.ShipVia || - (this.ShipVia != null && - this.ShipVia.Equals(input.ShipVia)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.TaxCalculationMode == input.TaxCalculationMode || - (this.TaxCalculationMode != null && - this.TaxCalculationMode.Equals(input.TaxCalculationMode)) - ) && base.Equals(input) && - ( - this.TaxRegistrationID == input.TaxRegistrationID || - (this.TaxRegistrationID != null && - this.TaxRegistrationID.Equals(input.TaxRegistrationID)) - ) && base.Equals(input) && - ( - this.TaxZone == input.TaxZone || - (this.TaxZone != null && - this.TaxZone.Equals(input.TaxZone)) - ) && base.Equals(input) && - ( - this.Terms == input.Terms || - (this.Terms != null && - this.Terms.Equals(input.Terms)) - ) && base.Equals(input) && - ( - this.ThresholdReceipt == input.ThresholdReceipt || - (this.ThresholdReceipt != null && - this.ThresholdReceipt.Equals(input.ThresholdReceipt)) - ) && base.Equals(input) && - ( - this.VendorClass == input.VendorClass || - (this.VendorClass != null && - this.VendorClass.Equals(input.VendorClass)) - ) && base.Equals(input) && - ( - this.VendorID == input.VendorID || - (this.VendorID != null && - this.VendorID.Equals(input.VendorID)) - ) && base.Equals(input) && - ( - this.VendorIsLaborUnion == input.VendorIsLaborUnion || - (this.VendorIsLaborUnion != null && - this.VendorIsLaborUnion.Equals(input.VendorIsLaborUnion)) - ) && base.Equals(input) && - ( - this.VendorIsTaxAgency == input.VendorIsTaxAgency || - (this.VendorIsTaxAgency != null && - this.VendorIsTaxAgency.Equals(input.VendorIsTaxAgency)) - ) && base.Equals(input) && - ( - this.VendorName == input.VendorName || - (this.VendorName != null && - this.VendorName.Equals(input.VendorName)) - ) && base.Equals(input) && - ( - this.Warehouse == input.Warehouse || - (this.Warehouse != null && - this.Warehouse.Equals(input.Warehouse)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AccountRef != null) - hashCode = hashCode * 59 + this.AccountRef.GetHashCode(); - if (this.APAccount != null) - hashCode = hashCode * 59 + this.APAccount.GetHashCode(); - if (this.APSubaccount != null) - hashCode = hashCode * 59 + this.APSubaccount.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.CashAccount != null) - hashCode = hashCode * 59 + this.CashAccount.GetHashCode(); - if (this.Contacts != null) - hashCode = hashCode * 59 + this.Contacts.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.CurrencyRateType != null) - hashCode = hashCode * 59 + this.CurrencyRateType.GetHashCode(); - if (this.EnableCurrencyOverride != null) - hashCode = hashCode * 59 + this.EnableCurrencyOverride.GetHashCode(); - if (this.EnableRateOverride != null) - hashCode = hashCode * 59 + this.EnableRateOverride.GetHashCode(); - if (this.F1099Box != null) - hashCode = hashCode * 59 + this.F1099Box.GetHashCode(); - if (this.F1099Vendor != null) - hashCode = hashCode * 59 + this.F1099Vendor.GetHashCode(); - if (this.FATCA != null) - hashCode = hashCode * 59 + this.FATCA.GetHashCode(); - if (this.FOBPoint != null) - hashCode = hashCode * 59 + this.FOBPoint.GetHashCode(); - if (this.ForeignEntity != null) - hashCode = hashCode * 59 + this.ForeignEntity.GetHashCode(); - if (this.LandedCostVendor != null) - hashCode = hashCode * 59 + this.LandedCostVendor.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.LeadTimedays != null) - hashCode = hashCode * 59 + this.LeadTimedays.GetHashCode(); - if (this.LocationName != null) - hashCode = hashCode * 59 + this.LocationName.GetHashCode(); - if (this.MainContact != null) - hashCode = hashCode * 59 + this.MainContact.GetHashCode(); - if (this.MaxReceipt != null) - hashCode = hashCode * 59 + this.MaxReceipt.GetHashCode(); - if (this.MinReceipt != null) - hashCode = hashCode * 59 + this.MinReceipt.GetHashCode(); - if (this.ParentAccount != null) - hashCode = hashCode * 59 + this.ParentAccount.GetHashCode(); - if (this.PaymentBy != null) - hashCode = hashCode * 59 + this.PaymentBy.GetHashCode(); - if (this.PaymentInstructions != null) - hashCode = hashCode * 59 + this.PaymentInstructions.GetHashCode(); - if (this.PaymentLeadTimedays != null) - hashCode = hashCode * 59 + this.PaymentLeadTimedays.GetHashCode(); - if (this.PaymentMethod != null) - hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); - if (this.PaySeparately != null) - hashCode = hashCode * 59 + this.PaySeparately.GetHashCode(); - if (this.PrintOrders != null) - hashCode = hashCode * 59 + this.PrintOrders.GetHashCode(); - if (this.ReceiptAction != null) - hashCode = hashCode * 59 + this.ReceiptAction.GetHashCode(); - if (this.ReceivingBranch != null) - hashCode = hashCode * 59 + this.ReceivingBranch.GetHashCode(); - if (this.RemittanceAddressSameasMain != null) - hashCode = hashCode * 59 + this.RemittanceAddressSameasMain.GetHashCode(); - if (this.RemittanceContact != null) - hashCode = hashCode * 59 + this.RemittanceContact.GetHashCode(); - if (this.RemittanceContactSameasMain != null) - hashCode = hashCode * 59 + this.RemittanceContactSameasMain.GetHashCode(); - if (this.SendOrdersbyEmail != null) - hashCode = hashCode * 59 + this.SendOrdersbyEmail.GetHashCode(); - if (this.ShippersContactSameasMain != null) - hashCode = hashCode * 59 + this.ShippersContactSameasMain.GetHashCode(); - if (this.ShippingAddressSameasMain != null) - hashCode = hashCode * 59 + this.ShippingAddressSameasMain.GetHashCode(); - if (this.ShippingContact != null) - hashCode = hashCode * 59 + this.ShippingContact.GetHashCode(); - if (this.ShippingTerms != null) - hashCode = hashCode * 59 + this.ShippingTerms.GetHashCode(); - if (this.ShipVia != null) - hashCode = hashCode * 59 + this.ShipVia.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.TaxCalculationMode != null) - hashCode = hashCode * 59 + this.TaxCalculationMode.GetHashCode(); - if (this.TaxRegistrationID != null) - hashCode = hashCode * 59 + this.TaxRegistrationID.GetHashCode(); - if (this.TaxZone != null) - hashCode = hashCode * 59 + this.TaxZone.GetHashCode(); - if (this.Terms != null) - hashCode = hashCode * 59 + this.Terms.GetHashCode(); - if (this.ThresholdReceipt != null) - hashCode = hashCode * 59 + this.ThresholdReceipt.GetHashCode(); - if (this.VendorClass != null) - hashCode = hashCode * 59 + this.VendorClass.GetHashCode(); - if (this.VendorID != null) - hashCode = hashCode * 59 + this.VendorID.GetHashCode(); - if (this.VendorIsLaborUnion != null) - hashCode = hashCode * 59 + this.VendorIsLaborUnion.GetHashCode(); - if (this.VendorIsTaxAgency != null) - hashCode = hashCode * 59 + this.VendorIsTaxAgency.GetHashCode(); - if (this.VendorName != null) - hashCode = hashCode * 59 + this.VendorName.GetHashCode(); - if (this.Warehouse != null) - hashCode = hashCode * 59 + this.Warehouse.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/VendorClass.cs b/Default.18.200.001/Model/VendorClass.cs deleted file mode 100644 index f4cce8cf..00000000 --- a/Default.18.200.001/Model/VendorClass.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// VendorClass - /// - [DataContract] - public partial class VendorClass : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// attributes. - /// classID. - /// createdDateTime. - /// description. - /// lastModifiedDateTime. - public VendorClass(IEnumerable attributes = default(IEnumerable), StringValue classID = default(StringValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Attributes = attributes; - this.ClassID = classID; - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.LastModifiedDateTime = lastModifiedDateTime; - } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="Attributes", EmitDefaultValue=false)] - public IEnumerable Attributes { get; set; } - - /// - /// Gets or Sets ClassID - /// - [DataMember(Name="ClassID", EmitDefaultValue=false)] - public StringValue ClassID { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VendorClass {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" ClassID: ").Append(ClassID).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VendorClass); - } - - /// - /// Returns true if VendorClass instances are equal - /// - /// Instance of VendorClass to be compared - /// Boolean - public bool Equals(VendorClass input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Attributes == input.Attributes || - this.Attributes != null && - this.Attributes.SequenceEqual(input.Attributes) - ) && base.Equals(input) && - ( - this.ClassID == input.ClassID || - (this.ClassID != null && - this.ClassID.Equals(input.ClassID)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Attributes != null) - hashCode = hashCode * 59 + this.Attributes.GetHashCode(); - if (this.ClassID != null) - hashCode = hashCode * 59 + this.ClassID.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/VendorPriceDetail.cs b/Default.18.200.001/Model/VendorPriceDetail.cs deleted file mode 100644 index 707ad995..00000000 --- a/Default.18.200.001/Model/VendorPriceDetail.cs +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// VendorPriceDetail - /// - [DataContract] - public partial class VendorPriceDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakQty. - /// createdDateTime. - /// currencyID. - /// description. - /// effectiveDate. - /// expirationDate. - /// inventoryID. - /// lastModifiedDateTime. - /// price. - /// promotional. - /// recordID. - /// uOM. - /// vendor. - /// vendorName. - public VendorPriceDetail(DecimalValue breakQty = default(DecimalValue), DateTimeValue createdDateTime = default(DateTimeValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), DateTimeValue expirationDate = default(DateTimeValue), StringValue inventoryID = default(StringValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), DecimalValue price = default(DecimalValue), BooleanValue promotional = default(BooleanValue), IntValue recordID = default(IntValue), StringValue uOM = default(StringValue), StringValue vendor = default(StringValue), StringValue vendorName = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakQty = breakQty; - this.CreatedDateTime = createdDateTime; - this.CurrencyID = currencyID; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExpirationDate = expirationDate; - this.InventoryID = inventoryID; - this.LastModifiedDateTime = lastModifiedDateTime; - this.Price = price; - this.Promotional = promotional; - this.RecordID = recordID; - this.UOM = uOM; - this.Vendor = vendor; - this.VendorName = vendorName; - } - - /// - /// Gets or Sets BreakQty - /// - [DataMember(Name="BreakQty", EmitDefaultValue=false)] - public DecimalValue BreakQty { get; set; } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets Price - /// - [DataMember(Name="Price", EmitDefaultValue=false)] - public DecimalValue Price { get; set; } - - /// - /// Gets or Sets Promotional - /// - [DataMember(Name="Promotional", EmitDefaultValue=false)] - public BooleanValue Promotional { get; set; } - - /// - /// Gets or Sets RecordID - /// - [DataMember(Name="RecordID", EmitDefaultValue=false)] - public IntValue RecordID { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } - - /// - /// Gets or Sets VendorName - /// - [DataMember(Name="VendorName", EmitDefaultValue=false)] - public StringValue VendorName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VendorPriceDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakQty: ").Append(BreakQty).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" Price: ").Append(Price).Append("\n"); - sb.Append(" Promotional: ").Append(Promotional).Append("\n"); - sb.Append(" RecordID: ").Append(RecordID).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append(" VendorName: ").Append(VendorName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VendorPriceDetail); - } - - /// - /// Returns true if VendorPriceDetail instances are equal - /// - /// Instance of VendorPriceDetail to be compared - /// Boolean - public bool Equals(VendorPriceDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BreakQty == input.BreakQty || - (this.BreakQty != null && - this.BreakQty.Equals(input.BreakQty)) - ) && base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.Price == input.Price || - (this.Price != null && - this.Price.Equals(input.Price)) - ) && base.Equals(input) && - ( - this.Promotional == input.Promotional || - (this.Promotional != null && - this.Promotional.Equals(input.Promotional)) - ) && base.Equals(input) && - ( - this.RecordID == input.RecordID || - (this.RecordID != null && - this.RecordID.Equals(input.RecordID)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ) && base.Equals(input) && - ( - this.VendorName == input.VendorName || - (this.VendorName != null && - this.VendorName.Equals(input.VendorName)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakQty != null) - hashCode = hashCode * 59 + this.BreakQty.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.Price != null) - hashCode = hashCode * 59 + this.Price.GetHashCode(); - if (this.Promotional != null) - hashCode = hashCode * 59 + this.Promotional.GetHashCode(); - if (this.RecordID != null) - hashCode = hashCode * 59 + this.RecordID.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - if (this.VendorName != null) - hashCode = hashCode * 59 + this.VendorName.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/VendorPriceWorksheet.cs b/Default.18.200.001/Model/VendorPriceWorksheet.cs deleted file mode 100644 index 1ccdb5ad..00000000 --- a/Default.18.200.001/Model/VendorPriceWorksheet.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// VendorPriceWorksheet - /// - [DataContract] - public partial class VendorPriceWorksheet : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// createdDateTime. - /// description. - /// effectiveDate. - /// expirationDate. - /// hold. - /// lastModifiedDateTime. - /// overwriteOverlappingPrices. - /// promotional. - /// referenceNbr. - /// status. - /// vendorSalesPrices. - public VendorPriceWorksheet(DateTimeValue createdDateTime = default(DateTimeValue), StringValue description = default(StringValue), DateTimeValue effectiveDate = default(DateTimeValue), DateTimeValue expirationDate = default(DateTimeValue), BooleanValue hold = default(BooleanValue), DateTimeValue lastModifiedDateTime = default(DateTimeValue), BooleanValue overwriteOverlappingPrices = default(BooleanValue), BooleanValue promotional = default(BooleanValue), StringValue referenceNbr = default(StringValue), StringValue status = default(StringValue), IEnumerable vendorSalesPrices = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.CreatedDateTime = createdDateTime; - this.Description = description; - this.EffectiveDate = effectiveDate; - this.ExpirationDate = expirationDate; - this.Hold = hold; - this.LastModifiedDateTime = lastModifiedDateTime; - this.OverwriteOverlappingPrices = overwriteOverlappingPrices; - this.Promotional = promotional; - this.ReferenceNbr = referenceNbr; - this.Status = status; - this.VendorSalesPrices = vendorSalesPrices; - } - - /// - /// Gets or Sets CreatedDateTime - /// - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public DateTimeValue CreatedDateTime { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets EffectiveDate - /// - [DataMember(Name="EffectiveDate", EmitDefaultValue=false)] - public DateTimeValue EffectiveDate { get; set; } - - /// - /// Gets or Sets ExpirationDate - /// - [DataMember(Name="ExpirationDate", EmitDefaultValue=false)] - public DateTimeValue ExpirationDate { get; set; } - - /// - /// Gets or Sets Hold - /// - [DataMember(Name="Hold", EmitDefaultValue=false)] - public BooleanValue Hold { get; set; } - - /// - /// Gets or Sets LastModifiedDateTime - /// - [DataMember(Name="LastModifiedDateTime", EmitDefaultValue=false)] - public DateTimeValue LastModifiedDateTime { get; set; } - - /// - /// Gets or Sets OverwriteOverlappingPrices - /// - [DataMember(Name="OverwriteOverlappingPrices", EmitDefaultValue=false)] - public BooleanValue OverwriteOverlappingPrices { get; set; } - - /// - /// Gets or Sets Promotional - /// - [DataMember(Name="Promotional", EmitDefaultValue=false)] - public BooleanValue Promotional { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="Status", EmitDefaultValue=false)] - public StringValue Status { get; set; } - - /// - /// Gets or Sets VendorSalesPrices - /// - [DataMember(Name="VendorSalesPrices", EmitDefaultValue=false)] - public IEnumerable VendorSalesPrices { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VendorPriceWorksheet {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" EffectiveDate: ").Append(EffectiveDate).Append("\n"); - sb.Append(" ExpirationDate: ").Append(ExpirationDate).Append("\n"); - sb.Append(" Hold: ").Append(Hold).Append("\n"); - sb.Append(" LastModifiedDateTime: ").Append(LastModifiedDateTime).Append("\n"); - sb.Append(" OverwriteOverlappingPrices: ").Append(OverwriteOverlappingPrices).Append("\n"); - sb.Append(" Promotional: ").Append(Promotional).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" VendorSalesPrices: ").Append(VendorSalesPrices).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VendorPriceWorksheet); - } - - /// - /// Returns true if VendorPriceWorksheet instances are equal - /// - /// Instance of VendorPriceWorksheet to be compared - /// Boolean - public bool Equals(VendorPriceWorksheet input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.EffectiveDate == input.EffectiveDate || - (this.EffectiveDate != null && - this.EffectiveDate.Equals(input.EffectiveDate)) - ) && base.Equals(input) && - ( - this.ExpirationDate == input.ExpirationDate || - (this.ExpirationDate != null && - this.ExpirationDate.Equals(input.ExpirationDate)) - ) && base.Equals(input) && - ( - this.Hold == input.Hold || - (this.Hold != null && - this.Hold.Equals(input.Hold)) - ) && base.Equals(input) && - ( - this.LastModifiedDateTime == input.LastModifiedDateTime || - (this.LastModifiedDateTime != null && - this.LastModifiedDateTime.Equals(input.LastModifiedDateTime)) - ) && base.Equals(input) && - ( - this.OverwriteOverlappingPrices == input.OverwriteOverlappingPrices || - (this.OverwriteOverlappingPrices != null && - this.OverwriteOverlappingPrices.Equals(input.OverwriteOverlappingPrices)) - ) && base.Equals(input) && - ( - this.Promotional == input.Promotional || - (this.Promotional != null && - this.Promotional.Equals(input.Promotional)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && base.Equals(input) && - ( - this.VendorSalesPrices == input.VendorSalesPrices || - this.VendorSalesPrices != null && - this.VendorSalesPrices.SequenceEqual(input.VendorSalesPrices) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.EffectiveDate != null) - hashCode = hashCode * 59 + this.EffectiveDate.GetHashCode(); - if (this.ExpirationDate != null) - hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode(); - if (this.Hold != null) - hashCode = hashCode * 59 + this.Hold.GetHashCode(); - if (this.LastModifiedDateTime != null) - hashCode = hashCode * 59 + this.LastModifiedDateTime.GetHashCode(); - if (this.OverwriteOverlappingPrices != null) - hashCode = hashCode * 59 + this.OverwriteOverlappingPrices.GetHashCode(); - if (this.Promotional != null) - hashCode = hashCode * 59 + this.Promotional.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.Status != null) - hashCode = hashCode * 59 + this.Status.GetHashCode(); - if (this.VendorSalesPrices != null) - hashCode = hashCode * 59 + this.VendorSalesPrices.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/VendorPriceWorksheetDetail.cs b/Default.18.200.001/Model/VendorPriceWorksheetDetail.cs deleted file mode 100644 index a441e997..00000000 --- a/Default.18.200.001/Model/VendorPriceWorksheetDetail.cs +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// VendorPriceWorksheetDetail - /// - [DataContract] - public partial class VendorPriceWorksheetDetail : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// breakQty. - /// currencyID. - /// description. - /// inventoryID. - /// lineID. - /// pendingPrice. - /// referenceNbr. - /// sourcePrice. - /// tax. - /// uOM. - /// vendor. - public VendorPriceWorksheetDetail(DecimalValue breakQty = default(DecimalValue), StringValue currencyID = default(StringValue), StringValue description = default(StringValue), StringValue inventoryID = default(StringValue), IntValue lineID = default(IntValue), DecimalValue pendingPrice = default(DecimalValue), StringValue referenceNbr = default(StringValue), DecimalValue sourcePrice = default(DecimalValue), StringValue tax = default(StringValue), StringValue uOM = default(StringValue), StringValue vendor = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.BreakQty = breakQty; - this.CurrencyID = currencyID; - this.Description = description; - this.InventoryID = inventoryID; - this.LineID = lineID; - this.PendingPrice = pendingPrice; - this.ReferenceNbr = referenceNbr; - this.SourcePrice = sourcePrice; - this.Tax = tax; - this.UOM = uOM; - this.Vendor = vendor; - } - - /// - /// Gets or Sets BreakQty - /// - [DataMember(Name="BreakQty", EmitDefaultValue=false)] - public DecimalValue BreakQty { get; set; } - - /// - /// Gets or Sets CurrencyID - /// - [DataMember(Name="CurrencyID", EmitDefaultValue=false)] - public StringValue CurrencyID { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets LineID - /// - [DataMember(Name="LineID", EmitDefaultValue=false)] - public IntValue LineID { get; set; } - - /// - /// Gets or Sets PendingPrice - /// - [DataMember(Name="PendingPrice", EmitDefaultValue=false)] - public DecimalValue PendingPrice { get; set; } - - /// - /// Gets or Sets ReferenceNbr - /// - [DataMember(Name="ReferenceNbr", EmitDefaultValue=false)] - public StringValue ReferenceNbr { get; set; } - - /// - /// Gets or Sets SourcePrice - /// - [DataMember(Name="SourcePrice", EmitDefaultValue=false)] - public DecimalValue SourcePrice { get; set; } - - /// - /// Gets or Sets Tax - /// - [DataMember(Name="Tax", EmitDefaultValue=false)] - public StringValue Tax { get; set; } - - /// - /// Gets or Sets UOM - /// - [DataMember(Name="UOM", EmitDefaultValue=false)] - public StringValue UOM { get; set; } - - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VendorPriceWorksheetDetail {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" BreakQty: ").Append(BreakQty).Append("\n"); - sb.Append(" CurrencyID: ").Append(CurrencyID).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" LineID: ").Append(LineID).Append("\n"); - sb.Append(" PendingPrice: ").Append(PendingPrice).Append("\n"); - sb.Append(" ReferenceNbr: ").Append(ReferenceNbr).Append("\n"); - sb.Append(" SourcePrice: ").Append(SourcePrice).Append("\n"); - sb.Append(" Tax: ").Append(Tax).Append("\n"); - sb.Append(" UOM: ").Append(UOM).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VendorPriceWorksheetDetail); - } - - /// - /// Returns true if VendorPriceWorksheetDetail instances are equal - /// - /// Instance of VendorPriceWorksheetDetail to be compared - /// Boolean - public bool Equals(VendorPriceWorksheetDetail input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.BreakQty == input.BreakQty || - (this.BreakQty != null && - this.BreakQty.Equals(input.BreakQty)) - ) && base.Equals(input) && - ( - this.CurrencyID == input.CurrencyID || - (this.CurrencyID != null && - this.CurrencyID.Equals(input.CurrencyID)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.LineID == input.LineID || - (this.LineID != null && - this.LineID.Equals(input.LineID)) - ) && base.Equals(input) && - ( - this.PendingPrice == input.PendingPrice || - (this.PendingPrice != null && - this.PendingPrice.Equals(input.PendingPrice)) - ) && base.Equals(input) && - ( - this.ReferenceNbr == input.ReferenceNbr || - (this.ReferenceNbr != null && - this.ReferenceNbr.Equals(input.ReferenceNbr)) - ) && base.Equals(input) && - ( - this.SourcePrice == input.SourcePrice || - (this.SourcePrice != null && - this.SourcePrice.Equals(input.SourcePrice)) - ) && base.Equals(input) && - ( - this.Tax == input.Tax || - (this.Tax != null && - this.Tax.Equals(input.Tax)) - ) && base.Equals(input) && - ( - this.UOM == input.UOM || - (this.UOM != null && - this.UOM.Equals(input.UOM)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.BreakQty != null) - hashCode = hashCode * 59 + this.BreakQty.GetHashCode(); - if (this.CurrencyID != null) - hashCode = hashCode * 59 + this.CurrencyID.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.LineID != null) - hashCode = hashCode * 59 + this.LineID.GetHashCode(); - if (this.PendingPrice != null) - hashCode = hashCode * 59 + this.PendingPrice.GetHashCode(); - if (this.ReferenceNbr != null) - hashCode = hashCode * 59 + this.ReferenceNbr.GetHashCode(); - if (this.SourcePrice != null) - hashCode = hashCode * 59 + this.SourcePrice.GetHashCode(); - if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); - if (this.UOM != null) - hashCode = hashCode * 59 + this.UOM.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/VendorPricesInquiry.cs b/Default.18.200.001/Model/VendorPricesInquiry.cs deleted file mode 100644 index 7bc877c7..00000000 --- a/Default.18.200.001/Model/VendorPricesInquiry.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// VendorPricesInquiry - /// - [DataContract] - public partial class VendorPricesInquiry : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// inventoryID. - /// itemClass. - /// productManager. - /// productWorkgroup. - /// vendor. - /// vendorPriceDetails. - public VendorPricesInquiry(StringValue inventoryID = default(StringValue), StringValue itemClass = default(StringValue), StringValue productManager = default(StringValue), StringValue productWorkgroup = default(StringValue), StringValue vendor = default(StringValue), IEnumerable vendorPriceDetails = default(IEnumerable), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.InventoryID = inventoryID; - this.ItemClass = itemClass; - this.ProductManager = productManager; - this.ProductWorkgroup = productWorkgroup; - this.Vendor = vendor; - this.VendorPriceDetails = vendorPriceDetails; - } - - /// - /// Gets or Sets InventoryID - /// - [DataMember(Name="InventoryID", EmitDefaultValue=false)] - public StringValue InventoryID { get; set; } - - /// - /// Gets or Sets ItemClass - /// - [DataMember(Name="ItemClass", EmitDefaultValue=false)] - public StringValue ItemClass { get; set; } - - /// - /// Gets or Sets ProductManager - /// - [DataMember(Name="ProductManager", EmitDefaultValue=false)] - public StringValue ProductManager { get; set; } - - /// - /// Gets or Sets ProductWorkgroup - /// - [DataMember(Name="ProductWorkgroup", EmitDefaultValue=false)] - public StringValue ProductWorkgroup { get; set; } - - /// - /// Gets or Sets Vendor - /// - [DataMember(Name="Vendor", EmitDefaultValue=false)] - public StringValue Vendor { get; set; } - - /// - /// Gets or Sets VendorPriceDetails - /// - [DataMember(Name="VendorPriceDetails", EmitDefaultValue=false)] - public IEnumerable VendorPriceDetails { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VendorPricesInquiry {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" InventoryID: ").Append(InventoryID).Append("\n"); - sb.Append(" ItemClass: ").Append(ItemClass).Append("\n"); - sb.Append(" ProductManager: ").Append(ProductManager).Append("\n"); - sb.Append(" ProductWorkgroup: ").Append(ProductWorkgroup).Append("\n"); - sb.Append(" Vendor: ").Append(Vendor).Append("\n"); - sb.Append(" VendorPriceDetails: ").Append(VendorPriceDetails).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VendorPricesInquiry); - } - - /// - /// Returns true if VendorPricesInquiry instances are equal - /// - /// Instance of VendorPricesInquiry to be compared - /// Boolean - public bool Equals(VendorPricesInquiry input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.InventoryID == input.InventoryID || - (this.InventoryID != null && - this.InventoryID.Equals(input.InventoryID)) - ) && base.Equals(input) && - ( - this.ItemClass == input.ItemClass || - (this.ItemClass != null && - this.ItemClass.Equals(input.ItemClass)) - ) && base.Equals(input) && - ( - this.ProductManager == input.ProductManager || - (this.ProductManager != null && - this.ProductManager.Equals(input.ProductManager)) - ) && base.Equals(input) && - ( - this.ProductWorkgroup == input.ProductWorkgroup || - (this.ProductWorkgroup != null && - this.ProductWorkgroup.Equals(input.ProductWorkgroup)) - ) && base.Equals(input) && - ( - this.Vendor == input.Vendor || - (this.Vendor != null && - this.Vendor.Equals(input.Vendor)) - ) && base.Equals(input) && - ( - this.VendorPriceDetails == input.VendorPriceDetails || - this.VendorPriceDetails != null && - this.VendorPriceDetails.SequenceEqual(input.VendorPriceDetails) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.InventoryID != null) - hashCode = hashCode * 59 + this.InventoryID.GetHashCode(); - if (this.ItemClass != null) - hashCode = hashCode * 59 + this.ItemClass.GetHashCode(); - if (this.ProductManager != null) - hashCode = hashCode * 59 + this.ProductManager.GetHashCode(); - if (this.ProductWorkgroup != null) - hashCode = hashCode * 59 + this.ProductWorkgroup.GetHashCode(); - if (this.Vendor != null) - hashCode = hashCode * 59 + this.Vendor.GetHashCode(); - if (this.VendorPriceDetails != null) - hashCode = hashCode * 59 + this.VendorPriceDetails.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/VisibilitySettings.cs b/Default.18.200.001/Model/VisibilitySettings.cs deleted file mode 100644 index 6523c455..00000000 --- a/Default.18.200.001/Model/VisibilitySettings.cs +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// VisibilitySettings - /// - [DataContract] - public partial class VisibilitySettings : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// aP. - /// aR. - /// cA. - /// cRM. - /// expenses. - /// gL. - /// iN. - /// pO. - /// sO. - /// timeEntries. - public VisibilitySettings(BooleanValue aP = default(BooleanValue), BooleanValue aR = default(BooleanValue), BooleanValue cA = default(BooleanValue), BooleanValue cRM = default(BooleanValue), BooleanValue expenses = default(BooleanValue), BooleanValue gL = default(BooleanValue), BooleanValue iN = default(BooleanValue), BooleanValue pO = default(BooleanValue), BooleanValue sO = default(BooleanValue), BooleanValue timeEntries = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.AP = aP; - this.AR = aR; - this.CA = cA; - this.CRM = cRM; - this.Expenses = expenses; - this.GL = gL; - this.IN = iN; - this.PO = pO; - this.SO = sO; - this.TimeEntries = timeEntries; - } - - /// - /// Gets or Sets AP - /// - [DataMember(Name="AP", EmitDefaultValue=false)] - public BooleanValue AP { get; set; } - - /// - /// Gets or Sets AR - /// - [DataMember(Name="AR", EmitDefaultValue=false)] - public BooleanValue AR { get; set; } - - /// - /// Gets or Sets CA - /// - [DataMember(Name="CA", EmitDefaultValue=false)] - public BooleanValue CA { get; set; } - - /// - /// Gets or Sets CRM - /// - [DataMember(Name="CRM", EmitDefaultValue=false)] - public BooleanValue CRM { get; set; } - - /// - /// Gets or Sets Expenses - /// - [DataMember(Name="Expenses", EmitDefaultValue=false)] - public BooleanValue Expenses { get; set; } - - /// - /// Gets or Sets GL - /// - [DataMember(Name="GL", EmitDefaultValue=false)] - public BooleanValue GL { get; set; } - - /// - /// Gets or Sets IN - /// - [DataMember(Name="IN", EmitDefaultValue=false)] - public BooleanValue IN { get; set; } - - /// - /// Gets or Sets PO - /// - [DataMember(Name="PO", EmitDefaultValue=false)] - public BooleanValue PO { get; set; } - - /// - /// Gets or Sets SO - /// - [DataMember(Name="SO", EmitDefaultValue=false)] - public BooleanValue SO { get; set; } - - /// - /// Gets or Sets TimeEntries - /// - [DataMember(Name="TimeEntries", EmitDefaultValue=false)] - public BooleanValue TimeEntries { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VisibilitySettings {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" AP: ").Append(AP).Append("\n"); - sb.Append(" AR: ").Append(AR).Append("\n"); - sb.Append(" CA: ").Append(CA).Append("\n"); - sb.Append(" CRM: ").Append(CRM).Append("\n"); - sb.Append(" Expenses: ").Append(Expenses).Append("\n"); - sb.Append(" GL: ").Append(GL).Append("\n"); - sb.Append(" IN: ").Append(IN).Append("\n"); - sb.Append(" PO: ").Append(PO).Append("\n"); - sb.Append(" SO: ").Append(SO).Append("\n"); - sb.Append(" TimeEntries: ").Append(TimeEntries).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VisibilitySettings); - } - - /// - /// Returns true if VisibilitySettings instances are equal - /// - /// Instance of VisibilitySettings to be compared - /// Boolean - public bool Equals(VisibilitySettings input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.AP == input.AP || - (this.AP != null && - this.AP.Equals(input.AP)) - ) && base.Equals(input) && - ( - this.AR == input.AR || - (this.AR != null && - this.AR.Equals(input.AR)) - ) && base.Equals(input) && - ( - this.CA == input.CA || - (this.CA != null && - this.CA.Equals(input.CA)) - ) && base.Equals(input) && - ( - this.CRM == input.CRM || - (this.CRM != null && - this.CRM.Equals(input.CRM)) - ) && base.Equals(input) && - ( - this.Expenses == input.Expenses || - (this.Expenses != null && - this.Expenses.Equals(input.Expenses)) - ) && base.Equals(input) && - ( - this.GL == input.GL || - (this.GL != null && - this.GL.Equals(input.GL)) - ) && base.Equals(input) && - ( - this.IN == input.IN || - (this.IN != null && - this.IN.Equals(input.IN)) - ) && base.Equals(input) && - ( - this.PO == input.PO || - (this.PO != null && - this.PO.Equals(input.PO)) - ) && base.Equals(input) && - ( - this.SO == input.SO || - (this.SO != null && - this.SO.Equals(input.SO)) - ) && base.Equals(input) && - ( - this.TimeEntries == input.TimeEntries || - (this.TimeEntries != null && - this.TimeEntries.Equals(input.TimeEntries)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.AP != null) - hashCode = hashCode * 59 + this.AP.GetHashCode(); - if (this.AR != null) - hashCode = hashCode * 59 + this.AR.GetHashCode(); - if (this.CA != null) - hashCode = hashCode * 59 + this.CA.GetHashCode(); - if (this.CRM != null) - hashCode = hashCode * 59 + this.CRM.GetHashCode(); - if (this.Expenses != null) - hashCode = hashCode * 59 + this.Expenses.GetHashCode(); - if (this.GL != null) - hashCode = hashCode * 59 + this.GL.GetHashCode(); - if (this.IN != null) - hashCode = hashCode * 59 + this.IN.GetHashCode(); - if (this.PO != null) - hashCode = hashCode * 59 + this.PO.GetHashCode(); - if (this.SO != null) - hashCode = hashCode * 59 + this.SO.GetHashCode(); - if (this.TimeEntries != null) - hashCode = hashCode * 59 + this.TimeEntries.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/VoucherEntryCode.cs b/Default.18.200.001/Model/VoucherEntryCode.cs deleted file mode 100644 index 110bb2cb..00000000 --- a/Default.18.200.001/Model/VoucherEntryCode.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// VoucherEntryCode - /// - [DataContract] - public partial class VoucherEntryCode : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// description. - /// module. - /// moduleTransactionType. - /// uniqueTransactionCode. - public VoucherEntryCode(BooleanValue active = default(BooleanValue), StringValue description = default(StringValue), StringValue module = default(StringValue), StringValue moduleTransactionType = default(StringValue), StringValue uniqueTransactionCode = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.Description = description; - this.Module = module; - this.ModuleTransactionType = moduleTransactionType; - this.UniqueTransactionCode = uniqueTransactionCode; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets Module - /// - [DataMember(Name="Module", EmitDefaultValue=false)] - public StringValue Module { get; set; } - - /// - /// Gets or Sets ModuleTransactionType - /// - [DataMember(Name="ModuleTransactionType", EmitDefaultValue=false)] - public StringValue ModuleTransactionType { get; set; } - - /// - /// Gets or Sets UniqueTransactionCode - /// - [DataMember(Name="UniqueTransactionCode", EmitDefaultValue=false)] - public StringValue UniqueTransactionCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class VoucherEntryCode {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Module: ").Append(Module).Append("\n"); - sb.Append(" ModuleTransactionType: ").Append(ModuleTransactionType).Append("\n"); - sb.Append(" UniqueTransactionCode: ").Append(UniqueTransactionCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as VoucherEntryCode); - } - - /// - /// Returns true if VoucherEntryCode instances are equal - /// - /// Instance of VoucherEntryCode to be compared - /// Boolean - public bool Equals(VoucherEntryCode input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.Module == input.Module || - (this.Module != null && - this.Module.Equals(input.Module)) - ) && base.Equals(input) && - ( - this.ModuleTransactionType == input.ModuleTransactionType || - (this.ModuleTransactionType != null && - this.ModuleTransactionType.Equals(input.ModuleTransactionType)) - ) && base.Equals(input) && - ( - this.UniqueTransactionCode == input.UniqueTransactionCode || - (this.UniqueTransactionCode != null && - this.UniqueTransactionCode.Equals(input.UniqueTransactionCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.Module != null) - hashCode = hashCode * 59 + this.Module.GetHashCode(); - if (this.ModuleTransactionType != null) - hashCode = hashCode * 59 + this.ModuleTransactionType.GetHashCode(); - if (this.UniqueTransactionCode != null) - hashCode = hashCode * 59 + this.UniqueTransactionCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/Warehouse.cs b/Default.18.200.001/Model/Warehouse.cs deleted file mode 100644 index 0b4a1587..00000000 --- a/Default.18.200.001/Model/Warehouse.cs +++ /dev/null @@ -1,622 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// Warehouse - /// - [DataContract] - public partial class Warehouse : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// cOGSExpenseAccount. - /// cOGSExpenseSubaccount. - /// description. - /// discountAccount. - /// discountSubaccount. - /// dropShipLocationID. - /// freightChargeAccount. - /// freightChargeSubaccount. - /// inventoryAccount. - /// inventorySubaccount. - /// landedCostVarianceAccount. - /// landedCostVarianceSubaccount. - /// locations. - /// miscChargeAccount. - /// miscChargeSubaccount. - /// overrideInventoryAccountSubaccount. - /// pOAccrualAccount. - /// pOAccrualSubaccount. - /// purchasePriceVarianceAccount. - /// purchasePriceVarianceSubaccount. - /// reasonCodeSubaccount. - /// receivingLocationID. - /// rMALocationID. - /// salesAccount. - /// salesSubaccount. - /// shippingLocationID. - /// standardCostRevaluationAccount. - /// standardCostRevaluationSubaccount. - /// standardCostVarianceAccount. - /// standardCostVarianceSubaccount. - /// warehouseID. - public Warehouse(BooleanValue active = default(BooleanValue), StringValue cOGSExpenseAccount = default(StringValue), StringValue cOGSExpenseSubaccount = default(StringValue), StringValue description = default(StringValue), StringValue discountAccount = default(StringValue), StringValue discountSubaccount = default(StringValue), StringValue dropShipLocationID = default(StringValue), StringValue freightChargeAccount = default(StringValue), StringValue freightChargeSubaccount = default(StringValue), StringValue inventoryAccount = default(StringValue), StringValue inventorySubaccount = default(StringValue), StringValue landedCostVarianceAccount = default(StringValue), StringValue landedCostVarianceSubaccount = default(StringValue), IEnumerable locations = default(IEnumerable), StringValue miscChargeAccount = default(StringValue), StringValue miscChargeSubaccount = default(StringValue), BooleanValue overrideInventoryAccountSubaccount = default(BooleanValue), StringValue pOAccrualAccount = default(StringValue), StringValue pOAccrualSubaccount = default(StringValue), StringValue purchasePriceVarianceAccount = default(StringValue), StringValue purchasePriceVarianceSubaccount = default(StringValue), StringValue reasonCodeSubaccount = default(StringValue), StringValue receivingLocationID = default(StringValue), StringValue rMALocationID = default(StringValue), StringValue salesAccount = default(StringValue), StringValue salesSubaccount = default(StringValue), StringValue shippingLocationID = default(StringValue), StringValue standardCostRevaluationAccount = default(StringValue), StringValue standardCostRevaluationSubaccount = default(StringValue), StringValue standardCostVarianceAccount = default(StringValue), StringValue standardCostVarianceSubaccount = default(StringValue), StringValue warehouseID = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.COGSExpenseAccount = cOGSExpenseAccount; - this.COGSExpenseSubaccount = cOGSExpenseSubaccount; - this.Description = description; - this.DiscountAccount = discountAccount; - this.DiscountSubaccount = discountSubaccount; - this.DropShipLocationID = dropShipLocationID; - this.FreightChargeAccount = freightChargeAccount; - this.FreightChargeSubaccount = freightChargeSubaccount; - this.InventoryAccount = inventoryAccount; - this.InventorySubaccount = inventorySubaccount; - this.LandedCostVarianceAccount = landedCostVarianceAccount; - this.LandedCostVarianceSubaccount = landedCostVarianceSubaccount; - this.Locations = locations; - this.MiscChargeAccount = miscChargeAccount; - this.MiscChargeSubaccount = miscChargeSubaccount; - this.OverrideInventoryAccountSubaccount = overrideInventoryAccountSubaccount; - this.POAccrualAccount = pOAccrualAccount; - this.POAccrualSubaccount = pOAccrualSubaccount; - this.PurchasePriceVarianceAccount = purchasePriceVarianceAccount; - this.PurchasePriceVarianceSubaccount = purchasePriceVarianceSubaccount; - this.ReasonCodeSubaccount = reasonCodeSubaccount; - this.ReceivingLocationID = receivingLocationID; - this.RMALocationID = rMALocationID; - this.SalesAccount = salesAccount; - this.SalesSubaccount = salesSubaccount; - this.ShippingLocationID = shippingLocationID; - this.StandardCostRevaluationAccount = standardCostRevaluationAccount; - this.StandardCostRevaluationSubaccount = standardCostRevaluationSubaccount; - this.StandardCostVarianceAccount = standardCostVarianceAccount; - this.StandardCostVarianceSubaccount = standardCostVarianceSubaccount; - this.WarehouseID = warehouseID; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets COGSExpenseAccount - /// - [DataMember(Name="COGSExpenseAccount", EmitDefaultValue=false)] - public StringValue COGSExpenseAccount { get; set; } - - /// - /// Gets or Sets COGSExpenseSubaccount - /// - [DataMember(Name="COGSExpenseSubaccount", EmitDefaultValue=false)] - public StringValue COGSExpenseSubaccount { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets DiscountAccount - /// - [DataMember(Name="DiscountAccount", EmitDefaultValue=false)] - public StringValue DiscountAccount { get; set; } - - /// - /// Gets or Sets DiscountSubaccount - /// - [DataMember(Name="DiscountSubaccount", EmitDefaultValue=false)] - public StringValue DiscountSubaccount { get; set; } - - /// - /// Gets or Sets DropShipLocationID - /// - [DataMember(Name="DropShipLocationID", EmitDefaultValue=false)] - public StringValue DropShipLocationID { get; set; } - - /// - /// Gets or Sets FreightChargeAccount - /// - [DataMember(Name="FreightChargeAccount", EmitDefaultValue=false)] - public StringValue FreightChargeAccount { get; set; } - - /// - /// Gets or Sets FreightChargeSubaccount - /// - [DataMember(Name="FreightChargeSubaccount", EmitDefaultValue=false)] - public StringValue FreightChargeSubaccount { get; set; } - - /// - /// Gets or Sets InventoryAccount - /// - [DataMember(Name="InventoryAccount", EmitDefaultValue=false)] - public StringValue InventoryAccount { get; set; } - - /// - /// Gets or Sets InventorySubaccount - /// - [DataMember(Name="InventorySubaccount", EmitDefaultValue=false)] - public StringValue InventorySubaccount { get; set; } - - /// - /// Gets or Sets LandedCostVarianceAccount - /// - [DataMember(Name="LandedCostVarianceAccount", EmitDefaultValue=false)] - public StringValue LandedCostVarianceAccount { get; set; } - - /// - /// Gets or Sets LandedCostVarianceSubaccount - /// - [DataMember(Name="LandedCostVarianceSubaccount", EmitDefaultValue=false)] - public StringValue LandedCostVarianceSubaccount { get; set; } - - /// - /// Gets or Sets Locations - /// - [DataMember(Name="Locations", EmitDefaultValue=false)] - public IEnumerable Locations { get; set; } - - /// - /// Gets or Sets MiscChargeAccount - /// - [DataMember(Name="MiscChargeAccount", EmitDefaultValue=false)] - public StringValue MiscChargeAccount { get; set; } - - /// - /// Gets or Sets MiscChargeSubaccount - /// - [DataMember(Name="MiscChargeSubaccount", EmitDefaultValue=false)] - public StringValue MiscChargeSubaccount { get; set; } - - /// - /// Gets or Sets OverrideInventoryAccountSubaccount - /// - [DataMember(Name="OverrideInventoryAccountSubaccount", EmitDefaultValue=false)] - public BooleanValue OverrideInventoryAccountSubaccount { get; set; } - - /// - /// Gets or Sets POAccrualAccount - /// - [DataMember(Name="POAccrualAccount", EmitDefaultValue=false)] - public StringValue POAccrualAccount { get; set; } - - /// - /// Gets or Sets POAccrualSubaccount - /// - [DataMember(Name="POAccrualSubaccount", EmitDefaultValue=false)] - public StringValue POAccrualSubaccount { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceAccount - /// - [DataMember(Name="PurchasePriceVarianceAccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceAccount { get; set; } - - /// - /// Gets or Sets PurchasePriceVarianceSubaccount - /// - [DataMember(Name="PurchasePriceVarianceSubaccount", EmitDefaultValue=false)] - public StringValue PurchasePriceVarianceSubaccount { get; set; } - - /// - /// Gets or Sets ReasonCodeSubaccount - /// - [DataMember(Name="ReasonCodeSubaccount", EmitDefaultValue=false)] - public StringValue ReasonCodeSubaccount { get; set; } - - /// - /// Gets or Sets ReceivingLocationID - /// - [DataMember(Name="ReceivingLocationID", EmitDefaultValue=false)] - public StringValue ReceivingLocationID { get; set; } - - /// - /// Gets or Sets RMALocationID - /// - [DataMember(Name="RMALocationID", EmitDefaultValue=false)] - public StringValue RMALocationID { get; set; } - - /// - /// Gets or Sets SalesAccount - /// - [DataMember(Name="SalesAccount", EmitDefaultValue=false)] - public StringValue SalesAccount { get; set; } - - /// - /// Gets or Sets SalesSubaccount - /// - [DataMember(Name="SalesSubaccount", EmitDefaultValue=false)] - public StringValue SalesSubaccount { get; set; } - - /// - /// Gets or Sets ShippingLocationID - /// - [DataMember(Name="ShippingLocationID", EmitDefaultValue=false)] - public StringValue ShippingLocationID { get; set; } - - /// - /// Gets or Sets StandardCostRevaluationAccount - /// - [DataMember(Name="StandardCostRevaluationAccount", EmitDefaultValue=false)] - public StringValue StandardCostRevaluationAccount { get; set; } - - /// - /// Gets or Sets StandardCostRevaluationSubaccount - /// - [DataMember(Name="StandardCostRevaluationSubaccount", EmitDefaultValue=false)] - public StringValue StandardCostRevaluationSubaccount { get; set; } - - /// - /// Gets or Sets StandardCostVarianceAccount - /// - [DataMember(Name="StandardCostVarianceAccount", EmitDefaultValue=false)] - public StringValue StandardCostVarianceAccount { get; set; } - - /// - /// Gets or Sets StandardCostVarianceSubaccount - /// - [DataMember(Name="StandardCostVarianceSubaccount", EmitDefaultValue=false)] - public StringValue StandardCostVarianceSubaccount { get; set; } - - /// - /// Gets or Sets WarehouseID - /// - [DataMember(Name="WarehouseID", EmitDefaultValue=false)] - public StringValue WarehouseID { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Warehouse {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" COGSExpenseAccount: ").Append(COGSExpenseAccount).Append("\n"); - sb.Append(" COGSExpenseSubaccount: ").Append(COGSExpenseSubaccount).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" DiscountAccount: ").Append(DiscountAccount).Append("\n"); - sb.Append(" DiscountSubaccount: ").Append(DiscountSubaccount).Append("\n"); - sb.Append(" DropShipLocationID: ").Append(DropShipLocationID).Append("\n"); - sb.Append(" FreightChargeAccount: ").Append(FreightChargeAccount).Append("\n"); - sb.Append(" FreightChargeSubaccount: ").Append(FreightChargeSubaccount).Append("\n"); - sb.Append(" InventoryAccount: ").Append(InventoryAccount).Append("\n"); - sb.Append(" InventorySubaccount: ").Append(InventorySubaccount).Append("\n"); - sb.Append(" LandedCostVarianceAccount: ").Append(LandedCostVarianceAccount).Append("\n"); - sb.Append(" LandedCostVarianceSubaccount: ").Append(LandedCostVarianceSubaccount).Append("\n"); - sb.Append(" Locations: ").Append(Locations).Append("\n"); - sb.Append(" MiscChargeAccount: ").Append(MiscChargeAccount).Append("\n"); - sb.Append(" MiscChargeSubaccount: ").Append(MiscChargeSubaccount).Append("\n"); - sb.Append(" OverrideInventoryAccountSubaccount: ").Append(OverrideInventoryAccountSubaccount).Append("\n"); - sb.Append(" POAccrualAccount: ").Append(POAccrualAccount).Append("\n"); - sb.Append(" POAccrualSubaccount: ").Append(POAccrualSubaccount).Append("\n"); - sb.Append(" PurchasePriceVarianceAccount: ").Append(PurchasePriceVarianceAccount).Append("\n"); - sb.Append(" PurchasePriceVarianceSubaccount: ").Append(PurchasePriceVarianceSubaccount).Append("\n"); - sb.Append(" ReasonCodeSubaccount: ").Append(ReasonCodeSubaccount).Append("\n"); - sb.Append(" ReceivingLocationID: ").Append(ReceivingLocationID).Append("\n"); - sb.Append(" RMALocationID: ").Append(RMALocationID).Append("\n"); - sb.Append(" SalesAccount: ").Append(SalesAccount).Append("\n"); - sb.Append(" SalesSubaccount: ").Append(SalesSubaccount).Append("\n"); - sb.Append(" ShippingLocationID: ").Append(ShippingLocationID).Append("\n"); - sb.Append(" StandardCostRevaluationAccount: ").Append(StandardCostRevaluationAccount).Append("\n"); - sb.Append(" StandardCostRevaluationSubaccount: ").Append(StandardCostRevaluationSubaccount).Append("\n"); - sb.Append(" StandardCostVarianceAccount: ").Append(StandardCostVarianceAccount).Append("\n"); - sb.Append(" StandardCostVarianceSubaccount: ").Append(StandardCostVarianceSubaccount).Append("\n"); - sb.Append(" WarehouseID: ").Append(WarehouseID).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Warehouse); - } - - /// - /// Returns true if Warehouse instances are equal - /// - /// Instance of Warehouse to be compared - /// Boolean - public bool Equals(Warehouse input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.COGSExpenseAccount == input.COGSExpenseAccount || - (this.COGSExpenseAccount != null && - this.COGSExpenseAccount.Equals(input.COGSExpenseAccount)) - ) && base.Equals(input) && - ( - this.COGSExpenseSubaccount == input.COGSExpenseSubaccount || - (this.COGSExpenseSubaccount != null && - this.COGSExpenseSubaccount.Equals(input.COGSExpenseSubaccount)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.DiscountAccount == input.DiscountAccount || - (this.DiscountAccount != null && - this.DiscountAccount.Equals(input.DiscountAccount)) - ) && base.Equals(input) && - ( - this.DiscountSubaccount == input.DiscountSubaccount || - (this.DiscountSubaccount != null && - this.DiscountSubaccount.Equals(input.DiscountSubaccount)) - ) && base.Equals(input) && - ( - this.DropShipLocationID == input.DropShipLocationID || - (this.DropShipLocationID != null && - this.DropShipLocationID.Equals(input.DropShipLocationID)) - ) && base.Equals(input) && - ( - this.FreightChargeAccount == input.FreightChargeAccount || - (this.FreightChargeAccount != null && - this.FreightChargeAccount.Equals(input.FreightChargeAccount)) - ) && base.Equals(input) && - ( - this.FreightChargeSubaccount == input.FreightChargeSubaccount || - (this.FreightChargeSubaccount != null && - this.FreightChargeSubaccount.Equals(input.FreightChargeSubaccount)) - ) && base.Equals(input) && - ( - this.InventoryAccount == input.InventoryAccount || - (this.InventoryAccount != null && - this.InventoryAccount.Equals(input.InventoryAccount)) - ) && base.Equals(input) && - ( - this.InventorySubaccount == input.InventorySubaccount || - (this.InventorySubaccount != null && - this.InventorySubaccount.Equals(input.InventorySubaccount)) - ) && base.Equals(input) && - ( - this.LandedCostVarianceAccount == input.LandedCostVarianceAccount || - (this.LandedCostVarianceAccount != null && - this.LandedCostVarianceAccount.Equals(input.LandedCostVarianceAccount)) - ) && base.Equals(input) && - ( - this.LandedCostVarianceSubaccount == input.LandedCostVarianceSubaccount || - (this.LandedCostVarianceSubaccount != null && - this.LandedCostVarianceSubaccount.Equals(input.LandedCostVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.Locations == input.Locations || - this.Locations != null && - this.Locations.SequenceEqual(input.Locations) - ) && base.Equals(input) && - ( - this.MiscChargeAccount == input.MiscChargeAccount || - (this.MiscChargeAccount != null && - this.MiscChargeAccount.Equals(input.MiscChargeAccount)) - ) && base.Equals(input) && - ( - this.MiscChargeSubaccount == input.MiscChargeSubaccount || - (this.MiscChargeSubaccount != null && - this.MiscChargeSubaccount.Equals(input.MiscChargeSubaccount)) - ) && base.Equals(input) && - ( - this.OverrideInventoryAccountSubaccount == input.OverrideInventoryAccountSubaccount || - (this.OverrideInventoryAccountSubaccount != null && - this.OverrideInventoryAccountSubaccount.Equals(input.OverrideInventoryAccountSubaccount)) - ) && base.Equals(input) && - ( - this.POAccrualAccount == input.POAccrualAccount || - (this.POAccrualAccount != null && - this.POAccrualAccount.Equals(input.POAccrualAccount)) - ) && base.Equals(input) && - ( - this.POAccrualSubaccount == input.POAccrualSubaccount || - (this.POAccrualSubaccount != null && - this.POAccrualSubaccount.Equals(input.POAccrualSubaccount)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceAccount == input.PurchasePriceVarianceAccount || - (this.PurchasePriceVarianceAccount != null && - this.PurchasePriceVarianceAccount.Equals(input.PurchasePriceVarianceAccount)) - ) && base.Equals(input) && - ( - this.PurchasePriceVarianceSubaccount == input.PurchasePriceVarianceSubaccount || - (this.PurchasePriceVarianceSubaccount != null && - this.PurchasePriceVarianceSubaccount.Equals(input.PurchasePriceVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.ReasonCodeSubaccount == input.ReasonCodeSubaccount || - (this.ReasonCodeSubaccount != null && - this.ReasonCodeSubaccount.Equals(input.ReasonCodeSubaccount)) - ) && base.Equals(input) && - ( - this.ReceivingLocationID == input.ReceivingLocationID || - (this.ReceivingLocationID != null && - this.ReceivingLocationID.Equals(input.ReceivingLocationID)) - ) && base.Equals(input) && - ( - this.RMALocationID == input.RMALocationID || - (this.RMALocationID != null && - this.RMALocationID.Equals(input.RMALocationID)) - ) && base.Equals(input) && - ( - this.SalesAccount == input.SalesAccount || - (this.SalesAccount != null && - this.SalesAccount.Equals(input.SalesAccount)) - ) && base.Equals(input) && - ( - this.SalesSubaccount == input.SalesSubaccount || - (this.SalesSubaccount != null && - this.SalesSubaccount.Equals(input.SalesSubaccount)) - ) && base.Equals(input) && - ( - this.ShippingLocationID == input.ShippingLocationID || - (this.ShippingLocationID != null && - this.ShippingLocationID.Equals(input.ShippingLocationID)) - ) && base.Equals(input) && - ( - this.StandardCostRevaluationAccount == input.StandardCostRevaluationAccount || - (this.StandardCostRevaluationAccount != null && - this.StandardCostRevaluationAccount.Equals(input.StandardCostRevaluationAccount)) - ) && base.Equals(input) && - ( - this.StandardCostRevaluationSubaccount == input.StandardCostRevaluationSubaccount || - (this.StandardCostRevaluationSubaccount != null && - this.StandardCostRevaluationSubaccount.Equals(input.StandardCostRevaluationSubaccount)) - ) && base.Equals(input) && - ( - this.StandardCostVarianceAccount == input.StandardCostVarianceAccount || - (this.StandardCostVarianceAccount != null && - this.StandardCostVarianceAccount.Equals(input.StandardCostVarianceAccount)) - ) && base.Equals(input) && - ( - this.StandardCostVarianceSubaccount == input.StandardCostVarianceSubaccount || - (this.StandardCostVarianceSubaccount != null && - this.StandardCostVarianceSubaccount.Equals(input.StandardCostVarianceSubaccount)) - ) && base.Equals(input) && - ( - this.WarehouseID == input.WarehouseID || - (this.WarehouseID != null && - this.WarehouseID.Equals(input.WarehouseID)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.COGSExpenseAccount != null) - hashCode = hashCode * 59 + this.COGSExpenseAccount.GetHashCode(); - if (this.COGSExpenseSubaccount != null) - hashCode = hashCode * 59 + this.COGSExpenseSubaccount.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.DiscountAccount != null) - hashCode = hashCode * 59 + this.DiscountAccount.GetHashCode(); - if (this.DiscountSubaccount != null) - hashCode = hashCode * 59 + this.DiscountSubaccount.GetHashCode(); - if (this.DropShipLocationID != null) - hashCode = hashCode * 59 + this.DropShipLocationID.GetHashCode(); - if (this.FreightChargeAccount != null) - hashCode = hashCode * 59 + this.FreightChargeAccount.GetHashCode(); - if (this.FreightChargeSubaccount != null) - hashCode = hashCode * 59 + this.FreightChargeSubaccount.GetHashCode(); - if (this.InventoryAccount != null) - hashCode = hashCode * 59 + this.InventoryAccount.GetHashCode(); - if (this.InventorySubaccount != null) - hashCode = hashCode * 59 + this.InventorySubaccount.GetHashCode(); - if (this.LandedCostVarianceAccount != null) - hashCode = hashCode * 59 + this.LandedCostVarianceAccount.GetHashCode(); - if (this.LandedCostVarianceSubaccount != null) - hashCode = hashCode * 59 + this.LandedCostVarianceSubaccount.GetHashCode(); - if (this.Locations != null) - hashCode = hashCode * 59 + this.Locations.GetHashCode(); - if (this.MiscChargeAccount != null) - hashCode = hashCode * 59 + this.MiscChargeAccount.GetHashCode(); - if (this.MiscChargeSubaccount != null) - hashCode = hashCode * 59 + this.MiscChargeSubaccount.GetHashCode(); - if (this.OverrideInventoryAccountSubaccount != null) - hashCode = hashCode * 59 + this.OverrideInventoryAccountSubaccount.GetHashCode(); - if (this.POAccrualAccount != null) - hashCode = hashCode * 59 + this.POAccrualAccount.GetHashCode(); - if (this.POAccrualSubaccount != null) - hashCode = hashCode * 59 + this.POAccrualSubaccount.GetHashCode(); - if (this.PurchasePriceVarianceAccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceAccount.GetHashCode(); - if (this.PurchasePriceVarianceSubaccount != null) - hashCode = hashCode * 59 + this.PurchasePriceVarianceSubaccount.GetHashCode(); - if (this.ReasonCodeSubaccount != null) - hashCode = hashCode * 59 + this.ReasonCodeSubaccount.GetHashCode(); - if (this.ReceivingLocationID != null) - hashCode = hashCode * 59 + this.ReceivingLocationID.GetHashCode(); - if (this.RMALocationID != null) - hashCode = hashCode * 59 + this.RMALocationID.GetHashCode(); - if (this.SalesAccount != null) - hashCode = hashCode * 59 + this.SalesAccount.GetHashCode(); - if (this.SalesSubaccount != null) - hashCode = hashCode * 59 + this.SalesSubaccount.GetHashCode(); - if (this.ShippingLocationID != null) - hashCode = hashCode * 59 + this.ShippingLocationID.GetHashCode(); - if (this.StandardCostRevaluationAccount != null) - hashCode = hashCode * 59 + this.StandardCostRevaluationAccount.GetHashCode(); - if (this.StandardCostRevaluationSubaccount != null) - hashCode = hashCode * 59 + this.StandardCostRevaluationSubaccount.GetHashCode(); - if (this.StandardCostVarianceAccount != null) - hashCode = hashCode * 59 + this.StandardCostVarianceAccount.GetHashCode(); - if (this.StandardCostVarianceSubaccount != null) - hashCode = hashCode * 59 + this.StandardCostVarianceSubaccount.GetHashCode(); - if (this.WarehouseID != null) - hashCode = hashCode * 59 + this.WarehouseID.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/WarehouseLocation.cs b/Default.18.200.001/Model/WarehouseLocation.cs deleted file mode 100644 index f3302b25..00000000 --- a/Default.18.200.001/Model/WarehouseLocation.cs +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// WarehouseLocation - /// - [DataContract] - public partial class WarehouseLocation : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// assemblyAllowed. - /// description. - /// locationID. - /// pickPriority. - /// receiptsAllowed. - /// salesAllowed. - /// transfersAllowed. - public WarehouseLocation(BooleanValue active = default(BooleanValue), BooleanValue assemblyAllowed = default(BooleanValue), StringValue description = default(StringValue), StringValue locationID = default(StringValue), ShortValue pickPriority = default(ShortValue), BooleanValue receiptsAllowed = default(BooleanValue), BooleanValue salesAllowed = default(BooleanValue), BooleanValue transfersAllowed = default(BooleanValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.AssemblyAllowed = assemblyAllowed; - this.Description = description; - this.LocationID = locationID; - this.PickPriority = pickPriority; - this.ReceiptsAllowed = receiptsAllowed; - this.SalesAllowed = salesAllowed; - this.TransfersAllowed = transfersAllowed; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets AssemblyAllowed - /// - [DataMember(Name="AssemblyAllowed", EmitDefaultValue=false)] - public BooleanValue AssemblyAllowed { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets LocationID - /// - [DataMember(Name="LocationID", EmitDefaultValue=false)] - public StringValue LocationID { get; set; } - - /// - /// Gets or Sets PickPriority - /// - [DataMember(Name="PickPriority", EmitDefaultValue=false)] - public ShortValue PickPriority { get; set; } - - /// - /// Gets or Sets ReceiptsAllowed - /// - [DataMember(Name="ReceiptsAllowed", EmitDefaultValue=false)] - public BooleanValue ReceiptsAllowed { get; set; } - - /// - /// Gets or Sets SalesAllowed - /// - [DataMember(Name="SalesAllowed", EmitDefaultValue=false)] - public BooleanValue SalesAllowed { get; set; } - - /// - /// Gets or Sets TransfersAllowed - /// - [DataMember(Name="TransfersAllowed", EmitDefaultValue=false)] - public BooleanValue TransfersAllowed { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WarehouseLocation {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" AssemblyAllowed: ").Append(AssemblyAllowed).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" LocationID: ").Append(LocationID).Append("\n"); - sb.Append(" PickPriority: ").Append(PickPriority).Append("\n"); - sb.Append(" ReceiptsAllowed: ").Append(ReceiptsAllowed).Append("\n"); - sb.Append(" SalesAllowed: ").Append(SalesAllowed).Append("\n"); - sb.Append(" TransfersAllowed: ").Append(TransfersAllowed).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WarehouseLocation); - } - - /// - /// Returns true if WarehouseLocation instances are equal - /// - /// Instance of WarehouseLocation to be compared - /// Boolean - public bool Equals(WarehouseLocation input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.AssemblyAllowed == input.AssemblyAllowed || - (this.AssemblyAllowed != null && - this.AssemblyAllowed.Equals(input.AssemblyAllowed)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.LocationID == input.LocationID || - (this.LocationID != null && - this.LocationID.Equals(input.LocationID)) - ) && base.Equals(input) && - ( - this.PickPriority == input.PickPriority || - (this.PickPriority != null && - this.PickPriority.Equals(input.PickPriority)) - ) && base.Equals(input) && - ( - this.ReceiptsAllowed == input.ReceiptsAllowed || - (this.ReceiptsAllowed != null && - this.ReceiptsAllowed.Equals(input.ReceiptsAllowed)) - ) && base.Equals(input) && - ( - this.SalesAllowed == input.SalesAllowed || - (this.SalesAllowed != null && - this.SalesAllowed.Equals(input.SalesAllowed)) - ) && base.Equals(input) && - ( - this.TransfersAllowed == input.TransfersAllowed || - (this.TransfersAllowed != null && - this.TransfersAllowed.Equals(input.TransfersAllowed)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.AssemblyAllowed != null) - hashCode = hashCode * 59 + this.AssemblyAllowed.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.LocationID != null) - hashCode = hashCode * 59 + this.LocationID.GetHashCode(); - if (this.PickPriority != null) - hashCode = hashCode * 59 + this.PickPriority.GetHashCode(); - if (this.ReceiptsAllowed != null) - hashCode = hashCode * 59 + this.ReceiptsAllowed.GetHashCode(); - if (this.SalesAllowed != null) - hashCode = hashCode * 59 + this.SalesAllowed.GetHashCode(); - if (this.TransfersAllowed != null) - hashCode = hashCode * 59 + this.TransfersAllowed.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/Default.18.200.001/Model/WorkClassCompensationCode.cs b/Default.18.200.001/Model/WorkClassCompensationCode.cs deleted file mode 100644 index 1317a2ea..00000000 --- a/Default.18.200.001/Model/WorkClassCompensationCode.cs +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Default/18.200.001 - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: 3 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using Acumatica.RESTClient.Model; - -namespace Acumatica.Default_18_200_001.Model -{ - /// - /// WorkClassCompensationCode - /// - [DataContract] - public partial class WorkClassCompensationCode : Entity, IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// active. - /// costCodeFrom. - /// costCodeTo. - /// description. - /// wCCCode. - public WorkClassCompensationCode(BooleanValue active = default(BooleanValue), StringValue costCodeFrom = default(StringValue), StringValue costCodeTo = default(StringValue), StringValue description = default(StringValue), StringValue wCCCode = default(StringValue), Guid? id = default(Guid?), long? rowNumber = default(long?), string note = default(string), Dictionary> custom = default(Dictionary>), List files = default(List)) : base(id, rowNumber, note, custom, files) - { - this.Active = active; - this.CostCodeFrom = costCodeFrom; - this.CostCodeTo = costCodeTo; - this.Description = description; - this.WCCCode = wCCCode; - } - - /// - /// Gets or Sets Active - /// - [DataMember(Name="Active", EmitDefaultValue=false)] - public BooleanValue Active { get; set; } - - /// - /// Gets or Sets CostCodeFrom - /// - [DataMember(Name="CostCodeFrom", EmitDefaultValue=false)] - public StringValue CostCodeFrom { get; set; } - - /// - /// Gets or Sets CostCodeTo - /// - [DataMember(Name="CostCodeTo", EmitDefaultValue=false)] - public StringValue CostCodeTo { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="Description", EmitDefaultValue=false)] - public StringValue Description { get; set; } - - /// - /// Gets or Sets WCCCode - /// - [DataMember(Name="WCCCode", EmitDefaultValue=false)] - public StringValue WCCCode { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class WorkClassCompensationCode {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" CostCodeFrom: ").Append(CostCodeFrom).Append("\n"); - sb.Append(" CostCodeTo: ").Append(CostCodeTo).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" WCCCode: ").Append(WCCCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as WorkClassCompensationCode); - } - - /// - /// Returns true if WorkClassCompensationCode instances are equal - /// - /// Instance of WorkClassCompensationCode to be compared - /// Boolean - public bool Equals(WorkClassCompensationCode input) - { - if (input == null) - return false; - - return base.Equals(input) && - ( - this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) - ) && base.Equals(input) && - ( - this.CostCodeFrom == input.CostCodeFrom || - (this.CostCodeFrom != null && - this.CostCodeFrom.Equals(input.CostCodeFrom)) - ) && base.Equals(input) && - ( - this.CostCodeTo == input.CostCodeTo || - (this.CostCodeTo != null && - this.CostCodeTo.Equals(input.CostCodeTo)) - ) && base.Equals(input) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && base.Equals(input) && - ( - this.WCCCode == input.WCCCode || - (this.WCCCode != null && - this.WCCCode.Equals(input.WCCCode)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = base.GetHashCode(); - if (this.Active != null) - hashCode = hashCode * 59 + this.Active.GetHashCode(); - if (this.CostCodeFrom != null) - hashCode = hashCode * 59 + this.CostCodeFrom.GetHashCode(); - if (this.CostCodeTo != null) - hashCode = hashCode * 59 + this.CostCodeTo.GetHashCode(); - if (this.Description != null) - hashCode = hashCode * 59 + this.Description.GetHashCode(); - if (this.WCCCode != null) - hashCode = hashCode * 59 + this.WCCCode.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - foreach(var x in base.BaseValidate(validationContext)) yield return x; - yield break; - } - } - -} diff --git a/SOAPLikeWrapperForREST/SOAPLikeWrapperForREST.csproj b/SOAPLikeWrapperForREST/SOAPLikeWrapperForREST.csproj index 894da3c0..d301da0f 100644 --- a/SOAPLikeWrapperForREST/SOAPLikeWrapperForREST.csproj +++ b/SOAPLikeWrapperForREST/SOAPLikeWrapperForREST.csproj @@ -57,14 +57,14 @@ {5b17772d-1f76-4a4b-a3f7-8c8cffa93e29} Acumatica.Auth + + {B26A386B-F5DA-4679-ACBA-1541251B696B} + Acumatica.Default_18.200.001 + {25008d3f-3d78-4bb9-b14b-0a792ae97892} Acumatica.RESTClient - - {B26A386B-F5DA-4679-ACBA-1541251B696B} - Acumatica.Default_18.200.001 -